USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Typedefs
cdcacm.h File Reference
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h"
#include "Arduino.h"
#include "printhex.h"
#include "hexdump.h"
#include "message.h"
#include "confdescparser.h"
Include dependency graph for cdcacm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CALL_MGMNT_FUNC_DESCR
 
struct  ACM_FUNC_DESCR
 
struct  TEL_RINGER_FUNC_DESCR
 
struct  LINE_CODING
 
class  CDCAsyncOper
 
class  ACM
 

Macros

#define bmREQ_CDCOUT   USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
 
#define bmREQ_CDCIN   USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
 
#define CDC_SUBCLASS_DLCM   0x01
 
#define CDC_SUBCLASS_ACM   0x02
 
#define CDC_SUBCLASS_TCM   0x03
 
#define CDC_SUBCLASS_MCCM   0x04
 
#define CDC_SUBCLASS_CAPI   0x05
 
#define CDC_SUBCLASS_ETHERNET   0x06
 
#define CDC_SUBCLASS_ATM   0x07
 
#define CDC_SUBCLASS_WIRELESS_HANDSET   0x08
 
#define CDC_SUBCLASS_DEVICE_MANAGEMENT   0x09
 
#define CDC_SUBCLASS_MOBILE_DIRECT_LINE   0x0A
 
#define CDC_SUBCLASS_OBEX   0x0B
 
#define CDC_SUBCLASS_ETHERNET_EMU   0x0C
 
#define CDC_PROTOCOL_ITU_T_V_250   0x01
 
#define CDC_PROTOCOL_PCCA_101   0x02
 
#define CDC_PROTOCOL_PCCA_101_O   0x03
 
#define CDC_PROTOCOL_GSM_7_07   0x04
 
#define CDC_PROTOCOL_3GPP_27_07   0x05
 
#define CDC_PROTOCOL_C_S0017_0   0x06
 
#define CDC_PROTOCOL_USB_EEM   0x07
 
#define CDC_SEND_ENCAPSULATED_COMMAND   0x00
 
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01
 
#define CDC_SET_COMM_FEATURE   0x02
 
#define CDC_GET_COMM_FEATURE   0x03
 
#define CDC_CLEAR_COMM_FEATURE   0x04
 
#define CDC_SET_AUX_LINE_STATE   0x10
 
#define CDC_SET_HOOK_STATE   0x11
 
#define CDC_PULSE_SETUP   0x12
 
#define CDC_SEND_PULSE   0x13
 
#define CDC_SET_PULSE_TIME   0x14
 
#define CDC_RING_AUX_JACK   0x15
 
#define CDC_SET_LINE_CODING   0x20
 
#define CDC_GET_LINE_CODING   0x21
 
#define CDC_SET_CONTROL_LINE_STATE   0x22
 
#define CDC_SEND_BREAK   0x23
 
#define CDC_SET_RINGER_PARMS   0x30
 
#define CDC_GET_RINGER_PARMS   0x31
 
#define CDC_SET_OPERATION_PARMS   0x32
 
#define CDC_GET_OPERATION_PARMS   0x33
 
#define CDC_SET_LINE_PARMS   0x34
 
#define CDC_GET_LINE_PARMS   0x35
 
#define CDC_DIAL_DIGITS   0x36
 
#define ACM_MAX_ENDPOINTS   4
 

Typedefs

typedef struct ACM_FUNC_DESCR DLM_FUNC_DESCR
 
typedef struct ACM_FUNC_DESCR TEL_OPER_MODES_FUNC_DESCR
 
typedef struct ACM_FUNC_DESCR TEL_CALL_STATE_REP_CPBL_FUNC_DESCR
 

Macro Definition Documentation

Definition at line 40 of file cdcacm.h.

Definition at line 41 of file cdcacm.h.

#define CDC_SUBCLASS_DLCM   0x01

Definition at line 44 of file cdcacm.h.

#define CDC_SUBCLASS_ACM   0x02

Definition at line 45 of file cdcacm.h.

#define CDC_SUBCLASS_TCM   0x03

Definition at line 46 of file cdcacm.h.

#define CDC_SUBCLASS_MCCM   0x04

Definition at line 47 of file cdcacm.h.

#define CDC_SUBCLASS_CAPI   0x05

Definition at line 48 of file cdcacm.h.

#define CDC_SUBCLASS_ETHERNET   0x06

Definition at line 49 of file cdcacm.h.

#define CDC_SUBCLASS_ATM   0x07

Definition at line 50 of file cdcacm.h.

#define CDC_SUBCLASS_WIRELESS_HANDSET   0x08

Definition at line 51 of file cdcacm.h.

#define CDC_SUBCLASS_DEVICE_MANAGEMENT   0x09

Definition at line 52 of file cdcacm.h.

#define CDC_SUBCLASS_MOBILE_DIRECT_LINE   0x0A

Definition at line 53 of file cdcacm.h.

#define CDC_SUBCLASS_OBEX   0x0B

Definition at line 54 of file cdcacm.h.

#define CDC_SUBCLASS_ETHERNET_EMU   0x0C

Definition at line 55 of file cdcacm.h.

#define CDC_PROTOCOL_ITU_T_V_250   0x01

Definition at line 58 of file cdcacm.h.

#define CDC_PROTOCOL_PCCA_101   0x02

Definition at line 59 of file cdcacm.h.

#define CDC_PROTOCOL_PCCA_101_O   0x03

Definition at line 60 of file cdcacm.h.

#define CDC_PROTOCOL_GSM_7_07   0x04

Definition at line 61 of file cdcacm.h.

#define CDC_PROTOCOL_3GPP_27_07   0x05

Definition at line 62 of file cdcacm.h.

#define CDC_PROTOCOL_C_S0017_0   0x06

Definition at line 63 of file cdcacm.h.

#define CDC_PROTOCOL_USB_EEM   0x07

Definition at line 64 of file cdcacm.h.

#define CDC_SEND_ENCAPSULATED_COMMAND   0x00

Definition at line 67 of file cdcacm.h.

#define CDC_GET_ENCAPSULATED_RESPONSE   0x01

Definition at line 68 of file cdcacm.h.

#define CDC_SET_COMM_FEATURE   0x02

Definition at line 71 of file cdcacm.h.

#define CDC_GET_COMM_FEATURE   0x03

Definition at line 72 of file cdcacm.h.

#define CDC_CLEAR_COMM_FEATURE   0x04

Definition at line 73 of file cdcacm.h.

#define CDC_SET_AUX_LINE_STATE   0x10

Definition at line 74 of file cdcacm.h.

#define CDC_SET_HOOK_STATE   0x11

Definition at line 75 of file cdcacm.h.

#define CDC_PULSE_SETUP   0x12

Definition at line 76 of file cdcacm.h.

#define CDC_SEND_PULSE   0x13

Definition at line 77 of file cdcacm.h.

#define CDC_SET_PULSE_TIME   0x14

Definition at line 78 of file cdcacm.h.

#define CDC_RING_AUX_JACK   0x15

Definition at line 79 of file cdcacm.h.

#define CDC_SET_LINE_CODING   0x20

Definition at line 80 of file cdcacm.h.

#define CDC_GET_LINE_CODING   0x21

Definition at line 81 of file cdcacm.h.

#define CDC_SET_CONTROL_LINE_STATE   0x22

Definition at line 82 of file cdcacm.h.

#define CDC_SEND_BREAK   0x23

Definition at line 83 of file cdcacm.h.

#define CDC_SET_RINGER_PARMS   0x30

Definition at line 84 of file cdcacm.h.

#define CDC_GET_RINGER_PARMS   0x31

Definition at line 85 of file cdcacm.h.

#define CDC_SET_OPERATION_PARMS   0x32

Definition at line 86 of file cdcacm.h.

#define CDC_GET_OPERATION_PARMS   0x33

Definition at line 87 of file cdcacm.h.

#define CDC_SET_LINE_PARMS   0x34

Definition at line 88 of file cdcacm.h.

#define CDC_GET_LINE_PARMS   0x35

Definition at line 89 of file cdcacm.h.

#define CDC_DIAL_DIGITS   0x36

Definition at line 90 of file cdcacm.h.

#define ACM_MAX_ENDPOINTS   4

Definition at line 135 of file cdcacm.h.

Typedef Documentation