Skip to main content

pamoja_ina226_current_register_from_shunt

Function pamoja_ina226_current_register_from_shunt 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_ina226_current_register_from_shunt( shunt: i16, calibration: u16, ) -> i16
Expand description

Computes the INA226 current register the chip derives from a shunt reading.

§Returns

The signed current register the part’s own arithmetic produces.