HAL
LL_DAC_RetrieveOutputData() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALLL_DAC_RetrieveOutputData()

LL_DAC_RetrieveOutputData() function

Retrieve output data currently generated for the selected DAC channel. (1) On this STM32 series, parameter not available on all devices. Refer to device datasheet for channels availability.

Syntax

__STATIC_INLINE uint32_t LL_DAC_RetrieveOutputData(const DAC_TypeDef *DACx,     uint32_t DAC_Channel);

Arguments

DACx

DAC instance

DAC_Channel

This parameter can be one of the following values: @arg LL_DAC_CHANNEL_1 @arg LL_DAC_CHANNEL_2 (1)

Return value

Value between Min_Data=0x000 and Max_Data=0xFFF

Notes

Whatever alignment and resolution settings (using functions "LL_DAC_ConvertData{8; 12}{Right; Left} Aligned()": LL_DAC_ConvertData12RightAligned(), ...), output data format is 12 bits right aligned (LSB aligned on bit 0). DOR2 DACC2DOR LL_DAC_RetrieveOutputData

References

LocationText
stm32f4xx_ll_dac.h:1263
__STATIC_INLINE uint32_t LL_DAC_RetrieveOutputData(const DAC_TypeDef *DACx, uint32_t DAC_Channel)

Data Use

Data read by LL_DAC_RetrieveOutputData()
LL_DAC_RetrieveOutputData()
Type of LL_DAC_RetrieveOutputData()
LL_DAC_RetrieveOutputData()
uint32_t
all items filtered out