Skip to main content

pamoja_i2c_bus_transfers

Function pamoja_i2c_bus_transfers 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_i2c_bus_transfers( bus: *const PamojaI2cBus, ) -> usize
Expand description

Returns how many transfers have been made on a bus, by the caller and every driver on it, including any that failed.

§Arguments

  • bus - the bus.

§Returns

The count, or 0 for a null bus.

§Safety

bus must be a live handle or null.