[][src]Function esp_idf_sys::spi_bus_free

pub unsafe extern "C" fn spi_bus_free(host: spi_host_device_t) -> esp_err_t

@brief Free a SPI bus

@warning In order for this to succeed, all devices have to be removed first.

@param host SPI peripheral to free @return - ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_INVALID_STATE if not all devices on the bus are freed - ESP_OK on success