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

Functions

__STATIC_INLINE void LL_DAC_SetMode (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t ChannelMode)
 Set the operating mode for the selected DAC channel: calibration or normal operating mode.
__STATIC_INLINE uint32_t LL_DAC_GetMode (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the operating mode for the selected DAC channel: calibration or normal operating mode.
__STATIC_INLINE void LL_DAC_SetTrimmingValue (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TrimmingValue)
 Set the offset trimming value for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetTrimmingValue (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the offset trimming value for the selected DAC channel.
__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)
 Get 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)
 Get the triangle waveform generation for the selected DAC channel: triangle mode and amplitude.
__STATIC_INLINE void LL_DAC_ConfigOutput (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputMode, uint32_t OutputBuffer, uint32_t OutputConnection)
 Set the output for the selected DAC channel.
__STATIC_INLINE void LL_DAC_SetOutputMode (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputMode)
 Set the output mode normal or sample-and-hold for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetOutputMode (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the output mode normal or sample-and-hold for the selected DAC channel.
__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.
__STATIC_INLINE void LL_DAC_SetOutputConnection (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputConnection)
 Set the output connection for the selected DAC channel.
__STATIC_INLINE uint32_t LL_DAC_GetOutputConnection (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the output connection for the selected DAC channel.
__STATIC_INLINE void LL_DAC_SetSampleAndHoldSampleTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t SampleTime)
 Set the sample-and-hold timing for the selected DAC channel: sample time.
__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldSampleTime (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the sample-and-hold timing for the selected DAC channel: sample time.
__STATIC_INLINE void LL_DAC_SetSampleAndHoldHoldTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t HoldTime)
 Set the sample-and-hold timing for the selected DAC channel: hold time.
__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldHoldTime (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the sample-and-hold timing for the selected DAC channel: hold time.
__STATIC_INLINE void LL_DAC_SetSampleAndHoldRefreshTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t RefreshTime)
 Set the sample-and-hold timing for the selected DAC channel: refresh time.
__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldRefreshTime (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Get the sample-and-hold timing for the selected DAC channel: refresh time.

Function Documentation

__STATIC_INLINE void LL_DAC_ConfigOutput ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  OutputMode,
uint32_t  OutputBuffer,
uint32_t  OutputConnection 
)

Set the output for the selected DAC channel.

Note:
This function set several features:
On this STM32 serie, output connection depends on output mode (normal or sample and hold) and output buffer state.
  • if output connection is set to internal path and output buffer is enabled (whatever output mode): output connection is also connected to GPIO pin (both connections to GPIO pin and internal path).
  • if output connection is set to GPIO pin, output buffer is disabled, output mode set to sample and hold: output connection is also connected to internal path (both connections to GPIO pin and internal path).
Mode sample-and-hold requires an external capacitor to be connected between DAC channel output and ground. Capacitor value depends on load on DAC channel output and sample-and-hold timings configured. As indication, capacitor typical value is 100nF (refer to device datasheet, parameter "CSH").
Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_ConfigOutput
CR MODE2 LL_DAC_ConfigOutput
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.
OutputModeThis parameter can be one of the following values:
OutputBufferThis parameter can be one of the following values:
OutputConnectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1015 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetMode ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the operating mode for the selected DAC channel: calibration or normal operating mode.

Reference Manual to LL API cross reference:
CR CEN1 LL_DAC_GetMode
CR CEN2 LL_DAC_GetMode
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 656 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__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 MODE1 LL_DAC_GetOutputBuffer
CR MODE2 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 1116 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetOutputConnection ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the output connection for the selected DAC channel.

Note:
On this STM32 serie, output connection depends on output mode (normal or sample and hold) and output buffer state.
  • if output connection is set to internal path and output buffer is enabled (whatever output mode): output connection is also connected to GPIO pin (both connections to GPIO pin and internal path).
  • if output connection is set to GPIO pin, output buffer is disabled, output mode set to sample and hold: output connection is also connected to internal path (both connections to GPIO pin and internal path).
Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_GetOutputConnection
CR MODE2 LL_DAC_GetOutputConnection
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 1181 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetOutputMode ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the output mode normal or sample-and-hold for the selected DAC channel.

Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_GetOutputMode
CR MODE2 LL_DAC_GetOutputMode
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 1067 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldHoldTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the sample-and-hold timing for the selected DAC channel: hold time.

Reference Manual to LL API cross reference:
SHHR THOLD1 LL_DAC_GetSampleAndHoldHoldTime
SHHR THOLD2 LL_DAC_GetSampleAndHoldHoldTime
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:
Valuebetween Min_Data=0x000 and Max_Data=0x3FF

Definition at line 1273 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldRefreshTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the sample-and-hold timing for the selected DAC channel: refresh time.

Reference Manual to LL API cross reference:
SHRR TREFRESH1 LL_DAC_GetSampleAndHoldRefreshTime
SHRR TREFRESH2 LL_DAC_GetSampleAndHoldRefreshTime
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:
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 1316 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetSampleAndHoldSampleTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the sample-and-hold timing for the selected DAC channel: sample time.

Reference Manual to LL API cross reference:
SHSR1 TSAMPLE1 LL_DAC_GetSampleAndHoldSampleTime
SHSR2 TSAMPLE2 LL_DAC_GetSampleAndHoldSampleTime
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:
Valuebetween Min_Data=0x000 and Max_Data=0x3FF

Definition at line 1230 of file stm32l4xx_ll_dac.h.

References __DAC_MASK_SHIFT, __DAC_PTR_REG_OFFSET, and DAC_REG_SHSRX_REGOFFSET_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 768 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetTrimmingValue ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get the offset trimming value for the selected DAC channel.

Trimming has an impact when output buffer is enabled and is intended to replace factory calibration default values.

Reference Manual to LL API cross reference:
CCR OTRIM1 LL_DAC_GetTrimmingValue
CCR OTRIM2 LL_DAC_GetTrimmingValue
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:
TrimmingValueValue between Min_Data=0x00 and Max_Data=0x1F

Definition at line 701 of file stm32l4xx_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 817 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

Referenced by LL_DAC_GetWaveMode().

__STATIC_INLINE uint32_t LL_DAC_GetWaveNoiseLFSR ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get 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 889 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE uint32_t LL_DAC_GetWaveTriangleAmplitude ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel 
)

Get 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 961 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetMode ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  ChannelMode 
)

Set the operating mode for the selected DAC channel: calibration or normal operating mode.

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

Definition at line 633 of file stm32l4xx_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.

Note:
On this STM32 serie, when buffer is enabled, its offset can be trimmed: factory calibration default values can be replaced by user trimming values, using function LL_DAC_SetTrimmingValue().
Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_SetOutputBuffer
CR MODE2 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 1094 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetOutputConnection ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  OutputConnection 
)

Set the output connection for the selected DAC channel.

Note:
On this STM32 serie, output connection depends on output mode (normal or sample and hold) and output buffer state.
  • if output connection is set to internal path and output buffer is enabled (whatever output mode): output connection is also connected to GPIO pin (both connections to GPIO pin and internal path).
  • if output connection is set to GPIO pin, output buffer is disabled, output mode set to sample and hold: output connection is also connected to internal path (both connections to GPIO pin and internal path).
Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_SetOutputConnection
CR MODE2 LL_DAC_SetOutputConnection
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.
OutputConnectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1149 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetOutputMode ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  OutputMode 
)

Set the output mode normal or sample-and-hold for the selected DAC channel.

Note:
Mode sample-and-hold requires an external capacitor to be connected between DAC channel output and ground. Capacitor value depends on load on DAC channel output and sample-and-hold timings configured. As indication, capacitor typical value is 100nF (refer to device datasheet, parameter "CSH").
Reference Manual to LL API cross reference:
CR MODE1 LL_DAC_SetOutputMode
CR MODE2 LL_DAC_SetOutputMode
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.
OutputModeThis parameter can be one of the following values:
Return values:
None

Definition at line 1045 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetSampleAndHoldHoldTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  HoldTime 
)

Set the sample-and-hold timing for the selected DAC channel: hold time.

Reference Manual to LL API cross reference:
SHHR THOLD1 LL_DAC_SetSampleAndHoldHoldTime
SHHR THOLD2 LL_DAC_SetSampleAndHoldHoldTime
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.
HoldTimeValue between Min_Data=0x000 and Max_Data=0x3FF
Return values:
None

Definition at line 1252 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetSampleAndHoldRefreshTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  RefreshTime 
)

Set the sample-and-hold timing for the selected DAC channel: refresh time.

Reference Manual to LL API cross reference:
SHRR TREFRESH1 LL_DAC_SetSampleAndHoldRefreshTime
SHRR TREFRESH2 LL_DAC_SetSampleAndHoldRefreshTime
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.
RefreshTimeValue between Min_Data=0x00 and Max_Data=0xFF
Return values:
None

Definition at line 1295 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetSampleAndHoldSampleTime ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  SampleTime 
)

Set the sample-and-hold timing for the selected DAC channel: sample time.

Note:
Sample time must be set when DAC channel is disabled or during DAC operation when DAC channel flag BWSTx is reset, otherwise the setting is ignored. Check BWSTx flag state using function "LL_DAC_IsActiveFlag_BWSTx()".
Reference Manual to LL API cross reference:
SHSR1 TSAMPLE1 LL_DAC_SetSampleAndHoldSampleTime
SHSR2 TSAMPLE2 LL_DAC_SetSampleAndHoldSampleTime
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.
SampleTimeValue between Min_Data=0x000 and Max_Data=0x3FF
Return values:
None

Definition at line 1207 of file stm32l4xx_ll_dac.h.

References __DAC_MASK_SHIFT, __DAC_PTR_REG_OFFSET, and DAC_REG_SHSRX_REGOFFSET_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 736 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

__STATIC_INLINE void LL_DAC_SetTrimmingValue ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
uint32_t  TrimmingValue 
)

Set the offset trimming value for the selected DAC channel.

Trimming has an impact when output buffer is enabled and is intended to replace factory calibration default values.

Reference Manual to LL API cross reference:
CCR OTRIM1 LL_DAC_SetTrimmingValue
CCR OTRIM2 LL_DAC_SetTrimmingValue
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.
TrimmingValueValue between Min_Data=0x00 and Max_Data=0x1F
Return values:
None

Definition at line 679 of file stm32l4xx_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 793 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.

Referenced by LL_DAC_SetWaveMode().

__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 856 of file stm32l4xx_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 928 of file stm32l4xx_ll_dac.h.

References DAC_CR_CHX_BITOFFSET_MASK.