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

## Macros
#define | __HAL_DSPI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_DSPI_STATE_RESET)
| Reset DSPI handle states. More...
#define | __HAL_DSPI_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN)
| Enable the specified DSPI peripheral. More...
#define | __HAL_DSPI_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN)
| Disable the specified DSPI peripheral. More...
#define | __HAL_DSPI_ENABLE_DMATX(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN)
| Enable the DSPI DMA TX Request. More...
#define | __HAL_DSPI_ENABLE_DMARX(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN)
| Enable the DSPI DMA RX Request. More...
#define | __HAL_DSPI_DISABLE_DMATX(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN)
| Disable the DSPI DMA TX Request. More...
#define | __HAL_DSPI_DISABLE_DMARX(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN)
| Disable the DSPI DMA RX Request. More...
#define | __HAL_DSPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__))
| Enable the specified DSPI interrupts. More...
#define | __HAL_DSPI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__))
| Disable the specified DSPI interrupts. More...
#define | __HAL_DSPI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (READ_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__)) == (__INTERRUPT__))
| Check whether the specified DSPI interrupt source is enabled or not. More...
#define | __HAL_DSPI_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0) ? SET : RESET)
| Check whether the specified DSPI flag is set or not. More...
#define | __HAL_DSPI_FLUSH_FIFO(__HANDLE__) ll_dspi_flush_fifo((__HANDLE__)->p_instance)
| Flush the DSPI receiver FIFO. More...
#define | __HAL_DSPI_TRANSPORT_TYPE(__HANDLE__, __TYPE__) ll_dspi_set_dcx((__HANDLE__)->p_instance, (__TYPE__))
| Set the DSPI data transport type. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_DSPI_DISABLE

#define __HAL_DSPI_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN)

Disable the specified DSPI peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 343 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_DISABLE_DMARX

#define __HAL_DSPI_DISABLE_DMARX | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN)

Disable the DSPI DMA RX Request.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 367 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_DISABLE_DMATX

#define __HAL_DSPI_DISABLE_DMATX | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN)

Disable the DSPI DMA TX Request.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 361 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_DISABLE_IT

#define __HAL_DSPI_DISABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__))

Disable the specified DSPI interrupts.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI handle.
  <strong>INTERRUPT</strong> | Specifies the interrupt source to disable. This parameter can be one of the following values: DSPI_IT_RXNE Receive FIFO not empty Interrupt disable DSPI_IT_TXE Transmit FIFO Empty Interrupt disable DSPI_IT_ERR Error Interrupt Interrupt disable

Return values

  None |

Definition at line 389 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_ENABLE

#define __HAL_DSPI_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN)

Enable the specified DSPI peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 337 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_ENABLE_DMARX

#define __HAL_DSPI_ENABLE_DMARX | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN)

Enable the DSPI DMA RX Request.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 355 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_ENABLE_DMATX

#define __HAL_DSPI_ENABLE_DMATX | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN)

Enable the DSPI DMA TX Request.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 349 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_ENABLE_IT

#define __HAL_DSPI_ENABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | SET_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__))

Enable the specified DSPI interrupts.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.
  <strong>INTERRUPT</strong> | Specifies the interrupt source to enable. This parameter can be one of the following values: DSPI_IT_RXNE Receive FIFO not empty Interrupt enable DSPI_IT_TXE Transmit FIFO Empty Interrupt enable DSPI_IT_ERR Error Interrupt Interrupt enable

Return values

  None |

Definition at line 378 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_FLUSH_FIFO

#define __HAL_DSPI_FLUSH_FIFO | ( |  | __HANDLE__ | ) | ll_dspi_flush_fifo((__HANDLE__)->p_instance)

Flush the DSPI receiver FIFO.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.

Return values

  None |

Definition at line 420 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_GET_FLAG

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

Check whether the specified DSPI flag is set or not.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.
  <strong>FLAG</strong> | Specifies the flag to check. This parameter can be one of the following values: DSPI_FLAG_FFE Frame format error flag DSPI_FLAG_OVR Rx overrun flag DSPI_FLAG_MODE spi mode flag DSPI_FLAG_RFNE Rx FIFO not empty flag DSPI_FLAG_TFE Tx FIFO empty flag DSPI_FLAG_BUSY Busy flag

Return values

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

Definition at line 414 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_GET_IT_SOURCE

#define __HAL_DSPI_GET_IT_SOURCE | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | (READ_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__)) == (__INTERRUPT__))

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

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.
  <strong>INTERRUPT</strong> | Specifies the interrupt source to check. This parameter can be one of the following values: DSPI_IT_RXNE Receive FIFO not empty Interrupt disable DSPI_IT_TXE Transmit FIFO Empty Interrupt disable DSPI_IT_ERR Error Interrupt Interrupt disable

Return values

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

Definition at line 400 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_RESET_HANDLE_STATE

#define __HAL_DSPI_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_DSPI_STATE_RESET)

Reset DSPI handle states.

Parameters

  <strong>HANDLE</strong> | DPI handle.

Return values

  None |

Definition at line 331 of file gr55xx_hal_dspi.h.

## ◆ __HAL_DSPI_TRANSPORT_TYPE

#define __HAL_DSPI_TRANSPORT_TYPE | ( |  | __HANDLE__,
|  |  | __TYPE__
| ) |  | ll_dspi_set_dcx((__HANDLE__)->p_instance, (__TYPE__))

Set the DSPI data transport type.

Parameters

  <strong>HANDLE</strong> | Specifies the DSPI Handle.
  <strong>TYPE</strong> | Specifies the DSPI data transport type.

Return values

  None |

Definition at line 427 of file gr55xx_hal_dspi.h.