STM32H735xx HAL User Manual
|
Header file of DAC HAL Extended module. More...
#include "stm32h7xx_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_SAMPLETIME(TIME) ((TIME) <= 0x000003FFU) |
#define | IS_DAC_HOLDTIME(TIME) ((TIME) <= 0x000003FFU) |
#define | IS_DAC_SAMPLEANDHOLD(MODE) |
#define | IS_DAC_TRIMMINGVALUE(TRIMMINGVALUE) ((TRIMMINGVALUE) <= 0x1FU) |
#define | IS_DAC_NEWTRIMMINGVALUE(TRIMMINGVALUE) ((TRIMMINGVALUE) <= 0x1FU) |
#define | IS_DAC_CHIP_CONNECTION(CONNECT) |
#define | IS_DAC_TRIMMING(TRIMMING) |
#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_DualStart_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t *pData, uint32_t Length, uint32_t Alignment) |
Enables DAC and starts conversion of both channel 1 and 2 of the same DAC. | |
HAL_StatusTypeDef | HAL_DACEx_DualStop_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel) |
Disables DAC and stop conversion both channel. | |
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. | |
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. | |
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. |
Header file of DAC HAL Extended module.
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.
Definition in file stm32h7xx_hal_dac_ex.h.