summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-08-10 21:56:59 +0200
committerAndreas.Eversberg2010-08-10 21:56:59 +0200
commitcb73be0d0cfa6f5f2c8b437fa3ceb80909199302 (patch)
tree2f35b914eeda3175520d8ebf01744737e8242439 /src/host/layer23/include/osmocom/bb
parentAdded sequence number to L3 messages (see GSM 04.08 Clause 3.1.4.3) (diff)
downloadosmocom-cb73be0d0cfa6f5f2c8b437fa3ceb80909199302.tar.gz
osmocom-cb73be0d0cfa6f5f2c8b437fa3ceb80909199302.tar.xz
osmocom-cb73be0d0cfa6f5f2c8b437fa3ceb80909199302.zip
Added support for NMEA GPS receiver
This early support does not use the received postion, it just dumps it. Later it can be used to set clock of the phone. Also it can be used to calculate the location of a BTS.
Diffstat (limited to 'src/host/layer23/include/osmocom/bb')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gps.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gps.h b/src/host/layer23/include/osmocom/bb/mobile/gps.h
new file mode 100644
index 0000000..a62eab7
--- /dev/null
+++ b/src/host/layer23/include/osmocom/bb/mobile/gps.h
@@ -0,0 +1,33 @@
+/*
+ * (C) 2010 by Andreas Eversberg <jolly@eversberg.eu>
+ *
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+struct gps {
+ uint8_t enable;
+ char device[32];
+ uint32_t baud;
+};
+
+extern struct gps gps;
+
+int gps_open(void);
+void gps_close(void);
+
+