Skip to main content

crc_extra

Function crc_extra 

Source
pub fn crc_extra(msgid: u32) -> Option<u8>
Expand description

Returns the CRC_EXTRA for a common-dialect message id, if known.

A Parser or Frame::parse_with uses this to validate the checksum of a frame off the wire, so traffic from a real autopilot is checked even for messages this crate does not type.

§Arguments

  • msgid - the message id to look up.

§Returns

The CRC_EXTRA seed, or None if the id is not in the table.