Crate ina3221

Crate ina3221 

Source
Expand description

Embedded driver for the INA3221 current and power monitor

Provides a platform agnostic driver for the INA3221 triple-channel current and power monitor that can be used with any embedded-hal v1.0 blocking I2C implementation.

Modules§

prelude

Structs§

Current
Represents a current value, stored as whole microamps (μA). This value can only be positive.
INA3221
Device driver for the INA3221 current and power monitor
MaskEnableFlags
Represents status and configuration flags for alerts
Resistance
Represents a resistance value, stored as whole milliohms (mΩ). This value can only be positive.
Voltage
Represents a voltage value, stored as whole microvolts (μV). This value can be positive or negative.

Enums§

OperatingMode
Represents the operating mode of the INA3221

Traits§

CurrentExtF32
Extension trait for simple short-hands for creating Current values from f32 values.
CurrentExtU32
Extension trait for simple short-hands for creating Current values from u32 values.
ResistanceExtF32
Extension trait for simple short-hands for creating Resistance values from f32 values.
ResistanceExtU32
Extension trait for simple short-hands for creating Resistance values from u32 values.
VoltageExtF32
Extension trait for simple short-hands for creating Voltage values from f32 values.
VoltageExtI32
Extension trait for simple short-hands for creating Voltage values from i32 values.