Skip to main content

Crate rtcm3

Crate rtcm3 

Source
Expand description

A no_std, allocation-free parser and encoder for RTCM3 GNSS RTK correction messages, the binary wire format used to distribute differential GNSS/RTK corrections between base stations, NTRIP casters, and rover receivers.

§Layering

  • frame parses/encodes the raw preamble/length/CRC-24Q framing.
  • bits reads and writes arbitrary-width, MSB-first fields against the frame’s payload bytes.
  • crc is RTCM3’s CRC-24Q checksum.
  • message decodes/encodes a frame’s payload into a typed Rtcm3Message, one variant per supported message type (DF002).

§No allocation

Nothing in this crate uses alloc.

Re-exports§

pub use error::Rtcm3Error;
pub use frame::Frame;
pub use message::Rtcm3Message;

Modules§

bits
MSB-first bit-level codec for RTCM3 message payloads.
crc
RTCM3’s CRC-24Q checksum (the Qualcomm CRC-24 variant, also used by FlexRay and others), computed over the preamble, length field, and payload of a frame.
error
Error types for every layer of the decode/encode pipeline.
frame
Raw RTCM3 frame parsing and encoding.
message
Message-type-dispatched (DF002) decoding/encoding of a frame’s payload into a typed Rtcm3Message.

Functions§

decode
Parses and decodes a single RTCM3 frame from the start of buf.
encode
Encodes a typed message into a full frame in buf, returning the number of bytes written.