LUFA Library  120219
USB_ClassInfo_CDC_Device_t Struct Reference

CDC Class Device Mode Configuration and State Structure. More...

#include <CDCClassDevice.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 {
      uint16_t   HostToDevice
      uint16_t   DeviceToHost
   }   ControlLineStates
   CDC_LineEncoding_t   LineEncoding
State

Detailed Description

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.


Field Documentation

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.

Current states of the virtual serial port's control lines between the device and host.

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.

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.

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.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines