bool USBCDCEventHandler( USB_EVENT event, void * pdata, uint16_t size );
Handles events from the USB stack. This function should be called when there is a USB event that needs to be processed by the CDC driver.
Value of input argument 'len' should be smaller than the maximum endpoint size responsible for receiving bulk data from USB host for CDC class. Input argument 'buffer' should point to a buffer area that is bigger or equal to the size specified by 'len'.
Parameters |
Description |
USB_EVENT event |
the type of event that occurred |
void * pdata |
pointer to the data that caused the event |
uint16_t size |
the size of the data that is pointed to by pdata |
MLA - USB Library Help Version : 2.16
![]() |