Hal Dac Extension Driver; Dacex Firmware Driver Api Description; Hal_Dacex_Dualgetvalue; Hal_Dacex_Trianglewavegenerate - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
13

HAL DAC Extension Driver

13.1

DACEx Firmware driver API description

13.1.1

How to use this driver

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.
Use HAL_DACEx_TriangleWaveGenerate() to generate Triangle signal.
Use HAL_DACEx_NoiseWaveGenerate() to generate Noise signal.
13.1.2

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.
This section contains the following APIs:

HAL_DACEx_DualGetValue()

HAL_DACEx_TriangleWaveGenerate()

HAL_DACEx_NoiseWaveGenerate()
HAL_DACEx_DualSetValue()
HAL_DACEx_ConvCpltCallbackCh2()
HAL_DACEx_ConvHalfCpltCallbackCh2()
HAL_DACEx_ErrorCallbackCh2()
HAL_DACEx_DMAUnderrunCallbackCh2()
13.1.3

Detailed description of functions

HAL_DACEx_DualGetValue
Function name
Function description
Parameters
Return values
HAL_DACEx_TriangleWaveGenerate
Function name
uint32_t HAL_DACEx_DualGetValue (DAC_HandleTypeDef *
hdac)
Returns the last data output value of the selected DAC channel.
hdac: pointer to a DAC_HandleTypeDef structure that
contains the configuration information for the specified DAC.
The: selected DAC channel data output value.
HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate
(DAC_HandleTypeDef * hdac, uint32_t Channel, uint32_t
Amplitude)
DocID028236 Rev 2
HAL DAC Extension Driver
171/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF