|
STM32F439xx HAL User Manual
|
Peripheral Control functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_DAC_ConfigChannel (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
| Configures the selected DAC channel. | |
| 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. | |
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_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:
|
| HAL | status |
Definition at line 771 of file stm32f4xx_hal_dac.c.
References assert_param, DAC_ChannelConfTypeDef::DAC_OutputBuffer, DAC_ChannelConfTypeDef::DAC_Trigger, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_OUTPUT_BUFFER_STATE, IS_DAC_TRIGGER, and DAC_HandleTypeDef::State.
| 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. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| Alignment | Specifies the data alignment. This parameter can be one of the following values:
|
| Data | Data to be loaded in the selected data holding register. |
| HAL | status |
Definition at line 827 of file stm32f4xx_hal_dac.c.
References assert_param, DAC_CHANNEL_1, DAC_DHR12R1_ALIGNMENT, DAC_DHR12R2_ALIGNMENT, DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, IS_DAC_CHANNEL, and IS_DAC_DATA.
1.7.6.1