Table of Contents

Struct Ina219Reading

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

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

Shunt short

The shunt-voltage register.

Bus ushort

The bus-voltage register, flags included.

Current short

The current register.

Power ushort

The power register.

CurrentLsbMicroamps uint

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

ShuntMicrovolts int

The shunt voltage in microvolts.

BusMillivolts uint

The bus voltage in millivolts.

CurrentMicroamps int

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

PowerMicrowatts uint

The power in microwatts.

MathOverflow bool

Whether 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

ushort

BusMillivolts

The bus voltage in millivolts.

public uint BusMillivolts { get; init; }

Property Value

uint

Current

The current register.

public short Current { get; init; }

Property Value

short

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

Shunt

The shunt-voltage register.

public short Shunt { get; init; }

Property Value

short

ShuntMicrovolts

The shunt voltage in microvolts.

public int ShuntMicrovolts { get; init; }

Property Value

int