unsigned char CDCDSerialDriver_Read (void *data, unsigned int size, TransferCallback callback, void *argument) |
Name | Type | Default | Description |
data | void * |
Pointer to the data buffer to put received data. |
|
size | unsigned int |
Size of the data buffer in bytes. |
|
callback | TransferCallback |
Optional callback function to invoke when the transfer finishes. |
|
argument | void * |
Optional argument to the callback function. |
|
Return value | unsigned char |
USBD_STATUS_SUCCESS if the read operation has been started normally; otherwise, the corresponding error code. |