|
QGIS API Documentation
master-6227475
|
00001 /* 00002 * Copyright Tim (xtimor@gmail.com) 00003 * 00004 * NMEA library is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/> 00016 */ 00017 /* 00018 * 00019 * NMEA library 00020 * URL: http://nmea.sourceforge.net 00021 * Author: Tim (xtimor@gmail.com) 00022 * Licence: http://www.gnu.org/licenses/lgpl.html 00023 * $Id: parse.h 4 2007-08-27 13:11:03Z xtimor $ 00024 * 00025 */ 00026 00027 #ifndef __NMEA_PARSE_H__ 00028 #define __NMEA_PARSE_H__ 00029 00030 #include "sentence.h" 00031 00032 #ifdef __cplusplus 00033 extern "C" 00034 { 00035 #endif 00036 00037 int nmea_pack_type( const char *buff, int buff_sz ); 00038 int nmea_find_tail( const char *buff, int buff_sz, int *res_crc ); 00039 00040 int nmea_parse_GPGGA( const char *buff, int buff_sz, nmeaGPGGA *pack ); 00041 int nmea_parse_GPGSA( const char *buff, int buff_sz, nmeaGPGSA *pack ); 00042 int nmea_parse_GPGSV( const char *buff, int buff_sz, nmeaGPGSV *pack ); 00043 int nmea_parse_GPRMC( const char *buff, int buff_sz, nmeaGPRMC *pack ); 00044 int nmea_parse_GPVTG( const char *buff, int buff_sz, nmeaGPVTG *pack ); 00045 00046 void nmea_GPGGA2info( nmeaGPGGA *pack, nmeaINFO *info ); 00047 void nmea_GPGSA2info( nmeaGPGSA *pack, nmeaINFO *info ); 00048 void nmea_GPGSV2info( nmeaGPGSV *pack, nmeaINFO *info ); 00049 void nmea_GPRMC2info( nmeaGPRMC *pack, nmeaINFO *info ); 00050 void nmea_GPVTG2info( nmeaGPVTG *pack, nmeaINFO *info ); 00051 00052 #ifdef __cplusplus 00053 } 00054 #endif 00055 00056 #endif /* __NMEA_PARSE_H__ */