34.5.4.8 spi_s_async_get_status
Get SPI transfer status.
int32_t spi_s_async_get_status(
struct spi_s_async_descriptor * spi,
struct spi_s_async_status * stat
)
Get transfer status, buffers statuses in a structured way.
Parameters
- spi
-
Type: struct spi_s_async_descriptor Struct *
Pointer to the HAL SPI instance.
- stat
-
Type: struct spi_s_async_status Struct *
Pointer to the detailed status descriptor, set to NULL to not return details.
Returns
Type: int32_t
Status.
- 0
-
Not busy.
- ERR_BUSY
-
Busy.
- -1
-
Error.