Table of Contents

Struct PamojaAds1115Config

Namespace
Pamoja.Native.Interop
Assembly
Pamoja.Native.dll

An ADS1115 configuration register field by field, mirroring PamojaAds1115Config in pamoja.h.

public struct PamojaAds1115Config
Inherited Members

Remarks

The multi-way settings carry the code the datasheet prints; the single-bit settings are 1 for the state their name describes.

Fields

ComparatorActiveHigh

1 makes the ALERT/RDY pin active high.

public byte ComparatorActiveHigh

Field Value

byte

ComparatorLatching

1 latches the comparator until the conversion is read.

public byte ComparatorLatching

Field Value

byte

ComparatorQueue

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

public byte ComparatorQueue

Field Value

byte

DataRate

The data rate code, 0 to 7.

public byte DataRate

Field Value

byte

Mux

The input multiplexer code, 0 to 7.

public byte Mux

Field Value

byte

Pga

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

public byte Pga

Field Value

byte

SingleShot

1 converts once per request, 0 continuously.

public byte SingleShot

Field Value

byte

StartConversion

1 starts a single conversion when written.

public byte StartConversion

Field Value

byte

WindowComparator

1 selects the window comparator.

public byte WindowComparator

Field Value

byte