You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
471 B

#ifndef NMEA_PARSER_H
#define NMEA_PARSER_H
typedef enum {
nmeatype_unknown,
nmeatype_fix, // GGA
} nmeatype_t;
// GGA
typedef struct {
int latitude;
int longitude;
int fix;
int satelites;
int time;
} nmeadata_fix;
typedef struct {
nmeatype_t type;
union {
nmeadata_fix fix;
} data;
} nmeadata_t;
void nmea_parser_parse(const char* data, int len, nmeadata_t* nmea);
#endif // NMEA_PARSER_H