1.3.2.9 1.4.2.9 1.5.2.9 1.29.2.9 1.30.2.9 1.31.2.9 1.32.2.9 1.33.2.9 1.37.2.9 1.38.2.9 1.39.1.9 1.40.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.