Skip to main content

pamoja_i2c_bus_simulated

Function pamoja_i2c_bus_simulated 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_i2c_bus_simulated() -> *mut PamojaI2cBus
Expand description

Creates a simulated bus with no parts on it yet; pamoja_i2c_bus_attach puts them on.

ยงReturns

The bus, which the caller releases with pamoja_i2c_bus_free. Until a part is attached every transfer finds nothing at its address.