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