STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and de-initialization functions:

Functions

HAL_StatusTypeDef HAL_DAC_Init (DAC_HandleTypeDef *hdac)
 Initialize the DAC peripheral according to the specified parameters in the DAC_InitStruct and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_DAC_DeInit (DAC_HandleTypeDef *hdac)
 Deinitialize the DAC peripheral registers to their default reset values. More...
 
void HAL_DAC_MspInit (DAC_HandleTypeDef *hdac)
 Initialize the DAC MSP. More...
 
void HAL_DAC_MspDeInit (DAC_HandleTypeDef *hdac)
 DeInitialize the DAC MSP. More...
 
HAL_StatusTypeDef HAL_DAC_RegisterCallback (DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID, pDAC_CallbackTypeDef pCallback)
 Register a User DAC Callback To be used instead of the weak (overridden) predefined callback. More...
 
HAL_StatusTypeDef HAL_DAC_UnRegisterCallback (DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID)
 Unregister a User DAC Callback DAC Callback is redirected to the weak (overridden) predefined callback. More...
 

Detailed Description

Initialization and Configuration functions.

  ==============================================================================
              ##### Initialization and de-initialization functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the DAC.
      (+) De-initialize the DAC.

Function Documentation

◆ HAL_DAC_DeInit()

HAL_StatusTypeDef HAL_DAC_DeInit ( DAC_HandleTypeDef hdac)

Deinitialize the DAC peripheral registers to their default reset values.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
HALstatus

Definition at line 332 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_Init()

HAL_StatusTypeDef HAL_DAC_Init ( DAC_HandleTypeDef hdac)

Initialize the DAC peripheral according to the specified parameters in the DAC_InitStruct and initialize the associated handle.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
HALstatus

Definition at line 271 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_MspDeInit()

__weak void HAL_DAC_MspDeInit ( DAC_HandleTypeDef hdac)

DeInitialize the DAC MSP.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
None

Definition at line 393 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_MspInit()

__weak void HAL_DAC_MspInit ( DAC_HandleTypeDef hdac)

Initialize the DAC MSP.

Parameters
hdacpointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC.
Return values
None

Definition at line 377 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_RegisterCallback()

HAL_StatusTypeDef HAL_DAC_RegisterCallback ( DAC_HandleTypeDef hdac,
HAL_DAC_CallbackIDTypeDef  CallbackID,
pDAC_CallbackTypeDef  pCallback 
)

Register a User DAC Callback To be used instead of the weak (overridden) predefined callback.

Note
The HAL_DAC_RegisterCallback() may be called before HAL_DAC_Init() in HAL_DAC_STATE_RESET to register callbacks for HAL_DAC_MSPINIT_CB_ID and HAL_DAC_MSPDEINIT_CB_ID
Parameters
hdacDAC handle
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values
status

Definition at line 1091 of file stm32f4xx_hal_dac.c.

◆ HAL_DAC_UnRegisterCallback()

HAL_StatusTypeDef HAL_DAC_UnRegisterCallback ( DAC_HandleTypeDef hdac,
HAL_DAC_CallbackIDTypeDef  CallbackID 
)

Unregister a User DAC Callback DAC Callback is redirected to the weak (overridden) predefined callback.

Note
The HAL_DAC_UnRegisterCallback() may be called before HAL_DAC_Init() in HAL_DAC_STATE_RESET to un-register callbacks for HAL_DAC_MSPINIT_CB_ID and HAL_DAC_MSPDEINIT_CB_ID
Parameters
hdacDAC handle
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
Return values
status

Definition at line 1203 of file stm32f4xx_hal_dac.c.