Skip to main content

shunt_register

Function shunt_register 

Source
pub fn shunt_register(microvolts: i32) -> i16
Expand description

Builds the shunt voltage register a monitor reports for a shunt voltage.

The inverse of shunt_microvolts, so a node can be written and tested against what a monitor sends without one attached.

§Arguments

  • microvolts - the shunt voltage in microvolts.

§Returns

The signed shunt voltage register, at 10 µV per count.