1.9.1.7 ADC_CompareWinModeSet Function

C

void ADC_CompareWinModeSet(ADC_CORE_NUM core, ADC_CMPCTRL mode)

Summary

Configures the low and high threshold values for the comparator on the specified ADC core

Description

This function lets the application configure the low and high threshold values for the comparator on the specified ADC core

Precondition

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

Parameters

Param Description
core ADC core n
mode Window comparator mode. Bitwise OR of the macros following macros: ADC_CMP_MODE_IEHIHI ADC_CMP_MODE_IEHILO ADC_CMP_MODE_IELOHI ADC_CMP_MODE_IELOLO ADC_CMP_MODE_IEBTWN

Returns

None.

Example

ADC_CompareWinModeSet(ADC_CORE_NUM1, ADC_CMP_MODE_IEHIHI | ADC_CMP_MODE_IELOLO);

Remarks

None