QGIS API Documentation  2.99.0-Master (314842d)
Go to the documentation of this file.
1 /*
2 * Copyright Tim ([email protected])
3 *
4 * NMEA library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>
16 */
17 /*
18  *
19  * NMEA library
20  * URL: http://nmea.sourceforge.net
21  * Author: Tim ([email protected])
22  * Licence: http://www.gnu.org/licenses/lgpl.html
23  * $Id: parse.h 4 2007-08-27 13:11:03Z xtimor $
24  *
25  */
27 #ifndef NMEA_PARSE_H
28 #define NMEA_PARSE_H
30 #include "sentence.h"
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
37 int nmea_pack_type( const char *buff, int buff_sz );
38 int nmea_find_tail( const char *buff, int buff_sz, int *res_crc );
40 int nmea_parse_GPGGA( const char *buff, int buff_sz, nmeaGPGGA *pack );
41 int nmea_parse_GPGSA( const char *buff, int buff_sz, nmeaGPGSA *pack );
42 int nmea_parse_GPGSV( const char *buff, int buff_sz, nmeaGPGSV *pack );
43 int nmea_parse_GPRMC( const char *buff, int buff_sz, nmeaGPRMC *pack );
44 int nmea_parse_GPVTG( const char *buff, int buff_sz, nmeaGPVTG *pack );
46 void nmea_GPGGA2info( nmeaGPGGA *pack, nmeaINFO *info );
47 void nmea_GPGSA2info( nmeaGPGSA *pack, nmeaINFO *info );
48 void nmea_GPGSV2info( nmeaGPGSV *pack, nmeaINFO *info );
49 void nmea_GPRMC2info( nmeaGPRMC *pack, nmeaINFO *info );
50 void nmea_GPVTG2info( nmeaGPVTG *pack, nmeaINFO *info );
52 #ifdef __cplusplus
53 }
54 #endif
56 #endif /* NMEA_PARSE_H */
int nmea_parse_GPVTG(const char *buff, int buff_sz, nmeaGPVTG *pack)
Parse VTG packet from buffer.
Definition: parse.c:377
void nmea_GPGSA2info(nmeaGPGSA *pack, nmeaINFO *info)
Fill nmeaINFO structure by GSA packet data.
Definition: parse.c:434
GGA packet information structure (Global Positioning System Fix Data)
Definition: sentence.h:39
VTG packet information structure (Track made good and ground speed)
Definition: sentence.h:106
int nmea_parse_GPRMC(const char *buff, int buff_sz, nmeaGPRMC *pack)
Parse RMC packet from buffer.
Definition: parse.c:325
int nmea_pack_type(const char *buff, int buff_sz)
Define packet type by header (nmeaPACKTYPE).
Definition: parse.c:127
void nmea_GPVTG2info(nmeaGPVTG *pack, nmeaINFO *info)
Fill nmeaINFO structure by VTG packet data.
Definition: parse.c:531
void nmea_GPRMC2info(nmeaGPRMC *pack, nmeaINFO *info)
Fill nmeaINFO structure by RMC packet data.
Definition: parse.c:501
Summary GPS information from all parsed packets, used also for generating NMEA stream.
Definition: info.h:99
int nmea_parse_GPGGA(const char *buff, int buff_sz, nmeaGPGGA *pack)
Parse GGA packet from buffer.
Definition: parse.c:217
void nmea_GPGSV2info(nmeaGPGSV *pack, nmeaINFO *info)
Fill nmeaINFO structure by GSV packet data.
Definition: parse.c:466
int nmea_parse_GPGSV(const char *buff, int buff_sz, nmeaGPGSV *pack)
Parse GSV packet from buffer.
Definition: parse.c:283
int nmea_find_tail(const char *buff, int buff_sz, int *res_crc)
Find tail of packet ("\r\n") in buffer and check control sum (CRC).
Definition: parse.c:166
GSA packet information structure (Satellite status)
Definition: sentence.h:61
GSV packet information structure (Satellites in view)
Definition: sentence.h:75
void nmea_GPGGA2info(nmeaGPGGA *pack, nmeaINFO *info)
Fill nmeaINFO structure by GGA packet data.
Definition: parse.c:413
RMC packet information structure (Recommended Minimum sentence C)
Definition: sentence.h:87
int nmea_parse_GPGSA(const char *buff, int buff_sz, nmeaGPGSA *pack)
Parse GSA packet from buffer.
Definition: parse.c:254