treewide: remove FSF address
[osmocom-bb.git] / src / host / layer23 / include / osmocom / bb / common / gps.h
blobe7ce915cb2016c7df11a0df39556b4f2fd8f075f
1 /*
2 * (C) 2010 by Andreas Eversberg <jolly@eversberg.eu>
4 * All Rights Reserved
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 enum {
19 GPS_TYPE_UNDEF,
20 GPS_TYPE_GPSD,
21 GPS_TYPE_SERIAL
24 struct osmo_gps {
25 /* GPS device */
26 uint8_t enable;
27 uint8_t gps_type;
29 #ifdef _HAVE_GPSD
30 char gpsd_host[32];
31 char gpsd_port[6];
32 #endif
34 char device[32];
35 uint32_t baud;
37 /* current data */
38 uint8_t valid; /* we have a fix */
39 time_t gmt; /* GMT time when position was received */
40 double latitude, longitude;
43 extern struct osmo_gps g;
45 int osmo_gps_open(void);
46 void osmo_gps_close(void);
47 void osmo_gps_init(void);