|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
NMEA protocol specific code. More...
Go to the source code of this file.
Data Structures | |
| struct | GpsNmea |
Macros | |
| #define | GPS_NMEA_NB_CHANNELS 12 |
| #define | NMEA_MAXLEN 255 |
| #define | PRIMARY_GPS GPS_NMEA |
| #define | gps_nmea_periodic_check() |
Functions | |
| void | gps_nmea_init (void) |
| void | gps_nmea_event (void) |
| void | nmea_configure (void) |
| The function to be called when a characted from the device is available. | |
| void | nmea_parse_char (uint8_t c) |
| This is the actual parser. | |
| 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. | |
| void | nmea_parse_prop_init (void) |
| bool | nmea_parse_prop_msg (void) |
| void | nmea_gps_msg (void) |
| static void | nmea_read_until (int *i) |
| Read until a certain character, placed here for proprietary includes. | |
Variables | |
| struct GpsNmea | gps_nmea |
NMEA protocol specific code.
Definition in file gps_nmea.h.
| struct GpsNmea |
Definition at line 43 of file gps_nmea.h.
| Data Fields | ||
|---|---|---|
| uint8_t | gps_nb_ovrn | number if incomplete nmea-messages |
| bool | have_gsv | flag set to TRUE if GPGSV message received |
| bool | is_configured | flag set to TRUE if configuration is finished |
| bool | msg_available | flag set to TRUE if a new msg/sentence is available to be parsed |
| char | msg_buf[NMEA_MAXLEN] | buffer for storing one nmea-line |
| int | msg_len | |
| struct GpsState | state | |
| uint8_t | status | line parser status |
| #define GPS_NMEA_NB_CHANNELS 12 |
Definition at line 35 of file gps_nmea.h.
Referenced by gps_nmea_init().
| #define gps_nmea_periodic_check | ( | ) |
Definition at line 60 of file gps_nmea.h.
| #define NMEA_MAXLEN 255 |
Definition at line 37 of file gps_nmea.h.
Referenced by nmea_parse_char().
| #define PRIMARY_GPS GPS_NMEA |
Definition at line 40 of file gps_nmea.h.
|
extern |
Definition at line 78 of file gps_nmea.c.
References dev, gps_nmea, nmea_configure(), nmea_gps_msg(), and nmea_parse_char().
|
extern |
Definition at line 66 of file gps_nmea.c.
References gps_nmea, GPS_NMEA_NB_CHANNELS, nmea_configure(), and nmea_parse_prop_init().
|
extern |
Calculate control sum of binary buffer.
Definition at line 243 of file gps_nmea.c.
Referenced by nmea_configure().
|
extern |
The function to be called when a characted from the device is available.
The function to be called when a characted from the device is available.
Sets gps_nmea.is_configured to TRUE if all config msgs are sent.
Definition at line 66 of file gps_furuno.c.
References fd, furuno_cfg_cnt, gps_furuno_settings, GPS_FURUNO_SETTINGS_NB, gps_nmea, GpsLinkDevice, and nmea_calc_crc().
Referenced by gps_nmea_event(), and gps_nmea_init().
|
extern |
Definition at line 95 of file gps_nmea.c.
References get_sys_time_usec(), GPS_FIX_3D, gps_nmea, GPS_NMEA_ID, sys_time::nb_sec, sys_time::nb_sec_rem, and nmea_parse_msg().
Referenced by gps_nmea_event().
|
extern |
This is the actual parser.
It reads one character at a time setting gps_nmea.msg_available to TRUE after a full line.
Definition at line 174 of file gps_nmea.c.
References GOT_CHECKSUM, GOT_END, GOT_START, gps_nmea, NMEA_MAXLEN, NMEA_PRINT, and WAIT.
Referenced by gps_nmea_event().
|
extern |
nmea_parse_char() has a complete line.
Find out what type of message it is and hand it to the parser for that type.
Definition at line 133 of file gps_nmea.c.
References gps_nmea, nmea_parse_GGA(), nmea_parse_GSA(), nmea_parse_GSV(), nmea_parse_prop_msg(), nmea_parse_RMC(), NMEA_PRINT, and WAIT.
Referenced by nmea_gps_msg().
|
extern |
Definition at line 90 of file gps_furuno.c.
References furuno_cfg_cnt.
Referenced by gps_nmea_init().
|
extern |
Definition at line 96 of file gps_furuno.c.
References gps_nmea, and nmea_parse_perdcrv().
Referenced by nmea_parse_msg().
|
inlinestatic |
Read until a certain character, placed here for proprietary includes.
Definition at line 79 of file gps_nmea.h.
References gps_nmea.
Referenced by nmea_parse_GGA(), nmea_parse_GSA(), nmea_parse_GSV(), nmea_parse_perdcrv(), and nmea_parse_RMC().
|
extern |
Definition at line 59 of file gps_nmea.c.
Referenced by gps_nmea_event(), gps_nmea_init(), nmea_configure(), nmea_gps_msg(), nmea_parse_char(), nmea_parse_GGA(), nmea_parse_GSA(), nmea_parse_GSV(), nmea_parse_msg(), nmea_parse_perdcrv(), nmea_parse_prop_msg(), nmea_parse_RMC(), and nmea_read_until().