📄 mt88l89v2.h
字号:
/*============================================================*\
作 者 :Liusj Date : 2002-11-08 version 1.0
============================================================
文件说明 : MT88L89V1.h
BSP. MT88L89(DTMF)驱动程序(中断程序版本) . 头文件
版权所有 : 1994-2001 Wuhan Jinglun Electronic Co., Ltd.
修改历史 : 2003-03-07 --- modify DTMF_MODE to poll mode and add some error define and tone and pause period defines
最后修改 : 2003-03-07
备 注 :
\*============================================================*/
#ifndef MT88L70V2_H
#define MT88L70V2_H
/* error defines */
#define DTMF_ERROR -1
#define DTMF_HAS_OPENED -2
#define DTMF_HAS_CLOSED -2
#define DTMF_DATA_ERROR -1
#define DTMF_NOT_OPEN -2
#define DTMF_TX_BUSY -3
/* dial or no dial */
enum
{
DTMF_DIAL,
DTMF_DIAL_FINI
};
/* 2003-11-19, change to global varibles, controlled by config parameter */
#if 0
/* tone and pause period */
#define DTMF_TONE_PERD 6 /* this macro define the tone period of DTMF, it is based on
clock ticks, that is 80ms when it is equre to 8
*/
#define DTMF_PAUSE_PERD 4/* this macro define the pause period of DTMF, it is based on
clock ticks, that is 40ms when it is equre to 4
*/
#endif
/* functions */
int DTMF_Decode_Init(void); /* DTMF initition before receive or transmit */
int DTMFOpen(void); /* start to receive */
int DTMFClose(void); /* stop receive */
int DTMFWrite(unsigned char _data, int notify );
int DTMFCheckDialOpen(int checkID);
int DTMFCheckDialClose(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -