HAL
ADC_SMPR1 is only used within HAL.
 
Symbols
loading...
Files
loading...

ADC_SMPR1 macro

Set the ADC's sample time for channel numbers between 10 and 18.

Syntax

#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