spi_m_async_get_status

Get the SPI transfer status.

int32_t spi_m_async_get_status(
    struct spi_m_async_descriptor * spi,
    struct spi_m_async_status * stat
)

Get transfer status, transfer counts in a structured way.

Parameters

spi

Type: struct spi_m_async_descriptor Struct *

Pointer to the HAL SPI instance.

stat

Type: struct spi_m_async_status Struct *

Pointer to the detailed status descriptor, set to NULL to not return details.

Returns

Type: int32_t

Status.

ERR_NONE

Not busy.

ERR_BUSY

Busy.