Skip to main content

pamoja_ina219_power_register

Function pamoja_ina219_power_register 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_ina219_power_register( microwatts: u32, current_lsb_microamps: u32, ) -> u16
Expand description

Builds the INA219 power register a monitor reports for a power.

ยงReturns

The power register, or zero if current_lsb_microamps is zero.