English
Language : 

UM0463 Datasheet, PDF (11/30 Pages) STMicroelectronics – ST7 full-speed USB library
UM0463
The USB state machine of the control endpoint
Table 6. Bitmap of flag field in sUSB_vSetup
D7 D6 D5 D4 D3 D2 D1 D0
Set if high byte of wValue is not zero
Set if low byte of wValue is not zero
Set if high byte of wIndex is not zero
Set if low byte of wIndex is not zero
Set if high byte of wLength is not zero
Set if low byte of wLength is not zero
Set if wLength is 1 (one)
Set if wLength is 2 (two)
3.3
Standard requests
Most of the requests specified in Table 9-3 of the USB specification [1] are treated as
standard requests in the library. Table 7 lists all the standard requests and their valid
parameters in the library. Requests that are not in the table below are considered as
nonstandard requests.
Table 7. Standard requests
State
bmRequest
Type
Low
byte of
wValue
High
byte of
wValue
Low
byte of
wIndex
High
byte of
wIndex
wLength
Comments
A, C
80
C
81
GET_STATUS
A, C
82
A, C
82
C
82
00
00
00
00
00
00
N
00
00
00
00
00
00
00
80
00
00
00
EP
00
2
Get Status of the
Device.
Get Status of Interface,
2 N is the valid interface
number.
2
Get Status of Endpoint
0 OUT direction.
2
Get Status of Endpoint
0 IN direction.
2
Get Status of Endpoint
EP.
11/30