spi_device_polling_end() function
Poll until the polling transaction ends. This routine will not return until the transaction to the given device has successfully completed. The task is not blocked, but actively busy-spins for the transaction to be completed.
Arguments
handle
Device handle obtained using spi_host_add_dev
ticks_to_wait
Ticks to wait until there's a returned item; use portMAX_DELAY to never time out.
Return value
- 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