Table of Contents

Struct Ina226Reading

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

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

Shunt short

The shunt-voltage register.

Bus ushort

The bus-voltage register.

Current short

The current register.

Power ushort

The power register.

CurrentLsbMicroamps uint

The current step the calibration programmed, in microamps per count.

ShuntNanovolts int

The shunt voltage in nanovolts.

ShuntMillivolts float

The shunt voltage in millivolts.

BusMicrovolts uint

The bus voltage in microvolts.

BusVolts float

The bus voltage in volts.

CurrentMicroamps int

The current in microamps; negative flows the other way through the shunt.

CurrentAmps float

The current in amps.

PowerMicrowatts uint

The power in microwatts.

PowerWatts float

The power in watts.

MathOverflow bool

Whether the part's arithmetic overflowed, leaving current and power meaningless.

Properties

Bus

The bus-voltage register.

public ushort Bus { get; init; }

Property Value

ushort

BusMicrovolts

The bus voltage in microvolts.

public uint BusMicrovolts { get; init; }

Property Value

uint

BusVolts

The bus voltage in volts.

public float BusVolts { get; init; }

Property Value

float

Current

The current register.

public short Current { get; init; }

Property Value

short

CurrentAmps

The current in amps.

public float CurrentAmps { get; init; }

Property Value

float

CurrentLsbMicroamps

The current step the calibration programmed, in microamps per count.

public uint CurrentLsbMicroamps { get; init; }

Property Value

uint

CurrentMicroamps

The current in microamps; negative flows the other way through the shunt.

public int CurrentMicroamps { get; init; }

Property Value

int

MathOverflow

Whether the part's arithmetic overflowed, leaving current and power meaningless.

public bool MathOverflow { get; init; }

Property Value

bool

Power

The power register.

public ushort Power { get; init; }

Property Value

ushort

PowerMicrowatts

The power in microwatts.

public uint PowerMicrowatts { get; init; }

Property Value

uint

PowerWatts

The power in watts.

public float PowerWatts { get; init; }

Property Value

float

Shunt

The shunt-voltage register.

public short Shunt { get; init; }

Property Value

short

ShuntMillivolts

The shunt voltage in millivolts.

public float ShuntMillivolts { get; init; }

Property Value

float

ShuntNanovolts

The shunt voltage in nanovolts.

public int ShuntNanovolts { get; init; }

Property Value

int