Macros
DSPI Private Macros
Peripheral Driver » HAL Driver » DSPI » Defines
Collaboration diagram for DSPI Private Macros:

## Macros
#define | IS_DSPI_CLOCK_PRESCALER(__PRESCALER__)
| Check if DSPI Clock Prescaler is valid. More...
#define | IS_DSPI_INTERFACE_MODE(__INTERFACEMODE__)
| Check if DSPI Interface Mode is valid. More...
#define | IS_DSPI_INSTRUCTION_SIZE(__INST_SIZE__)
| Check if DSPI Instruction Size is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_DSPI_CLOCK_PRESCALER

#define IS_DSPI_CLOCK_PRESCALER | ( |  | __PRESCALER__ | ) |

Value:
(((__PRESCALER__) == DSPI_BAUD_RATE_2P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_4P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_8P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_16P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_32P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_64P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_128P1PCLK) || \
((__PRESCALER__) == DSPI_BAUD_RATE_256P1PCLK))

Check if DSPI Clock Prescaler is valid.

Parameters

  <strong>PRESCALER</strong> | DSPI Clock Prescaler.

Return values

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

Definition at line 440 of file gr55xx_hal_dspi.h.

## ◆ IS_DSPI_INSTRUCTION_SIZE

#define IS_DSPI_INSTRUCTION_SIZE | ( |  | __INST_SIZE__ | ) |

Value:
(((__INST_SIZE__) == DSPI_INSTSIZE_08_BITS) || \
((__INST_SIZE__) == DSPI_INSTSIZE_16_BITS) || \
((__INST_SIZE__) == DSPI_INSTSIZE_32_BITS))

Check if DSPI Instruction Size is valid.

Parameters

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

Return values

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

Definition at line 461 of file gr55xx_hal_dspi.h.

## ◆ IS_DSPI_INTERFACE_MODE

#define IS_DSPI_INTERFACE_MODE | ( |  | __INTERFACEMODE__ | ) |

Value:
(((__INTERFACEMODE__) == DSPI_PROT_MODE_3W1L) || \
((__INTERFACEMODE__) == DSPI_PROT_MODE_4W1L) || \
((__INTERFACEMODE__) == DSPI_PROT_MODE_4W2L))

Check if DSPI Interface Mode is valid.

Parameters

  <strong>INTERFACEMODE</strong> | QSPI Interface Mode.

Return values

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

Definition at line 453 of file gr55xx_hal_dspi.h.

DSPI_BAUD_RATE_64P1PCLK
#define DSPI_BAUD_RATE_64P1PCLK
DSPI Baud rate fPCLK / 64
Definition: gr55xx_hal_dspi.h:220
DSPI_PROT_MODE_4W1L
#define DSPI_PROT_MODE_4W1L
DSPI 4-Wire 1-Lane Interface
Definition: gr55xx_hal_dspi.h:230
DSPI_BAUD_RATE_128P1PCLK
#define DSPI_BAUD_RATE_128P1PCLK
DSPI Baud rate fPCLK / 128.
Definition: gr55xx_hal_dspi.h:221
DSPI_BAUD_RATE_32P1PCLK
#define DSPI_BAUD_RATE_32P1PCLK
DSPI Baud rate fPCLK / 32
Definition: gr55xx_hal_dspi.h:219
DSPI_INSTSIZE_16_BITS
#define DSPI_INSTSIZE_16_BITS
16-bit Instruction
Definition: gr55xx_hal_dspi.h:238
DSPI_BAUD_RATE_16P1PCLK
#define DSPI_BAUD_RATE_16P1PCLK
DSPI Baud rate fPCLK / 16
Definition: gr55xx_hal_dspi.h:218
DSPI_BAUD_RATE_2P1PCLK
#define DSPI_BAUD_RATE_2P1PCLK
DSPI Baud rate fPCLK / 2
Definition: gr55xx_hal_dspi.h:215
DSPI_INSTSIZE_32_BITS
#define DSPI_INSTSIZE_32_BITS
32-bit Instruction
Definition: gr55xx_hal_dspi.h:239
DSPI_BAUD_RATE_4P1PCLK
#define DSPI_BAUD_RATE_4P1PCLK
DSPI Baud rate fPCLK / 4
Definition: gr55xx_hal_dspi.h:216
DSPI_PROT_MODE_3W1L
#define DSPI_PROT_MODE_3W1L
DSPI 3-Wire 1-Lane Interface
Definition: gr55xx_hal_dspi.h:229
DSPI_PROT_MODE_4W2L
#define DSPI_PROT_MODE_4W2L
DSPI 4-Wire 2-Lane Interface
Definition: gr55xx_hal_dspi.h:231
DSPI_BAUD_RATE_256P1PCLK
#define DSPI_BAUD_RATE_256P1PCLK
DSPI Baud rate fPCLK / 256.
Definition: gr55xx_hal_dspi.h:222
DSPI_BAUD_RATE_8P1PCLK
#define DSPI_BAUD_RATE_8P1PCLK
DSPI Baud rate fPCLK / 8
Definition: gr55xx_hal_dspi.h:217
DSPI_INSTSIZE_08_BITS
#define DSPI_INSTSIZE_08_BITS
8-bit Instruction
Definition: gr55xx_hal_dspi.h:237