dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GPS.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef GPS_H
30 #define GPS_H
31 
32 #include "gpsvelocity.h"
33 #include "gpssatellites.h"
34 #include "gpsposition.h"
35 #include "gpstime.h"
36 #include "ubloxinfo.h"
37 
38 #define NO_PARSER -3 // no parser available
39 #define PARSER_OVERRUN -2 // message buffer overrun before completing the message
40 #define PARSER_ERROR -1 // message unparsable by this parser
41 #define PARSER_INCOMPLETE 0 // parser needs more data to complete the message
42 #define PARSER_COMPLETE 1 // parser has received a complete message and finished processing
43 
44 struct GPS_RX_STATS {
45  uint16_t gpsRxReceived;
46  uint16_t gpsRxChkSumError;
47  uint16_t gpsRxOverflow;
48  uint16_t gpsRxParserError;
49 };
50 
51 int32_t GPSInitialize(void);
52 
53 #endif // GPS_H
54 
uint16_t gpsRxReceived
Definition: GPS.h:45
uint16_t gpsRxChkSumError
Definition: GPS.h:46
uint16_t gpsRxParserError
Definition: GPS.h:48
uint16_t gpsRxOverflow
Definition: GPS.h:47
int32_t GPSInitialize(void)
Definition: GPS.c:115