Table of Contents

Struct Ina219Config

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

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

BusRange Ina219.BusRange

The bus-voltage range.

Gain Ina219.Gain

The shunt gain, which sets the shunt-voltage range.

BusAdc Ina219.Adc

The bus converter's resolution or averaging.

ShuntAdc Ina219.Adc

The shunt converter's resolution or averaging.

Mode Ina219.Mode

The operating mode.

Reset bool

Whether writing the register resets the part.

Properties

BusAdc

The bus converter's resolution or averaging.

public Ina219.Adc BusAdc { get; init; }

Property Value

Ina219.Adc

BusRange

The bus-voltage range.

public Ina219.BusRange BusRange { get; init; }

Property Value

Ina219.BusRange

Gain

The shunt gain, which sets the shunt-voltage range.

public Ina219.Gain Gain { get; init; }

Property Value

Ina219.Gain

Mode

The operating mode.

public Ina219.Mode Mode { get; init; }

Property Value

Ina219.Mode

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

Ina219Config

Reset

Whether writing the register resets the part.

public bool Reset { get; init; }

Property Value

bool

ShuntAdc

The shunt converter's resolution or averaging.

public Ina219.Adc ShuntAdc { get; init; }

Property Value

Ina219.Adc