2.18.9 CMPx_StatusGet Function
C
// x is the instance number of the CMP peripheral
inline static bool CMPx_StatusGet(void)
{
return (bool)(DAC1CONbits.CMPSTAT);
}
Summary
Returns the output status of a comparator.
Description
This function returns the output status of a comparator.
Precondition
None.
Parameters
None.
Returns
true - Comparator output is high
false - Comparator output is low
Example
CMP1_StatusGet();
Remarks
None.