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"
bool msg_available
flag set to TRUE if a new msg/sentence is available to be parsed
bool nmea_parse_prop_msg(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void gps_nmea_event(void)
void nmea_parse_prop_init(void)
char msg_buf[NMEA_MAXLEN]
buffer for storing one nmea-line
static void nmea_read_until(int *i)
Read until a certain character, placed here for proprietary includes.
void nmea_configure(void)
The function to be called when a characted from the device is available.
uint8_t gps_nb_ovrn
number if incomplete nmea-messages
bool have_gsv
flag set to TRUE if GPGSV message received
data structure for GPS information
Device independent GPS code (interface)
bool nmea_parse_msg(void)
nmea_parse_char() has a complete line.
uint8_t status
line parser status
bool is_configured
flag set to TRUE if configuration is finished
void nmea_parse_char(uint8_t c)
This is the actual parser.
uint8_t buff[25]
Buffer used for general comunication over SPI (in buffer)
uint8_t nmea_calc_crc(const char *buff, int buff_sz)
Calculate control sum of binary buffer.