ST STM32F2 User Manual page 777

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
__LL_ADC_DECIMAL_NB_TO_CH
ANNEL
LL_ADC_CHANNEL_x.
Parameters:
__CHANNEL__: This parameter can be one of
the following values:
LL_ADC_CHANNEL_0
LL_ADC_CHANNEL_1
LL_ADC_CHANNEL_2
LL_ADC_CHANNEL_3
LL_ADC_CHANNEL_4
LL_ADC_CHANNEL_5
LL_ADC_CHANNEL_6
LL_ADC_CHANNEL_7
LL_ADC_CHANNEL_8
LL_ADC_CHANNEL_9
LL_ADC_CHANNEL_10
LL_ADC_CHANNEL_11
LL_ADC_CHANNEL_12
LL_ADC_CHANNEL_13
LL_ADC_CHANNEL_14
LL_ADC_CHANNEL_15
LL_ADC_CHANNEL_16
LL_ADC_CHANNEL_17
LL_ADC_CHANNEL_18
LL_ADC_CHANNEL_VREFINT (1)
LL_ADC_CHANNEL_TEMPSENSOR
(1)(2)
LL_ADC_CHANNEL_VBAT (1)
Return value:
Value: between Min_Data=0 and Max_Data=18
Notes:
Example:
__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_
ADC_CHANNEL_4) will return decimal number
"4". The input can be a value from functions
where a channel number is returned, either
defined with number or with bitfield (only one bit
must be set).
Description:
Helper macro to get ADC channel in literal
format LL_ADC_CHANNEL_x from number in
decimal format.
Parameters:
__DECIMAL_NB__: Value between
Min_Data=0 and Max_Data=18
Return value:
Returned: value can be one of the following
values:
DocID028236 Rev 2
LL ADC Generic Driver
777/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF