Board support library for C027

Dependents:   IoTWorkshopLCD IoTWorkshopBuzzer IoTWorkshopSensors C027_USSDTest ... more

Fork of C027 by u-blox

/media/uploads/ublox/c027_pinout_new.png

Revision:
6:e11bf54dd344
Parent:
5:ff17f16cf70a
Child:
7:e3eab86f1de9
--- a/C027.h	Mon Oct 21 15:39:20 2013 +0000
+++ b/C027.h	Mon Oct 21 19:45:55 2013 +0000
@@ -6,8 +6,31 @@
 
 #pragma once
 
+#include "mbed.h"
 #include "C027_PinNames.h"
 
 // Override the weak mbed die function that flashes the leds. 
 // We do not have fancy leds that can be flashed on the C027.
 void mbed_die(void);
+
+class C027
+{
+public:
+    C027();
+
+    void gpsPower(bool enable);
+    void mdmPower(bool enable);
+    void mdmReset(void);
+    void gpsReset(void);
+
+private:
+    DigitalOut mdmEn;
+    DigitalOut mdmRst;
+    DigitalOut mdmPwrOn;
+    DigitalOut mdmRts;
+    bool mdmIsEnabled;
+    DigitalOut gpsEn;
+    DigitalOut gpsRst;
+    bool gpsIsEnabled;
+};
+