STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
DAC Exported Functions

Functions

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

Function Documentation

ErrorStatus LL_DAC_DeInit ( 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 152 of file stm32f4xx_ll_dac.c.

References assert_param, LL_APB1_GRP1_ForceReset(), LL_APB1_GRP1_PERIPH_DAC1, and LL_APB1_GRP1_ReleaseReset().

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

Initialize some features of DAC instance.

Note:
The setting of these parameters by function LL_DAC_Init() is conditioned to DAC state: DAC instance must be disabled.
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.
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 182 of file stm32f4xx_ll_dac.c.

References assert_param, DAC_CR_CHX_BITOFFSET_MASK, IS_LL_DAC_CHANNEL, IS_LL_DAC_OUTPUT_BUFFER, IS_LL_DAC_TRIGGER_SOURCE, IS_LL_DAC_WAVE_AUTO_GENER_CONFIG, IS_LL_DAC_WAVE_AUTO_GENER_MODE, LL_DAC_IsEnabled(), LL_DAC_WAVE_AUTO_GENERATION_NONE, LL_DAC_InitTypeDef::OutputBuffer, LL_DAC_InitTypeDef::TriggerSource, LL_DAC_InitTypeDef::WaveAutoGeneration, and LL_DAC_InitTypeDef::WaveAutoGenerationConfig.

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 250 of file stm32f4xx_ll_dac.c.

References LL_DAC_NOISE_LFSR_UNMASK_BIT0, LL_DAC_OUTPUT_BUFFER_ENABLE, LL_DAC_TRIG_SOFTWARE, LL_DAC_WAVE_AUTO_GENERATION_NONE, LL_DAC_InitTypeDef::OutputBuffer, LL_DAC_InitTypeDef::TriggerSource, LL_DAC_InitTypeDef::WaveAutoGeneration, and LL_DAC_InitTypeDef::WaveAutoGenerationConfig.