HAL
LL_DAC_ConvertData12LeftAligned() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALLL_DAC_ConvertData12LeftAligned()

LL_DAC_ConvertData12LeftAligned() function

Set the data to be loaded in the data holding register in format 12 bits left alignment (MSB aligned on bit 15), for the selected DAC channel. DHR12L2 DACC2DHR LL_DAC_ConvertData12LeftAligned (1) On this STM32 series, parameter not available on all devices. Refer to device datasheet for channels availability.

Syntax

__STATIC_INLINE void LL_DAC_ConvertData12LeftAligned(DAC_TypeDef *DACx,     uint32_t DAC_Channel,     uint32_t Data);

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)

Data

Value between Min_Data=0x000 and Max_Data=0xFFF

Return value

None

References

LocationText
stm32f4xx_ll_dac.h:1152
__STATIC_INLINE void LL_DAC_ConvertData12LeftAligned(DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t Data)

Data Use

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