C
#define CDCSetDataSize(dataBits) {line_coding.bDataBits=dataBits;}
Description
This function is used manually set the number of data bits reported back to the host during a get line coding request.
Typical Usage:
CDCSetDataSize(8);
This function is optional for CDC devices that do not actually convert the USB traffic to a hardware UART.
Preconditions
None
Parameters
Parameters |
Description |
BYTE dataBits |
number of data bits. The options are 5, 6, 7, 8, or 16. |
Remarks
None
MCHPFSUSB Device Library > Function Drivers > Communication Device Class (CDC) > Public API Members > Functions and Macros > CDCSetDataSize Macro