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

ADC_SMPR2 macro

Set the ADC's sample time for channel numbers between 0 and 9.

Syntax

#define ADC_SMPR2(_SAMPLETIME_, _CHANNELNB_) ((_SAMPLETIME_) << (3U * ((uint32_t)((uint16_t)(_CHANNELNB_)))))

Arguments

_SAMPLETIME_

Sample time parameter.

_CHANNELNB_

Channel number.

Return value

None