Struct Ads1115Sample
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
RawshortThe conversion register, two's complement.
GainAds1115.PgaThe full-scale range the conversion ran at.
NanovoltslongThe voltage in nanovolts, exact in integers.
VoltsfloatThe voltage in volts.
ClippedboolWhether 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
Gain
The full-scale range the conversion ran at.
public Ads1115.Pga Gain { get; init; }
Property Value
Nanovolts
The voltage in nanovolts, exact in integers.
public long Nanovolts { get; init; }
Property Value
Raw
The conversion register, two's complement.
public short Raw { get; init; }
Property Value
Volts
The voltage in volts.
public float Volts { get; init; }