1.2.1.3 1.3.1.4 1.4.1.4 1.5.1.4 1.6.1.3 1.7.1.3 1.29.1.4 1.30.1.3 1.31.1.3 1.32.1.3 1.33.1.3 1.37.1.3 1.38.1.4 1.40.1.4 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.