Table of Contents

Class Ads1115Config

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

An ADS1115 configuration register, field by field.

public sealed class Ads1115Config
Inheritance
Ads1115Config
Inherited Members

Remarks

The multi-way settings carry the code the datasheet prints; the single-bit settings are booleans named for the state they select. The defaults are the part's own reset state.

Properties

ComparatorActiveHigh

Whether the ALERT/RDY pin is active high.

public bool ComparatorActiveHigh { get; init; }

Property Value

bool

ComparatorLatching

Whether the comparator latches until the conversion is read.

public bool ComparatorLatching { get; init; }

Property Value

bool

ComparatorQueue

The comparator queue code, 0 to 3, where 3 disables it.

public byte ComparatorQueue { get; init; }

Property Value

byte

DataRate

The data rate code, 0 to 7.

public byte DataRate { get; init; }

Property Value

byte

Mux

The input multiplexer code, 0 to 7.

public byte Mux { get; init; }

Property Value

byte

Pga

The gain code, 0 to 7, which sets the full-scale range.

public byte Pga { get; init; }

Property Value

byte

SingleShot

Whether to convert once per request rather than continuously.

public bool SingleShot { get; init; }

Property Value

bool

StartConversion

Whether writing this starts a single conversion.

public bool StartConversion { get; init; }

Property Value

bool

WindowComparator

Whether to use the window comparator rather than the traditional one.

public bool WindowComparator { get; init; }

Property Value

bool