#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_address_frame(
address: PamojaI2cAddress,
direction: PamojaI2cDirection,
out_frame: *mut u8,
out_frame_cap: usize,
out_len: *mut usize,
) -> PamojaStatusExpand description
Writes the address bytes a controller puts on the bus for a transfer.
§Returns
PamojaStatus::Ok on success, with *out_len set to how many bytes of
out_frame were written, or PamojaStatus::InvalidArgument if the address
is not one this SDK produced or out_frame_cap is smaller than
pamoja_i2c_address_frame_len.
§Safety
out_frame must point to at least out_frame_cap writable bytes, and
out_len must point to a writable size_t.