STM32F479xx HAL User Manual
|
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. |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and Configuration functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize and configure the DSI (+) De-initialize the DSI
HAL_StatusTypeDef HAL_DSI_ConfigErrorMonitor | ( | DSI_HandleTypeDef * | hdsi, |
uint32_t | ActiveErrors | ||
) |
Enable the error monitor flags.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
ActiveErrors | indicates which error interrupts will be enabled. This parameter can be any combination of
|
HAL | status |
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.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
HAL | status |
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 | ||
) |
Initializes the DSI according to the specified parameters in the DSI_InitTypeDef and create the associated handle.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
PLLInit | pointer to a DSI_PLLInitTypeDef structure that contains the PLL Clock structure definition for the DSI. |
HAL | status |
Definition at line 303 of file stm32f4xx_hal_dsi.c.
References __HAL_DSI_GET_FLAG, __HAL_DSI_PLL_ENABLE, __HAL_DSI_REG_ENABLE, assert_param, DSI_InitTypeDef::AutomaticClockLaneControl, DSI_FLAG_PLLLS, DSI_FLAG_RRS, DSI_TIMEOUT_VALUE, __DSI_HandleTypeDef::EndOfRefreshCallback, __DSI_HandleTypeDef::ErrorCallback, __DSI_HandleTypeDef::ErrorCode, __DSI_HandleTypeDef::ErrorMsk, HAL_DSI_EndOfRefreshCallback(), HAL_DSI_ERROR_NONE, HAL_DSI_ErrorCallback(), HAL_DSI_MspInit(), HAL_DSI_STATE_BUSY, HAL_DSI_STATE_READY, HAL_DSI_STATE_RESET, HAL_DSI_TearingEffectCallback(), HAL_GetTick(), HSE_VALUE, __DSI_HandleTypeDef::Init, __DSI_HandleTypeDef::Instance, IS_DSI_AUTO_CLKLANE_CONTROL, IS_DSI_NUMBER_OF_LANES, IS_DSI_PLL_IDF, IS_DSI_PLL_NDIV, IS_DSI_PLL_ODF, __DSI_HandleTypeDef::MspInitCallback, DSI_InitTypeDef::NumberOfLanes, DSI_PLLInitTypeDef::PLLIDF, DSI_PLLInitTypeDef::PLLNDIV, DSI_PLLInitTypeDef::PLLODF, __DSI_HandleTypeDef::State, __DSI_HandleTypeDef::TearingEffectCallback, and DSI_InitTypeDef::TXEscapeCkdiv.
__weak void HAL_DSI_MspDeInit | ( | DSI_HandleTypeDef * | hdsi | ) |
De-initializes the DSI MSP.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
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.
hdsi | pointer to a DSI_HandleTypeDef structure that contains the configuration information for the DSI. |
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.
hdsi | dsi handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
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.
hdsi | dsi handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following 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.