4.4.6.3.20 USB_SetupProcessInterfaceRequest()
RETURN_CODE_t USB_SetupProcessInterfaceRequest (USB_SETUP_REQUEST_t * setupRequestPtr)
Setup function for the interface requests.
bRequest |
wValue |
wIndex |
wLength |
Data |
---|---|---|---|---|
CLEAR_FEATURE |
Feature selector |
Interface |
Zero |
None |
GET_INTERFACE |
Zero |
Interface |
One |
Alternate interface |
GET_STATUS |
Zero |
Interface |
Two |
Interface |
SET_FEATURE |
Feature selector |
Interface |
Zero |
None |
SET_INTERFACE |
Alternate setting |
Interface |
Zero |
None |
GET_DESCRIPTOR |
Type and index |
Zero |
Length |
Descriptor |
setupRequestPtr |
- Pointer to the setup request and its data |
SUCCESS or an Error code according to RETURN_CODE_t |