1.34.1.3 AFECx_ChannelsDisable Function

C

void AFECx_ChannelsDisable (AFEC_CHANNEL_MASK channelsMask) // x - Instance of the AFEC peripheral

Summary

Disables the ADC channels

Description

This function disables channels specified in channelsMask

Precondition

AFECx_Initialize() must have been called first for the associated instance.

Parameters

Param Description
channelsMask set of channel numbers

Returns

None.

Example

AFEC0_Initialize();
AFEC0_ChannelsDisable(AFEC_CH0_MASK | AFEC_CH3_MASK);

Remarks

This function does not enable channels which are not included in the channel mask.