Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

UM0463 Datasheet(PDF) 10 Page - STMicroelectronics

Part # UM0463
Description  ST7 full-speed USB library
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0463 Datasheet(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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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