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.
Type: struct spi_m_os_descriptor Struct *const
Pointer to the HAL SPI instance.
Type: int32_t
Operation status.
Success.
Error code.