4.4.13.2.12 USB_ControlTransferDataWriteBuffer()

RETURN_CODE_t USB_ControlTransferDataWriteBuffer (uint8_t * dataPtr, uint8_t dataSize)

Copies data to the transfer buffer and sets the transfer data pointer and size in ControlTransfer.

Parameters:
*dataPtr

- Pointer to data to copy

dataSize

- Number of elements in the array

Returns:

SUCCESS or an Error code according to RETURN_CODE_t