STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Extended IO operation functions. More...
Functions | |
HAL_StatusTypeDef | HAL_DACEx_TriangleWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
Enable or disable the selected DAC channel wave generation. | |
HAL_StatusTypeDef | HAL_DACEx_NoiseWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
Enable or disable the selected DAC channel wave generation. | |
Extended IO operation functions.
============================================================================== ##### Extended features functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Start conversion. (+) Stop conversion. (+) Start conversion and enable DMA transfer. (+) Stop conversion and disable DMA transfer. (+) Get result of conversion. (+) Get result of dual mode conversion.
HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Channel, | ||
uint32_t | Amplitude ) |
#include <stm32f4xx_hal_dac_ex.h>
Enable or disable the selected DAC channel wave generation.
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:
|
Amplitude | Select max triangle amplitude. This parameter can be one of the following values:
|
HAL | status |
Definition at line 185 of file stm32f4xx_hal_dac_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and DAC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Channel, | ||
uint32_t | Amplitude ) |
#include <stm32f4xx_hal_dac_ex.h>
Enable or disable the selected DAC channel wave generation.
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:
|
Amplitude | Unmask DAC channel LFSR for noise wave generation. This parameter can be one of the following values:
|
HAL | status |
Definition at line 241 of file stm32f4xx_hal_dac_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and DAC_HandleTypeDef::State.