[][src]Function mynewt::hw::hal::hal_spi_disable

pub unsafe extern "C" fn hal_spi_disable(spi_num: c_int) -> c_int

Disables the SPI. Used for power mgmt. It will halt any current SPI transfers in progress.

@param spi_num

Return: int 0 on success, non-zero error code on failure.