Skip to main content

shunt_millivolts_f32

Function shunt_millivolts_f32 

Source
pub fn shunt_millivolts_f32(raw: i16) -> f32
Expand description

Decodes the shunt voltage register to millivolts as a float.

§Arguments

  • raw - the signed shunt voltage register.

§Returns

The shunt voltage in millivolts.