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... | |
#define __HAL_DSPI_DISABLE | ( | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN) |
Disable the specified DSPI peripheral.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 356 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_DISABLE_DMARX | ( | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN) |
Disable the DSPI DMA RX Request.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 380 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_DISABLE_DMATX | ( | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN) |
Disable the DSPI DMA TX Request.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 374 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__)) |
Disable the specified DSPI interrupts.
__HANDLE__ | Specifies the DSPI handle. |
__INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 402 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_ENABLE | ( | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL1, DSPI_CR1_EN) |
Enable the specified DSPI peripheral.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 350 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_ENABLE_DMARX | ( | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_RXDMAEN) |
Enable the DSPI DMA RX Request.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 368 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_ENABLE_DMATX | ( | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL2, DSPI_CR2_TXDMAEN) |
Enable the DSPI DMA TX Request.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 362 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BITS((__HANDLE__)->p_instance->CTRL2, (__INTERRUPT__)) |
Enable the specified DSPI interrupts.
__HANDLE__ | Specifies the DSPI Handle. |
__INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 391 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_FLUSH_FIFO | ( | __HANDLE__ | ) | ll_dspi_flush_fifo((__HANDLE__)->p_instance) |
Flush the DSPI receiver FIFO.
__HANDLE__ | Specifies the DSPI Handle. |
None |
Definition at line 433 of file gr55xx_hal_dspi.h.
#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.
__HANDLE__ | Specifies the DSPI Handle. |
__FLAG__ | Specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 427 of file gr55xx_hal_dspi.h.
#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.
__HANDLE__ | Specifies the DSPI Handle. |
__INTERRUPT__ | Specifies the interrupt source to check. This parameter can be one of the following values:
|
The | new state of __IT__ (TRUE or FALSE). |
Definition at line 413 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_DSPI_STATE_RESET) |
Reset DSPI handle states.
__HANDLE__ | DPI handle. |
None |
Definition at line 344 of file gr55xx_hal_dspi.h.
#define __HAL_DSPI_TRANSPORT_TYPE | ( | __HANDLE__, | |
__TYPE__ | |||
) | ll_dspi_set_dcx((__HANDLE__)->p_instance, (__TYPE__)) |
Set the DSPI data transport type.
__HANDLE__ | Specifies the DSPI Handle. |
__TYPE__ | Specifies the DSPI data transport type. |
None |
Definition at line 440 of file gr55xx_hal_dspi.h.