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:
- 124:65eb7d58f2da
- Parent:
- 120:0e718a4ea25e
- Parent:
- 123:66cef6353b13
- Child:
- 125:25a292afbac6
diff -r 0e718a4ea25e -r 65eb7d58f2da MDM.h
--- a/MDM.h Wed Jul 01 13:21:31 2015 +0000
+++ b/MDM.h Thu Aug 20 08:07:37 2015 +0000
@@ -6,7 +6,7 @@
#include "Pipe.h"
#include "SerialPipe.h"
-#ifdef TARGET_UBLOX_C027
+#if 0//def TARGET_UBLOX_C027
#define MDM_IF(onboard,shield) onboard
#else
#define MDM_IF(onboard,shield) shield
@@ -31,8 +31,10 @@
// Types
// ----------------------------------------------------------------
//! MT Device Types
- typedef enum { DEV_UNKNOWN, DEV_SARA_G350, DEV_LISA_U200, DEV_LISA_C200,
- DEV_SARA_U260, DEV_SARA_U270, DEV_LEON_G200 } Dev;
+ typedef enum { DEV_UNKNOWN,
+ DEV_SARA_G350, DEV_LISA_U200, DEV_LISA_C200,
+ DEV_SARA_U260, DEV_SARA_U270, DEV_LEON_G200,
+ DEV_TOBY_L200, DEV_TOBY_L201, DEV_TOBY_L210, } Dev;
//! SIM Status
typedef enum { SIM_UNKNOWN, SIM_MISSING, SIM_PIN, SIM_READY } Sim;
//! SIM Status
@@ -53,13 +55,14 @@
//! Registration Status
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;
+ typedef enum { ACT_UNKNOWN, ACT_GSM, ACT_EDGE, ACT_UTRAN, ACT_CDMA, ACT_LTE } AcT;
//! Network Status
typedef struct {
Reg csd; //!< CSD Registration Status (Circuit Switched Data)
Reg psd; //!< PSD Registration status (Packet Switched Data)
+ Reg eps; //!< EPS Registration status
AcT act; //!< Access Technology
- int rssi; //!< Received Signal Strength Indication (in dBm, range -113..-53)
+ int rssi; //!< Received Signal Strength Indication (in dBm, range -113..-51)
int ber; //!< Bit Error Rate (BER), see 3GPP TS 45.008 [20] subclause 8.2.4
char opr[16+1]; //!< Operator Name
char num[32]; //!< Mobile Directory Number
@@ -105,9 +108,9 @@
\param status an optional struture to with device information
\return true if successful, false otherwise
*/
- bool init(const char* simpin = NULL, DevStatus* status = NULL,
+ virtual bool init(const char* simpin = NULL, DevStatus* status = NULL,
PinName pn MDM_IF( = MDMPWRON, = D4));
-
+
/** get the current device status
\param strocture holding the device information.
*/
@@ -603,7 +606,7 @@
int txSize = 128 );
//! Destructor
virtual ~MDMSerial(void);
-
+
/** Get a line from the physical interface.
\param buf the buffer to store it
\param buf size of the buffer
