QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
info.h
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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: info.h 10 2007-11-15 14:50:15Z xtimor $
24  *
25  */
26 
29 #ifndef __NMEA_INFO_H__
30 #define __NMEA_INFO_H__
31 
32 #include "nmeatime.h"
33 
34 #define NMEA_SIG_BAD (0)
35 #define NMEA_SIG_LOW (1)
36 #define NMEA_SIG_MID (2)
37 #define NMEA_SIG_HIGH (3)
38 
39 #define NMEA_FIX_BAD (1)
40 #define NMEA_FIX_2D (2)
41 #define NMEA_FIX_3D (3)
42 
43 #define NMEA_MAXSAT (12)
44 #define NMEA_SATINPACK (4)
45 #define NMEA_NSATPACKS (NMEA_MAXSAT / NMEA_SATINPACK)
46 
47 #define NMEA_DEF_LAT (5001.2621)
48 #define NMEA_DEF_LON (3613.0595)
49 
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54 
58  typedef struct _nmeaPOS
59  {
60  double lat;
61  double lon;
63  } nmeaPOS;
64 
70  typedef struct _nmeaSATELLITE
71  {
72  int id;
73  int in_use;
74  int elv;
75  int azimuth;
76  int sig;
78  } nmeaSATELLITE;
79 
85  typedef struct _nmeaSATINFO
86  {
87  int inuse;
88  int inview;
91  } nmeaSATINFO;
92 
99  typedef struct _nmeaINFO
100  {
101  int smask;
105  int sig;
106  int fix;
108  double PDOP;
109  double HDOP;
110  double VDOP;
112  double lat;
113  double lon;
114  double elv;
115  double speed;
116  double direction;
117  double declination;
121  } nmeaINFO;
122 
123  void nmea_zero_INFO( nmeaINFO *info );
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif /* __NMEA_INFO_H__ */