Macros
XQSPI Exported Macros
Peripheral Driver » HAL Driver » XQSPI » Defines
Collaboration diagram for 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, SSI_SSIEN_EN)
| Enable the specified QSPI peripheral in XQSPI. More...
#define | __HAL_XQSPI_DISABLE_QSPI(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->QSPI.SPIEN, SSI_SSIEN_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

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 403 of file gr55xx_hal_xqspi.h.

## ◆ __HAL_XQSPI_DISABLE_QSPI

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

Disable the specified QSPI peripheral in XQSPI.

Parameters

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 377 of file gr55xx_hal_xqspi.h.

## ◆ __HAL_XQSPI_DISABLE_XIP

#define __HAL_XQSPI_DISABLE_XIP | ( |  | __HANDLE__ | ) |

Value:
CLEAR_BITS((__HANDLE__)->p_instance->XIP.CTRL3, SSI_SSIEN_EN);\
while(ll_xqspi_get_xip_flag(__HANDLE__->p_instance))

Disable the specified XIP peripheral in XQSPI.

Parameters

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 390 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

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 397 of file gr55xx_hal_xqspi.h.

## ◆ __HAL_XQSPI_ENABLE_QSPI

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

Enable the specified QSPI peripheral in XQSPI.

Parameters

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 371 of file gr55xx_hal_xqspi.h.

## ◆ __HAL_XQSPI_ENABLE_XIP

#define __HAL_XQSPI_ENABLE_XIP | ( |  | __HANDLE__ | ) |

Value:
SET_BITS((__HANDLE__)->p_instance->XIP.CTRL3, SSI_SSIEN_EN);\
while(!ll_xqspi_get_xip_flag(__HANDLE__->p_instance))

Enable the specified XIP peripheral in XQSPI.

Parameters

  <strong>HANDLE</strong> | specifies the XQSPI Handle.

Return values

  None |

Definition at line 383 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

  <strong>HANDLE</strong> | specifies the XQSPI Handle.
  <strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values: XQSPI_FLAG_RFF Rx FIFO full flag XQSPI_FLAG_RFTF Rx FIFO threshold flag XQSPI_FLAG_RFE Rx FIFO empty flag XQSPI_FLAG_TFF Tx FIFO full flag XQSPI_FLAG_TFTF Tx FIFO threshold flag XQSPI_FLAG_TFE Tx FIFO empty flag XQSPI_FLAG_BUSY Busy flag

Return values

  The | new state of FLAG (TRUE or FALSE).

Definition at line 418 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

  <strong>HANDLE</strong> | XQSPI handle.

Return values

  None |

Definition at line 365 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:1279