Struct Ina219Config
An INA219 configuration register, field by field.
public readonly record struct Ina219Config : IEquatable<Ina219Config>
- Implements
- Inherited Members
Constructors
Ina219Config(BusRange, Gain, Adc, Adc, Mode, bool)
An INA219 configuration register, field by field.
public Ina219Config(Ina219.BusRange BusRange, Ina219.Gain Gain, Ina219.Adc BusAdc, Ina219.Adc ShuntAdc, Ina219.Mode Mode, bool Reset = false)
Parameters
BusRangeIna219.BusRangeThe bus-voltage range.
GainIna219.GainThe shunt gain, which sets the shunt-voltage range.
BusAdcIna219.AdcThe bus converter's resolution or averaging.
ShuntAdcIna219.AdcThe shunt converter's resolution or averaging.
ModeIna219.ModeThe operating mode.
ResetboolWhether writing the register resets the part.
Properties
BusAdc
The bus converter's resolution or averaging.
public Ina219.Adc BusAdc { get; init; }
Property Value
BusRange
The bus-voltage range.
public Ina219.BusRange BusRange { get; init; }
Property Value
Gain
The shunt gain, which sets the shunt-voltage range.
public Ina219.Gain Gain { get; init; }
Property Value
Mode
The operating mode.
public Ina219.Mode Mode { get; init; }
Property Value
PowerOn
The power-on configuration: the 32 V range, gain 1/8, 12-bit conversions, shunt and bus continuous.
public static Ina219Config PowerOn { get; }
Property Value
Reset
Whether writing the register resets the part.
public bool Reset { get; init; }
Property Value
ShuntAdc
The shunt converter's resolution or averaging.
public Ina219.Adc ShuntAdc { get; init; }