diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-16 01:42:54 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-16 01:42:54 +0000 |
commit | 75f65293a01a6a79cf34d206f36e5d667c0f9940 (patch) | |
tree | 89309c222a5ad8111398259ecd04d2009dc5a72b /packet_states.h | |
parent | 1e2d6d30ec9ccfe8b0ba51e7b0ef866d8c30f70f (diff) | |
download | gpsd-75f65293a01a6a79cf34d206f36e5d667c0f9940.tar.gz |
Rough oncore driver.
Doesn't do anything useful, but will be handy for people with actual
hardware who can hack on the decoders. Doesn't break the regression
tests either.
Diffstat (limited to 'packet_states.h')
-rw-r--r-- | packet_states.h | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/packet_states.h b/packet_states.h index 778770e8..72a57fa6 100644 --- a/packet_states.h +++ b/packet_states.h @@ -65,9 +65,10 @@ ZODIAC_RECOGNIZED, /* found end of the Zodiac packet */ #endif /* ZODIAC_ENABLE */ -#if defined(TNT_ENABLE) || defined(GARMINTXT_ENABLE) - GTXT_LEADER, /* saw True North status leader '@' */ - /* Garmin Simple Text starts with @ leader */ +#if defined(TNT_ENABLE) || defined(GARMINTXT_ENABLE) || defined(ONCORE_ENABLE) + AT1_LEADER, /* saw True North status leader '@' */ + /* Garmin Simple Text starts with @ leader */ + /* Oncore starts with @ leader */ GTXT_RECOGNIZED, /* */ #endif @@ -114,6 +115,26 @@ UBX_RECOGNIZED, /* this is also UBX_CHECKSUM_B */ #endif +#ifdef SUPERSTAR2_ENABLE + SUPERSTAR2_LEADER, /* leading SOH */ + SUPERSTAR2_ID1, /* message type */ + SUPERSTAR2_ID2, /* message type xor 0xff */ + SUPERSTAR2_PAYLOAD, /* length of the actual packet data */ + SUPERSTAR2_CKSUM1, + SUPERSTAR2_CKSUM2, + SUPERSTAR2_RECOGNIZED, +#endif + +#ifdef ONCORE_ENABLE + ONCORE_AT2, /* second @ */ + ONCORE_ID1, /* first character of command type */ + ONCORE_ID2, /* second character of command type */ + ONCORE_PAYLOAD, + ONCORE_CR, /* closing CR */ + ONCORE_RECOGNIZED, /* closing LF */ +#endif + + /* * Packet formats without checksums start here. We list them last so * that if a format with a conflicting structure *and* a checksum can @@ -128,16 +149,6 @@ GARMIN_RECOGNIZED, /* found end of Garmin packet */ #endif /* TSIP_ENABLE GARMIN_ENABLE */ -#ifdef SUPERSTAR2_ENABLE - SUPERSTAR2_LEADER, /* leading SOH */ - SUPERSTAR2_ID1, /* message type */ - SUPERSTAR2_ID2, /* message type xor 0xff */ - SUPERSTAR2_PAYLOAD, /* length of the actual packet data */ - SUPERSTAR2_CKSUM1, - SUPERSTAR2_CKSUM2, - SUPERSTAR2_RECOGNIZED, -#endif - #ifdef RTCM104V2_ENABLE RTCM2_SYNC_STATE, /* we have sync lock */ RTCM2_SKIP_STATE, /* we have sync lock, but this character is bad */ |