STM32L443xx HAL User Manual
|
DAC HAL module driver. This file provides firmware functions to manage the extended functionalities of the DAC peripheral. More...
#include "stm32l4xx_hal.h"
Go to the source code of this file.
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. | |
HAL_StatusTypeDef | HAL_DACEx_DualSetValue (DAC_HandleTypeDef *hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2) |
Set the specified data holding register value for dual DAC channel. | |
__weak void | HAL_DACEx_ConvCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
Conversion complete callback in non-blocking mode for Channel2. | |
__weak void | HAL_DACEx_ConvHalfCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
Conversion half DMA transfer callback in non-blocking mode for Channel2. | |
__weak void | HAL_DACEx_ErrorCallbackCh2 (DAC_HandleTypeDef *hdac) |
Error DAC callback for Channel2. | |
__weak void | HAL_DACEx_DMAUnderrunCallbackCh2 (DAC_HandleTypeDef *hdac) |
DMA underrun DAC callback for Channel2. | |
HAL_StatusTypeDef | HAL_DACEx_SelfCalibrate (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
Run the self calibration of one DAC channel. | |
HAL_StatusTypeDef | HAL_DACEx_SetUserTrimming (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel, uint32_t NewTrimmingValue) |
Set the trimming mode and trimming value (user trimming mode applied). | |
uint32_t | HAL_DACEx_GetTrimOffset (DAC_HandleTypeDef *hdac, uint32_t Channel) |
Return the DAC trimming value. | |
uint32_t | HAL_DACEx_DualGetValue (DAC_HandleTypeDef *hdac) |
Return the last data output value of the selected DAC channel. | |
void | DAC_DMAConvCpltCh2 (DMA_HandleTypeDef *hdma) |
DMA conversion complete callback. | |
void | DAC_DMAHalfConvCpltCh2 (DMA_HandleTypeDef *hdma) |
DMA half transfer complete callback. | |
void | DAC_DMAErrorCh2 (DMA_HandleTypeDef *hdma) |
DMA error callback. |
DAC HAL module driver. This file provides firmware functions to manage the extended functionalities of the DAC peripheral.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
============================================================================== ##### How to use this driver ##### ============================================================================== [..] *** Dual mode IO operation *** ============================== (+) When Dual mode is enabled (i.e. DAC Channel1 and Channel2 are used simultaneously) : Use HAL_DACEx_DualGetValue() to get digital data to be converted and use HAL_DACEx_DualSetValue() to set digital value to converted simultaneously in Channel 1 and Channel 2. *** Signal generation operation *** =================================== (+) Use HAL_DACEx_TriangleWaveGenerate() to generate Triangle signal. (+) Use HAL_DACEx_NoiseWaveGenerate() to generate Noise signal. (+) HAL_DACEx_SelfCalibrate to calibrate one DAC channel. (+) HAL_DACEx_SetUserTrimming to set user trimming value. (+) HAL_DACEx_GetTrimOffset to retrieve trimming value (factory setting after reset, user setting if HAL_DACEx_SetUserTrimming have been used at least one time after reset).
Definition in file stm32l4xx_hal_dac_ex.c.