4.4.7.2.2 USB_TransferControlDataSet()

RETURN_CODE_t USB_TransferControlDataSet (uint8_t * dataPtr, uint16_t dataSize, USB_SETUP_ENDOFREQUEST_CALLBACK_t callback)

Sets up vendor or class control request data transfers.

Sets up the pointer and size of the read or write trnasfer in the control data stage.

Parameters:
*dataPtr

- The pointer to the data to read or write

dataSize

- The size of the data to read or write

callback

- Pointer to a function to be called at the end of the control request

Returns:

SUCCESS or an Error code according to RETURN_CODE_t