STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Peripheral Control functions. More...
Functions | |
uint32_t | HAL_DAC_GetValue (const 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, const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
Configures the selected 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.
uint32_t HAL_DAC_GetValue | ( | const DAC_HandleTypeDef * | hdac, |
uint32_t | Channel ) |
#include <stm32f4xx_hal_dac.h>
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:
|
The | selected DAC channel data output value. |
Definition at line 923 of file stm32f4xx_hal_dac.c.
References assert_param, DAC_CHANNEL_1, DAC_HandleTypeDef::Instance, and IS_DAC_CHANNEL.
HAL_StatusTypeDef HAL_DAC_ConfigChannel | ( | DAC_HandleTypeDef * | hdac, |
const DAC_ChannelConfTypeDef * | sConfig, | ||
uint32_t | Channel ) |
#include <stm32f4xx_hal_dac.h>
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 958 of file stm32f4xx_hal_dac.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, DAC_ChannelConfTypeDef::DAC_OutputBuffer, DAC_ChannelConfTypeDef::DAC_Trigger, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_OUTPUT_BUFFER_STATE, IS_DAC_TRIGGER, and DAC_HandleTypeDef::State.