#include <CDC.h>
Data Fields | |
struct { | |
uint8_t ControlInterfaceNumber | |
uint8_t DataINEndpointNumber | |
uint16_t DataINEndpointSize | |
uint8_t DataOUTEndpointNumber | |
uint16_t DataOUTEndpointSize | |
uint8_t NotificationEndpointNumber | |
uint16_t NotificationEndpointSize | |
} | Config |
struct { | |
struct { | |
uint8_t HostToDevice | |
uint8_t DeviceToHost | |
} ControlLineStates | |
struct { | |
uint32_t BaudRateBPS | |
uint8_t CharFormat | |
uint8_t ParityType | |
uint8_t DataBits | |
} LineEncoding | |
} | State |
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_Device_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.
Interface number of the CDC control interface within the device
struct { ... } USB_ClassInfo_CDC_Device_t::ControlLineStates |
Bits of data per character of the virtual serial port
Endpoint number of the CDC interface's IN data endpoint
Size in bytes of the CDC interface's IN data endpoint
Endpoint number of the CDC interface's OUT data endpoint
Size in bytes of the CDC interface's OUT data endpoint
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_Device_t::LineEncoding |
Endpoint 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_Device_t::State |
State data for the USB class interface within the device. All elements in this section are reset to their defaults when the interface is enumerated.