35 #define GPS_NMEA_NB_CHANNELS 12
37 #define NMEA_MAXLEN 255
40 #define PRIMARY_GPS GPS_NMEA
60 #define gps_nmea_periodic_check() gps_periodic_check(&gps_nmea.state)
68 #include "pprzlink/pprzlink_device.h"
Device independent GPS code (interface)
data structure for GPS information
uint8_t status
line parser status
static void nmea_read_until(int *i)
Read until a certain character, placed here for proprietary includes.
bool nmea_parse_msg(void)
nmea_parse_char() has a complete line.
uint8_t nmea_calc_crc(const char *buff, int buff_sz)
Calculate control sum of binary buffer.
bool have_gsv
flag set to TRUE if GPGSV message received
uint8_t gps_nb_ovrn
number if incomplete nmea-messages
void gps_nmea_event(void)
bool nmea_parse_prop_msg(void)
bool msg_available
flag set to TRUE if a new msg/sentence is available to be parsed
void nmea_parse_prop_init(void)
bool is_configured
flag set to TRUE if configuration is finished
char msg_buf[NMEA_MAXLEN]
buffer for storing one nmea-line
void nmea_parse_char(uint8_t c)
This is the actual parser.
void nmea_configure(void)
The function to be called when a characted from the device is available.
uint8_t buff[25]
Buffer used for general comunication over SPI (in buffer)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.