diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-06-30 10:14:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-06-30 10:14:20 +0000 |
commit | b4cc7d133f33f23dc6813452c971803329a25330 (patch) | |
tree | 23aa227f567609015a5779f0dce05aad85ddf9ed /packet_states.h | |
parent | 8fc264c45005872f6a2fbf9365378b89c8a8b9e6 (diff) | |
download | gpsd-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.h | 11 |
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 */ |