2.3.29 ADC_CompareWinThresholdSet Function

C

void ADC_CompareWinThresholdSet(ADC_CORE_NUM core, uint16_t low_threshold, uint16_t high_threshold)

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

ParamDescription
coreADC core n
low_thresholdlower threshold of the ADC core n digital comparator
high_thresholdhigher threshold of the ADC core n digital comparator

Returns

None.

Example

ADC_CompareWinThresholdSet(ADC_CORE_NUM1, 0x100, 0x200);

Remarks

None