TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization 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 157 of file stm32l4xx_ll_dac.c.

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:

  • LL_DAC_CHANNEL_1
  • LL_DAC_CHANNEL_2
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 185 of file stm32l4xx_ll_dac.c.

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 265 of file stm32l4xx_ll_dac.c.