Jump to main content

##

# 2.4.24 ADCHS_ComparatorxEventModeSet Function

## C

    void ADCHS_ComparatorxEventModeSet(ADCHS_CMP_EVENT_MODE eventMode) // x - Comparator number

## Summary

Sets the condition under which the comparator output becomes true

## Description

Sets the condition under which the comparator output becomes true

## Precondition

ADCHS_Initialize() must have been called first for the associated instance.

## Parameters

Param | Description
--- | ---
eventMode | A logical OR of the following events: ADCHS_CMP_EVENT_MODE_IELOLO ADCHS_CMP_EVENT_MODE_IELOHI ADCHS_CMP_EVENT_MODE_IEHILO ADCHS_CMP_EVENT_MODE_IEHIHI ADCHS_CMP_EVENT_MODE_IEBTWN

## Returns

None

## Example

    ADCHS_Comparator1EventModeSet(ADCHS_CMP_EVENT_MODE_IELOHI | ADCHS_CMP_EVENT_MODE_IEHIHI);

## Remarks

None