Subversion Repositories dashGPS

Rev

Rev 2 | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * nmea.h
  3.  *
  4.  *  Created on: 6 Sep 2020
  5.  *      Author: mike
  6.  */
  7.  
  8. #ifndef INC_NMEA_H_
  9. #define INC_NMEA_H_
  10. #include <ctype.h>
  11.  
  12. #if !defined true
  13. #define true 1
  14. #define false !(true)
  15. #endif
  16.  
  17. typedef unsigned char bool;
  18.  
  19. typedef struct
  20. {
  21.   char valid;
  22.   char ew;
  23.   char ns;
  24.   float lat;
  25.   float lon;
  26.   float heading;
  27.   float speed;
  28. } Location;
  29.  
  30. extern uint8_t
  31. updateLocation (Location *loc);
  32. #endif /* INC_NMEA_H_ */
  33.