Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of C027_Support by
Diff: MDM.h
- Revision:
- 32:8f12ac182bbb
- Parent:
- 31:a0bed6c1e05d
- Child:
- 33:fb8fb5021b09
diff -r a0bed6c1e05d -r 8f12ac182bbb MDM.h
--- a/MDM.h Wed Apr 09 11:48:04 2014 +0000
+++ b/MDM.h Wed Apr 09 13:03:48 2014 +0000
@@ -26,11 +26,12 @@
// ----------------------------------------------------------------
//! MT models
- typedef enum { MODEL_UNKNOWN, MODEL_SARA_G350, MODEL_LISA_U200, MODEL_LISA_C200 } Model;
+ typedef enum { DEV_UNKNOWN, DEV_SARA_G350, DEV_LISA_U200, DEV_LISA_C200 } Dev;
//! SIM Status
typedef enum { SIM_UNKNOWN, SIM_PIN, SIM_READY } Sim;
//! Device status
- typedef struct { Model model; Sim sim; char ccid[20]; char imsi[16]; char imei[16]; } DevStatus;
+ typedef struct { Dev dev; Sim sim; char ccid[20]; char imsi[16]; char imei[16];
+ char manu[16]; char model[16]; char ver[16]; } DevStatus;
//! Network Registration Status
typedef enum { REG_UNKNOWN, REG_DENIED, REG_NONE, REG_HOME, REG_ROAMING } Reg;
// Access Technology
@@ -349,7 +350,7 @@
static int _cbString(int type, const char* buf, int len, char* str);
static int _cbInt(int type, const char* buf, int len, int* val);
// device
- static int _cbATI(int type, const char* buf, int len, Model* model);
+ static int _cbATI(int type, const char* buf, int len, Dev* dev);
static int _cbCPIN(int type, const char* buf, int len, Sim* sim);
static int _cbCCID(int type, const char* buf, int len, char* ccid);
// network
@@ -358,6 +359,7 @@
static int _cbCNUM(int type, const char* buf, int len, char* num);
static int _cbCGATT(int type, const char* buf, int len, int* state);
// 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);
static int _cbUPSND(int type, const char* buf, int len, IP* ip);
static int _cbUDNSRN(int type, const char* buf, int len, IP* ip);
