STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions
+ Collaboration diagram for Initialization and de-initialization functions:

Functions

ErrorStatus LL_DAC_DeInit (const DAC_TypeDef *DACx)
 De-initialize registers of the selected DAC instance to their default reset values. More...
 
ErrorStatus LL_DAC_Init (DAC_TypeDef *DACx, uint32_t DAC_Channel, const LL_DAC_InitTypeDef *DAC_InitStruct)
 Initialize some features of DAC channel. More...
 
void LL_DAC_StructInit (LL_DAC_InitTypeDef *DAC_InitStruct)
 Set each LL_DAC_InitTypeDef field to default value. More...
 

Detailed Description

Function Documentation

◆ LL_DAC_DeInit()

ErrorStatus LL_DAC_DeInit ( const DAC_TypeDef *  DACx)

De-initialize registers of the selected DAC instance to their default reset values.

Parameters
DACxDAC instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DAC registers are de-initialized
  • ERROR: not applicable

Definition at line 135 of file stm32f4xx_ll_dac.c.

◆ LL_DAC_Init()

ErrorStatus LL_DAC_Init ( DAC_TypeDef *  DACx,
uint32_t  DAC_Channel,
const LL_DAC_InitTypeDef DAC_InitStruct 
)

Initialize some features of DAC channel.

Note
LL_DAC_Init() aims to ease basic configuration of a DAC channel. Leaving it ready to be enabled and output: a level by calling one of LL_DAC_ConvertData12RightAligned LL_DAC_ConvertData12LeftAligned LL_DAC_ConvertData8RightAligned or one of the supported autogenerated wave.
This function allows configuration of:
  • Output mode
  • Trigger
  • Wave generation
The setting of these parameters by function LL_DAC_Init() is conditioned to DAC state: DAC channel must be disabled.
Parameters
DACxDAC instance
DAC_ChannelThis parameter can be one of the following values:
  • LL_DAC_CHANNEL_1
  • LL_DAC_CHANNEL_2 (1)
(1) On this STM32 series, parameter not available on all devices. Refer to device datasheet for channels availability.
DAC_InitStructPointer to a LL_DAC_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DAC registers are initialized
  • ERROR: DAC registers are not initialized

Definition at line 177 of file stm32f4xx_ll_dac.c.

◆ LL_DAC_StructInit()

void LL_DAC_StructInit ( LL_DAC_InitTypeDef DAC_InitStruct)

Set each LL_DAC_InitTypeDef field to default value.

Parameters
DAC_InitStructpointer to a LL_DAC_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 247 of file stm32f4xx_ll_dac.c.