__LL_DAC_DIGITAL_SCALE macro
Helper macro to define the DAC conversion data full-scale digital value corresponding to the selected DAC resolution.
Syntax
#define __LL_DAC_DIGITAL_SCALE(__DAC_RESOLUTION__) \
((0x00000FFFUL) >> ((__DAC_RESOLUTION__) << 1UL))
Return value
ADC conversion data equivalent voltage value (unit: mVolt)
Notes
DAC conversion data full-scale corresponds to voltage range determined by analog voltage references Vref+ and Vref- (refer to reference manual).
Examples
__LL_DAC_DIGITAL_SCALE is referenced by 3 libraries and example projects: