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.
Dependents: C027_BootTest_revb C027_EthernetSniffTest C027_M3_SerialEcho C027_HelloWorld_revb ... more
Fork of C027 by
Diff: C027.h
- 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;
+};
+
