Expand description
This is a platform agnostic Rust driver for the INA229
, an SPI output
current/voltage/power monitor with alerts, using the embedded-hal
traits.
This driver allows you to:
- Callibrate the device. See
callibrate()
. - Read the shunt voltage. See
shunt_voltage_nanovolts()
. - Read the bus voltage. See
bus_voltage_microvolts()
. - Read the current. See
current_amps()
. - Read the power. See
power_watts()
.
The device
The INA229-Q1 is an ultra-precise digital power monitor with a 20-bit delta-sigma ADC specifically designed for current-sensing applications. The device can measure a full-scale differential input of ±163.84 mV or ±40.96 mV across a resistive shunt sense element with common-mode voltage support from –0.3 V to +85 V.
Datasheet:
Structs
Configuration register contents.
INA229 voltage/current/power monitor
Enums
Error type for INA229 commands.
Constants
The SPI mode for the INA229.