#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_bus_attach(
bus: *const PamojaI2cBus,
part: *const PamojaI2cPart,
) -> PamojaStatusExpand description
Puts a copy of a part of any kind on a simulated bus, in place of any part already at its address.
§Arguments
bus- the bus.part- the part to copy onto it; the caller still owns the handle.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument or a bus
that is not simulated.
§Safety
bus and part must be live handles or null.