[−][src]Function mynewt::hw::hal::hal_spi_abort
pub unsafe extern "C" fn hal_spi_abort(spi_num: c_int) -> c_int
This aborts the current transfer but keeps the spi enabled.
spi_num
: SPI interface on which transfer should be aborted.
Return: int 0 on success, non-zero error code on failure.
NOTE: does not return an error if no transfer was in progress.