Classes | Macros | Functions | Variables
CDCRequests.h File Reference
#include <stdint.h>
#include <USBRequests.h>
Include dependency graph for CDCRequests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CDCLineCoding
 

Macros

#define CDCControlLineState_CARRIER_ON   (1 << 1)
 
#define CDCControlLineState_DTE_PRESENT   (1 << 0)
 
#define CDCControlLineState_DTR   (1 << 0)
 
#define CDCControlLineState_RTS   (1 << 1)
 
#define CDCGenericRequest_GETLINECODING   0x21
 
#define CDCGenericRequest_SETCONTROLLINESTATE   0x22
 
#define CDCGenericRequest_SETLINECODING   0x20
 
#define CDCLineCoding_EVENPARITY   2
 
#define CDCLineCoding_MARKPARITY   3
 
#define CDCLineCoding_NOPARITY   0
 
#define CDCLineCoding_ODDPARITY   1
 
#define CDCLineCoding_ONE5STOPBIT   1
 
#define CDCLineCoding_ONESTOPBIT   0
 
#define CDCLineCoding_SPACEPARITY   4
 
#define CDCLineCoding_TWOSTOPBITS   2
 

Functions

struct _CDCHeaderDescriptor __attribute__ ((__packed__)) CDCHeaderDescriptor
 
void CDCLineCoding_Initialize (CDCLineCoding *lineCoding, uint32_t bitrate, uint8_t stopbits, uint8_t parity, uint8_t databits)
 
uint8_t CDCSetControlLineStateRequest_ActivateCarrier (const USBGenericRequest *request)
 
uint8_t CDCSetControlLineStateRequest_IsDtePresent (const USBGenericRequest *request)
 

Variables

uint8_t bCharFormat
 
uint8_t bDataBits
 
uint8_t bParityType
 
uint32_t dwDTERate
 

Detailed Description

Definitions and classes for USB CDC class requests (mostly for ACM).

CDCLineCoding

  1. Initialize a CDCLineCoding instance using CDCLineCoding_Initialize.
  2. Send a CDCLineCoding object to the host in response to a GetLineCoding request.
  3. Receive a CDCLineCoding object from the host after a SetLineCoding request.

Definition in file CDCRequests.h.

Variable Documentation

◆ bCharFormat

uint8_t bCharFormat

Number of stop bits.

See also
USB CDC LineCoding StopBits CDC LineCoding StopBits.

Definition at line 139 of file CDCRequests.h.

◆ bDataBits

uint8_t bDataBits

Number of data bits (5, 6, 7, 8 or 16).

Definition at line 144 of file CDCRequests.h.

◆ bParityType

uint8_t bParityType

Type of parity checking used.

See also
USB CDC LineCoding ParityCheckings CDC LineCoding ParityCheckings.

Definition at line 142 of file CDCRequests.h.

◆ dwDTERate

uint32_t dwDTERate

Data terminal rate in bits per second.

Definition at line 136 of file CDCRequests.h.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58