Macros
QSPI Private Macros
Peripheral Driver » HAL Driver » QSPI » Defines

## Macros
#define | IS_QSPI_CLOCK_PRESCALER(__PRESCALER__) ((__PRESCALER__) <= 0xFFFF)
| Check if QSPI Clock Prescaler is valid. More...
#define | IS_QSPI_FIFO_THRESHOLD(__THR__) (((__THR__) >= 0) && ((__THR__) <= 7))
| Check if QSPI FIFO Threshold is valid. More...
#define | IS_QSPI_CLOCK_MODE(__CLKMODE__)
| Check if QSPI Clock Mode is valid. More...
#define | IS_QSPI_INSTRUCTION_SIZE(__INST_SIZE__)
| Check if QSPI Instruction Size is valid. More...
#define | IS_QSPI_ADDRESS_SIZE(__ADDR_SIZE__)
| Check if QSPI Address Size is valid. More...
#define | IS_QSPI_DUMMY_CYCLES(__DCY__) ((__DCY__) <= 31)
| Check if QSPI Dummy Cycle is valid. More...
#define | IS_QSPI_INSTADDR_MODE(__MODE__)
| Check if QSPI Instruction and Address Mode is valid. More...
#define | IS_QSPI_DATA_MODE(__MODE__)
| Check if QSPI Data Mode is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_QSPI_ADDRESS_SIZE

#define IS_QSPI_ADDRESS_SIZE | ( |  | __ADDR_SIZE__ | ) |

Value:
(((__ADDR_SIZE__) == QSPI_ADDRSIZE_00_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_04_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_08_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_12_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_16_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_20_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_24_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_28_BITS) || \
((__ADDR_SIZE__) == QSPI_ADDRSIZE_32_BITS))

Check if QSPI Address Size is valid.

Parameters

  __ADDR_SIZE__ | QSPI Address Size .

Return values

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

Definition at line 526 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_CLOCK_MODE

#define IS_QSPI_CLOCK_MODE | ( |  | __CLKMODE__ | ) |

Value:
(((__CLKMODE__) == QSPI_CLOCK_MODE_0) || \
((__CLKMODE__) == QSPI_CLOCK_MODE_1) || \
((__CLKMODE__) == QSPI_CLOCK_MODE_2) || \
((__CLKMODE__) == QSPI_CLOCK_MODE_3))

Check if QSPI Clock Mode is valid.

Parameters

  __CLKMODE__ | QSPI Clock Mode.

Return values

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

Definition at line 508 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_CLOCK_PRESCALER

#define IS_QSPI_CLOCK_PRESCALER | ( |  | __PRESCALER__ | ) | ((__PRESCALER__) <= 0xFFFF)

Check if QSPI Clock Prescaler is valid.

Parameters

  __PRESCALER__ | QSPI Clock Prescaler.

Return values

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

Definition at line 496 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_DATA_MODE

#define IS_QSPI_DATA_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == QSPI_DATA_MODE_SPI) || \
((__MODE__) == QSPI_DATA_MODE_DUALSPI) || \
((__MODE__) == QSPI_DATA_MODE_QUADSPI))

Check if QSPI Data Mode is valid.

Parameters

  __MODE__ | QSPI Data Mode.

Return values

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

Definition at line 554 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_DUMMY_CYCLES

#define IS_QSPI_DUMMY_CYCLES | ( |  | __DCY__ | ) | ((__DCY__) <= 31)

Check if QSPI Dummy Cycle is valid.

Parameters

  __DCY__ | QSPI Dummy Cycle.

Return values

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

Definition at line 540 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_FIFO_THRESHOLD

#define IS_QSPI_FIFO_THRESHOLD | ( |  | __THR__ | ) | (((__THR__) >= 0) && ((__THR__) <= 7))

Check if QSPI FIFO Threshold is valid.

Parameters

  __THR__ | QSPI FIFO Threshold.

Return values

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

Definition at line 502 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_INSTADDR_MODE

#define IS_QSPI_INSTADDR_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == QSPI_INST_ADDR_ALL_IN_SPI) || \
((__MODE__) == QSPI_INST_IN_SPI_ADDR_IN_SPIFRF) || \
((__MODE__) == QSPI_INST_ADDR_ALL_IN_SPIFRF))

Check if QSPI Instruction and Address Mode is valid.

Parameters

  __MODE__ | QSPI Instruction and Address Mode.

Return values

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

Definition at line 546 of file gr55xx_hal_qspi.h.

## ◆ IS_QSPI_INSTRUCTION_SIZE

#define IS_QSPI_INSTRUCTION_SIZE | ( |  | __INST_SIZE__ | ) |

Value:
(((__INST_SIZE__) == QSPI_INSTSIZE_00_BITS) || \
((__INST_SIZE__) == QSPI_INSTSIZE_04_BITS) || \
((__INST_SIZE__) == QSPI_INSTSIZE_08_BITS) || \
((__INST_SIZE__) == QSPI_INSTSIZE_16_BITS))

Check if QSPI Instruction Size is valid.

Parameters

  __INST_SIZE__ | QSPI Instruction Size.

Return values

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

Definition at line 517 of file gr55xx_hal_qspi.h.

QSPI_ADDRSIZE_04_BITS
#define QSPI_ADDRSIZE_04_BITS
Definition: gr55xx_hal_qspi.h:281
QSPI_CLOCK_MODE_2
#define QSPI_CLOCK_MODE_2
Definition: gr55xx_hal_qspi.h:254
QSPI_ADDRSIZE_00_BITS
#define QSPI_ADDRSIZE_00_BITS
Definition: gr55xx_hal_qspi.h:280
QSPI_ADDRSIZE_08_BITS
#define QSPI_ADDRSIZE_08_BITS
Definition: gr55xx_hal_qspi.h:282
QSPI_ADDRSIZE_16_BITS
#define QSPI_ADDRSIZE_16_BITS
Definition: gr55xx_hal_qspi.h:284
QSPI_CLOCK_MODE_1
#define QSPI_CLOCK_MODE_1
Definition: gr55xx_hal_qspi.h:252
QSPI_INSTSIZE_08_BITS
#define QSPI_INSTSIZE_08_BITS
Definition: gr55xx_hal_qspi.h:273
QSPI_INSTSIZE_00_BITS
#define QSPI_INSTSIZE_00_BITS
Definition: gr55xx_hal_qspi.h:271
QSPI_ADDRSIZE_28_BITS
#define QSPI_ADDRSIZE_28_BITS
Definition: gr55xx_hal_qspi.h:287
QSPI_INST_ADDR_ALL_IN_SPI
#define QSPI_INST_ADDR_ALL_IN_SPI
Definition: gr55xx_hal_qspi.h:330
QSPI_INST_ADDR_ALL_IN_SPIFRF
#define QSPI_INST_ADDR_ALL_IN_SPIFRF
Definition: gr55xx_hal_qspi.h:332
QSPI_ADDRSIZE_20_BITS
#define QSPI_ADDRSIZE_20_BITS
Definition: gr55xx_hal_qspi.h:285
QSPI_INSTSIZE_16_BITS
#define QSPI_INSTSIZE_16_BITS
Definition: gr55xx_hal_qspi.h:274
QSPI_CLOCK_MODE_3
#define QSPI_CLOCK_MODE_3
Definition: gr55xx_hal_qspi.h:256
QSPI_INSTSIZE_04_BITS
#define QSPI_INSTSIZE_04_BITS
Definition: gr55xx_hal_qspi.h:272
QSPI_DATA_MODE_SPI
#define QSPI_DATA_MODE_SPI
Definition: gr55xx_hal_qspi.h:263
QSPI_DATA_MODE_QUADSPI
#define QSPI_DATA_MODE_QUADSPI
Definition: gr55xx_hal_qspi.h:265
QSPI_ADDRSIZE_12_BITS
#define QSPI_ADDRSIZE_12_BITS
Definition: gr55xx_hal_qspi.h:283
QSPI_CLOCK_MODE_0
#define QSPI_CLOCK_MODE_0
Definition: gr55xx_hal_qspi.h:250
QSPI_DATA_MODE_DUALSPI
#define QSPI_DATA_MODE_DUALSPI
Definition: gr55xx_hal_qspi.h:264
QSPI_ADDRSIZE_32_BITS
#define QSPI_ADDRSIZE_32_BITS
Definition: gr55xx_hal_qspi.h:288
QSPI_INST_IN_SPI_ADDR_IN_SPIFRF
#define QSPI_INST_IN_SPI_ADDR_IN_SPIFRF
Definition: gr55xx_hal_qspi.h:331
QSPI_ADDRSIZE_24_BITS
#define QSPI_ADDRSIZE_24_BITS
Definition: gr55xx_hal_qspi.h:286