STM32L4xx_HAL_Driver  1.14.0

GFXMMU state functions. More...

Functions

HAL_GFXMMU_StateTypeDef HAL_GFXMMU_GetState (GFXMMU_HandleTypeDef *hgfxmmu)
 This function allows to get the current GFXMMU handle state. More...
 
uint32_t HAL_GFXMMU_GetError (GFXMMU_HandleTypeDef *hgfxmmu)
 This function allows to get the current GFXMMU error code. More...
 

Detailed Description

GFXMMU state functions.

  ==============================================================================
                         ##### State functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) Get GFXMMU handle state.
      (+) Get GFXMMU error code.

Function Documentation

◆ HAL_GFXMMU_GetError()

uint32_t HAL_GFXMMU_GetError ( GFXMMU_HandleTypeDef hgfxmmu)

This function allows to get the current GFXMMU error code.

Parameters
hgfxmmuGFXMMU handle.
Return values
GFXMMUerror code.

Definition at line 732 of file stm32l4xx_hal_gfxmmu.c.

733 {
734  uint32_t error_code;
735 
736  /* Enter in critical section */
737  __disable_irq();
738 
739  /* Store and reset GFXMMU error code */
740  error_code = hgfxmmu->ErrorCode;
741  hgfxmmu->ErrorCode = GFXMMU_ERROR_NONE;
742 
743  /* Exit from critical section */
744  __enable_irq();
745 
746  /* Return GFXMMU error code */
747  return error_code;
748 }

◆ HAL_GFXMMU_GetState()

HAL_GFXMMU_StateTypeDef HAL_GFXMMU_GetState ( GFXMMU_HandleTypeDef hgfxmmu)

This function allows to get the current GFXMMU handle state.

Parameters
hgfxmmuGFXMMU handle.
Return values
GFXMMUstate.

Definition at line 721 of file stm32l4xx_hal_gfxmmu.c.

722 {
723  /* Return GFXMMU handle state */
724  return hgfxmmu->State;
725 }