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

X  

UM0463 데이터시트(PDF) 10 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) 10 Page - STMicroelectronics

Back Button UM0463 Datasheet HTML 6Page - STMicroelectronics UM0463 Datasheet HTML 7Page - STMicroelectronics UM0463 Datasheet HTML 8Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 30 page
background image
The USB state machine of the control endpoint
UM0463
10/30
3.2
Data structure for the SETUP packet
When a new SETUP packet arrives, all eight bytes of the SETUP packet are copied to an
internal structure sUSB_vSetup, so that the next SETUP packet does not overwrite the
previous one during processing. This internal structure is defined as:
typedef struct USB_vSetup {
unsigned char
USBbmRequestType;
unsigned char
USBbRequest;
WORD_BYTE
USBwValues;
WORD_BYTE
USBwIndexes;
WORD_BYTE
USBwLengthes;
unsigned char Flag;
} _USB_VSETUP;
_USB_VSETUP sUSB_vSetup;
This structure is used in the library and is used in the user code of the USB callback
functions. Referring to Table 9-2 of the USB specification [1], each field of the structure
corresponds to a SETUP field.
The bitmap of the flag field in the structure is designed to shorten the code size. Table 6
shows the corresponding meaning in each bit and it is set during the copy of the SETUP
packet.
Table 5.
SETUP packet fields
Field in SETUP packet
Software name with the defined structure
bmRequestType
sUSB_vSetup.USBbmRequestType
bRequest
sUSB_vSetup.USBbRequest
wValue
sUSB_vSetup.USBwValue
High byte of wValue
sUSB_vSetup.USBwValue1
Low byte of wValue
sUSB_vSetup.USBwValue0
wIndex
sUSB_vSetup.USBwIndex
High byte of wIndex
sUSB_vSetup.USBwIndex1
Low byte of wIndex
sUSB_vSetup.USBwIndex0
wLength
sUSB_vSetup.USBwLength
High byte of wLength
sUSB_vSetup.USBwLength1
Low byte of wLength
sUSB_vSetup.USBwLength0



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