Skip to main content

pamoja_mavlink_known_crc_extra

Function pamoja_mavlink_known_crc_extra 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mavlink_known_crc_extra( msgid: u32, out_crc_extra: *mut u8, ) -> PamojaStatus
Expand description

Returns the CRC_EXTRA the common dialect publishes for a message id.

§Arguments

  • msgid - the message id to look up.
  • out_crc_extra - set to the seed on success.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument if out_crc_extra is null, and PamojaStatus::Unsupported if the id is outside the common dialect, which is what a PamojaMavlinkDialect table is for.

§Safety

out_crc_extra must point at writable storage for one byte.