1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| #ifndef __ATMODEM_H_V10__
| #define __ATMODEM_H_V10__
|
| typedef unsigned char uchar;
|
| enum ATCmds
| {
| ST_M = 0x49,
| ST_S = 0x69,
| EDsign = 0x0d,
| };
|
| typedef void (*ATSendPktDef)(char * pBuf, int Len1);
|
|
| typedef struct tagATModemDef
| {
| ATSendPktDef ATSendPktFunc;
| uchar inputBuf[5];
| uchar outputBuf[5];
| uchar SendBuf[8];
|
| }stATModemDef;
|
| void ATInit(stATModemDef * pATModem, ATSendPktDef pFunc1);
| void ATSetCallBack(stATModemDef * pATModem, ATSendPktDef pFunc1);
|
| int ATParsePacket(stATModemDef * pATModem, char * pBuf, uchar len1);
| void ATProcess(stATModemDef * pATModem);
|
|
| #endif /* __ATMODEM_H_V10__ */
|
|