#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_part_load(
part: *mut PamojaI2cPart,
first: u8,
bytes: *const u8,
len: usize,
) -> PamojaStatusExpand description
Puts bytes in a part whose registers are a byte wide, from a register on. Past the last register they wrap to the first.
§Arguments
part- the part.first- the register the bytes start at.bytes- what to put there.len- how many bytes.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null part, a null bytes
with a nonzero length, or a part of another kind.
§Safety
part must be a live handle or null, and bytes must point to len readable bytes.