CDCSetCharacterFormat Macro

Microchip USB Device Library

USB Device Library Help
CDCSetCharacterFormat Macro
C
#define CDCSetCharacterFormat(charFormat) {line_coding.bCharFormat=charFormat;}
Description

This macro is used manually set the character format reported back to the host during a get line coding request. 

Typical Usage:

    CDCSetCharacterFormat(19200);

 

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 charFormat 
number of stop bits. Available options are:  
Remarks

None

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