HAL
ADC_SMPR2
is only used within HAL.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
HAL
ADC_SMPR2
ADC_SMPR2 macro
Set the ADC's sample time for channel numbers between 0 and 9.
Syntax
from
stm32f4xx_hal_adc.h:803
#define
ADC_SMPR2
(
_SAMPLETIME_
,
_CHANNELNB_
)
(
(
_SAMPLETIME_
)
<
<
(
3U
*
(
(
uint32_t
)
(
(
uint16_t
)
(
_CHANNELNB_
)
)
)
)
)
Arguments
_SAMPLETIME_
Sample time parameter.
_CHANNELNB_
Channel number.
Return value
None
References
Location
Text
stm32f4xx_hal_adc.h:803
#define
ADC_SMPR2
(
_SAMPLETIME_
,
_CHANNELNB_
)
(
(
_SAMPLETIME_
)
<
<
(
3U
*
(
(
uint32_t
)
(
(
uint16_t
)
(
_CHANNELNB_
)
)
)
)
)
stm32f4xx_hal_adc.c:1694
hadc
->
Instance
->
SMPR2
&=
~
ADC_SMPR2
(
ADC_SMPR2_SMP0
,
sConfig
->
Channel
)
;
stm32f4xx_hal_adc.c:1697
hadc
->
Instance
->
SMPR2
|=
ADC_SMPR2
(
sConfig
->
SamplingTime
,
sConfig
->
Channel
)
;
stm32f4xx_hal_adc_ex.c:858
hadc
->
Instance
->
SMPR2
&=
~
ADC_SMPR2
(
ADC_SMPR2_SMP0
,
sConfigInjected
->
InjectedChannel
)
;
stm32f4xx_hal_adc_ex.c:861
hadc
->
Instance
->
SMPR2
|=
ADC_SMPR2
(
sConfigInjected
->
InjectedSamplingTime
,
sConfigInjected
->
InjectedChannel
)
;