- /** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,\r
- * to indicate that a data overrun error has occurred on the virtual serial port.\r
- */\r
- #define CONTROL_LINE_IN_OVERRUNERROR (1 << 6)\r
- \r
- /* Event Handlers: */\r
- /** Indicates that this module will catch the USB_Connect event when thrown by the library. */\r
- HANDLES_EVENT(USB_Connect);\r
-\r
- /** Indicates that this module will catch the USB_Disconnect event when thrown by the library. */\r
- HANDLES_EVENT(USB_Disconnect);\r
-\r
- /** Indicates that this module will catch the USB_ConfigurationChanged event when thrown by the library. */\r
- HANDLES_EVENT(USB_ConfigurationChanged);\r
-\r
- /** Indicates that this module will catch the USB_UnhandledControlPacket event when thrown by the library. */\r
- HANDLES_EVENT(USB_UnhandledControlPacket);\r
- \r
- /* Type Defines: */\r
- /** Type define for the virtual serial port line encoding settings, for storing the current USART configuration\r
- * as set by the host via a class specific request.\r
- */\r
- typedef struct\r
- {\r
- uint32_t BaudRateBPS; /**< Baud rate of the virtual serial port, in bits per second */\r
- uint8_t CharFormat; /**< Character format of the virtual serial port, a value from the\r
- * CDCDevice_CDC_LineCodingFormats_t enum\r
- */\r
- uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the\r
- * CDCDevice_LineCodingParity_t enum\r
- */\r
- uint8_t DataBits; /**< Bits of data per character of the virtual serial port */\r
- } CDC_Line_Coding_t;\r
- \r
- /** Type define for a CDC notification, sent to the host via the CDC notification endpoint to indicate a\r
- * change in the device state asynchronously.\r
- */\r
- typedef struct\r
- {\r
- uint8_t NotificationType; /**< Notification type, a mask of REQDIR_*, REQTYPE_* and REQREC_* constants\r
- * from the library StdRequestType.h header\r
- */\r
- uint8_t Notification; /**< Notification value, a NOTIF_* constant */\r
- uint16_t wValue; /**< Notification wValue, notification-specific */\r
- uint16_t wIndex; /**< Notification wIndex, notification-specific */\r
- uint16_t wLength; /**< Notification wLength, notification-specific */\r
- } USB_Notification_Header_t;\r
- \r
- /* Enums: */\r
- /** Enum for the possible line encoding formats of a virtual serial port. */\r
- enum CDCDevice_CDC_LineCodingFormats_t\r
- {\r
- OneStopBit = 0, /**< Each frame contains one stop bit */\r
- OneAndAHalfStopBits = 1, /**< Each frame contains one and a half stop bits */\r
- TwoStopBits = 2, /**< Each frame contains two stop bits */\r
- };\r