Skip to main content

pamoja_ina226_identity

Function pamoja_ina226_identity 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ina226_identity( sensor: *const PamojaIna226, out_die_id: *mut PamojaIna226DieId, ) -> bool
Expand description

Reports the die id an INA226 driver read at initialization.

§Arguments

  • sensor - the driver.
  • out_die_id - receives the device and revision.

§Returns

true with the id in out_die_id; false before the part has been initialized, or for a null argument.

§Safety

sensor must be a live handle or null, and out_die_id a writable pointer or null.