2.3.72 ADCx_CompareStatusGet Function

C

// x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
inline static bool ADCx_CompareStatusGet(ADCx_CHANNEL channel);

Summary

Returns the status of the comparator.

Description

This function returns the status of the comparator.

Precondition

None.

Parameters

ParamDescription
channelSelected channel

Returns

true - If Compare status is true

false - If Compare status is false

Example

bool cmpStatus;
cmpStatus = ADC1_CompareStatusGet(ADC1_CHANNEL0);

Remarks

None