35 #define GPS_NB_CHANNELS 12
37 #define NMEA_MAXLEN 255
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
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
void * periph
pointer to parent implementation
bool_t have_gsv
flag set to TRUE if GPGSV message received
bool_t is_configured
flag set to TRUE if configuration is finished
get_byte_t get_byte
get a new char
void nmea_parse_prop_msg(void)
void nmea_parse_msg(void)
nmea_parse_char() has a complete line.
uint8_t status
line parser status
static const struct usb_device_descriptor dev
static void GpsEvent(void)
char_available_t char_available
check if a new character is available
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.