Skip to main content

pamoja_ina219_gain_range_millivolts

Function pamoja_ina219_gain_range_millivolts 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_ina219_gain_range_millivolts(code: u8) -> u16
Expand description

Returns the shunt-voltage range an INA219 gain code selects.

§Arguments

  • code - the gain code, 0..=3.

§Returns

The range in millivolts either side of zero.