summaryrefslogtreecommitdiff
path: root/mbglib/common/gpsutils.h
blob: 5876ffaa17ce722173a07902407d0c2127853018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

/**************************************************************************
 *
 *  $Id: gpsutils.h 1.4.1.1 2003/05/15 09:40:25 martin REL_M $
 *
 *  Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
 *
 *  Description:
 *    Definitions and prototypes for gpsutils.c.
 *
 * -----------------------------------------------------------------------
 *  $Log: gpsutils.h $
 *  Revision 1.4.1.1  2003/05/15 09:40:25  martin
 *  Changed degree string/char for QNX.
 *  Revision 1.4  2002/12/12 16:08:11  martin
 *  Definitions for degree character.
 *  Requires mbggeo.h.
 *  Updated function prototypes.
 *  Revision 1.3  2001/02/05 09:40:42Z  MARTIN
 *  New file header.
 *  Source code cleanup.
 *
 **************************************************************************/

#ifndef _GPSUTILS_H
#define _GPSUTILS_H


/* Other headers to be included */

#include <mbggeo.h>


#ifdef _GPSUTILS
 #define _ext
 #define _DO_INIT
#else
 #define _ext extern
#endif


/* Start of header body */

#define ANSI_C_DEGREE     '°'    // single char
#define ANSI_S_DEGREE     "°"    // string

#if defined( _Windows ) || defined( __linux ) || defined( __QNX__ )
  #define C_DEGREE  ANSI_C_DEGREE
  #define S_DEGREE  ANSI_S_DEGREE
#else
  #define C_DEGREE  'ø'
  #define S_DEGREE  "ø"
#endif


/* function prototypes: */

#ifdef __cplusplus
extern "C" {
#endif

/* ----- function prototypes begin ----- */

/* This section was generated automatically */
/* by MAKEHDR, do not remove the comments. */

 void swap_double( double *d ) ;
 void swap_eph_doubles( EPH *ephp ) ;
 void swap_alm_doubles( ALM *almp ) ;
 void swap_utc_doubles( UTC *utcp ) ;
 void swap_iono_doubles( IONO *ionop ) ;
 void swap_pos_doubles( POS *posp ) ;
 void sprint_dms( char *s, DMS *pdms, int prec ) ;
 void sprint_pos_geo( char *s, POS *ppos, const char *sep, int prec ) ;

/* ----- function prototypes end ----- */

#ifdef __cplusplus
}
#endif


/* End of header body */

#undef _ext
#undef _DO_INIT

#endif  /* _GPSUTILS_H */