libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
USB CDC Type Definitions

Defined Constants and Types for the USB CDC Type Definitions More...

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
}
 

Detailed Description

Defined Constants and Types for the USB CDC Type Definitions

Version
1.0.0
Author
© 2010 Gareth McMullin garet.nosp@m.h@bl.nosp@m.acksp.nosp@m.here.nosp@m..co.n.nosp@m.z
Date
10 March 2013

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ CS_ENDPOINT

#define CS_ENDPOINT   0x25

Definition at line 66 of file cdc.h.

◆ CS_INTERFACE

#define CS_INTERFACE   0x24

Definition at line 65 of file cdc.h.

◆ USB_CDC_NOTIFY_SERIAL_STATE

#define USB_CDC_NOTIFY_SERIAL_STATE   0x20

Definition at line 149 of file cdc.h.

◆ USB_CDC_PROTOCOL_AT

#define USB_CDC_PROTOCOL_AT   0x01

Definition at line 58 of file cdc.h.

◆ USB_CDC_PROTOCOL_NONE

#define USB_CDC_PROTOCOL_NONE   0x00

Definition at line 57 of file cdc.h.

◆ USB_CDC_REQ_SET_CONTROL_LINE_STATE

#define USB_CDC_REQ_SET_CONTROL_LINE_STATE   0x22

Definition at line 122 of file cdc.h.

◆ USB_CDC_REQ_SET_LINE_CODING

#define USB_CDC_REQ_SET_LINE_CODING   0x20

Definition at line 120 of file cdc.h.

◆ USB_CDC_SUBCLASS_ACM

#define USB_CDC_SUBCLASS_ACM   0x02

Definition at line 53 of file cdc.h.

◆ USB_CDC_SUBCLASS_DLCM

#define USB_CDC_SUBCLASS_DLCM   0x01

Definition at line 52 of file cdc.h.

◆ USB_CDC_TYPE_ACM

#define USB_CDC_TYPE_ACM   0x02

Definition at line 72 of file cdc.h.

◆ USB_CDC_TYPE_CALL_MANAGEMENT

#define USB_CDC_TYPE_CALL_MANAGEMENT   0x01

Definition at line 71 of file cdc.h.

◆ USB_CDC_TYPE_HEADER

#define USB_CDC_TYPE_HEADER   0x00

Definition at line 70 of file cdc.h.

◆ USB_CDC_TYPE_UNION

#define USB_CDC_TYPE_UNION   0x06

Definition at line 74 of file cdc.h.

◆ USB_CLASS_CDC

#define USB_CLASS_CDC   0x02

Definition at line 49 of file cdc.h.

◆ USB_CLASS_DATA

#define USB_CLASS_DATA   0x0A

Definition at line 62 of file cdc.h.

Enumeration Type Documentation

◆ usb_cdc_line_coding_bCharFormat

Enumerator
USB_CDC_1_STOP_BITS 
USB_CDC_1_5_STOP_BITS 
USB_CDC_2_STOP_BITS 

Definition at line 133 of file cdc.h.

◆ usb_cdc_line_coding_bParityType

Enumerator
USB_CDC_NO_PARITY 
USB_CDC_ODD_PARITY 
USB_CDC_EVEN_PARITY 
USB_CDC_MARK_PARITY 
USB_CDC_SPACE_PARITY 

Definition at line 139 of file cdc.h.