Class Ads1115Config
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
ComparatorLatching
Whether the comparator latches until the conversion is read.
public bool ComparatorLatching { get; init; }
Property Value
ComparatorQueue
The comparator queue code, 0 to 3, where 3 disables it.
public byte ComparatorQueue { get; init; }
Property Value
DataRate
The data rate code, 0 to 7.
public byte DataRate { get; init; }
Property Value
Mux
The input multiplexer code, 0 to 7.
public byte Mux { get; init; }
Property Value
Pga
The gain code, 0 to 7, which sets the full-scale range.
public byte Pga { get; init; }
Property Value
SingleShot
Whether to convert once per request rather than continuously.
public bool SingleShot { get; init; }
Property Value
StartConversion
Whether writing this starts a single conversion.
public bool StartConversion { get; init; }
Property Value
WindowComparator
Whether to use the window comparator rather than the traditional one.
public bool WindowComparator { get; init; }