This class provides an API to communicate with a u-blox GNSS chip. The files here were originally part of the C027_Support library (https://developer.mbed.org/teams/ublox/code/C027_Support/ at revision 138:dafbbf31bf76) but have been separated out, primarily for use on the u-blox C030 board where the cellular interace portion of the C027_Support library will instead be provided through the new mbed Cellular API.
Dependents: example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more
Diff: gnss.h
- Revision:
- 2:b10ca4aa2e5e
- Parent:
- 1:ef70a58a6c98
- Child:
- 3:2a1cd49ead85
--- a/gnss.h Mon Apr 10 11:28:24 2017 +0100 +++ b/gnss.h Thu Apr 13 14:45:17 2017 +0000 @@ -27,9 +27,9 @@ #include "serial_pipe.h" #ifdef TARGET_UBLOX_C030 - #define GNSS_IF(onboard, shield) onboard +# define GNSS_IF(onboard, shield) onboard #else - #define GNSS_IF(onboard, shield) shield +# define GNSS_IF(onboard, shield) shield #endif /** basic GNSS parser class @@ -204,8 +204,8 @@ \param rxSize the size of the serial rx buffer \param txSize the size of the serial tx buffer */ - GnssSerial(PinName tx GNSS_IF( = GNSSTXD, /* = D8 */), // resistor on shield not populated - PinName rx GNSS_IF( = GNSSRXD, /* = D9 */), // resistor on shield not populated + GnssSerial(PinName tx GNSS_IF( = GNSSTXD, = D8 /* = D8 */), // resistor on shield not populated + PinName rx GNSS_IF( = GNSSRXD, = D9 /* = D9 */), // resistor on shield not populated int baudrate GNSS_IF( = GNSSBAUD, = 9600 ), int rxSize = 256 , int txSize = 128 ); @@ -244,10 +244,10 @@ \param adr the I2C address of the GNSS set to (66<<1) \param rxSize the size of the serial rx buffer */ - GnssI2C(PinName sda GNSS_IF( = NC, = D16 ), - PinName scl GNSS_IF( = NC, = D17 ), - unsigned char i2cAdr GNSS_IF( = (66<<1), = (66<<1) ), - int rxSize = 256 ); + GnssI2C(PinName sda GNSS_IF( = NC, = /* D16 TODO */ NC ), + PinName scl GNSS_IF( = NC, = /* D17 TODO */ NC ), + unsigned char i2cAdr GNSS_IF( = (66<<1), = (66<<1) ), + int rxSize = 256 ); //! Destructor virtual ~GnssI2C(void);