#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__ */