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
USBHostGPS/decodeNMEA.h@26:53970cabf56d, 2015-06-26 (annotated)
- Committer:
- fritz291
- Date:
- Fri Jun 26 19:30:55 2015 +0000
- Revision:
- 26:53970cabf56d
- Parent:
- 13:8774c07f12a5
Fixed small error in testAT function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 |
13:8774c07f12a5 | 1 | // decodeNMEA.h 2012/12/15 |
va009039 |
13:8774c07f12a5 | 2 | #ifndef DECODE_NMEA_H |
va009039 |
13:8774c07f12a5 | 3 | #define DECODE_NMEA_H |
va009039 |
13:8774c07f12a5 | 4 | |
va009039 |
13:8774c07f12a5 | 5 | class decodeNMEA { |
va009039 |
13:8774c07f12a5 | 6 | public: |
va009039 |
13:8774c07f12a5 | 7 | decodeNMEA(); |
va009039 |
13:8774c07f12a5 | 8 | void inputNMEA(char* buf, int len); |
va009039 |
13:8774c07f12a5 | 9 | void inputNMEA(char c); |
va009039 |
13:8774c07f12a5 | 10 | float lat,lon; |
va009039 |
13:8774c07f12a5 | 11 | time_t gprmc_t; |
va009039 |
13:8774c07f12a5 | 12 | time_t update_t; |
va009039 |
13:8774c07f12a5 | 13 | |
va009039 |
13:8774c07f12a5 | 14 | private: |
va009039 |
13:8774c07f12a5 | 15 | void parse(int type, int row, char* buf); |
va009039 |
13:8774c07f12a5 | 16 | void update(int type, int row); |
va009039 |
13:8774c07f12a5 | 17 | int m_seq; |
va009039 |
13:8774c07f12a5 | 18 | int m_type; |
va009039 |
13:8774c07f12a5 | 19 | int m_row; |
va009039 |
13:8774c07f12a5 | 20 | uint8_t m_sum; |
va009039 |
13:8774c07f12a5 | 21 | char m_buf[12]; |
va009039 |
13:8774c07f12a5 | 22 | int m_buf_pos; |
va009039 |
13:8774c07f12a5 | 23 | bool m_status; |
va009039 |
13:8774c07f12a5 | 24 | float tmp_lat,tmp_lon; |
va009039 |
13:8774c07f12a5 | 25 | struct tm tmp_timeinfo; |
va009039 |
13:8774c07f12a5 | 26 | }; |
va009039 |
13:8774c07f12a5 | 27 | |
va009039 |
13:8774c07f12a5 | 28 | #endif // DECODE_NMEA_H |