43.2.4 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
This section contains the following APIs:
HAL_SPI_GetState()
HAL_SPI_GetError()
43.2.5 Detailed description of functions
HAL_SPI_Init
HAL_StatusTypeDef HAL_SPI_Init (SPI_HandleTypeDef * hspi)
Initialize the SPI according to the specified parameters in the
SPI_InitTypeDef and initialize the associated handle.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
HAL_SPI_DeInit
HAL_StatusTypeDef HAL_SPI_DeInit (SPI_HandleTypeDef *
hspi)
De Initialize the SPI peripheral.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
HAL_SPI_MspInit
void HAL_SPI_MspInit (SPI_HandleTypeDef * hspi)
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
HAL_SPI_MspDeInit
void HAL_SPI_MspDeInit (SPI_HandleTypeDef * hspi)
De-Initialize the SPI MSP.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.