STM32F479xx HAL User Manual
Defines | Functions
stm32f4xx_hal_dac_ex.h File Reference

Header file of DAC HAL Extended module. More...

#include "stm32f4xx_hal_def.h"

Go to the source code of this file.

Defines

#define DAC_LFSRUNMASK_BIT0   0x00000000UL
#define DAC_LFSRUNMASK_BITS1_0   ( DAC_CR_MAMP1_0)
#define DAC_LFSRUNMASK_BITS2_0   ( DAC_CR_MAMP1_1 )
#define DAC_LFSRUNMASK_BITS3_0   ( DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define DAC_LFSRUNMASK_BITS4_0   ( DAC_CR_MAMP1_2 )
#define DAC_LFSRUNMASK_BITS5_0   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_0)
#define DAC_LFSRUNMASK_BITS6_0   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 )
#define DAC_LFSRUNMASK_BITS7_0   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define DAC_LFSRUNMASK_BITS8_0   (DAC_CR_MAMP1_3 )
#define DAC_LFSRUNMASK_BITS9_0   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_0)
#define DAC_LFSRUNMASK_BITS10_0   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 )
#define DAC_LFSRUNMASK_BITS11_0   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_1   0x00000000UL
#define DAC_TRIANGLEAMPLITUDE_3   ( DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_7   ( DAC_CR_MAMP1_1 )
#define DAC_TRIANGLEAMPLITUDE_15   ( DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_31   ( DAC_CR_MAMP1_2 )
#define DAC_TRIANGLEAMPLITUDE_63   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_127   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 )
#define DAC_TRIANGLEAMPLITUDE_255   ( DAC_CR_MAMP1_2 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_511   (DAC_CR_MAMP1_3 )
#define DAC_TRIANGLEAMPLITUDE_1023   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_0)
#define DAC_TRIANGLEAMPLITUDE_2047   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 )
#define DAC_TRIANGLEAMPLITUDE_4095   (DAC_CR_MAMP1_3 | DAC_CR_MAMP1_1 | DAC_CR_MAMP1_0)
#define IS_DAC_TRIGGER(TRIGGER)
#define IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE)

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_DualStart (DAC_HandleTypeDef *hdac)
 Enables DAC and starts conversion of both channels.
HAL_StatusTypeDef HAL_DACEx_DualStop (DAC_HandleTypeDef *hdac)
 Disables DAC and stop conversion of both channels.
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.
uint32_t HAL_DACEx_DualGetValue (DAC_HandleTypeDef *hdac)
 Return the last data output value of the selected 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.
void DAC_DMAConvCpltCh2 (DMA_HandleTypeDef *hdma)
 DMA conversion complete callback.
void DAC_DMAErrorCh2 (DMA_HandleTypeDef *hdma)
 DMA error callback.
void DAC_DMAHalfConvCpltCh2 (DMA_HandleTypeDef *hdma)
 DMA half transfer complete callback.

Detailed Description

Header file of DAC HAL Extended module.

Author:
MCD Application Team
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f4xx_hal_dac_ex.h.