HAL + 0/13 examples
CodeScope will show references to HAL_DAC_SetValue() from the following samples and libraries:
Examples
STM32446E_EVAL
Examples
DAC
STM32469I-Discovery
Examples
DAC
STM32469I_EVAL
Examples
DAC
STM324x9I_EVAL
Examples
DAC
STM324xG_EVAL
Examples
DAC
STM32F4-Discovery
Examples
DAC
STM32F413H-Discovery
Examples
DAC
STM32F429I-Discovery
Examples
DAC
STM32F429ZI-Nucleo
Examples_MIX
ADC
 
Symbols
loading...
Files
loading...

HAL_DAC_SetValue() function

Set the specified data holding register value for DAC channel.

Syntax

HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac,     uint32_t Channel,     uint32_t Alignment,     uint32_t Data);
Implemented in stm32f4xx_hal_dac.c:796

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.

References

LocationText
stm32f4xx_hal_dac.c:796
HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
stm32f4xx_hal_dac.h:411
HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data);

Data Use

Data read by HAL_DAC_SetValue()
Data written by HAL_DAC_SetValue()
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