CDCSetBaudRate Macro

Microchip USB Device Library

USB Device Library Help
CDCSetBaudRate Macro
C
#define CDCSetBaudRate(baudRate) {line_coding.dwDTERate.Val=baudRate;}
Description

This macro is used set the baud rate reported back to the host during a get line coding request. 

Typical Usage:

    CDCSetBaudRate(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 
DWORD baudRate 
The desired baudrate 
Remarks

None

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