ConstConverts a raw bus-voltage register to millivolts.
The register value.
The bus voltage.
Builds the bus-voltage register a monitor reports for a bus voltage.
The bus voltage in millivolts.
The register value, with the conversion-ready flag set.
Computes the calibration register for a shunt and current resolution.
The microamps per count the current register should carry.
The shunt resistor value.
The register value to write.
Reports whether a bus-voltage register says a conversion is ready.
The register value.
Whether the conversion-ready flag is set.
Converts a raw current register to microamps.
The signed register value.
The resolution the calibration selected.
The current.
Builds the current register a monitor reports for a current.
The current in microamps.
The current LSB the calibration was set for.
The signed register value.
Reports whether a bus-voltage register flags a math overflow.
The register value.
Whether the current and power readings are meaningless, which means the calibration needs revisiting.
Returns the smallest current resolution that still covers a maximum.
The largest current the application measures.
The minimum current LSB in microamps.
Converts a raw power register to microwatts.
The register value.
The resolution the calibration selected.
The power. The power LSB is fixed at twenty times the current LSB.
Builds the power register a monitor reports for a power.
The power in microwatts.
The current LSB the calibration was set for.
The register value.
Builds the shunt-voltage register a monitor reports for a shunt voltage.
The inverse of shuntMicrovolts, so a node can be written and tested against what a monitor sends without one attached.
The shunt voltage in microvolts.
The signed register value, at 10 uV per count.
A TI INA219 current, voltage, and power monitor.