#include <CDC.h>
Data Fields | |
struct { | |
uint8_t DataINPipeNumber | |
bool DataINPipeDoubleBank | |
uint8_t DataOUTPipeNumber | |
bool DataOUTPipeDoubleBank | |
uint8_t NotificationPipeNumber | |
bool NotificationPipeDoubleBank | |
} | Config |
struct { | |
bool IsActive | |
uint8_t ControlInterfaceNumber | |
uint16_t DataINPipeSize | |
uint16_t DataOUTPipeSize | |
uint16_t NotificationPipeSize | |
bool BidirectionalDataEndpoints | |
struct { | |
uint8_t HostToDevice | |
uint8_t DeviceToHost | |
} ControlLineStates | |
struct { | |
uint32_t BaudRateBPS | |
uint8_t CharFormat | |
uint8_t ParityType | |
uint8_t DataBits | |
} LineEncoding | |
} | State |
Class state structure. An instance of this structure should be made within the user application, and passed to each of the CDC class driver functions as the CDCInterfaceInfo parameter. This stores each CDC interface's configuration and state information.
Baud rate of the virtual serial port, in bits per second
Indicates if the attached CDC interface uses bidirectional data endpoints, and this has only the IN pipe configured (with Pipe_SetPipeToken() used to switch the pipe's direction)
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.
Interface index of the CDC-ACM control interface within the attached device
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
Indicates if the CDC interface's IN data pipe should use double banking 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.
Indicates if the current interface instance is connected to an attached device, valid after CDC_Host_ConfigurePipes() is called and the Host state machine is in the Configured state
struct { ... } USB_ClassInfo_CDC_Host_t::LineEncoding |
Indicates if the CDC interface's OUT data pipe should use double banking Pipe number of the CDC interface's IN notification endpoint, if used
Size in bytes of the CDC interface's IN notification pipe, 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.