HAL_DACEx_DualSetValue() function
Set the specified data holding register value for dual DAC channel.
Arguments
hdac
pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Alignment
Specifies the data alignment for dual channel DAC. This parameter can be one of the following values: DAC_ALIGN_8B_R: 8bit right data alignment selected DAC_ALIGN_12B_L: 12bit left data alignment selected DAC_ALIGN_12B_R: 12bit right data alignment selected
Data1
Data for DAC Channel1 to be loaded in the selected data holding register.
Data2
Data for DAC Channel2 to be loaded in the selected data holding register.
Return value
HAL status
Notes
In dual mode, a unique register access is required to write in both DAC channels at the same time.