USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHostGPS/decodeNMEA.h
- Revision:
- 13:8774c07f12a5
diff -r b91fdea8c0a7 -r 8774c07f12a5 USBHostGPS/decodeNMEA.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBHostGPS/decodeNMEA.h Tue Jun 10 13:38:41 2014 +0900 @@ -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