Table of Contents

Struct Ads1115Sample

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

One ADS1115 conversion.

public readonly record struct Ads1115Sample : IEquatable<Ads1115Sample>
Implements
Inherited Members

Constructors

Ads1115Sample(short, Pga, long, float, bool)

One ADS1115 conversion.

public Ads1115Sample(short Raw, Ads1115.Pga Gain, long Nanovolts, float Volts, bool Clipped)

Parameters

Raw short

The conversion register, two's complement.

Gain Ads1115.Pga

The full-scale range the conversion ran at.

Nanovolts long

The voltage in nanovolts, exact in integers.

Volts float

The voltage in volts.

Clipped bool

Whether the conversion sits at an end code, where the output clips for a signal past the range, so the voltage is a bound rather than the reading.

Properties

Clipped

Whether the conversion sits at an end code, where the output clips for a signal past the range, so the voltage is a bound rather than the reading.

public bool Clipped { get; init; }

Property Value

bool

Gain

The full-scale range the conversion ran at.

public Ads1115.Pga Gain { get; init; }

Property Value

Ads1115.Pga

Nanovolts

The voltage in nanovolts, exact in integers.

public long Nanovolts { get; init; }

Property Value

long

Raw

The conversion register, two's complement.

public short Raw { get; init; }

Property Value

short

Volts

The voltage in volts.

public float Volts { get; init; }

Property Value

float