1.3.1.6 AC_StatusGet Function
C
bool AC_StatusGet (AC_CHANNEL channel);
Summary
Returns comparison status of the AC
Description
This function can be used to get current state of the output signal of a given comparator.
Precondition
None.
Parameters
Param | Description |
---|---|
channel | Points to AC Channel |
Returns
True when the comparator output is high and False when the comparator output is low
Example
bool status;
status = AC_StatusGet (AC_CHANNEL_0);
if (status)
{
// Application related tasks
}
Remarks
None.