summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-12-15 06:53:43 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-12-15 06:53:43 +0000
commitccc954b862eb21fae5df8f08f6a06fd4cc5e06c9 (patch)
treee14e36501d98be17c5f478720f10532786df7f4e /gpsd.h
parent75060d26715ecb280deeb730e8d952b9398f5183 (diff)
downloadgpsd-ccc954b862eb21fae5df8f08f6a06fd4cc5e06c9.tar.gz
The start of a UBX driver, from Andreas Stricker. Not yet
functional but committed to allow for in-tree development.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/gpsd.h b/gpsd.h
index 50e2c369..809f4be9 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -18,7 +18,7 @@
#ifdef EARTHMATE_ENABLE
#define ZODIAC_ENABLE
#endif
-#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITALK_ENABLE)
+#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITALK_ENABLE) || defined(UBX_ENABLE)
#define BINARY_ENABLE
#endif
#if defined(TRIPMATE_ENABLE) || defined(BINARY_ENABLE)
@@ -71,6 +71,7 @@ struct gps_packet_t {
#define RTCM_PACKET 7
#define GARMIN_PACKET 8
#define NAVCOM_PACKET 9
+#define UBX_PACKET 10
unsigned int state;
size_t length;
unsigned char inbuffer[MAX_PACKET_LENGTH*2+1];
@@ -297,6 +298,26 @@ struct gps_device_t {
unsigned int Zv[ZODIAC_CHANNELS]; /* signal values (0-7) */
} zodiac;
#endif /* ZODIAC_ENABLE */
+#ifdef UBX_ENABLE
+#if 0
+ struct {
+ /* XXX insert user fields here */
+ } ubx;
+#endif
+#endif /* UBX_ENABLE */
+ /*
+ * This is not conditionalized on RTCM104_ENABLE because we need to
+ * be able to build rtcmdecode even when RTCM support is not
+ * configured in the daemon. It doesn't take up extra space.
+ */
+ struct {
+ /* ISGPS200 decoding */
+ bool locked;
+ int curr_offset;
+ isgps30bits_t curr_word;
+ isgps30bits_t buf[RTCM_WORDS_MAX];
+ unsigned int bufindex;
+ } isgps;
#endif /* BINARY_ENABLE */
} driver;
};