mbgtools-lx  4.2.8
gpsutils.h
Go to the documentation of this file.
1 
2 /**************************************************************************
3  *
4  * $Id: gpsutils.h 1.8 2017/07/05 13:58:25 martin REL_M $
5  *
6  * Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
7  *
8  * Description:
9  * Definitions and prototypes for gpsutils.c.
10  *
11  * -----------------------------------------------------------------------
12  * $Log: gpsutils.h $
13  * Revision 1.8 2017/07/05 13:58:25 martin
14  * Include stddef.h.
15  * Updated function prototypes.
16  * Revision 1.7 2010/07/15 09:32:09 martin
17  * Use DEG character definition from pcpslstr.h.
18  * Revision 1.6 2005/02/18 10:32:33Z martin
19  * Check more predefined macros to determine if compiling for Windows.
20  * Revision 1.5 2003/02/04 09:18:48Z MARTIN
21  * Updated function prototypes.
22  * Revision 1.4 2002/12/12 16:08:11 martin
23  * Definitions for degree character.
24  * Requires mbggeo.h.
25  * Updated function prototypes.
26  * Revision 1.3 2001/02/05 09:40:42Z MARTIN
27  * New file header.
28  * Source code cleanup.
29  *
30  **************************************************************************/
31 
32 #ifndef _GPSUTILS_H
33 #define _GPSUTILS_H
34 
35 
36 /* Other headers to be included */
37 
38 #include <mbggeo.h>
39 
40 #include <stddef.h>
41 
42 
43 #ifdef _GPSUTILS
44  #define _ext
45  #define _DO_INIT
46 #else
47  #define _ext extern
48 #endif
49 
50 
51 /* Start of header body */
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 
58 
59 /* ----- function prototypes begin ----- */
60 
61 /* This section was generated automatically */
62 /* by MAKEHDR, do not remove the comments. */
63 
80  void swap_double( double *p ) ;
81 
95  void swap_eph_doubles( EPH *p ) ;
96 
110  void swap_alm_doubles( ALM *p ) ;
111 
125  void swap_utc_doubles( UTC *p ) ;
126 
140  void swap_iono_doubles( IONO *p ) ;
141 
155  void swap_pos_doubles( POS *p ) ;
156 
172  size_t snprint_dms( char *s, size_t max_len, const DMS *p, int prec ) ;
173 
187  size_t snprint_alt( char *s, size_t max_len, double alt ) ;
188 
204  size_t snprint_pos_geo( char *s, size_t max_len, const POS *p, char sep, int prec ) ;
205 
219  size_t snprint_fixed_freq( char *s, size_t max_len, FIXED_FREQ_INFO *p_ff ) ;
220 
221 
222 /* ----- function prototypes end ----- */
223 
224 #ifdef __cplusplus
225 }
226 #endif
227 
228 
229 /* End of header body */
230 
231 #undef _ext
232 #undef _DO_INIT
233 
234 #endif /* _GPSUTILS_H */
235 
size_t snprint_alt(char *s, size_t max_len, double alt)
Print the altitude part of a geo position into a string buffer.
Ephemeris parameters of one specific satellite.
Definition: gpsdefs.h:18436
A structure used to hold a fixed frequency value.
Definition: gpsdefs.h:846
GPS UTC correction parameters.
Definition: gpsdefs.h:18564
void swap_alm_doubles(ALM *p)
Swap the "double" fields in an ALM structure.
Definition: gpsutils.c:182
void swap_pos_doubles(POS *p)
Swap the "double" fields in a POS structure.
Definition: gpsutils.c:265
Geographic longitude or latitude in [degrees, minutes, seconds].
Definition: mbggeo.h:90
void swap_iono_doubles(IONO *p)
Swap the "double" fields in a IONO structure.
Definition: gpsutils.c:235
size_t snprint_dms(char *s, size_t max_len, const DMS *p, int prec)
Print the DMS part of a geo position into a string buffer.
Ionospheric correction parameters.
Definition: gpsdefs.h:18597
void swap_utc_doubles(UTC *p)
Swap the "double" fields in a UTC structure.
Definition: gpsutils.c:212
size_t snprint_pos_geo(char *s, size_t max_len, const POS *p, char sep, int prec)
Print a geo position in POS format into a string buffer.
Almanac parameters of one specific satellite.
Definition: gpsdefs.h:18486
A geographic position represented in different formats.
Definition: mbggeo.h:113
void swap_double(double *p)
Swap the bytes of a single variable of type "double".
Definition: gpsutils.c:101
void swap_eph_doubles(EPH *p)
Swap the "double" fields in an EPH structure.
Definition: gpsutils.c:138
size_t snprint_fixed_freq(char *s, size_t max_len, FIXED_FREQ_INFO *p_ff)
Print a formatted FIXED_FREQ_INFO into a string buffer.