Skip to main content

shunt_register

Function shunt_register 

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

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

The inverse of shunt_nanovolts, so a node can be written and tested against what a monitor sends without one attached. The same value serves as the alert limit for the shunt over- and under-limit functions.

§Arguments

  • nanovolts - the shunt voltage in nanovolts.

§Returns

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