Subversion Repositories dashGPS

Rev

Details | Last modification | View Log | RSS feed

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