4.4.6.3.20 USB_SetupProcessInterfaceRequest()

RETURN_CODE_t USB_SetupProcessInterfaceRequest (USB_SETUP_REQUEST_t * setupRequestPtr)

Setup function for the interface requests.

USB 2.0 Specification Ch 9.4.

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

Parameters:
setupRequestPtr

- Pointer to the setup request and its data

Returns:

SUCCESS or an Error code according to RETURN_CODE_t