HAL
ADC_SMPR1
is only used within HAL.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
HAL
ADC_SMPR1
ADC_SMPR1 macro
Set the ADC's sample time for channel numbers between 10 and 18.
Syntax
from
stm32f4xx_hal_adc.h:795
#define
ADC_SMPR1
(
_SAMPLETIME_
,
_CHANNELNB_
)
(
(
_SAMPLETIME_
)
<
<
(
3U
*
(
(
(
uint32_t
)
(
(
uint16_t
)
(
_CHANNELNB_
)
)
)
-
10U
)
)
)
Arguments
_SAMPLETIME_
Sample time parameter.
_CHANNELNB_
Channel number.
Return value
None
References
Location
Text
stm32f4xx_hal_adc.h:795
#define
ADC_SMPR1
(
_SAMPLETIME_
,
_CHANNELNB_
)
(
(
_SAMPLETIME_
)
<
<
(
3U
*
(
(
(
uint32_t
)
(
(
uint16_t
)
(
_CHANNELNB_
)
)
)
-
10U
)
)
)
stm32f4xx_hal_adc.c:1686
hadc
->
Instance
->
SMPR1
&=
~
ADC_SMPR1
(
ADC_SMPR1_SMP10
,
sConfig
->
Channel
)
;
stm32f4xx_hal_adc.c:1689
hadc
->
Instance
->
SMPR1
|=
ADC_SMPR1
(
sConfig
->
SamplingTime
,
sConfig
->
Channel
)
;
stm32f4xx_hal_adc_ex.c:850
hadc
->
Instance
->
SMPR1
&=
~
ADC_SMPR1
(
ADC_SMPR1_SMP10
,
sConfigInjected
->
InjectedChannel
)
;
stm32f4xx_hal_adc_ex.c:853
hadc
->
Instance
->
SMPR1
|=
ADC_SMPR1
(
sConfigInjected
->
InjectedSamplingTime
,
sConfigInjected
->
InjectedChannel
)
;