summaryrefslogtreecommitdiff
path: root/packet_states.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-03-28 21:19:58 -0700
committerGary E. Miller <gem@rellim.com>2016-03-28 21:22:51 -0700
commit82f21c504cbb37198a85e4aae3cb5da7203c72a5 (patch)
tree3d2ef31cc60811c9d2c7cd92ecb76b84a2ce09f2 /packet_states.h
parent42b1ad8bea67471d07d06754f43729788d6a8f03 (diff)
downloadgpsd-82f21c504cbb37198a85e4aae3cb5da7203c72a5.tar.gz
Add packet states for Skytraq binary protocol.
Diffstat (limited to 'packet_states.h')
-rw-r--r--packet_states.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/packet_states.h b/packet_states.h
index d08b464d..2254f412 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -67,6 +67,20 @@
SIRF_RECOGNIZED, /* saw second byte of SiRF trailer */
#endif /* SIRF_ENABLE */
+#ifdef SKYTRAQ_ENABLE
+ /* <0xA0,0xA1><Len><Message ID><Message Body><csum><0x0D,0x0A> */
+ /* Len is of Message ID and Message Body */
+ SKY_EXPECTED, /* expecting Skytraq packet */
+ SKY_LEADER_1, /* saw leading 0xA0 */
+ SKY_LEADER_2, /* saw leading 0xA1 */
+ SKY_LENGTH_1, /* saw first byte of packet length */
+ SKY_LENGTH_2, /* saw second byte of packet length */
+ SKY_MID, /* saw message one byte ID */
+ SKY_PAYLOAD, /* we're in a Skytraq payload */
+ SKY_CSUM, /* saw Skytraq checksum */
+ SKY_RECOGNIZED, /* found end of the Skytraq packet */
+#endif /* SKYTRAQ_ENABLE */
+
#ifdef ZODIAC_ENABLE
ZODIAC_EXPECTED, /* expecting Zodiac packet */
ZODIAC_LEADER_1, /* saw leading 0xff */