HAL_DAC_SetValue() function
Set the specified data holding register value for DAC channel.
Arguments
hdac
pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Channel
The selected DAC channel. This parameter can be one of the following values: @arg DAC_CHANNEL_1: DAC Channel1 selected @arg DAC_CHANNEL_2: DAC Channel2 selected
Alignment
Specifies the data alignment. This parameter can be one of the following values: @arg DAC_ALIGN_8B_R: 8bit right data alignment selected @arg DAC_ALIGN_12B_L: 12bit left data alignment selected @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
Data
Data to be loaded in the selected data holding register.
Return value
HAL status
Examples
HAL_DAC_SetValue() is referenced by
13 libraries and example projects.
Data read by HAL_DAC_SetValue()
Data written by HAL_DAC_SetValue()
HAL_DAC_SetValue()::tmp all items filtered out
HAL_DAC_SetValue()
HAL_DAC_SetValue()::tmp all items filtered out
Type of HAL_DAC_SetValue()
HAL_DAC_SetValue()
uint32_t all items filtered out