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 <WProgram.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
 
struct  CLASS_NOTIFICATION
 
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 NETWORK_CONNECTION   0x00
 
#define RESPONSE_AVAILABLE   0x01
 
#define AUX_JACK_HOOK_STATE   0x08
 
#define RING_DETECT   0x09
 
#define SERIAL_STATE   0x20
 
#define CALL_STATE_CHANGE   0x28
 
#define LINE_STATE_CHANGE   0x29
 
#define CONNECTION_SPEED_CHANGE   0x2a
 
#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

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

Typedef Documentation