STM32F4xx_HAL_Driver  1.8.3
Initialization and Configuration functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and Configuration functions:

Functions

HAL_StatusTypeDef HAL_DSI_Init (DSI_HandleTypeDef *hdsi, DSI_PLLInitTypeDef *PLLInit)
 Initializes the DSI according to the specified parameters in the DSI_InitTypeDef and create the associated handle. More...
 
HAL_StatusTypeDef HAL_DSI_DeInit (DSI_HandleTypeDef *hdsi)
 De-initializes the DSI peripheral registers to their default reset values. More...
 
void HAL_DSI_MspInit (DSI_HandleTypeDef *hdsi)
 Initializes the DSI MSP. More...
 
void HAL_DSI_MspDeInit (DSI_HandleTypeDef *hdsi)
 De-initializes the DSI MSP. More...
 
HAL_StatusTypeDef HAL_DSI_ConfigErrorMonitor (DSI_HandleTypeDef *hdsi, uint32_t ActiveErrors)
 Enable the error monitor flags. More...
 
HAL_StatusTypeDef HAL_DSI_RegisterCallback (DSI_HandleTypeDef *hdsi, HAL_DSI_CallbackIDTypeDef CallbackID, pDSI_CallbackTypeDef pCallback)
 Register a User DSI Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_DSI_UnRegisterCallback (DSI_HandleTypeDef *hdsi, HAL_DSI_CallbackIDTypeDef CallbackID)
 Unregister a DSI Callback DSI callback is redirected to the weak predefined callback. More...
 

Detailed Description

Initialization and Configuration functions.

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

Function Documentation

◆ HAL_DSI_ConfigErrorMonitor()

HAL_StatusTypeDef HAL_DSI_ConfigErrorMonitor ( DSI_HandleTypeDef hdsi,
uint32_t  ActiveErrors 
)

Enable the error monitor flags.

Parameters
hdsipointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI.
ActiveErrorsindicates which error interrupts will be enabled. This parameter can be any combination of
  • DSI_Error_Data_Type.
Return values
HALstatus

Definition at line 543 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_DeInit()

HAL_StatusTypeDef HAL_DSI_DeInit ( DSI_HandleTypeDef hdsi)

De-initializes the DSI peripheral registers to their default reset values.

Parameters
hdsipointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI.
Return values
HALstatus

Definition at line 485 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_Init()

HAL_StatusTypeDef HAL_DSI_Init ( DSI_HandleTypeDef hdsi,
DSI_PLLInitTypeDef PLLInit 
)

Initializes the DSI according to the specified parameters in the DSI_InitTypeDef and create the associated handle.

Parameters
hdsipointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI.
PLLInitpointer to a DSI_PLLInitTypeDef structure that contains the PLL Clock structure definition for the DSI.
Return values
HALstatus

Definition at line 309 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_MspDeInit()

__weak void HAL_DSI_MspDeInit ( DSI_HandleTypeDef hdsi)

De-initializes the DSI MSP.

Parameters
hdsipointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI.
Return values
None

Definition at line 641 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_MspInit()

__weak void HAL_DSI_MspInit ( DSI_HandleTypeDef hdsi)

Initializes the DSI MSP.

Parameters
hdsipointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI.
Return values
None

Definition at line 626 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_RegisterCallback()

HAL_StatusTypeDef HAL_DSI_RegisterCallback ( DSI_HandleTypeDef hdsi,
HAL_DSI_CallbackIDTypeDef  CallbackID,
pDSI_CallbackTypeDef  pCallback 
)

Register a User DSI Callback To be used instead of the weak predefined callback.

Parameters
hdsidsi handle
CallbackIDID of the callback to be registered This parameter can be one of the following values:
  • HAL_DSI_TEARING_EFFECT_CB_ID Tearing Effect Callback ID
  • HAL_DSI_ENDOF_REFRESH_CB_ID End Of Refresh Callback ID
  • HAL_DSI_ERROR_CB_ID Error Callback ID
  • HAL_DSI_MSPINIT_CB_ID MspInit callback ID
  • HAL_DSI_MSPDEINIT_CB_ID MspDeInit callback ID
pCallbackpointer to the Callback function
Return values
status

Definition at line 665 of file stm32f4xx_hal_dsi.c.

◆ HAL_DSI_UnRegisterCallback()

HAL_StatusTypeDef HAL_DSI_UnRegisterCallback ( DSI_HandleTypeDef hdsi,
HAL_DSI_CallbackIDTypeDef  CallbackID 
)

Unregister a DSI Callback DSI callback is redirected to the weak predefined callback.

Parameters
hdsidsi handle
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
  • HAL_DSI_TEARING_EFFECT_CB_ID Tearing Effect Callback ID
  • HAL_DSI_ENDOF_REFRESH_CB_ID End Of Refresh Callback ID
  • HAL_DSI_ERROR_CB_ID Error Callback ID
  • HAL_DSI_MSPINIT_CB_ID MspInit callback ID
  • HAL_DSI_MSPDEINIT_CB_ID MspDeInit callback ID
Return values
status

Definition at line 759 of file stm32f4xx_hal_dsi.c.