Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768

Dependencies:   FATFileSystem

Dependents:   F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld

Fork of KL46Z-USBHost by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers decodeNMEA.h Source File

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