4.4.6.3.19 USB_SetupProcessEndpointRequest()

RETURN_CODE_t USB_SetupProcessEndpointRequest (USB_SETUP_REQUEST_t * setupRequestPtr)

Setup function for the endpoint requests.

USB 2.0 Specification Ch. 9.4.

bRequest

wValue

wIndex

wLength

Data

CLEAR_FEATURE

Feature selector

Endpoint

Zero

None

GET_STATUS

Zero

Endpoint

Two

Endpoint status

SET_FEATURE

Feature selector

Endpoint

Zero

None

SYNCH_FRAME

Zero

Endpoint

Two

Frame number

Parameters:
*setupRequestPtr

- Pointer to the request and its data

Returns:

SUCCESS or an Error code according to RETURN_CODE_t