1.8.2.2 ADC_ChannelsEnable Function

C

void ADC_ChannelsEnable (ADC_CHANNEL_MASK channelsMask)

Summary

Enables the ADC channels

Description

This function enables channels specified in channelsMask

Precondition

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

Parameters

Param Description
channelsMask set of channel numbers

Returns

None.

Example

ADC_Initialize();
ADC_ChannelsEnable(ADC_CH0_MASK | ADC_CH3_MASK);

Remarks

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