C
void CDCTxService();
Description
CDCTxService handles device-to-host transaction(s). This function should be called once per Main Program loop after the device reaches the configured state.
Typical Usage:
void main(void) { USBDeviceInit(); while(1) { USBDeviceTasks(); if((USBGetDeviceState() < CONFIGURED_STATE) || (USBIsDeviceSuspended() == TRUE)) { //Either the device is not configured or we are suspended // so we don't want to do execute any application code continue; //go back to the top of the while loop } else { //Keep trying to send data to the PC as required CDCTxService(); //Run application code. UserApplication(); } } }
Preconditions
None
Remarks
None
MCHPFSUSB Device Library > Function Drivers > Communication Device Class (CDC) > Public API Members > Functions and Macros > CDCTxService Function