1.2.1.7 1.3.1.6 1.4.1.6 1.5.1.6 1.6.1.7 1.7.1.7 1.29.1.6 1.30.1.6 1.31.1.6 1.32.1.7 1.33.1.6 1.37.1.6 1.38.1.6 1.40.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.