C
#define CDCSetParity(parityType) {line_coding.bParityType=parityType;}
Description
This macro is used manually set the parity format reported back to the host during a get line coding request.
Typical Usage:
CDCSetParity(PARITY_NONE);
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 parityType |
Type of parity. The options are the following:
|
Remarks
None
MCHPFSUSB Device Library > Function Drivers > Communication Device Class (CDC) > Public API Members > Functions and Macros > CDCSetParity Macro