Skip to main content

pamoja_i2c_bus_remaining

Function pamoja_i2c_bus_remaining 

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

Reports how many steps a scripted bus has left.

§Arguments

  • bus - the bus.
  • out_remaining - receives the steps not yet reached.

§Returns

true with the count in out_remaining for a scripted bus; false for any other bus, a null bus, or a null out_remaining.

§Safety

bus must be a live handle or null, and out_remaining a writable pointer or null.