spi_m_os_disable

Disable the SPI and abort any pending transfer in progress.

int32_t spi_m_os_disable(
    struct spi_m_os_descriptor *const spi
)

If there is any pending transfer, the complete callback is invoked with the ERR_ABORTED status.

Parameters

spi

Type: struct spi_m_os_descriptor Struct *const

Pointer to the HAL SPI instance.

Returns

Type: int32_t

Operation status.

ERR_NONE

Success.

<0

Error code.