Edit

Share via


Ads1115.EnableComparator Method

Definition

Overloads

EnableComparator(ElectricPotential, ElectricPotential, ComparatorMode, ComparatorQueue)

Enable comparator callback mode. In traditional comparator mode, the callback is triggered each time the measured value exceeds the given upper value (for the given queueLength number of samples). It deasserts when the lower value is reached. In window comparator mode, the callback is triggered each time the measured value exceeds the given upper value or gets less than the given lower value.

EnableComparator(Int16, Int16, ComparatorMode, ComparatorQueue)

Enable comparator callback mode. In traditional comparator mode, the callback is triggered each time the measured value exceeds the given upper value (for the given queueLength number of samples). It deasserts when the lower value is reached. In window comparator mode, the callback is triggered each time the measured value exceeds the given upper value or gets less than the given lower value.

EnableComparator(ElectricPotential, ElectricPotential, ComparatorMode, ComparatorQueue)

Enable comparator callback mode. In traditional comparator mode, the callback is triggered each time the measured value exceeds the given upper value (for the given queueLength number of samples). It deasserts when the lower value is reached. In window comparator mode, the callback is triggered each time the measured value exceeds the given upper value or gets less than the given lower value.

public void EnableComparator (UnitsNet.ElectricPotential lowerValue, UnitsNet.ElectricPotential upperValue, Iot.Device.Ads1115.ComparatorMode mode, Iot.Device.Ads1115.ComparatorQueue queueLength);
member this.EnableComparator : UnitsNet.ElectricPotential * UnitsNet.ElectricPotential * Iot.Device.Ads1115.ComparatorMode * Iot.Device.Ads1115.ComparatorQueue -> unit
Public Sub EnableComparator (lowerValue As ElectricPotential, upperValue As ElectricPotential, mode As ComparatorMode, queueLength As ComparatorQueue)

Parameters

lowerValue
UnitsNet.ElectricPotential

Lower value for the comparator

upperValue
UnitsNet.ElectricPotential

Upper value for the comparator

mode
ComparatorMode

Traditional or Window comparator mode

queueLength
ComparatorQueue

Minimum number of samples that must exceed the threshold to trigger the event

Exceptions

The GPIO Controller for the interrupt handler has not been set up

Applies to

EnableComparator(Int16, Int16, ComparatorMode, ComparatorQueue)

Enable comparator callback mode. In traditional comparator mode, the callback is triggered each time the measured value exceeds the given upper value (for the given queueLength number of samples). It deasserts when the lower value is reached. In window comparator mode, the callback is triggered each time the measured value exceeds the given upper value or gets less than the given lower value.

public void EnableComparator (short lowerValue, short upperValue, Iot.Device.Ads1115.ComparatorMode mode, Iot.Device.Ads1115.ComparatorQueue queueLength);
member this.EnableComparator : int16 * int16 * Iot.Device.Ads1115.ComparatorMode * Iot.Device.Ads1115.ComparatorQueue -> unit
Public Sub EnableComparator (lowerValue As Short, upperValue As Short, mode As ComparatorMode, queueLength As ComparatorQueue)

Parameters

lowerValue
Int16

Lower value for the comparator

upperValue
Int16

Upper value for the comparator

mode
ComparatorMode

Traditional or Window comparator mode

queueLength
ComparatorQueue

Minimum number of samples that must exceed the threshold to trigger the event

Exceptions

The GPIO Controller for the interrupt handler has not been set up

Applies to