📄 codec_dev.h
字号:
#ifndef __INCLUDE_CODEC_DEV_
#define __INCLUDE_CODEC_DEV_
extern char g_timer;
#define ACTIVE_LAMP_TIMER jiffies+(HZ*1) /* 1 second */
#define CODEC_MAJOR 205
//Defines for the codec commands
#define HANDUP_DETECTION 0
#define SETSLIC_OPEN 1
#define SETSLIC_CLOSE 2
#define SETSLIC_RING 3
#define SETSLIC_INVERTOPEN 4
#define SETSLIC_ONHOOK 5
#define GET_LINE_TYPE 6
#define SET_LED_ON 7
#define SET_LED_OFF 8
#define SET_LED_TIMER_FAST 100
#define SET_LED_TIMER_SLOW 101
#define GET_GATEWAY_TYPE 9
#define GET_CODEC_TYPE 10
#define GET_MODULE_TYPE 11
#define SET_TRUNK_CLOSE 12
#define SET_TRUNK_OPEN 13
#define SET_CID_ON 14
#define SET_CID_OFF 15
#define FXO_CONNECTION_DETECTION 16
#define SET_PCM_ENABLE 17
#define SET_PCM_DISABLE 18
#define GET_SPORT_CLOCK 19
#define GET_NIC_TYPE 20
#define GET_IVA 21
#define SET_IVA_0 22
#define SET_IVA_1 23
#define SET_IVA_2 24
#define GET_OVA 25
#define SET_OVA_0 26
#define SET_OVA_1 27
#define SET_OVA_2 28
#define SET_IMPEDANCE_0 29
#define SET_IMPEDANCE_1 30
#define SET_IMPEDANCE_2 31
#define SET_IMPEDANCE_3 32
#define SET_IMPEDANCE_4 33
#define SET_IMPEDANCE_5 34
#define SET_IMPEDANCE_6 35
#define SET_IMPEDANCE_7 36
#define SET_SI3050_IMPEDANCE 40
#define DEBUG_READDRPROSLIC 50
#define DEBUG_WRITEDRPROSLIC 51
#define DEBUG_READINDRPROSLIC 52
#define DEBUG_WRITEINDRPROSLIC 53
#define DEBUG_READCPLD3050 54
#define DEBUG_WRITECPLD3050 55
struct codecdev
{
int invert;
struct timer_list timer;
int module_type;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -