#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_part_read(
part: *const PamojaI2cPart,
first: u8,
out: *mut u8,
len: usize,
) -> PamojaStatusExpand description
Reads consecutive registers of a part whose registers are a byte wide, from one register on.
§Arguments
part- the part.first- the first register.out- receives one byte per register. Past the last register it wraps to the first.len- how many registers to read.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument or a part of
another kind.
§Safety
part must be a live handle or null, and out must point to len writable bytes.