Skip to main content

Module stream

Module stream 

Source
Expand description

Splits one receiver byte stream into UBX, NMEA and RTCM3 frames.

Receivers interleave protocols on one port, and a read can end anywhere, so the splitter buffers across pushes. Each candidate frame is accepted only when its checksum holds; on a mismatch, or on bytes that start no known frame, one byte is dropped and the scan resumes (resync).

Structs§

Splitter
The stream splitter.

Enums§

Frame
One whole protocol frame.

Functions§

crc24q
CRC-24Q (the RTCM3 / Qualcomm polynomial 0x1864CFB).
rtcm_msg_type
The RTCM3 message number of a whole frame (first 12 payload bits).
ubx_checksum
The UBX 8-bit Fletcher checksum over class, id, length and payload.
ubx_frame
Build a UBX frame with a correct checksum.