Struct Ina226Reading
One INA226 conversion: the four result registers as read, and what they mean.
public readonly record struct Ina226Reading : IEquatable<Ina226Reading>
- Implements
- Inherited Members
Constructors
Ina226Reading(short, ushort, short, ushort, uint, int, float, uint, float, int, float, uint, float, bool)
One INA226 conversion: the four result registers as read, and what they mean.
public Ina226Reading(short Shunt, ushort Bus, short Current, ushort Power, uint CurrentLsbMicroamps, int ShuntNanovolts, float ShuntMillivolts, uint BusMicrovolts, float BusVolts, int CurrentMicroamps, float CurrentAmps, uint PowerMicrowatts, float PowerWatts, bool MathOverflow)
Parameters
ShuntshortThe shunt-voltage register.
BusushortThe bus-voltage register.
CurrentshortThe current register.
PowerushortThe power register.
CurrentLsbMicroampsuintThe current step the calibration programmed, in microamps per count.
ShuntNanovoltsintThe shunt voltage in nanovolts.
ShuntMillivoltsfloatThe shunt voltage in millivolts.
BusMicrovoltsuintThe bus voltage in microvolts.
BusVoltsfloatThe bus voltage in volts.
CurrentMicroampsintThe current in microamps; negative flows the other way through the shunt.
CurrentAmpsfloatThe current in amps.
PowerMicrowattsuintThe power in microwatts.
PowerWattsfloatThe power in watts.
MathOverflowboolWhether the part's arithmetic overflowed, leaving current and power meaningless.
Properties
Bus
The bus-voltage register.
public ushort Bus { get; init; }
Property Value
BusMicrovolts
The bus voltage in microvolts.
public uint BusMicrovolts { get; init; }
Property Value
BusVolts
The bus voltage in volts.
public float BusVolts { get; init; }
Property Value
Current
The current register.
public short Current { get; init; }
Property Value
CurrentAmps
The current in amps.
public float CurrentAmps { 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
PowerWatts
The power in watts.
public float PowerWatts { get; init; }
Property Value
Shunt
The shunt-voltage register.
public short Shunt { get; init; }
Property Value
ShuntMillivolts
The shunt voltage in millivolts.
public float ShuntMillivolts { get; init; }
Property Value
ShuntNanovolts
The shunt voltage in nanovolts.
public int ShuntNanovolts { get; init; }