Function esp_idf_sys::spi_bus_free
source · pub unsafe extern "C" fn spi_bus_free(
host_id: spi_host_device_t,
) -> esp_err_t
Expand description
@brief Free a SPI bus
@warning In order for this to succeed, all devices have to be removed first.
@param host_id SPI peripheral to free @return - ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_INVALID_STATE if bus hasn’t been initialized before, or not all devices on the bus are freed - ESP_OK on success