2.3.66 ADCx_ChannelResultGet Function

C

// x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
inline static uint32_t ADCx_ChannelResultGet(ADCx_CHANNEL channel);

Summary

Returns the conversion value for the channel selected.

Description

This function returns the conversion value for the channel selected.

Precondition

This inline function returns the conversion value only after the conversion is complete. * Conversion completion status can be checked using ADCx_IsConversionComplete(channel) function.

Parameters

ParamDescription
channelSelected channel

Returns

Returns the analog to digital converted value.

Example

ADC1_ChannelResultGet(ADC1_CHANNEL channel);

Remarks

None.