Ads1115.EnableComparator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for