EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #726 background imageLoading...
Page #726 background image
LL ADC Generic Driver
UM1940
726/1371
DocID028236 Rev 2
SMPR2 SMP0 LL_ADC_SetChannelSamplingTime
LL_ADC_GetChannelSamplingTime
Function name
__STATIC_INLINE uint32_t
LL_ADC_GetChannelSamplingTime (ADC_TypeDef * ADCx,
uint32_t Channel)
Function description
Get sampling time of the selected ADC channel Unit: ADC clock
cycles.
Parameters
ADCx: ADC instance
Channel: This parameter can be one of the following values:
(1) On STM32F4, parameter available only on ADC instance:
ADC1.
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)
(2) On devices STM32F42x and STM32F43x, limitation: this
internal channel is shared between temperature sensor and
Vbat, only 1 measurement path must be enabled.
Return values
Returned: value can be one of the following values:
LL_ADC_SAMPLINGTIME_3CYCLES
LL_ADC_SAMPLINGTIME_15CYCLES
LL_ADC_SAMPLINGTIME_28CYCLES
LL_ADC_SAMPLINGTIME_56CYCLES
LL_ADC_SAMPLINGTIME_84CYCLES
LL_ADC_SAMPLINGTIME_112CYCLES
LL_ADC_SAMPLINGTIME_144CYCLES
LL_ADC_SAMPLINGTIME_480CYCLES
Notes
On this device, sampling time is on channel scope:
independently of channel mapped on ADC group regular or
injected.
Conversion time is the addition of sampling time and

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals