yy1717
2021-02-07 cea2a94fc97e79897cdfd217be8250c075974a1a
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
#ifndef _PARSE_GPS_H_
#define _PARSE_GPS_H_
 
#include <stdint.h>
 
#define MAX_NAEA_NUM                32
 
struct nmea_sequence
{
  const uint8_t *data;
  uint16_t length;
};
 
struct nmea
{
    uint16_t nmea_num;
    struct nmea_sequence nmea_value[MAX_NAEA_NUM];
};
 
const uint8_t *parseGPS(const uint8_t *s, const uint8_t *e);
 
void handleUnrecognisedNMEA(const uint8_t *data, uint16_t length);
 
void handleGPGGA(const struct nmea *);
 
void handleGPGSA(const struct nmea *);
 
void handleGPGSV(const struct nmea *);
void handleGPRMC(const struct nmea *);
void handleGPVTG(const struct nmea *);
void handleGPGLL(const struct nmea *);
void handleGPZDA(const struct nmea *);
void handlePJK(const struct nmea *);
void handleGPTRA(const struct nmea *);
void handleBESTPOSA(const struct nmea *);
void handlePJKParam(const struct nmea *s);
void handleRTKRebootComp(const struct nmea *s);
 
#endif