26 #ifndef _USB_CDC_PSTN_H_ 27 #define _USB_CDC_PSTN_H_ 36 #define USB_CDC_SUBCLASS_DLC 0x01 37 #define USB_CDC_SUBCLASS_TEL 0x03 42 #define USB_DTYPE_CDC_LINE_MANAGEMENT 0x03 43 #define USB_DTYPE_CDC_TEL_RING 0x04 44 #define USB_DTYPE_CDC_TEL_CALL 0x05 46 #define USB_DTYPE_CDC_TEL_OPMODE 0x08 51 #define USB_CDC_SET_AUX_LINE_STATE 0x10 53 #define USB_CDC_SET_HOOK_STATE 0x11 55 #define USB_CDC_PULSE_SETU 0x12 56 #define USB_CDC_SEND_PULSE 0x13 58 #define USB_CDC_SET_PULSE_TIME 0x14 60 #define USB_CDC_RING_AUX_JACK 0x15 62 #define USB_CDC_SET_RINGER_PARMS 0x30 64 #define USB_CDC_GET_RINGER_PARMS 0x31 66 #define USB_CDC_SET_OPERATION_PARMS 0x32 69 #define USB_CDC_GET_OPERATION_PARMS 0x33 70 #define USB_CDC_SET_LINE_PARMS 0x34 71 #define USB_CDC_GET_LINE_PARMS 0x35 72 #define USB_CDC_DIAL_DIGITS 0x36 77 #define USB_CDC_NTF_AUX_JACK_HOOK_STATE 0x08 79 #define USB_CDC_NTF_RING_DETECT 0x09 81 #define USB_CDC_NTF_CALL_STATE_CHANGE 0x28 84 #define USB_CDC_NTF_LINE_STATE_CHANGE 0x29 93 #define USB_CDC_DLM_PULSE 0x01 95 #define USB_CDC_DLM_AUX 0x02 97 #define USB_CDC_DLM_XTRAPULSE 0x04 104 #define USB_CDC_TOM_SIMPLE 0x01 105 #define USB_CDC_TOM_STANDALONE 0x02 106 #define USB_CDC_TOM_CENTRIC 0x04 112 #define USB_CDC_TCS_DIALTONE 0x01 114 #define USB_CDC_TCS_STATE 0x02 115 #define USB_CDC_TCS_CALLERID 0x04 116 #define USB_CDC_TCS_RINGING 0x08 117 #define USB_CDC_TCS_DTMF 0x10 119 #define USB_CDC_TCS_NOTIFY 0x20 127 struct usb_cdc_dlm_desc { 128 uint8_t bFunctionLength;
129 uint8_t bDescriptorType;
130 uint8_t bDescriptorSubType;
131 uint8_t bmCapabilities;
133 } __attribute__ ((packed));
145 } __attribute__ ((packed));
158 uint8_t bmCapabilities;
160 } __attribute__ ((packed));
170 uint32_t bmCapabilities;
172 } __attribute__ ((packed));
Telephone Operational Modes Functional Descriptor.
uint8_t bRingerVolSteps
Number of discrete steps in volume supported by the ringer.
uint8_t bDescriptorType
CS_INTERFACE descriptor type.
uint8_t bNumRingerPatterns
Number of ringer patterns supported.
Telephone Ringer Functional Descriptor.
uint8_t bDescriptorSubType
Direct Line Management Functional Descriptor.
Telephone Call State Reporting Capabilities Descriptor.
uint8_t bFunctionLength
Size of this functional descriptor, in bytes.