Initialization and Configuration functions.
More...
Initialization and Configuration functions.
==============================================================================
##### Initialization and de-initialization functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Initialize and configure the DAC.
(+) De-initialize the DAC.
◆ HAL_DAC_DeInit()
Deinitialize the DAC peripheral registers to their default reset values.
- Parameters
-
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
- Return values
-
Definition at line 332 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_Init()
Initialize the DAC peripheral according to the specified parameters in the DAC_InitStruct and initialize the associated handle.
- Parameters
-
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
- Return values
-
Definition at line 271 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_MspDeInit()
DeInitialize the DAC MSP.
- Parameters
-
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
- Return values
-
Definition at line 393 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_MspInit()
Initialize the DAC MSP.
- Parameters
-
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
- Return values
-
Definition at line 377 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_RegisterCallback()
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
-
hdac | DAC handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
- Return values
-
Definition at line 1091 of file stm32f4xx_hal_dac.c.
◆ HAL_DAC_UnRegisterCallback()
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
-
hdac | DAC handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
- Return values
-
Definition at line 1203 of file stm32f4xx_hal_dac.c.