Function esp_idf_svc::sys::spi_device_polling_end
source · pub unsafe extern "C" fn spi_device_polling_end(
handle: *mut spi_device_t,
ticks_to_wait: u32,
) -> i32
Expand description
@brief Poll until the polling transaction ends.
This routine will not return until the transaction to the given device has succesfully completed. The task is not blocked, but actively busy-spins for the transaction to be completed.
@param handle Device handle obtained using spi_host_add_dev @param ticks_to_wait Ticks to wait until there’s a returned item; use portMAX_DELAY to never time out. @return - ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_TIMEOUT if the transaction cannot finish before ticks_to_wait expired - ESP_OK on success