Skip to main content

pamoja_ina226_identify

Function pamoja_ina226_identify 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ina226_identify( manufacturer_id: u16, die_id: u16, out_die_id: *mut PamojaIna226DieId, ) -> PamojaStatus
Expand description

Checks that a pair of identification registers belongs to an INA226.

§Returns

PamojaStatus::Ok on success, with *out_die_id filled in, or PamojaStatus::Codec if either register carries something other than the values the datasheet fixes, which means a different part, or nothing at all, answered at that address.

§Safety

out_die_id must point to a writable PamojaIna226DieId.