STM32F479xx HAL User Manual
Functions
Initialization and Configuration functions
DSI Exported Functions

Initialization and Configuration functions. More...

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.
HAL_StatusTypeDef HAL_DSI_DeInit (DSI_HandleTypeDef *hdsi)
 De-initializes the DSI peripheral registers to their default reset values.
HAL_StatusTypeDef HAL_DSI_ConfigErrorMonitor (DSI_HandleTypeDef *hdsi, uint32_t ActiveErrors)
 Enable the error monitor flags.
__weak void HAL_DSI_MspInit (DSI_HandleTypeDef *hdsi)
 Initializes the DSI MSP.
__weak void HAL_DSI_MspDeInit (DSI_HandleTypeDef *hdsi)
 De-initializes the DSI MSP.
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.
HAL_StatusTypeDef HAL_DSI_UnRegisterCallback (DSI_HandleTypeDef *hdsi, HAL_DSI_CallbackIDTypeDef CallbackID)
 Unregister a DSI Callback DSI callabck is redirected to the weak predefined callback.

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_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 496 of file stm32f4xx_hal_dsi.c.

References DSI_ERROR_ACK_MASK, DSI_ERROR_CRC_MASK, DSI_ERROR_ECC_MASK, DSI_ERROR_EOT_MASK, DSI_ERROR_GEN_MASK, DSI_ERROR_OVF_MASK, DSI_ERROR_PHY_MASK, DSI_ERROR_PSE_MASK, DSI_ERROR_RX_MASK, DSI_ERROR_TX_MASK, __DSI_HandleTypeDef::ErrorMsk, HAL_DSI_ERROR_ACK, HAL_DSI_ERROR_CRC, HAL_DSI_ERROR_ECC, HAL_DSI_ERROR_EOT, HAL_DSI_ERROR_GEN, HAL_DSI_ERROR_OVF, HAL_DSI_ERROR_PHY, HAL_DSI_ERROR_PSE, HAL_DSI_ERROR_RX, HAL_DSI_ERROR_TX, and __DSI_HandleTypeDef::Instance.

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 438 of file stm32f4xx_hal_dsi.c.

References __HAL_DSI_DISABLE, __HAL_DSI_PLL_DISABLE, __HAL_DSI_REG_DISABLE, __HAL_DSI_WRAPPER_DISABLE, __DSI_HandleTypeDef::ErrorCode, HAL_DSI_ERROR_NONE, HAL_DSI_MspDeInit(), HAL_DSI_STATE_BUSY, HAL_DSI_STATE_RESET, __DSI_HandleTypeDef::Instance, __DSI_HandleTypeDef::MspDeInitCallback, and __DSI_HandleTypeDef::State.

HAL_StatusTypeDef HAL_DSI_Init ( DSI_HandleTypeDef hdsi,
DSI_PLLInitTypeDef PLLInit 
)
__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 594 of file stm32f4xx_hal_dsi.c.

Referenced by HAL_DSI_DeInit(), and HAL_DSI_UnRegisterCallback().

__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 579 of file stm32f4xx_hal_dsi.c.

Referenced by HAL_DSI_Init(), and HAL_DSI_UnRegisterCallback().

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 618 of file stm32f4xx_hal_dsi.c.

References __DSI_HandleTypeDef::EndOfRefreshCallback, __DSI_HandleTypeDef::ErrorCallback, __DSI_HandleTypeDef::ErrorCode, HAL_DSI_ENDOF_REFRESH_CB_ID, HAL_DSI_ERROR_CB_ID, HAL_DSI_ERROR_INVALID_CALLBACK, HAL_DSI_MSPDEINIT_CB_ID, HAL_DSI_MSPINIT_CB_ID, HAL_DSI_STATE_READY, HAL_DSI_STATE_RESET, HAL_DSI_TEARING_EFFECT_CB_ID, __DSI_HandleTypeDef::MspDeInitCallback, __DSI_HandleTypeDef::MspInitCallback, __DSI_HandleTypeDef::State, and __DSI_HandleTypeDef::TearingEffectCallback.

HAL_StatusTypeDef HAL_DSI_UnRegisterCallback ( DSI_HandleTypeDef hdsi,
HAL_DSI_CallbackIDTypeDef  CallbackID 
)

Unregister a DSI Callback DSI callabck 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 712 of file stm32f4xx_hal_dsi.c.

References __DSI_HandleTypeDef::EndOfRefreshCallback, __DSI_HandleTypeDef::ErrorCallback, __DSI_HandleTypeDef::ErrorCode, HAL_DSI_ENDOF_REFRESH_CB_ID, HAL_DSI_EndOfRefreshCallback(), HAL_DSI_ERROR_CB_ID, HAL_DSI_ERROR_INVALID_CALLBACK, HAL_DSI_ErrorCallback(), HAL_DSI_MspDeInit(), HAL_DSI_MSPDEINIT_CB_ID, HAL_DSI_MspInit(), HAL_DSI_MSPINIT_CB_ID, HAL_DSI_STATE_READY, HAL_DSI_STATE_RESET, HAL_DSI_TEARING_EFFECT_CB_ID, HAL_DSI_TearingEffectCallback(), __DSI_HandleTypeDef::MspDeInitCallback, __DSI_HandleTypeDef::MspInitCallback, __DSI_HandleTypeDef::State, and __DSI_HandleTypeDef::TearingEffectCallback.