From b4cc7d133f33f23dc6813452c971803329a25330 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 30 Jun 2008 10:14:20 +0000 Subject: RTCM104v3 packet detection. This is without checksum support, and the daemon code does not do anything with the RTCM data yet. --- packet_states.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'packet_states.h') 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 */ -- cgit v1.2.1