Subversion Repositories dashGPS

Rev

Rev 4 | 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.  
  13. #if !defined (__cplusplus)
  14. #if !defined true
  15. #define true 1
  16. #define false !(true)
  17. #endif
  18.  
  19. typedef unsigned char bool;
  20. #endif
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25.  
  26. typedef struct
  27. {
  28.   char valid;
  29.   char time[6];
  30.   bool good;
  31.   char ew;
  32.   char ns;
  33.   float lat;
  34.   float lon;
  35.   float heading;
  36.   float speed;
  37. } Location;
  38.  
  39. extern bool
  40. updateLocation (Location *loc);
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #endif /* INC_NMEA_H_ */
  47.