|
STM32G474xx HAL 用户手册
|
SPI控制函数。 更多...
函数 | |
| HAL_SPI_StateTypeDef | HAL_SPI_GetState (const SPI_HandleTypeDef *hspi) |
| 返回SPI句柄状态。 | |
| uint32_t | HAL_SPI_GetError (const SPI_HandleTypeDef *hspi) |
| 返回SPI错误代码。 | |
SPI控制函数。
===============================================================================
##### 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
| uint32_t HAL_SPI_GetError | ( | const SPI_HandleTypeDef * | hspi | ) |
返回SPI错误代码。
| hspi | 指向包含SPI模块配置信息的SPI_HandleTypeDef结构体的指针。 |
| SPI | 按位图格式的错误代码 |
Definition at line 3020 of file stm32g4xx_hal_spi.c.
References __SPI_HandleTypeDef::ErrorCode.
| HAL_SPI_StateTypeDef HAL_SPI_GetState | ( | const SPI_HandleTypeDef * | hspi | ) |
返回SPI句柄状态。
| hspi | 指向包含SPI模块配置信息的SPI_HandleTypeDef结构体的指针。 |
| SPI | 状态 |
Definition at line 3008 of file stm32g4xx_hal_spi.c.
References __SPI_HandleTypeDef::State.
1.7.6.1