SMPR2 SMP0 LL_ADC_SetChannelSamplingTime
LL_ADC_GetChannelSamplingTime
__STATIC_INLINE uint32_t
LL_ADC_GetChannelSamplingTime (ADC_TypeDef * ADCx,
uint32_t Channel)
Get sampling time of the selected ADC channel Unit: ADC clock
cycles.
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.
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
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