RTEMS 6.1-rc5
Loading...
Searching...
No Matches
stm32h7xx_hal_dac_ex.c File Reference

Extended DAC HAL module driver. This file provides firmware functions to manage the extended functionalities of the DAC peripheral. More...

#include "stm32h7xx_hal.h"

Detailed Description

Extended DAC HAL module driver. This file provides firmware functions to manage the extended functionalities of the DAC peripheral.

Author
MCD Application Team
Attention

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 ***
    ==============================
    [..]
     (+) Use HAL_DACEx_DualStart() to enable both channel and start conversion
         for dual mode operation.
         If software trigger is selected, using HAL_DACEx_DualStart() will start
         the conversion of the value previously set by HAL_DACEx_DualSetValue().
     (+) Use HAL_DACEx_DualStop() to disable both channel and stop conversion
         for dual mode operation.
     (+) Use HAL_DACEx_DualStart_DMA() to enable both channel and start conversion
         for dual mode operation using DMA to feed DAC converters.
         First issued trigger will start the conversion of the value previously
         set by HAL_DACEx_DualSetValue().
         The same callbacks that are used in single mode are called in dual mode to notify
         transfer completion (half complete or complete), errors or underrun.
     (+) Use HAL_DACEx_DualStop_DMA() to disable both channel and stop conversion
         for dual mode operation using DMA to feed DAC converters.
     (+) 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).