Specifications

V850E2/MN4 USB CDC (Communication Device Class) Driver
R01AN0010EJ0101 Rev.1.01 Page 42 of 117
Feb 01, 2012
usbf850_data_receive
[Synopsis]
Receive USB data.
[C language format]
INT32 usbf850_data_receive(UINT8 *data, INT32 len, INT8 ep)
[Parameters]
Parameter Description
UINT8 *data Pointer to receive data buffer
INT32 len Receive data length
INT8 ep Endpoint number of the endpoint to be used for data reception
[Return Value]
Symbol Description
len (>=0) Size of the data that was transmitted normally.
DEV_ERROR Abnormal termination
[Function]
This function reads data from the FIFO for the specified endpoint into the receive data buffer, one byte at a time.