Fork to support REVB hardware.

Dependents:   C027_BootTest_revb C027_EthernetSniffTest C027_M3_SerialEcho C027_HelloWorld_revb ... more

Fork of C027 by u-blox

Committer:
dixter1
Date:
Sun Dec 15 21:17:22 2013 +0000
Revision:
22:2ab87e985526
Parent:
21:db7c445289f5
Comment Updates

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
dixter1 20:2ae219d82c0e 21 void mdmPower(bool enable, bool use_mdmuart);
mazgch 14:e30f90b5447e 22 void mdmUsbEnable(bool enable); // enable the USB interface
mazgch 6:e11bf54dd344 23 void mdmReset(void);
mazgch 8:a356376db984 24 void mdmWakeup(void);
mazgch 8:a356376db984 25 void mdmSleep(void);
dixter1 21:db7c445289f5 26 void gpsPower(bool enable, bool lisa_gps);
mazgch 6:e11bf54dd344 27 void gpsReset(void);
dixter1 17:cd02fb66a5fc 28 void LeakageTest(void);
mazgch 6:e11bf54dd344 29
mazgch 6:e11bf54dd344 30 private:
mazgch 7:e3eab86f1de9 31 // modem pins
mazgch 8:a356376db984 32 DigitalOut mdmEn;
mazgch 8:a356376db984 33 DigitalOut mdmRst;
mazgch 8:a356376db984 34 DigitalOut mdmPwrOn;
mazgch 8:a356376db984 35 DigitalOut mdmLvlOe;
mazgch 13:fb30e9923a7b 36 DigitalOut mdmILvlOe;
mazgch 8:a356376db984 37 DigitalOut mdmUsbDet;
mazgch 8:a356376db984 38 bool mdmIsEnabled;
mazgch 14:e30f90b5447e 39 bool mdmUseUsb;
mazgch 7:e3eab86f1de9 40 // gps pins
mazgch 8:a356376db984 41 DigitalOut gpsEn;
mazgch 8:a356376db984 42 DigitalOut gpsRst;
mazgch 8:a356376db984 43 bool gpsIsEnabled;
mazgch 6:e11bf54dd344 44 };