CDCSetDataSize Macro

Microchip USB Device Library

USB Device Library Help
CDCSetDataSize Macro
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

Microchip MCHPFSUSB v2.3 - Sept 20, 2008
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.