C027_Support library plus AT Comand for dialing.
Fork of C027_Support_New by
Diff: MDM.h
- Revision:
- 72:d1e943ad6558
- Parent:
- 66:69072b3c5bca
- Child:
- 73:2b32e0a21df2
--- a/MDM.h Thu May 15 06:16:10 2014 +0000 +++ b/MDM.h Thu May 15 07:06:07 2014 +0000 @@ -51,9 +51,12 @@ typedef enum { REG_UNKNOWN, REG_DENIED, REG_NONE, REG_HOME, REG_ROAMING } Reg; //! Access Technology typedef enum { ACT_UNKNOWN, ACT_GSM, ACT_EDGE, ACT_UTRAN, ACT_CDMA } AcT; + //! Gprs Attach Status + typedef enum { GPRS_UNKNOWN, GPRS_DETACHED, GPRS_ATTACHED } Gprs; //! Network Status typedef struct { Reg reg; //!< Registration Status + Gprs gprs; //!< Gprs Attach status AcT act; //!< Access Technology int rssi; //!< Received Signal Strength Indication (in dBm, range -113..-53) int ber; //!< Bit Error Rate (BER), see 3GPP TS 45.008 [20] subclause 8.2.4 @@ -438,7 +441,7 @@ static int _cbCSQ(int type, const char* buf, int len, NetStatus* status); static int _cbCOPS(int type, const char* buf, int len, NetStatus* status); static int _cbCNUM(int type, const char* buf, int len, char* num); - static int _cbCGATT(int type, const char* buf, int len, int* state); + static int _cbCGATT(int type, const char* buf, int len, Gprs* gprs); // sockets static int _cbCMIP(int type, const char* buf, int len, IP* ip); static int _cbUPSND(int type, const char* buf, int len, int* act);