1.7.1.3 AC_ChannelSelect Function

C

void AC_ChannelSelect( AC_CHANNEL channel_id , AC_POSINPUT positiveInput, AC_NEGINPUT negativeInput);

Summary

Selects the positive and negative inputs of a channel

Description

This function configures positive and negative input of a comparator channel.

Precondition

AC_Initialize must have been called for the associated AC instance.

Parameters

Param Description
channel_id Points to AC Channel
positiveInput positive input of AC channel
negativeInput negative input of AC channel

Returns

None.

Example

AC_ChannelSelect (AC_CHANNEL_0, AC_POSINPUT_AIN0, AC_NEGINPUT_GND);

Remarks

Comparator channel is disabled before changing the inputs and enabled again.