summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-30 18:50:41 -0700
committerGary E. Miller <gem@rellim.com>2018-10-30 18:50:41 -0700
commit2c7d87f4ef0eff8c872ffb090ed920ba6d135e58 (patch)
tree36a00f42f1b8b6b69f7b096593b81b9758dec131 /gps.h
parentdbfcabf437622979b963471b2f07b4c7b083e4dc (diff)
downloadgpsd-2c7d87f4ef0eff8c872ffb090ed920ba6d135e58.tar.gz
gps.h: Add RAW_SET flag. Now clients can tell if they get RAW data.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gps.h b/gps.h
index 46c7ef2a..548e6c82 100644
--- a/gps.h
+++ b/gps.h
@@ -2077,7 +2077,8 @@ struct gps_data_t {
#define ECEF_SET (1llu<<36)
#define VECEF_SET (1llu<<37)
#define MAGNETIC_TRACK_SET (1llu<<38)
-#define SET_HIGH_BIT 39
+#define RAW_SET (1llu<<39)
+#define SET_HIGH_BIT 40
timestamp_t online; /* NZ if GPS is on line, 0 if not.
*
* Note: gpsd clears this time when sentences
@@ -2127,7 +2128,10 @@ struct gps_data_t {
} devices;
/* pack things never reported together to reduce structure size */
-#define UNION_SET (RTCM2_SET|RTCM3_SET|SUBFRAME_SET|AIS_SET|ATTITUDE_SET|GST_SET|OSCILLATOR_SET|VERSION_SET|LOGMESSAGE_SET|ERROR_SET|TOFF_SET|PPS_SET)
+#define UNION_SET (AIS_SET|ATTITUDE_SET|ERROR_SET|GST_SET| \
+ LOGMESSAGE_SET|OSCILLATOR_SET|PPS_SET|RAW_SET| \
+ RTCM2_SET|RTCM3_SET|SUBFRAME_SET|TOFF_SET|VERSION_SET)
+
union {
/* unusual forms of sensor data that might come up the pipe */
struct rtcm2_t rtcm2;