STM32L4xx_HAL_Driver  1.14.0
IO operation functions

IO operation functions. More...

Functions

void HAL_DSI_IRQHandler (DSI_HandleTypeDef *hdsi)
 Handles DSI interrupt request. More...
 
__weak void HAL_DSI_TearingEffectCallback (DSI_HandleTypeDef *hdsi)
 Tearing Effect DSI callback. More...
 
__weak void HAL_DSI_EndOfRefreshCallback (DSI_HandleTypeDef *hdsi)
 End of Refresh DSI callback. More...
 
__weak void HAL_DSI_ErrorCallback (DSI_HandleTypeDef *hdsi)
 Operation Error DSI callback. More...
 

Detailed Description

IO operation functions.

 ===============================================================================
                      #####  IO operation functions  #####
 ===============================================================================
    [..]  This section provides function allowing to:
      (+) Handle DSI interrupt request

Function Documentation

◆ HAL_DSI_EndOfRefreshCallback()

__weak void HAL_DSI_EndOfRefreshCallback ( DSI_HandleTypeDef hdsi)

End of Refresh DSI callback.

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

Definition at line 945 of file stm32l4xx_hal_dsi.c.

946 {
947  /* Prevent unused argument(s) compilation warning */
948  UNUSED(hdsi);
949  /* NOTE : This function Should not be modified, when the callback is needed,
950  the HAL_DSI_EndOfRefreshCallback could be implemented in the user file
951  */
952 }

◆ HAL_DSI_ErrorCallback()

__weak void HAL_DSI_ErrorCallback ( DSI_HandleTypeDef hdsi)

Operation Error DSI callback.

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

Definition at line 960 of file stm32l4xx_hal_dsi.c.

961 {
962  /* Prevent unused argument(s) compilation warning */
963  UNUSED(hdsi);
964  /* NOTE : This function Should not be modified, when the callback is needed,
965  the HAL_DSI_ErrorCallback could be implemented in the user file
966  */
967 }

◆ HAL_DSI_IRQHandler()

void HAL_DSI_IRQHandler ( DSI_HandleTypeDef hdsi)

Handles DSI interrupt request.

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

Definition at line 809 of file stm32l4xx_hal_dsi.c.

810 {
811  uint32_t ErrorStatus0, ErrorStatus1;
812 
813  /* Tearing Effect Interrupt management ***************************************/
814  if (__HAL_DSI_GET_FLAG(hdsi, DSI_FLAG_TE) != 0U)
815  {
816  if (__HAL_DSI_GET_IT_SOURCE(hdsi, DSI_IT_TE) != 0U)
817  {
818  /* Clear the Tearing Effect Interrupt Flag */
819  __HAL_DSI_CLEAR_FLAG(hdsi, DSI_FLAG_TE);
820 
821  /* Tearing Effect Callback */
822 #if (USE_HAL_DSI_REGISTER_CALLBACKS == 1)
823  /*Call registered Tearing Effect callback */
824  hdsi->TearingEffectCallback(hdsi);
825 #else
826  /*Call legacy Tearing Effect callback*/
828 #endif /* USE_HAL_DSI_REGISTER_CALLBACKS */
829  }
830  }
831 
832  /* End of Refresh Interrupt management ***************************************/
833  if (__HAL_DSI_GET_FLAG(hdsi, DSI_FLAG_ER) != 0U)
834  {
835  if (__HAL_DSI_GET_IT_SOURCE(hdsi, DSI_IT_ER) != 0U)
836  {
837  /* Clear the End of Refresh Interrupt Flag */
838  __HAL_DSI_CLEAR_FLAG(hdsi, DSI_FLAG_ER);
839 
840  /* End of Refresh Callback */
841 #if (USE_HAL_DSI_REGISTER_CALLBACKS == 1)
842  /*Call registered End of refresh callback */
843  hdsi->EndOfRefreshCallback(hdsi);
844 #else
845  /*Call Legacy End of refresh callback */
847 #endif /* USE_HAL_DSI_REGISTER_CALLBACKS */
848  }
849  }
850 
851  /* Error Interrupts management ***********************************************/
852  if (hdsi->ErrorMsk != 0U)
853  {
854  ErrorStatus0 = hdsi->Instance->ISR[0U];
855  ErrorStatus0 &= hdsi->Instance->IER[0U];
856  ErrorStatus1 = hdsi->Instance->ISR[1U];
857  ErrorStatus1 &= hdsi->Instance->IER[1U];
858 
859  if ((ErrorStatus0 & DSI_ERROR_ACK_MASK) != 0U)
860  {
861  hdsi->ErrorCode |= HAL_DSI_ERROR_ACK;
862  }
863 
864  if ((ErrorStatus0 & DSI_ERROR_PHY_MASK) != 0U)
865  {
866  hdsi->ErrorCode |= HAL_DSI_ERROR_PHY;
867  }
868 
869  if ((ErrorStatus1 & DSI_ERROR_TX_MASK) != 0U)
870  {
871  hdsi->ErrorCode |= HAL_DSI_ERROR_TX;
872  }
873 
874  if ((ErrorStatus1 & DSI_ERROR_RX_MASK) != 0U)
875  {
876  hdsi->ErrorCode |= HAL_DSI_ERROR_RX;
877  }
878 
879  if ((ErrorStatus1 & DSI_ERROR_ECC_MASK) != 0U)
880  {
881  hdsi->ErrorCode |= HAL_DSI_ERROR_ECC;
882  }
883 
884  if ((ErrorStatus1 & DSI_ERROR_CRC_MASK) != 0U)
885  {
886  hdsi->ErrorCode |= HAL_DSI_ERROR_CRC;
887  }
888 
889  if ((ErrorStatus1 & DSI_ERROR_PSE_MASK) != 0U)
890  {
891  hdsi->ErrorCode |= HAL_DSI_ERROR_PSE;
892  }
893 
894  if ((ErrorStatus1 & DSI_ERROR_EOT_MASK) != 0U)
895  {
896  hdsi->ErrorCode |= HAL_DSI_ERROR_EOT;
897  }
898 
899  if ((ErrorStatus1 & DSI_ERROR_OVF_MASK) != 0U)
900  {
901  hdsi->ErrorCode |= HAL_DSI_ERROR_OVF;
902  }
903 
904  if ((ErrorStatus1 & DSI_ERROR_GEN_MASK) != 0U)
905  {
906  hdsi->ErrorCode |= HAL_DSI_ERROR_GEN;
907  }
908 
909  /* Check only selected errors */
910  if (hdsi->ErrorCode != HAL_DSI_ERROR_NONE)
911  {
912  /* DSI error interrupt callback */
913 #if (USE_HAL_DSI_REGISTER_CALLBACKS == 1)
914  /*Call registered Error callback */
915  hdsi->ErrorCallback(hdsi);
916 #else
917  /*Call Legacy Error callback */
918  HAL_DSI_ErrorCallback(hdsi);
919 #endif /* USE_HAL_DSI_REGISTER_CALLBACKS */
920  }
921  }
922 }
__weak void HAL_DSI_EndOfRefreshCallback(DSI_HandleTypeDef *hdsi)
End of Refresh DSI callback.
__weak void HAL_DSI_TearingEffectCallback(DSI_HandleTypeDef *hdsi)
Tearing Effect DSI callback.
__weak void HAL_DSI_ErrorCallback(DSI_HandleTypeDef *hdsi)
Operation Error DSI callback.

◆ HAL_DSI_TearingEffectCallback()

__weak void HAL_DSI_TearingEffectCallback ( DSI_HandleTypeDef hdsi)

Tearing Effect DSI callback.

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

Definition at line 930 of file stm32l4xx_hal_dsi.c.

931 {
932  /* Prevent unused argument(s) compilation warning */
933  UNUSED(hdsi);
934  /* NOTE : This function Should not be modified, when the callback is needed,
935  the HAL_DSI_TearingEffectCallback could be implemented in the user file
936  */
937 }