A porting of a GPS decoding and presenting program within the mbos RTOS. It is not a definitive application but a study program to test NMEA full decoding library and a first approach to an RTOS. Many thanks to Andrew Levido for his support and his patience on teaching me the RTOS principles from the other side of the Earth. It uses NMEA library by Tim (xtimor@gmail.com) ported by Ken Todotani (http://mbed.org/users/todotani/) on public mbed library (http://mbed.org/users/todotani/programs/GPS_nmeaLib/5yo4h) also available, as original universal C library, on http://nmea.sourceforge.net
Dependencies: mbos Watchdog TextLCD mbed ConfigFile
nmea/parse.h@3:a2f9eb3b8a16, 2012-02-03 (annotated)
- Committer:
- guiott
- Date:
- Fri Feb 03 16:29:52 2012 +0000
- Revision:
- 3:a2f9eb3b8a16
- Parent:
- 0:d177c0087d1f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
guiott | 0:d177c0087d1f | 1 | /* |
guiott | 0:d177c0087d1f | 2 | * |
guiott | 0:d177c0087d1f | 3 | * NMEA library |
guiott | 0:d177c0087d1f | 4 | * URL: http://nmea.sourceforge.net |
guiott | 0:d177c0087d1f | 5 | * Author: Tim (xtimor@gmail.com) |
guiott | 0:d177c0087d1f | 6 | * Licence: http://www.gnu.org/licenses/lgpl.html |
guiott | 0:d177c0087d1f | 7 | * $Id: parse.h 4 2007-08-27 13:11:03Z xtimor $ |
guiott | 0:d177c0087d1f | 8 | * |
guiott | 0:d177c0087d1f | 9 | */ |
guiott | 0:d177c0087d1f | 10 | |
guiott | 0:d177c0087d1f | 11 | #ifndef __NMEA_PARSE_H__ |
guiott | 0:d177c0087d1f | 12 | #define __NMEA_PARSE_H__ |
guiott | 0:d177c0087d1f | 13 | |
guiott | 0:d177c0087d1f | 14 | #include "sentence.h" |
guiott | 0:d177c0087d1f | 15 | |
guiott | 0:d177c0087d1f | 16 | #ifdef __cplusplus |
guiott | 0:d177c0087d1f | 17 | extern "C" { |
guiott | 0:d177c0087d1f | 18 | #endif |
guiott | 0:d177c0087d1f | 19 | |
guiott | 0:d177c0087d1f | 20 | int nmea_pack_type(const char *buff, int buff_sz); |
guiott | 0:d177c0087d1f | 21 | int nmea_find_tail(const char *buff, int buff_sz, int *res_crc); |
guiott | 0:d177c0087d1f | 22 | |
guiott | 0:d177c0087d1f | 23 | int nmea_parse_GPGGA(const char *buff, int buff_sz, nmeaGPGGA *pack); |
guiott | 0:d177c0087d1f | 24 | int nmea_parse_GPGSA(const char *buff, int buff_sz, nmeaGPGSA *pack); |
guiott | 0:d177c0087d1f | 25 | int nmea_parse_GPGSV(const char *buff, int buff_sz, nmeaGPGSV *pack); |
guiott | 0:d177c0087d1f | 26 | int nmea_parse_GPRMC(const char *buff, int buff_sz, nmeaGPRMC *pack); |
guiott | 0:d177c0087d1f | 27 | int nmea_parse_GPVTG(const char *buff, int buff_sz, nmeaGPVTG *pack); |
guiott | 0:d177c0087d1f | 28 | |
guiott | 0:d177c0087d1f | 29 | void nmea_GPGGA2info(nmeaGPGGA *pack, nmeaINFO *info); |
guiott | 0:d177c0087d1f | 30 | void nmea_GPGSA2info(nmeaGPGSA *pack, nmeaINFO *info); |
guiott | 0:d177c0087d1f | 31 | void nmea_GPGSV2info(nmeaGPGSV *pack, nmeaINFO *info); |
guiott | 0:d177c0087d1f | 32 | void nmea_GPRMC2info(nmeaGPRMC *pack, nmeaINFO *info); |
guiott | 0:d177c0087d1f | 33 | void nmea_GPVTG2info(nmeaGPVTG *pack, nmeaINFO *info); |
guiott | 0:d177c0087d1f | 34 | |
guiott | 0:d177c0087d1f | 35 | #ifdef __cplusplus |
guiott | 0:d177c0087d1f | 36 | } |
guiott | 0:d177c0087d1f | 37 | #endif |
guiott | 0:d177c0087d1f | 38 | |
guiott | 0:d177c0087d1f | 39 | #endif /* __NMEA_PARSE_H__ */ |