1.33.2.9 ADCx_WindowMonitorStatusGet Function

C

bool ADCx_WindowMonitorStatusGet( void );

Summary

Returns the status of the window monitor flag.

Description

This function checks whether ADC conversion result is within configured window thresholds.

Precondition

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

Parameters

None.

Returns

false - Result is outside configured window thresholds true - Result is within configured window thresholds

Example

bool windowMonitorStatus = false;
ADC0_Initialize();
ADC0_ConversionStart();
windowMonitorStatus = ADC0_WindowMonitorStatusGet();

Remarks

This function is applicable only when window monitor mode is enabled.