#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_bus_part(
bus: *const PamojaI2cBus,
address: u8,
) -> *mut PamojaI2cPartExpand description
Copies what a simulated part holds now, with whatever drivers have written to it.
§Arguments
bus- the bus.address- the part’s address.
§Returns
A new part of the kind that answers at the address, which pamoja_i2c_part_kind names
and the caller releases with pamoja_i2c_part_free, or null when the bus is not
simulated, holds no part at the address, or is null.
§Safety
bus must be a live handle or null.