STM32F439xx HAL User Manual
Functions
Configuration of DAC channels
DAC Exported Functions

Functions

__STATIC_INLINE void LL_DAC_SetTriggerSource (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TriggerSource)
 Set the conversion trigger source for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetTriggerSource (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the conversion trigger source for the selected DAC channel.
__STATIC_INLINE void LL_DAC_SetWaveAutoGeneration (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t WaveAutoGeneration)
 Set the waveform automatic generation mode for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetWaveAutoGeneration (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the waveform automatic generation mode for the selected DAC channel.
__STATIC_INLINE void LL_DAC_SetWaveNoiseLFSR (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t NoiseLFSRMask)
 Set the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register).
__STATIC_INLINE uint32_t LL_DAC_GetWaveNoiseLFSR (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Set the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register).
__STATIC_INLINE void LL_DAC_SetWaveTriangleAmplitude (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TriangleAmplitude)
 Set the triangle waveform generation for the selected DAC channel: triangle mode and amplitude.
__STATIC_INLINE uint32_t LL_DAC_GetWaveTriangleAmplitude (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Set the triangle waveform generation for the selected DAC channel: triangle mode and amplitude.
__STATIC_INLINE void LL_DAC_SetOutputBuffer (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputBuffer)
 Set the output buffer for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetOutputBuffer (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the output buffer state for the selected DAC channel.

Function Documentation

__STATIC_INLINE uint32_t LL_DAC_GetOutputBuffer ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the output buffer state for the selected DAC channel.

Reference Manual to LL API cross reference:
CR BOFF1 LL_DAC_GetOutputBuffer
CR BOFF2 LL_DAC_GetOutputBuffer
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
Return values:
Returnedvalue can be one of the following values:

Definition at line 824 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetTriggerSource ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the conversion trigger source for the selected DAC channel.

Note:
For conversion trigger source to be effective, DAC trigger must be enabled using function LL_DAC_EnableTrigger().
Availability of parameters of trigger sources from timer depends on timers availability on the selected device.
Reference Manual to LL API cross reference:
CR TSEL1 LL_DAC_GetTriggerSource
CR TSEL2 LL_DAC_GetTriggerSource
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
Return values:
Returnedvalue can be one of the following values:

Definition at line 586 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetWaveAutoGeneration ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the waveform automatic generation mode for the selected DAC channel.

Reference Manual to LL API cross reference:
CR WAVE1 LL_DAC_GetWaveAutoGeneration
CR WAVE2 LL_DAC_GetWaveAutoGeneration
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
Return values:
Returnedvalue can be one of the following values:

Definition at line 635 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetWaveNoiseLFSR ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Set the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register).

Reference Manual to LL API cross reference:
CR MAMP1 LL_DAC_GetWaveNoiseLFSR
CR MAMP2 LL_DAC_GetWaveNoiseLFSR
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
Return values:
Returnedvalue can be one of the following values:

Definition at line 707 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetWaveTriangleAmplitude ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Set the triangle waveform generation for the selected DAC channel: triangle mode and amplitude.

Reference Manual to LL API cross reference:
CR MAMP1 LL_DAC_GetWaveTriangleAmplitude
CR MAMP2 LL_DAC_GetWaveTriangleAmplitude
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
Return values:
Returnedvalue can be one of the following values:

Definition at line 779 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetOutputBuffer ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  OutputBuffer 
)

Set the output buffer for the selected DAC channel.

Reference Manual to LL API cross reference:
CR BOFF1 LL_DAC_SetOutputBuffer
CR BOFF2 LL_DAC_SetOutputBuffer
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
OutputBufferThis parameter can be one of the following values:
Return values:
None

Definition at line 802 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetTriggerSource ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  TriggerSource 
)

Set the conversion trigger source for the selected DAC channel.

Note:
For conversion trigger source to be effective, DAC trigger must be enabled using function LL_DAC_EnableTrigger().
To set conversion trigger source, DAC channel must be disabled. Otherwise, the setting is discarded.
Availability of parameters of trigger sources from timer depends on timers availability on the selected device.
Reference Manual to LL API cross reference:
CR TSEL1 LL_DAC_SetTriggerSource
CR TSEL2 LL_DAC_SetTriggerSource
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
TriggerSourceThis parameter can be one of the following values:
Return values:
None

Definition at line 554 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetWaveAutoGeneration ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  WaveAutoGeneration 
)

Set the waveform automatic generation mode for the selected DAC channel.

Reference Manual to LL API cross reference:
CR WAVE1 LL_DAC_SetWaveAutoGeneration
CR WAVE2 LL_DAC_SetWaveAutoGeneration
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
WaveAutoGenerationThis parameter can be one of the following values:
Return values:
None

Definition at line 611 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetWaveNoiseLFSR ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  NoiseLFSRMask 
)

Set the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register).

Note:
For wave generation to be effective, DAC channel wave generation mode must be enabled using function LL_DAC_SetWaveAutoGeneration().
This setting can be set when the selected DAC channel is disabled (otherwise, the setting operation is ignored).
Reference Manual to LL API cross reference:
CR MAMP1 LL_DAC_SetWaveNoiseLFSR
CR MAMP2 LL_DAC_SetWaveNoiseLFSR
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
NoiseLFSRMaskThis parameter can be one of the following values:
Return values:
None

Definition at line 674 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetWaveTriangleAmplitude ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  TriangleAmplitude 
)

Set the triangle waveform generation for the selected DAC channel: triangle mode and amplitude.

Note:
For wave generation to be effective, DAC channel wave generation mode must be enabled using function LL_DAC_SetWaveAutoGeneration().
This setting can be set when the selected DAC channel is disabled (otherwise, the setting operation is ignored).
Reference Manual to LL API cross reference:
CR MAMP1 LL_DAC_SetWaveTriangleAmplitude
CR MAMP2 LL_DAC_SetWaveTriangleAmplitude
Parameters:
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability.
TriangleAmplitudeThis parameter can be one of the following values:
Return values:
None

Definition at line 746 of file stm32f4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.