Skip to main content

current_microamps

Function current_microamps 

Source
pub fn current_microamps(raw: i16, current_lsb_microamps: u32) -> i32
Expand description

Decodes the current register to microamps for a given current LSB.

§Arguments

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

§Returns

The current in microamps.