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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 356 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 380 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 374 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
__HANDLE__Specifies the DSPI handle.
__INTERRUPT__Specifies the interrupt source to disable. This parameter can be one of the following values:
Return values
None

Definition at line 402 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 350 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 368 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 362 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
__HANDLE__Specifies the DSPI Handle.
__INTERRUPT__Specifies the interrupt source to enable. This parameter can be one of the following values:
Return values
None

Definition at line 391 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
__HANDLE__Specifies the DSPI Handle.
Return values
None

Definition at line 433 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
__HANDLE__Specifies the DSPI Handle.
__FLAG__Specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of __FLAG__ (TRUE or FALSE).

Definition at line 427 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
__HANDLE__Specifies the DSPI Handle.
__INTERRUPT__Specifies the interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of __IT__ (TRUE or FALSE).

Definition at line 413 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
__HANDLE__DPI handle.
Return values
None

Definition at line 344 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
__HANDLE__Specifies the DSPI Handle.
__TYPE__Specifies the DSPI data transport type.
Return values
None

Definition at line 440 of file gr55xx_hal_dspi.h.