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
 
12
#if !defined true
13
#define true 1
14
#define false !(true)
15
#endif
16
 
17
typedef unsigned char bool;
18
 
4 mjames 19
typedef struct
2 mjames 20
{
4 mjames 21
  char valid;
22
  char ew;
23
  char ns;
24
  float lat;
25
  float lon;
26
  float heading;
27
  float speed;
2 mjames 28
} Location;
29
 
4 mjames 30
extern uint8_t
31
updateLocation (Location *loc);
2 mjames 32
#endif /* INC_NMEA_H_ */