4.4.3.2.23 USB_SetupProcess()

RETURN_CODE_t USB_SetupProcess (USB_SETUP_REQUEST_t * setupRequestPtr)

Setup function for the Standard Device Request USB 2.0 Specification Ch 9.4.

bRequest

wValue

wIndex

wLength

Data

CLEAR_FEATURE

Feature Selector

Zero

None

CLEAR_FEATURE

Feature Selector

Interface

None

CLEAR_FEATURE

Feature Selector

Endpoint

None

GET_CONFIGURATION

Zero

Zero

One

Configuration Value

GET_DESCRIPTOR

Descriptor type and Descriptor index

Zero or Language ID

Descriptor Length

Descriptor

GET_INTERFACE

Zero

Interface

One

Alternate Interface

GET_STATUS

Zero

Zero Interface Endpoint

Two

Device status

GET_STATUS

Zero

Interface

Two

Interface Status

GET_STATUS

Zero

Endpoint

Two

Endpoint Status

SET_ADDRESS

Device Address

Zero

Zero

None

SET_CONFIGURATION

Configuration Value

Zero

Zero

None

SET_DESCRIPTOR

Descriptor type and Descriptor index

Zero or Language ID

Descriptor Length

Descriptor

SET_FEATURE

Feature Selector

Zero Interface Endpoint

Zero

None

SET_FEATURE

Feature Selector

Interface

Zero

SET_FEATURE

Feature Selector

Endpoint

Zero

SET_INTERFACE

Alternate Setting

Interface

Zero

None

SYNCH_FRAME

Zero

Endpoint

Two

Frame Number

Parameters:
*setupRequestPtr

- Pointer to the setup request and its data

Returns:

SUCCESS or an Error code according to RETURN_CODE_t