Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Rejestrator
Diff: F401RE-USBHost/USBHostGPS/decodeNMEA.h
- Revision:
- 0:fa31f8461c63
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/F401RE-USBHost/USBHostGPS/decodeNMEA.h Sat Apr 18 17:01:57 2015 +0000
@@ -0,0 +1,28 @@
+// decodeNMEA.h 2012/12/15
+#ifndef DECODE_NMEA_H
+#define DECODE_NMEA_H
+
+class decodeNMEA {
+public:
+ decodeNMEA();
+ void inputNMEA(char* buf, int len);
+ void inputNMEA(char c);
+ float lat,lon;
+ time_t gprmc_t;
+ time_t update_t;
+
+private:
+ void parse(int type, int row, char* buf);
+ void update(int type, int row);
+ int m_seq;
+ int m_type;
+ int m_row;
+ uint8_t m_sum;
+ char m_buf[12];
+ int m_buf_pos;
+ bool m_status;
+ float tmp_lat,tmp_lon;
+ struct tm tmp_timeinfo;
+};
+
+#endif // DECODE_NMEA_H