#include <CDC.h>
Data Fields | |
struct { | |
uint8_t DataINPipeNumber | |
uint8_t DataOUTPipeNumber | |
uint8_t NotificationPipeNumber | |
} | Config |
struct { | |
uint16_t DataINPipeSize | |
uint16_t DataOUTPipeSize | |
uint16_t NotificationPipeSize | |
struct { | |
uint8_t HostToDevice | |
uint8_t DeviceToHost | |
} ControlLineStates | |
struct { | |
bool Active | |
uint32_t BaudRateBPS | |
uint8_t CharFormat | |
uint8_t ParityType | |
uint8_t DataBits | |
} LineEncoding | |
} | State |
Indicates if the interface is currently active, i.e. attached to the connected device
Baud rate of the virtual serial port, in bits per second
Character format of the virtual serial port, a value from the CDCDevice_CDC_LineCodingFormats_t enum
struct { ... } USB_ClassInfo_CDC_Host_t::Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
struct { ... } USB_ClassInfo_CDC_Host_t::ControlLineStates |
Bits of data per character of the virtual serial port
Pipe number of the CDC interface's IN data pipe
Size in bytes of the CDC interface's IN data pipe
Pipe number of the CDC interface's OUT data pipe
Size in bytes of the CDC interface's OUT data pipe
Control line states from the device to host, as a set of CDC_CONTROL_LINE_IN_* masks.
Control line states from the host to device, as a set of CDC_CONTROL_LINE_OUT_* masks.
struct { ... } USB_ClassInfo_CDC_Host_t::LineEncoding |
Pipe number of the CDC interface's IN notification endpoint, if used
Size in bytes of the CDC interface's IN notification endpoint, if used
Parity setting of the virtual serial port, a value from the CDCDevice_LineCodingParity_t enum
struct { ... } USB_ClassInfo_CDC_Host_t::State |
State data for the USB class interface within the device. All elements in this section may be set to initial values, but may also be ignored to default to sane values when the interface is enumerated.