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

Committer:
mazgch
Date:
Mon Oct 21 19:45:55 2013 +0000
Revision:
6:e11bf54dd344
Parent:
5:ff17f16cf70a
Child:
7:e3eab86f1de9
adding helpers

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mazgch 2:b7bd3660ff64 1 /* Platform header file, for the u-blox C27-C20/U20/G35
mazgch 2:b7bd3660ff64 2 * mbed Internet of Things Starter Kit
mazgch 2:b7bd3660ff64 3 * http://mbed.org/platforms/u-blox-C027/
mazgch 2:b7bd3660ff64 4 *
mazgch 2:b7bd3660ff64 5 */
mazgch 2:b7bd3660ff64 6
mazgch 2:b7bd3660ff64 7 #pragma once
mazgch 2:b7bd3660ff64 8
mazgch 6:e11bf54dd344 9 #include "mbed.h"
mazgch 5:ff17f16cf70a 10 #include "C027_PinNames.h"
mazgch 5:ff17f16cf70a 11
mazgch 3:b54777b90da1 12 // Override the weak mbed die function that flashes the leds.
mazgch 3:b54777b90da1 13 // We do not have fancy leds that can be flashed on the C027.
mazgch 3:b54777b90da1 14 void mbed_die(void);
mazgch 6:e11bf54dd344 15
mazgch 6:e11bf54dd344 16 class C027
mazgch 6:e11bf54dd344 17 {
mazgch 6:e11bf54dd344 18 public:
mazgch 6:e11bf54dd344 19 C027();
mazgch 6:e11bf54dd344 20
mazgch 6:e11bf54dd344 21 void gpsPower(bool enable);
mazgch 6:e11bf54dd344 22 void mdmPower(bool enable);
mazgch 6:e11bf54dd344 23 void mdmReset(void);
mazgch 6:e11bf54dd344 24 void gpsReset(void);
mazgch 6:e11bf54dd344 25
mazgch 6:e11bf54dd344 26 private:
mazgch 6:e11bf54dd344 27 DigitalOut mdmEn;
mazgch 6:e11bf54dd344 28 DigitalOut mdmRst;
mazgch 6:e11bf54dd344 29 DigitalOut mdmPwrOn;
mazgch 6:e11bf54dd344 30 DigitalOut mdmRts;
mazgch 6:e11bf54dd344 31 bool mdmIsEnabled;
mazgch 6:e11bf54dd344 32 DigitalOut gpsEn;
mazgch 6:e11bf54dd344 33 DigitalOut gpsRst;
mazgch 6:e11bf54dd344 34 bool gpsIsEnabled;
mazgch 6:e11bf54dd344 35 };
mazgch 6:e11bf54dd344 36