CDCDSerialDriver_Read
Default mainpageat91libusbdevicecdc-serialCDCDSerialDriver_Read
Description Source Call Graph
CDCDSerialDriver_Read
Receives data from the host through the virtual COM port created by the CDC device serial driver.
 
Syntax / parameters
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.
Description
Receives data from the host through the virtual COM port created by the CDC device serial driver.
This function behaves like USBD_Read.
 
Source
The documentation for this Member was generated from the following files:
  • CDCDSerialDriver.c