Peripheral Control functions.
More...
Peripheral Control functions.
==============================================================================
##### Peripheral Control functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Configure channels.
(+) Set the specified data holding register value for DAC channel.
◆ HAL_DAC_ConfigChannel()
Configures the selected DAC channel.
- Parameters
-
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
|
- Return values
-
Definition at line 958 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_GetValue()
Returns the last data output value of the selected DAC channel.
- Parameters
-
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
|
- Return values
-
The | selected DAC channel data output value. |
Definition at line 923 of file stm32f4xx_hal_dac.c.