SPI control functions.
More...
SPI control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the SPI.
(+) HAL_SPI_GetState() API can be helpful to check in run-time the state of the SPI peripheral
(+) HAL_SPI_GetError() check in run-time Errors occurring during communication
◆ HAL_SPI_GetError()
Return the SPI error code.
- Parameters
-
hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
- Return values
-
SPI | error code in bitmap format |
Definition at line 2654 of file stm32f4xx_hal_spi.c.
◆ HAL_SPI_GetState()
Return the SPI handle state.
- Parameters
-
hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
- Return values
-
Definition at line 2642 of file stm32f4xx_hal_spi.c.