Skip to main content

pamoja_ina219_calibration_word

Function pamoja_ina219_calibration_word 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ina219_calibration_word( sensor: *const PamojaIna219, ) -> u16
Expand description

Returns the calibration word an INA219 driver programs.

§Arguments

  • sensor - the driver.

§Returns

The word, from the shunt and the current step by the datasheet’s equation, or 0 for a null driver.

§Safety

sensor must be a live handle or null.