pub fn current_register(microamps: i32, current_lsb_microamps: u32) -> i16Expand description
Builds the current register a monitor reports for a current.
The inverse of current_microamps.
§Arguments
microamps- the current in microamps.current_lsb_microamps- the current LSB the calibration register was set for.
§Returns
The signed current register, or zero if current_lsb_microamps is zero.