Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Peripheral Control functions
[DAC Exported Functions]
Peripheral Control functions. More...
Functions | |
uint32_t | HAL_DAC_GetValue (DAC_HandleTypeDef *hdac, uint32_t Channel) |
Returns the last data output value of the selected DAC channel. | |
HAL_StatusTypeDef | HAL_DAC_ConfigChannel (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
Configures the selected DAC channel. |
Detailed Description
Peripheral Control functions.
============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Configure channels. (+) Set the specified data holding register value for DAC channel.
Function Documentation
HAL_StatusTypeDef HAL_DAC_ConfigChannel | ( | DAC_HandleTypeDef * | hdac, |
DAC_ChannelConfTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
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:
-
HAL status
Definition at line 928 of file stm32l4xx_hal_dac.c.
uint32_t HAL_DAC_GetValue | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Channel | ||
) |
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 901 of file stm32l4xx_hal_dac.c.
Generated on Tue Jul 12 2022 18:10:45 by
