CDC Class Device Mode Configuration and State Structure. More...
#include <CDC.h>
Data Fields | |
struct { | |
uint8_t ControlInterfaceNumber | |
uint8_t DataINEndpointNumber | |
uint16_t DataINEndpointSize | |
bool DataINEndpointDoubleBank | |
uint8_t DataOUTEndpointNumber | |
uint16_t DataOUTEndpointSize | |
bool DataOUTEndpointDoubleBank | |
uint8_t NotificationEndpointNumber | |
uint16_t NotificationEndpointSize | |
bool NotificationEndpointDoubleBank | |
} | 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 |
Class state structure. An instance of this structure should be made for each CDC interface 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.
Character format of the virtual serial port, a value from the CDC_LineEncodingFormats_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 |
Current states of the virtual serial port's control lines between the device and host.
Bits of data per character of the virtual serial port.
Indicates if the CDC interface's IN data endpoint should use double banking.
Endpoint number of the CDC interface's IN data endpoint.
Size in bytes of the CDC interface's IN data endpoint.
Indicates if the CDC interface's OUT data endpoint should use double banking.
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 - to notify the host of changes to these values, call the CDC_Device_SendControlLineStateChange() function.
Control line states from the host to device, as a set of CDC_CONTROL_LINE_OUT_* masks. This value is updated each time CDC_Device_USBTask() is called.
struct { ... } USB_ClassInfo_CDC_Device_t::LineEncoding |
Indicates if the CDC interface's notification endpoint should use double banking.
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 CDC_LineEncodingParity_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.