전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0463 데이터시트(PDF) 13 Page - STMicroelectronics

부품명 UM0463
상세설명  ST7 full-speed USB library
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0463 데이터시트(HTML) 13 Page - STMicroelectronics

Back Button UM0463 Datasheet HTML 9Page - STMicroelectronics UM0463 Datasheet HTML 10Page - STMicroelectronics UM0463 Datasheet HTML 11Page - STMicroelectronics UM0463 Datasheet HTML 12Page - STMicroelectronics UM0463 Datasheet HTML 13Page - STMicroelectronics UM0463 Datasheet HTML 14Page - STMicroelectronics UM0463 Datasheet HTML 15Page - STMicroelectronics UM0463 Datasheet HTML 16Page - STMicroelectronics UM0463 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 30 page
background image
UM0463
The USB state machine of the control endpoint
13/30
Note:
Letters in the column “State”: D=Default state; A=Address state; C=Configured state; All=All
EP states.
EP value: D0-D3=endpoint address; D4-D6=reserved as zero; D7= 0: OUT endpoint, 1: IN
endpoint.
All the nonstandard requests are passed to the user application code by means of a
callback function. Every project that uses this library has to implement a callback function to
receive nonstandard requests and return with success or with error. Section 3.4 discusses
the callback function.
3.4
Nonstandard requests
3.4.1
SETUP stage
The library passes all nonstandard requests to the user code with the callback
USER_USB_Setup (). The nonstandard requests include the user-interpreted requests and
the invalid requests. User-interpreted requests are class specific requests, vendor specific
requests or the requests that the library considers as an invalid request but the application
wants to interpret them as valid requests (for example, the library does not support the Halt
feature on endpoint 0 but the user application may need this feature.) Invalid requests are
the requests that are not standard requests and are not user-interpreted requests.
Since USER_USB_Setup () is called after the SETUP stage and before the data stage
(Section 3.1), the user code is responsible, in the USER_USB_Setup (), to parse the
content of the SETUP packet (sUSB_vSetup). If a request is invalid request, the user code
has to call RequestError () and return to the caller of USER_USB_Setup ().
For a user-interpreted request, the user code prepares the data buffer for the following data
stage if the request has a data stage, otherwise the user code executes the request and
returns to the caller of USER_USB_Setup ().
3.4.2
Data stage
The process of the data stage has three categories: data IN stage with continued data
buffer, data IN stage with noncontinued data buffer and data OUT stage.
Data IN stage with continued data buffer
The user code should perform the operation given in this section if a request needs a data
IN stage and all data bytes that are going to be sent to the host are saved in a single and
continued data buffer. Examples of requests in this category are: GET_REPORT &
GET_DESCRIPTOR request of HID class .
In the USER_USB_Setup (), once the request is identified and all the data bytes are ready
in the buffer, the user code assigns the buffer pointer to the variable vUSB_DataToCopy and
assigns the number of bytes to be sent to the variable vUSB_length. The library will send
the data from the buffer without the user code intervention again.
Data IN stage with noncontinued data buffer
It is easy and convenient to save all data bytes in one single buffer, but in some applications,
because of the limitation of the buffer RAM size or that required by the application, all data
bytes cannot be saved in one single buffer. For example, if the application wants to send a



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com