summaryrefslogtreecommitdiff
path: root/packet_states.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-06-30 10:14:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-06-30 10:14:20 +0000
commitb4cc7d133f33f23dc6813452c971803329a25330 (patch)
tree23aa227f567609015a5779f0dce05aad85ddf9ed /packet_states.h
parent8fc264c45005872f6a2fbf9365378b89c8a8b9e6 (diff)
downloadgpsd-b4cc7d133f33f23dc6813452c971803329a25330.tar.gz
RTCM104v3 packet detection.
This is without checksum support, and the daemon code does not do anything with the RTCM data yet.
Diffstat (limited to 'packet_states.h')
-rw-r--r--packet_states.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/packet_states.h b/packet_states.h
index 0070b42b..8d86ccc9 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -126,10 +126,17 @@
GARMIN_RECOGNIZED, /* found end of Garmin packet */
#endif /* TSIP_ENABLE GARMIN_ENABLE */
-#ifdef RTCM104_ENABLE
+#ifdef RTCM104V2_ENABLE
RTCM2_SYNC_STATE, /* we have sync lock */
RTCM2_SKIP_STATE, /* we have sync lock, but this character is bad */
RTCM2_RECOGNIZED, /* we have an RTCM packet */
-#endif /* RTCM104_ENABLE */
+#endif /* RTCM104V2_ENABLE */
+
+#ifdef RTCM104V3_ENABLE
+ RTCM3_LEADER_1, /* constant leader byte found */
+ RTCM3_LEADER_2, /* second leader byte found (high 6 bits zero) */
+ RTCM3_PAYLOAD, /* gathering payload */
+ RTCM3_RECOGNIZED, /* RTCM3 packet recognized */
+#endif
/* end of packet_states.h */