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

Revision:
21:f91c0334d017
Parent:
17:6c226e3e9d61
Child:
27:405a5e611635
--- a/gnss.h	Fri Oct 05 18:46:48 2018 +0500
+++ b/gnss.h	Mon Oct 08 14:22:33 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, UNKNOWN_UBX};
+enum eUBX_MESSAGE  {UBX_LOG_BATCH, UBX_ACK_ACK, UBX_ACK_NAK, UBX_NAV_ODO, UBX_NAV_PVT, NAV_STATUS, UNKNOWN_UBX};
 
 typedef struct UBX_ACK_ACK {
 	uint8_t msg_class;
@@ -101,6 +101,15 @@
 
 }tUBX_CFG_BATCH;
 
+typedef struct UBX_NAV_STATUS{
+	uint32_t itow;
+	uint8_t fix;
+	uint8_t flags;
+	uint32_t ttff;
+	uint32_t msss;
+
+}tUBX_NAV_STATUS;
+
 /** Basic GNSS parser class.
 */
 class GnssParser
@@ -257,6 +266,12 @@
 	 */
     tUBX_LOG_BATCH decode_ubx_log_batch_msg(char *);
 
+    /** Method to parse contents of UBX_NAV_STATUS and return decoded msg
+	 * @param buff the UXB message
+	 * @return tUBX_NAV_STATUS
+	 */
+    tUBX_NAV_STATUS decode_ubx_nav_status_msg(char *);
+
     /** Method to send UBX LOG-RETRIEVEBATCH msg. This message is used to request batched data.
 	 * @param bool
 	 * @return int