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:
- 29:54fd002f2376
- Parent:
- 28:8852ebda4e8f
- Child:
- 30:de9fcdbc4d06
--- a/gnss.h Wed Dec 12 18:42:54 2018 +0500 +++ b/gnss.h Mon Dec 17 12:11:07 2018 +0500 @@ -50,7 +50,7 @@ enum eUBX_MSG_CLASS {NAV = 0x01, ACK = 0x05, LOG = 0x21}; -enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, NAV_STATUS, UNKNOWN_UBX}; +enum eUBX_MESSAGE {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, UBX_NAV_STATUS, UBX_NAV_SAT, UNKNOWN_UBX}; typedef struct UBX_ACK_ACK { uint8_t msg_class; @@ -110,6 +110,11 @@ }tUBX_NAV_STATUS; +typedef struct UBX_NAV_SAT{ + bool status; + +}tUBX_NAV_SAT; + /** Basic GNSS parser class. */ class GnssParser @@ -272,6 +277,12 @@ */ tUBX_NAV_STATUS decode_ubx_nav_status_msg(char *); + /** Method to parse contents of UBX_NAV_SAT and return decoded msg + * @param buff the UXB message, int length + * @return tUBX_NAV_SAT + */ + tUBX_NAV_SAT decode_ubx_nav_sat_msg(char *, int); + /** Method to send UBX LOG-RETRIEVEBATCH msg. This message is used to request batched data. * @param bool * @return int