STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
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.
 
HAL_StatusTypeDef HAL_DAC_DeInit (DAC_HandleTypeDef *hdac)
 Deinitialize the DAC peripheral registers to their default reset values.
 
void HAL_DAC_MspInit (DAC_HandleTypeDef *hdac)
 Initialize the DAC MSP.
 
void HAL_DAC_MspDeInit (DAC_HandleTypeDef *hdac)
 DeInitialize the DAC MSP.
 

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_Init()

HAL_StatusTypeDef HAL_DAC_Init ( DAC_HandleTypeDef * hdac)

#include <stm32f4xx_hal_dac.h>

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.

References assert_param, DAC_HandleTypeDef::ErrorCode, HAL_DAC_ConvCpltCallbackCh1(), HAL_DAC_ConvHalfCpltCallbackCh1(), HAL_DAC_DMAUnderrunCallbackCh1(), HAL_DAC_ERROR_NONE, HAL_DAC_ErrorCallbackCh1(), HAL_DAC_MspInit(), HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, HAL_DAC_STATE_RESET, HAL_ERROR, HAL_OK, HAL_UNLOCKED, DAC_HandleTypeDef::Instance, DAC_HandleTypeDef::Lock, and DAC_HandleTypeDef::State.

◆ HAL_DAC_DeInit()

HAL_StatusTypeDef HAL_DAC_DeInit ( DAC_HandleTypeDef * hdac)

#include <stm32f4xx_hal_dac.h>

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.

References __HAL_UNLOCK, assert_param, DAC_HandleTypeDef::ErrorCode, HAL_DAC_ERROR_NONE, HAL_DAC_MspDeInit(), HAL_DAC_STATE_BUSY, HAL_DAC_STATE_RESET, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, and DAC_HandleTypeDef::State.

◆ HAL_DAC_MspInit()

__weak void HAL_DAC_MspInit ( DAC_HandleTypeDef * hdac)

#include <stm32f4xx_hal_dac.h>

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.

References UNUSED.

Referenced by HAL_DAC_Init().

◆ HAL_DAC_MspDeInit()

__weak void HAL_DAC_MspDeInit ( DAC_HandleTypeDef * hdac)

#include <stm32f4xx_hal_dac.h>

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.

References UNUSED.

Referenced by HAL_DAC_DeInit().