34.1.5.4 spi_m_async_disable
Disable the SPI and abort any pending transfer in progress.
void spi_m_async_disable(
struct spi_m_async_descriptor * spi
)
If there is any pending transfer, the complete callback is invoked with the ERR_ABORTED status.
Parameters
- spi
-
Type: struct spi_m_async_descriptor Struct *
Pointer to the HAL SPI instance.
Returns
Type: void
Operation status.
- ERR_NONE
-
Success.
- <0
-
Error code.