|
px-fwlib 0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers generated with Doxygen 1.9.2
|
GPS NMEA protocol parser.
File(s):
Data Structures | |
| struct | px_nmea_data_t |
| Parsed time, position, quality data. More... | |
Macros | |
| #define | PX_NMEA_GGA_STR "GGA" |
| Time, position and fix type data. More... | |
| #define | PX_NMEA_GLL_STR "GLL" |
| Latitude, longitude, UTC time of position fix and status. More... | |
| #define | PX_NMEA_GSA_STR "GSA" |
| GPS receiver operating mode, satellites used in the position solution and DOP values. More... | |
| #define | PX_NMEA_GSV_STR "GSV" |
| The number of GPS satellites in view, satellite ID numbers, elevation, azimuth, and SNR values. More... | |
| #define | PX_NMEA_MSS_STR "MSS" |
| Signal-to-noise ratio, signal strength, frequency, and bit rate from a radio-beacon receiver. More... | |
| #define | PX_NMEA_RMC_STR "RMC" |
| Time, date, position, course and speed data. More... | |
| #define | PX_NMEA_VTG_STR "VTG" |
| Course and speed information relative to the ground. More... | |
| #define | PX_NMEA_ZDA_STR "ZDA" |
| Date and time. More... | |
Typedefs | |
| typedef void(* | px_nmea_tx_byte_t) (uint8_t data) |
| Definition for a pointer to a function that will be called to send a character. More... | |
| typedef void(* | px_nmea_on_valid_str_t) (const char *data) |
| Definition for a pointer to a function that when a valid NMEA string is received. More... | |
| typedef void(* | px_nmea_on_valid_gps_data_t) (void) |
| Definition for a pointer to a function that will be called when GPS data is valid. More... | |
Functions | |
| void | px_nmea_init (px_nmea_tx_byte_t tx_byte, px_nmea_on_valid_str_t on_valid_str, px_nmea_on_valid_gps_data_t on_valid_gps_data) |
| Initialise NMEA parser module. More... | |
| void | px_nmea_on_rx_byte (uint8_t data) |
| Function handler that is fed all raw received data. More... | |
| void | px_nmea_tx_frame (char *frame) |
| Function that is called to send an NMEA frame with the checksum appended. More... | |
| #define PX_NMEA_GGA_STR "GGA" |
| #define PX_NMEA_GLL_STR "GLL" |
| #define PX_NMEA_GSA_STR "GSA" |
| #define PX_NMEA_GSV_STR "GSV" |
| #define PX_NMEA_MSS_STR "MSS" |
| #define PX_NMEA_RMC_STR "RMC" |
| #define PX_NMEA_VTG_STR "VTG" |
| typedef void(* px_nmea_tx_byte_t) (uint8_t data) |
| typedef void(* px_nmea_on_valid_str_t) (const char *data) |
| typedef void(* px_nmea_on_valid_gps_data_t) (void) |
| void px_nmea_init | ( | px_nmea_tx_byte_t | tx_byte, |
| px_nmea_on_valid_str_t | on_valid_str, | ||
| px_nmea_on_valid_gps_data_t | on_valid_gps_data | ||
| ) |
Initialise NMEA parser module.
| tx_byte | Pointer to a function that will be called to transmit a byte. |
| on_valid_str | Pointer to a function that will be called when a valid NMEA string has been received. |
| on_valid_gps_data | Pointer to a function that will be called when the data structure has been completely polulated with valid data. |
| void px_nmea_on_rx_byte | ( | uint8_t | data | ) |