libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
cdc.h File Reference
#include <stdint.h>
Include dependency graph for cdc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usb_cdc_header_descriptor
 
struct  usb_cdc_union_descriptor
 
struct  usb_cdc_call_management_descriptor
 
struct  usb_cdc_acm_descriptor
 
struct  usb_cdc_line_coding
 
struct  usb_cdc_notification
 

Macros

#define USB_CLASS_CDC   0x02
 
#define USB_CDC_SUBCLASS_DLCM   0x01
 
#define USB_CDC_SUBCLASS_ACM   0x02
 
#define USB_CDC_PROTOCOL_NONE   0x00
 
#define USB_CDC_PROTOCOL_AT   0x01
 
#define USB_CLASS_DATA   0x0A
 
#define CS_INTERFACE   0x24
 
#define CS_ENDPOINT   0x25
 
#define USB_CDC_TYPE_HEADER   0x00
 
#define USB_CDC_TYPE_CALL_MANAGEMENT   0x01
 
#define USB_CDC_TYPE_ACM   0x02
 
#define USB_CDC_TYPE_UNION   0x06
 
#define USB_CDC_REQ_SET_LINE_CODING   0x20
 
#define USB_CDC_REQ_SET_CONTROL_LINE_STATE   0x22
 
#define USB_CDC_NOTIFY_SERIAL_STATE   0x20
 

Enumerations

enum  usb_cdc_line_coding_bCharFormat { USB_CDC_1_STOP_BITS = 0 , USB_CDC_1_5_STOP_BITS = 1 , USB_CDC_2_STOP_BITS = 2 }
 
enum  usb_cdc_line_coding_bParityType {
  USB_CDC_NO_PARITY = 0 , USB_CDC_ODD_PARITY = 1 , USB_CDC_EVEN_PARITY = 2 , USB_CDC_MARK_PARITY = 3 ,
  USB_CDC_SPACE_PARITY = 4
}