Simple USBHost GPS Dongle Receiver for FRDM-KL46Z test program
Dependencies: KL46Z-USBHost mbed SLCD
decodeNMEA.h
00001 // decodeNMEA.h 2012/12/15 00002 #ifndef DECODE_NMEA_H 00003 #define DECODE_NMEA_H 00004 00005 class decodeNMEA { 00006 public: 00007 decodeNMEA(); 00008 void inputNMEA(char* buf, int len); 00009 void inputNMEA(char c); 00010 float lat,lon; 00011 time_t gprmc_t; 00012 time_t update_t; 00013 00014 private: 00015 void parse(int type, int row, char* buf); 00016 void update(int type, int row); 00017 int m_seq; 00018 int m_type; 00019 int m_row; 00020 uint8_t m_sum; 00021 char m_buf[12]; 00022 int m_buf_pos; 00023 bool m_status; 00024 float tmp_lat,tmp_lon; 00025 struct tm tmp_timeinfo; 00026 }; 00027 00028 #endif // DECODE_NMEA_H
Generated on Fri Jul 15 2022 21:30:00 by 1.7.2