summaryrefslogtreecommitdiff
path: root/packet_states.h
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@users.berlios.de>2010-12-11 22:35:45 -0800
committerChris Kuethe <ckuethe@users.berlios.de>2010-12-11 22:35:45 -0800
commit0c4a5a791a4a6f0cab765cc53fc8556834c975fd (patch)
tree0ace1e52d84847ae811b9c93304c7781a9bcd674 /packet_states.h
parentf520c08d5913c74a9f9d8fbdec9d26d33e9aeb27 (diff)
downloadgpsd-0c4a5a791a4a6f0cab765cc53fc8556834c975fd.tar.gz
Wow, I totally baked the geostar import...
Diffstat (limited to 'packet_states.h')
-rw-r--r--packet_states.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/packet_states.h b/packet_states.h
index 9f206b9a..2d426444 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -139,6 +139,21 @@
ONCORE_RECOGNIZED, /* closing LF */
#endif
+#ifdef GEOSTAR_ENABLE
+ GEOSTAR_LEADER_1, /* first constant leader byte found */
+ GEOSTAR_LEADER_2, /* second constant leader byte found */
+ GEOSTAR_LEADER_3, /* third constant leader byte found */
+ GEOSTAR_LEADER_4, /* forth constant leader byte found */
+ GEOSTAR_MESSAGE_ID_1, /* first message id read */
+ GEOSTAR_MESSAGE_ID_2, /* second message id read */
+ GEOSTAR_LENGTH_1, /* first length byte read */
+ GEOSTAR_LENGTH_2, /* second length byte read */
+ GEOSTAR_PAYLOAD, /* payload eating */
+ GEOSTAR_CHECKSUM_A, /* checksum A byte (xor checksum) */
+ GEOSTAR_CHECKSUM_B, /* checksum B byte (xor checksum) */
+ GEOSTAR_CHECKSUM_C, /* checksum C byte (xor checksum) */
+ GEOSTAR_RECOGNIZED, /* this is also GEOSTAR_CHECKSUM_D */
+#endif
/*
* Packet formats without checksums start here. We list them last so