Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Peripheral State and Errors functions
[SPI Exported Functions]
SPI control functions. More...
Functions | |
HAL_SPI_StateTypeDef | HAL_SPI_GetState (SPI_HandleTypeDef *hspi) |
Return the SPI handle state. | |
uint32_t | HAL_SPI_GetError (SPI_HandleTypeDef *hspi) |
Return the SPI error code. |
Detailed Description
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
Function Documentation
uint32_t HAL_SPI_GetError | ( | SPI_HandleTypeDef * | hspi ) |
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 1880 of file stm32l4xx_hal_spi.c.
HAL_SPI_StateTypeDef HAL_SPI_GetState | ( | SPI_HandleTypeDef * | hspi ) |
Return the SPI handle state.
- Parameters:
-
hspi,: pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
- Return values:
-
SPI state
Definition at line 1868 of file stm32l4xx_hal_spi.c.
Generated on Tue Jul 12 2022 17:38:54 by
