Macros
XQSPI Exported Macros
Peripheral Driver » HAL Driver » XQSPI » Defines

## 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 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 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 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 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 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 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: 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 450 of file 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 hal_xqspi.h.

ll_xqspi_get_xip_flag
__STATIC_FORCEINLINE uint32_t ll_xqspi_get_xip_flag(xqspi_regs_t *XQSPIx)
Get XIP status.
Definition: ll_xqspi.h:1228