Table of Contents

Struct PamojaOpt3001Config

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

An OPT3001 configuration register, field by field. Mirrors <c>PamojaOpt3001Config</c> in <c>pamoja.h</c>.

public struct PamojaOpt3001Config
Inherited Members

Fields

ActiveHigh

1 makes the INT pin active high.

public byte ActiveHigh

Field Value

byte

ConversionReady

1 when a conversion has completed since the register was last read.

public byte ConversionReady

Field Value

byte

FaultCount

The fault-count code, 0..=3, for one, two, four, or eight faults.

public byte FaultCount

Field Value

byte

FlagHigh

1 when the result went above the high limit.

public byte FlagHigh

Field Value

byte

FlagLow

1 when the result went below the low limit.

public byte FlagLow

Field Value

byte

LatchedWindow

1 latches the INT pin until the configuration register is read.

public byte LatchedWindow

Field Value

byte

LongConversion

1 makes a conversion take 800 ms rather than 100 ms.

public byte LongConversion

Field Value

byte

MaskExponent

1 makes the limit registers carry a mantissa alone, without an exponent.

public byte MaskExponent

Field Value

byte

Mode

The mode code: 0 shutdown, 1 single shot, 2 continuous.

public byte Mode

Field Value

byte

Overflow

1 when the last result overflowed its range.

public byte Overflow

Field Value

byte

RangeNumber

The full-scale range number, 0..=11, or 12 to set the range automatically.

public byte RangeNumber

Field Value

byte