Macros
QSPI Exported Macros
Peripheral Driver » HAL Driver » QSPI » Defines

## Macros
#define | __HAL_QSPI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_QSPI_STATE_RESET)
| Reset QSPI handle states. More...
#define | __HAL_QSPI_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->SSI_EN, SSI_SSIEN_EN)
| Enable the specified QSPI peripheral. More...
#define | __HAL_QSPI_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->SSI_EN, SSI_SSIEN_EN)
| Disable the specified QSPI peripheral. More...
#define | __HAL_QSPI_ENABLE_DMATX(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_TDMAE)
| Enable the QSPI DMA TX Request. More...
#define | __HAL_QSPI_ENABLE_DMARX(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_RDMAE)
| Enable the QSPI DMA RX Request. More...
#define | __HAL_QSPI_DISABLE_DMATX(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_TDMAE)
| Disable the QSPI DMA TX Request. More...
#define | __HAL_QSPI_DISABLE_DMARX(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_RDMAE)
| Disable the QSPI DMA RX Request. More...
#define | __HAL_QSPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BITS((__HANDLE__)->p_instance->INTMASK, (__INTERRUPT__))
| Enable the specified QSPI interrupts. More...
#define | __HAL_QSPI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BITS((__HANDLE__)->p_instance->INTMASK, (__INTERRUPT__))
| Disable the specified QSPI interrupts. More...
#define | __HAL_QSPI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (READ_BITS((__HANDLE__)->p_instance->INTSTAT, (__INTERRUPT__)) == (__INTERRUPT__))
| Check whether the specified QSPI interrupt source is enabled or not. More...
#define | __HAL_QSPI_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0) ? SET : RESET)
| Check whether the specified QSPI flag is set or not. More...
#define | __HAL_QSPI_CLEAR_FLAG(__HANDLE__, __FLAG__) READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__))
| Clear the specified QSPI flag. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_QSPI_CLEAR_FLAG

#define __HAL_QSPI_CLEAR_FLAG | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__))

Clear the specified QSPI flag.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.
  __FLAG__ | Specifies the flag to clear. This parameter can be one of the following values: QSPI_FLAG_DCOL Data collision error flag QSPI_FLAG_TXE Transmission error flag QSPI_FLAG_RFF Rx FIFO full flag QSPI_FLAG_RFNE Rx FIFO not empty flag QSPI_FLAG_TFE Tx FIFO empty flag QSPI_FLAG_TFNF Tx FIFO not full flag QSPI_FLAG_BUSY Busy flag

Return values

  None |

Definition at line 483 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_DISABLE

#define __HAL_QSPI_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->SSI_EN, SSI_SSIEN_EN)

Disable the specified QSPI peripheral.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 387 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_DISABLE_DMARX

#define __HAL_QSPI_DISABLE_DMARX | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_RDMAE)

Disable the QSPI DMA RX Request.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 411 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_DISABLE_DMATX

#define __HAL_QSPI_DISABLE_DMATX | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_TDMAE)

Disable the QSPI DMA TX Request.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 405 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_DISABLE_IT

#define __HAL_QSPI_DISABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | CLEAR_BITS((__HANDLE__)->p_instance->INTMASK, (__INTERRUPT__))

Disable the specified QSPI interrupts.

Parameters

  __HANDLE__ | Specifies the QSPI handle.
  __INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values: QSPI_IT_MST Multi-Master Contention Interrupt enable QSPI_IT_RXF Receive FIFO Full Interrupt enable QSPI_IT_RXO Receive FIFO Overflow Interrupt enable QSPI_IT_RXU Receive FIFO Underflow Interrupt enable QSPI_IT_TXO Transmit FIFO Overflow Interrupt enable QSPI_IT_TXE Transmit FIFO Empty Interrupt enable

Return values

  None |

Definition at line 439 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_ENABLE

#define __HAL_QSPI_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->SSI_EN, SSI_SSIEN_EN)

Enable the specified QSPI peripheral.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 381 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_ENABLE_DMARX

#define __HAL_QSPI_ENABLE_DMARX | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_RDMAE)

Enable the QSPI DMA RX Request.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 399 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_ENABLE_DMATX

#define __HAL_QSPI_ENABLE_DMATX | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->DMAC, SSI_DMAC_TDMAE)

Enable the QSPI DMA TX Request.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.

Return values

  None |

Definition at line 393 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_ENABLE_IT

#define __HAL_QSPI_ENABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | SET_BITS((__HANDLE__)->p_instance->INTMASK, (__INTERRUPT__))

Enable the specified QSPI interrupts.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.
  __INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values: QSPI_IT_MST Multi-Master Contention Interrupt enable QSPI_IT_RXF Receive FIFO Full Interrupt enable QSPI_IT_RXO Receive FIFO Overflow Interrupt enable QSPI_IT_RXU Receive FIFO Underflow Interrupt enable QSPI_IT_TXO Transmit FIFO Overflow Interrupt enable QSPI_IT_TXE Transmit FIFO Empty Interrupt enable

Return values

  None |

Definition at line 425 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_GET_FLAG

#define __HAL_QSPI_GET_FLAG | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0) ? SET : RESET)

Check whether the specified QSPI flag is set or not.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.
  __FLAG__ | Specifies the flag to check. This parameter can be one of the following values: QSPI_FLAG_DCOL Data collision error flag QSPI_FLAG_TXE Transmission error flag QSPI_FLAG_RFF Rx FIFO full flag QSPI_FLAG_RFNE Rx FIFO not empty flag QSPI_FLAG_TFE Tx FIFO empty flag QSPI_FLAG_TFNF Tx FIFO not full flag QSPI_FLAG_BUSY Busy flag

Return values

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

Definition at line 468 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_GET_IT_SOURCE

#define __HAL_QSPI_GET_IT_SOURCE | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | (READ_BITS((__HANDLE__)->p_instance->INTSTAT, (__INTERRUPT__)) == (__INTERRUPT__))

Check whether the specified QSPI interrupt source is enabled or not.

Parameters

  __HANDLE__ | Specifies the QSPI Handle.
  __INTERRUPT__ | Specifies the interrupt source to check. This parameter can be one of the following values: QSPI_IT_MST Multi-Master Contention Interrupt enable QSPI_IT_RXF Receive FIFO Full Interrupt enable QSPI_IT_RXO Receive FIFO Overflow Interrupt enable QSPI_IT_RXU Receive FIFO Underflow Interrupt enable QSPI_IT_TXO Transmit FIFO Overflow Interrupt enable QSPI_IT_TXE Transmit FIFO Empty Interrupt enable

Return values

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

Definition at line 453 of file gr55xx_hal_qspi.h.

## ◆ __HAL_QSPI_RESET_HANDLE_STATE

#define __HAL_QSPI_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_QSPI_STATE_RESET)

Reset QSPI handle states.

Parameters

  __HANDLE__ | QSPI handle.

Return values

  None |

Definition at line 375 of file gr55xx_hal_qspi.h.