Specifications

V850E2/MN4 USB CDC (Communication Device Class) Driver
R01AN0010EJ0101 Rev.1.01 Page 59 of 117
Feb 01, 2012
(1)
User Data FIFO Initialization Verification
The sample application calls user data FIFO status notification function (usbf850_get_bufinit_flg()). If the FIFO is in
the normal state it proceeds to transmit processing result verification, and if the FIFO is in the initialized state it clears
the transmission result (clears the CDC user data transmit result to 0).
(2)
CDC User Data Transmit Result Verification
If the CDC user data transmit result is normal completion (or initial state), the sample application performs CDC user
data reception processing, and if it is in an abnormal termination state, it verifies the result of reception processing.
(3)
CDC User Data Reception Processing
The sample application specifies the size of the buffer used to store the receive data and calls the CDC user data
reception processing function (usbf850_recv_buf()).
(4)
CDC User Data Reception Processing Result Verification
If the CDC user data receive result is normal completion (or initial state), the sample application performs CDC user
data transmission processing, and if it is in an abnormal termination state, it performs user data FIFO initialization
verification processing.
(5)
CDC User Data Transmission Processing
The sample application specifies the address of the buffer that holds the data to transmit and the size of the data to
transmit and calls the CDC user data transmission processing function (usbf850_send_buf()).