UM1940
HAL_DAC_Stop_DMA
Function name
Function description
Parameters
Return values
HAL_DAC_GetValue
Function name
Function description
Parameters
Return values
HAL_DAC_ConfigChannel
Function name
Function description
Parameters
Return values
HAL_DAC_SetValue
Function name
Function description
Parameters
HAL_StatusTypeDef HAL_DAC_Stop_DMA
(DAC_HandleTypeDef * hdac, uint32_t Channel)
Disables DAC and stop conversion of channel.
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:
DAC_CHANNEL_1: DAC Channel1 selected
DAC_CHANNEL_2: DAC Channel2 selected
HAL: status
uint32_t HAL_DAC_GetValue (DAC_HandleTypeDef * hdac,
uint32_t Channel)
Returns the last data output value of the selected DAC channel.
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:
DAC_CHANNEL_1: DAC Channel1 selected
DAC_CHANNEL_2: DAC Channel2 selected
The: selected DAC channel data output value.
HAL_StatusTypeDef HAL_DAC_ConfigChannel
(DAC_HandleTypeDef * hdac, DAC_ChannelConfTypeDef *
sConfig, uint32_t Channel)
Configures the selected DAC channel.
hdac: pointer to a DAC_HandleTypeDef structure that
contains the configuration information for the specified DAC.
sConfig: DAC configuration structure.
Channel: The selected DAC channel. This parameter can be
one of the following values:
DAC_CHANNEL_1: DAC Channel1 selected
DAC_CHANNEL_2: DAC Channel2 selected
HAL: status
HAL_StatusTypeDef HAL_DAC_SetValue
(DAC_HandleTypeDef * hdac, uint32_t Channel, uint32_t
Alignment, uint32_t Data)
Set the specified data holding register value for DAC channel.
hdac: pointer to a DAC_HandleTypeDef structure that
contains the configuration information for the specified DAC.
DocID028236 Rev 2
HAL DAC Generic Driver
165/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers