Skip to main content

pamoja_mavlink_dialect_crc_extra

Function pamoja_mavlink_dialect_crc_extra 

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

Returns the seed a dialect resolves a message id to.

§Arguments

  • dialect - the table to search, or null for the common dialect alone.
  • 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 neither the table nor the common dialect knows the id.

§Safety

dialect must be a live dialect handle or null, and out_crc_extra must point at writable storage for one byte.