2.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

ParamDescription
channelPoints 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.