dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NMEA.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 #ifndef NMEA_H
31 #define NMEA_H
32 
33 #include <stdbool.h>
34 #include <stdint.h>
35 #include "GPS.h"
36 
37 #define NMEA_MAX_PACKET_LENGTH 96 // 82 max NMEA msg size plus 12 margin (because some vendors add custom crap) plus CR plus Linefeed
38 
39 extern bool NMEA_update_position(char *nmea_sentence, GPSPositionData *GpsData);
40 extern bool NMEA_checksum(char *nmea_sentence);
41 extern int parse_nmea_stream(uint8_t, char *, GPSPositionData *, struct GPS_RX_STATS *);
42 
43 #endif /* NMEA_H */
44 
bool NMEA_checksum(char *nmea_sentence)
bool NMEA_update_position(char *nmea_sentence, GPSPositionData *GpsData)
Include file of the GPS module.
int parse_nmea_stream(uint8_t, char *, GPSPositionData *, struct GPS_RX_STATS *)