forked from nimaltd/NMEA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGPS.h
54 lines (42 loc) · 1.17 KB
/
GPS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef _GPS_H_
#define _GPS_H_
#include <stdint.h>
//##################################################################################################################
typedef struct
{
uint8_t UTC_Hour;
uint8_t UTC_Min;
uint8_t UTC_Sec;
uint16_t UTC_MicroSec;
float Latitude;
double LatitudeDecimal;
char NS_Indicator;
float Longitude;
double LongitudeDecimal;
char EW_Indicator;
uint8_t PositionFixIndicator;
uint8_t SatellitesUsed;
float HDOP;
float MSL_Altitude;
char MSL_Units;
float Geoid_Separation;
char Geoid_Units;
uint16_t AgeofDiffCorr;
char DiffRefStationID[4];
char CheckSum[2];
}GPGGA_t;
typedef struct
{
uint8_t rxBuffer[512];
uint16_t rxIndex;
uint8_t rxTmp;
uint32_t LastTime;
GPGGA_t GPGGA;
}GPS_t;
extern GPS_t GPS;
//##################################################################################################################
void GPS_Init(void);
void GPS_CallBack(void);
void GPS_Process(void);
//##################################################################################################################
#endif