Struct Ina219Reading
One INA219 conversion: the four result registers as read, and what they mean.
public readonly record struct Ina219Reading : IEquatable<Ina219Reading>
- Implements
- Inherited Members
Constructors
Ina219Reading(short, ushort, short, ushort, uint, int, uint, int, uint, bool)
One INA219 conversion: the four result registers as read, and what they mean.
public Ina219Reading(short Shunt, ushort Bus, short Current, ushort Power, uint CurrentLsbMicroamps, int ShuntMicrovolts, uint BusMillivolts, int CurrentMicroamps, uint PowerMicrowatts, bool MathOverflow)
Parameters
ShuntshortThe shunt-voltage register.
BusushortThe bus-voltage register, flags included.
CurrentshortThe current register.
PowerushortThe power register.
CurrentLsbMicroampsuintThe current step the calibration programmed, in microamps per count.
ShuntMicrovoltsintThe shunt voltage in microvolts.
BusMillivoltsuintThe bus voltage in millivolts.
CurrentMicroampsintThe current in microamps; negative flows the other way through the shunt.
PowerMicrowattsuintThe power in microwatts.
MathOverflowboolWhether the part's arithmetic overflowed, leaving current and power meaningless.
Properties
Bus
The bus-voltage register, flags included.
public ushort Bus { get; init; }
Property Value
BusMillivolts
The bus voltage in millivolts.
public uint BusMillivolts { get; init; }
Property Value
Current
The current register.
public short Current { get; init; }
Property Value
CurrentLsbMicroamps
The current step the calibration programmed, in microamps per count.
public uint CurrentLsbMicroamps { get; init; }
Property Value
CurrentMicroamps
The current in microamps; negative flows the other way through the shunt.
public int CurrentMicroamps { get; init; }
Property Value
MathOverflow
Whether the part's arithmetic overflowed, leaving current and power meaningless.
public bool MathOverflow { get; init; }
Property Value
Power
The power register.
public ushort Power { get; init; }
Property Value
PowerMicrowatts
The power in microwatts.
public uint PowerMicrowatts { get; init; }
Property Value
Shunt
The shunt-voltage register.
public short Shunt { get; init; }
Property Value
ShuntMicrovolts
The shunt voltage in microvolts.
public int ShuntMicrovolts { get; init; }