Skip to main content

current_amps_f32

Function current_amps_f32 

Source
pub fn current_amps_f32(raw: i16, current_lsb_microamps: u32) -> f32
Expand description

Decodes the current register to amps as a float.

§Arguments

  • raw - the signed current register.
  • current_lsb_microamps - the current LSB the calibration register was set for.

§Returns

The current in amps.