Skip to main content

pamoja_ina226_power_register

Function pamoja_ina226_power_register 

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

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

ยงReturns

The register value, or zero if current_lsb_microamps is zero.