HAL + 0/3 examples
CodeScope will show references to __LL_DAC_DIGITAL_SCALE from the following samples and libraries:
 
Symbols
loading...
Files
loading...

__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))

Arguments

__DAC_RESOLUTION__

This parameter can be one of the following values: @arg LL_DAC_RESOLUTION_12B @arg LL_DAC_RESOLUTION_8B

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.

References

LocationText
stm32f4xx_ll_dac.h:486
#define __LL_DAC_DIGITAL_SCALE(__DAC_RESOLUTION__) \
stm32f4xx_ll_dac.h:508
((__DAC_VOLTAGE__) * __LL_DAC_DIGITAL_SCALE(__DAC_RESOLUTION__) \