#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_raw_message_to_frame(
header: PamojaMavlinkHeader,
msgid: u32,
crc_extra: u8,
payload: *const u8,
payload_len: usize,
out_frame: *mut *mut PamojaMavlinkFrame,
) -> PamojaStatusExpand description
Assembles a v2 frame carrying a message this build does not type.
This is the escape hatch a private dialect needs: supply the id, the payload, and the seed, and the frame is built and checked like any other.
§Arguments
header- the addressing fields to stamp on the frame.msgid- the message id.crc_extra- the seed for this message id.payload- the message payload.payload_len- how many bytespayloadholds.out_frame- set to the frame handle on success, and to null otherwise.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if out_frame is null or the
payload does not fit a frame.
§Safety
payload must point to payload_len readable bytes when the length is
non-zero, and out_frame must point at writable storage for one pointer.