XQSPI Exported Macros

Macros

#define __HAL_XQSPI_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->state = HAL_XQSPI_STATE_RESET)
 Reset XQSPI handle states. More...
 
#define __HAL_XQSPI_ENABLE_QSPI(__HANDLE__)   SET_BITS((__HANDLE__)->p_instance->QSPI.SPIEN, XQSPI_QSPI_EN_EN)
 Enable the specified QSPI peripheral in XQSPI. More...
 
#define __HAL_XQSPI_DISABLE_QSPI(__HANDLE__)   CLEAR_BITS((__HANDLE__)->p_instance->QSPI.SPIEN, XQSPI_QSPI_EN_EN)
 Disable the specified QSPI peripheral in XQSPI. More...
 
#define __HAL_XQSPI_ENABLE_XIP(__HANDLE__)
 Enable the specified XIP peripheral in XQSPI. More...
 
#define __HAL_XQSPI_DISABLE_XIP(__HANDLE__)
 Disable the specified XIP peripheral in XQSPI. More...
 
#define __HAL_XQSPI_ENABLE_CACHE(__HANDLE__)   CLEAR_BITS((__HANDLE__)->p_instance->CACHE.CTRL0, XQSPI_CACHE_CTRL0_DIS)
 Enable the specified CACHE peripheral in XQSPI. More...
 
#define __HAL_XQSPI_DISABLE_CACHE(__HANDLE__)   SET_BITS((__HANDLE__)->p_instance->CACHE.CTRL0, XQSPI_CACHE_CTRL0_DIS)
 Disable the specified CACHE peripheral in XQSPI. More...
 
#define __HAL_XQSPI_GET_FLAG(__HANDLE__, __FLAG__)   ((READ_BITS((__HANDLE__)->p_instance->QSPI.STAT, (__FLAG__)) != 0) ? SET : RESET)
 Check whether the specified XQSPI flag is set or not. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_XQSPI_DISABLE_CACHE

#define __HAL_XQSPI_DISABLE_CACHE (   __HANDLE__)    SET_BITS((__HANDLE__)->p_instance->CACHE.CTRL0, XQSPI_CACHE_CTRL0_DIS)

Disable the specified CACHE peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 435 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_DISABLE_QSPI

#define __HAL_XQSPI_DISABLE_QSPI (   __HANDLE__)    CLEAR_BITS((__HANDLE__)->p_instance->QSPI.SPIEN, XQSPI_QSPI_EN_EN)

Disable the specified QSPI peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 407 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_DISABLE_XIP

#define __HAL_XQSPI_DISABLE_XIP (   __HANDLE__)
Value:
CLEAR_BITS((__HANDLE__)->p_instance->XIP.CTRL3, XQSPI_QSPI_EN_EN);\
while(ll_xqspi_get_xip_flag(__HANDLE__->p_instance))

Disable the specified XIP peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 422 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_ENABLE_CACHE

#define __HAL_XQSPI_ENABLE_CACHE (   __HANDLE__)    CLEAR_BITS((__HANDLE__)->p_instance->CACHE.CTRL0, XQSPI_CACHE_CTRL0_DIS)

Enable the specified CACHE peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 429 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_ENABLE_QSPI

#define __HAL_XQSPI_ENABLE_QSPI (   __HANDLE__)    SET_BITS((__HANDLE__)->p_instance->QSPI.SPIEN, XQSPI_QSPI_EN_EN)

Enable the specified QSPI peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 401 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_ENABLE_XIP

#define __HAL_XQSPI_ENABLE_XIP (   __HANDLE__)
Value:
SET_BITS((__HANDLE__)->p_instance->XIP.CTRL3, XQSPI_QSPI_EN_EN);\
while(!ll_xqspi_get_xip_flag(__HANDLE__->p_instance))

Enable the specified XIP peripheral in XQSPI.

Parameters
__HANDLE__specifies the XQSPI Handle.
Return values
None

Definition at line 414 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_GET_FLAG

#define __HAL_XQSPI_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((READ_BITS((__HANDLE__)->p_instance->QSPI.STAT, (__FLAG__)) != 0) ? SET : RESET)

Check whether the specified XQSPI flag is set or not.

Parameters
__HANDLE__specifies the XQSPI Handle.
__FLAG__specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of __FLAG__ (TRUE or FALSE).

Definition at line 450 of file gr55xx_hal_xqspi.h.

◆ __HAL_XQSPI_RESET_HANDLE_STATE

#define __HAL_XQSPI_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->state = HAL_XQSPI_STATE_RESET)

Reset XQSPI handle states.

Parameters
__HANDLE__XQSPI handle.
Return values
None

Definition at line 395 of file gr55xx_hal_xqspi.h.

ll_xqspi_get_xip_flag
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_xqspi_get_xip_flag(xqspi_regs_t *XQSPIx)
Get XIP status.
Definition: gr55xx_ll_xqspi.h:1225