Macros
XQSPI Private Macros
Peripheral Driver » HAL Driver » XQSPI » Defines

## Macros
#define | IS_XQSPI_WORK_MODE(__MODE__)
| Check if XQSPI Work Mode is valid. More...
#define | IS_XQSPI_CACHE_MODE(__MODE__)
| Check if XQSPI Cache Mode is valid. More...
#define | IS_XQSPI_READ_CMD(__CMD__)
| Check if XQSPI Read CMD is valid. More...
#define | IS_XQSPI_BAUD_RATE(__BAUD__)
| Check if XQSPI Clock Baud Rate is valid. More...
#define | IS_XQSPI_CLOCK_MODE(__CLKMODE__)
| Check if XQSPI Clock Mode is valid. More...
#define | IS_XQSPI_FIFO_THRESHOLD(__THR__)
| Check if XQSPI FIFO Threshold is valid. More...
#define | IS_XQSPI_INSTRUCTION_SIZE(__INST_SIZE__)
| Check if XQSPI Instruction Size is valid. More...
#define | IS_XQSPI_ADDRESS_SIZE(__ADDR_SIZE__)
| Check if XQSPI Address Size is valid. More...
#define | IS_XQSPI_INSTADDR_MODE(__MODE__)
| Check if XQSPI Instruction and Address Mode is valid. More...
#define | IS_XQSPI_DATA_MODE(__MODE__)
| Check if XQSPI Data Mode is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_XQSPI_ADDRESS_SIZE

#define IS_XQSPI_ADDRESS_SIZE | ( |  | __ADDR_SIZE__ | ) |

Value:
(((__ADDR_SIZE__) == XQSPI_ADDRSIZE_00_BITS) || \
((__ADDR_SIZE__) == XQSPI_ADDRSIZE_08_BITS) || \
((__ADDR_SIZE__) == XQSPI_ADDRSIZE_16_BITS) || \
((__ADDR_SIZE__) == XQSPI_ADDRSIZE_24_BITS) || \
((__ADDR_SIZE__) == XQSPI_ADDRSIZE_32_BITS))

Check if XQSPI Address Size is valid.

Parameters

  <strong>ADDR_SIZE</strong> | XQSPI Address Size .

Return values

  SET | (ADDR_SIZE is valid) or RESET (ADDR_SIZE is invalid)

## ◆ IS_XQSPI_BAUD_RATE

#define IS_XQSPI_BAUD_RATE | ( |  | __BAUD__ | ) |

Value:
(((__BAUD__) == XQSPI_BAUD_RATE_64M) || \
((__BAUD__) == XQSPI_BAUD_RATE_48M) || \
((__BAUD__) == XQSPI_BAUD_RATE_32M) || \
((__BAUD__) == XQSPI_BAUD_RATE_24M) || \
((__BAUD__) == XQSPI_BAUD_RATE_16M))

Check if XQSPI Clock Baud Rate is valid.

Parameters

  <strong>BAUD</strong> | XQSPI Clock Baud Rate.

Return values

  SET | (BAUD is valid) or RESET (BAUD is invalid)

## ◆ IS_XQSPI_CACHE_MODE

#define IS_XQSPI_CACHE_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == XQSPI_CACHE_MODE_DIS) || \
((__MODE__) == XQSPI_CACHE_MODE_EN))

Check if XQSPI Cache Mode is valid.

Parameters

  <strong>MODE</strong> | XQSPI Cache Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

## ◆ IS_XQSPI_CLOCK_MODE

#define IS_XQSPI_CLOCK_MODE | ( |  | __CLKMODE__ | ) |

Value:
(((__CLKMODE__) == XQSPI_CLOCK_MODE_0) || \
((__CLKMODE__) == XQSPI_CLOCK_MODE_1) || \
((__CLKMODE__) == XQSPI_CLOCK_MODE_2) || \
((__CLKMODE__) == XQSPI_CLOCK_MODE_3))

Check if XQSPI Clock Mode is valid.

Parameters

  <strong>CLKMODE</strong> | XQSPI Clock Mode.

Return values

  SET | (CLKMODE is valid) or RESET (CLKMODE is invalid)

## ◆ IS_XQSPI_DATA_MODE

#define IS_XQSPI_DATA_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == XQSPI_DATA_MODE_SPI) || \
((__MODE__) == XQSPI_DATA_MODE_DUALSPI) || \
((__MODE__) == XQSPI_DATA_MODE_QUADSPI))

Check if XQSPI Data Mode is valid.

Parameters

  <strong>MODE</strong> | XQSPI Data Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

## ◆ IS_XQSPI_FIFO_THRESHOLD

#define IS_XQSPI_FIFO_THRESHOLD | ( |  | __THR__ | ) |

Value:
(((__THR__) == XQSPI_FIFO_THRESHOLD_1_8) || \
((__THR__) == XQSPI_FIFO_THRESHOLD_1_4) || \
((__THR__) == XQSPI_FIFO_THRESHOLD_1_2) || \
((__THR__) == XQSPI_FIFO_THRESHOLD_3_4))

Check if XQSPI FIFO Threshold is valid.

Parameters

  <strong>THR</strong> | XQSPI FIFO Threshold.

Return values

  SET | (THR is valid) or RESET (THR is invalid)

## ◆ IS_XQSPI_INSTADDR_MODE

#define IS_XQSPI_INSTADDR_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == XQSPI_INST_ADDR_ALL_IN_SPI) || \
((__MODE__) == XQSPI_INST_IN_SPI_ADDR_IN_SPIFRF) || \
((__MODE__) == XQSPI_INST_ADDR_ALL_IN_SPIFRF))

Check if XQSPI Instruction and Address Mode is valid.

Parameters

  <strong>MODE</strong> | XQSPI Instruction and Address Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

## ◆ IS_XQSPI_INSTRUCTION_SIZE

#define IS_XQSPI_INSTRUCTION_SIZE | ( |  | __INST_SIZE__ | ) |

Value:
(((__INST_SIZE__) == XQSPI_INSTSIZE_00_BITS) || \
((__INST_SIZE__) == XQSPI_INSTSIZE_08_BITS) || \
((__INST_SIZE__) == XQSPI_INSTSIZE_16_BITS))

Check if XQSPI Instruction Size is valid.

Parameters

  <strong>INST_SIZE</strong> | XQSPI Instruction Size.

Return values

  SET | (INST_SIZE is valid) or RESET (INST_SIZE is invalid)

## ◆ IS_XQSPI_READ_CMD

#define IS_XQSPI_READ_CMD | ( |  | __CMD__ | ) |

Value:
(((__CMD__) == XQSPI_READ_CMD_READ ) || \
((__CMD__) == XQSPI_READ_CMD_FAST_READ ) || \
((__CMD__) == XQSPI_READ_CMD_DUAL_OUT_READ) || \
((__CMD__) == XQSPI_READ_CMD_DUAL_IO_READ ) || \
((__CMD__) == XQSPI_READ_CMD_QUAD_OUT_READ) || \
((__CMD__) == XQSPI_READ_CMD_QUAD_IO_READ ))

Check if XQSPI Read CMD is valid.

Parameters

  <strong>CMD</strong> | XQSPI Cache Mode.

Return values

  SET | (CMD is valid) or RESET (CMD is invalid)

## ◆ IS_XQSPI_WORK_MODE

#define IS_XQSPI_WORK_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == XQSPI_WORK_MODE_QSPI) || \
((__MODE__) == XQSPI_WORK_MODE_XIP))

Check if XQSPI Work Mode is valid.

Parameters

  <strong>MODE</strong> | XQSPI Work Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

XQSPI_FIFO_THRESHOLD_1_8
#define XQSPI_FIFO_THRESHOLD_1_8
Definition: gr55xx_hal_xqspi.h:297
XQSPI_WORK_MODE_QSPI
#define XQSPI_WORK_MODE_QSPI
Definition: gr55xx_hal_xqspi.h:241
XQSPI_INSTSIZE_08_BITS
#define XQSPI_INSTSIZE_08_BITS
Definition: gr55xx_hal_xqspi.h:308
XQSPI_CLOCK_MODE_3
#define XQSPI_CLOCK_MODE_3
Definition: gr55xx_hal_xqspi.h:272
XQSPI_READ_CMD_READ
#define XQSPI_READ_CMD_READ
Definition: gr55xx_hal_xqspi.h:255
XQSPI_READ_CMD_QUAD_IO_READ
#define XQSPI_READ_CMD_QUAD_IO_READ
Definition: gr55xx_hal_xqspi.h:260
XQSPI_BAUD_RATE_32M
#define XQSPI_BAUD_RATE_32M
Definition: gr55xx_hal_xqspi.h:281
XQSPI_CLOCK_MODE_2
#define XQSPI_CLOCK_MODE_2
Definition: gr55xx_hal_xqspi.h:270
XQSPI_ADDRSIZE_32_BITS
#define XQSPI_ADDRSIZE_32_BITS
Definition: gr55xx_hal_xqspi.h:319
XQSPI_BAUD_RATE_48M
#define XQSPI_BAUD_RATE_48M
Definition: gr55xx_hal_xqspi.h:280
XQSPI_FIFO_THRESHOLD_3_4
#define XQSPI_FIFO_THRESHOLD_3_4
Definition: gr55xx_hal_xqspi.h:300
XQSPI_CACHE_MODE_DIS
#define XQSPI_CACHE_MODE_DIS
Definition: gr55xx_hal_xqspi.h:248
XQSPI_INST_ADDR_ALL_IN_SPIFRF
#define XQSPI_INST_ADDR_ALL_IN_SPIFRF
Definition: gr55xx_hal_xqspi.h:327
XQSPI_FIFO_THRESHOLD_1_4
#define XQSPI_FIFO_THRESHOLD_1_4
Definition: gr55xx_hal_xqspi.h:298
XQSPI_DATA_MODE_SPI
#define XQSPI_DATA_MODE_SPI
Definition: gr55xx_hal_xqspi.h:289
XQSPI_CACHE_MODE_EN
#define XQSPI_CACHE_MODE_EN
Definition: gr55xx_hal_xqspi.h:249
XQSPI_CLOCK_MODE_1
#define XQSPI_CLOCK_MODE_1
Definition: gr55xx_hal_xqspi.h:268
XQSPI_DATA_MODE_QUADSPI
#define XQSPI_DATA_MODE_QUADSPI
Definition: gr55xx_hal_xqspi.h:291
XQSPI_BAUD_RATE_64M
#define XQSPI_BAUD_RATE_64M
Definition: gr55xx_hal_xqspi.h:279
XQSPI_READ_CMD_DUAL_OUT_READ
#define XQSPI_READ_CMD_DUAL_OUT_READ
Definition: gr55xx_hal_xqspi.h:257
XQSPI_INST_IN_SPI_ADDR_IN_SPIFRF
#define XQSPI_INST_IN_SPI_ADDR_IN_SPIFRF
Definition: gr55xx_hal_xqspi.h:326
XQSPI_WORK_MODE_XIP
#define XQSPI_WORK_MODE_XIP
Definition: gr55xx_hal_xqspi.h:242
XQSPI_BAUD_RATE_24M
#define XQSPI_BAUD_RATE_24M
Definition: gr55xx_hal_xqspi.h:282
XQSPI_READ_CMD_FAST_READ
#define XQSPI_READ_CMD_FAST_READ
Definition: gr55xx_hal_xqspi.h:256
XQSPI_ADDRSIZE_00_BITS
#define XQSPI_ADDRSIZE_00_BITS
Definition: gr55xx_hal_xqspi.h:315
XQSPI_BAUD_RATE_16M
#define XQSPI_BAUD_RATE_16M
Definition: gr55xx_hal_xqspi.h:283
XQSPI_DATA_MODE_DUALSPI
#define XQSPI_DATA_MODE_DUALSPI
Definition: gr55xx_hal_xqspi.h:290
XQSPI_READ_CMD_QUAD_OUT_READ
#define XQSPI_READ_CMD_QUAD_OUT_READ
Definition: gr55xx_hal_xqspi.h:259
XQSPI_ADDRSIZE_08_BITS
#define XQSPI_ADDRSIZE_08_BITS
Definition: gr55xx_hal_xqspi.h:316
XQSPI_INSTSIZE_16_BITS
#define XQSPI_INSTSIZE_16_BITS
Definition: gr55xx_hal_xqspi.h:309
XQSPI_CLOCK_MODE_0
#define XQSPI_CLOCK_MODE_0
Definition: gr55xx_hal_xqspi.h:266
XQSPI_FIFO_THRESHOLD_1_2
#define XQSPI_FIFO_THRESHOLD_1_2
Definition: gr55xx_hal_xqspi.h:299
XQSPI_ADDRSIZE_16_BITS
#define XQSPI_ADDRSIZE_16_BITS
Definition: gr55xx_hal_xqspi.h:317
XQSPI_INST_ADDR_ALL_IN_SPI
#define XQSPI_INST_ADDR_ALL_IN_SPI
Definition: gr55xx_hal_xqspi.h:325
XQSPI_INSTSIZE_00_BITS
#define XQSPI_INSTSIZE_00_BITS
Definition: gr55xx_hal_xqspi.h:307
XQSPI_ADDRSIZE_24_BITS
#define XQSPI_ADDRSIZE_24_BITS
Definition: gr55xx_hal_xqspi.h:318
XQSPI_READ_CMD_DUAL_IO_READ
#define XQSPI_READ_CMD_DUAL_IO_READ
Definition: gr55xx_hal_xqspi.h:258