[−][src]Function esp_idf_sys::spi_device_polling_start
pub unsafe extern "C" fn spi_device_polling_start(
handle: spi_device_handle_t,
trans_desc: *mut spi_transaction_t,
ticks_to_wait: TickType_t
) -> esp_err_t
@brief Immediately start a polling transaction.
@note Normally a device cannot start (queue) polling and interrupt transactions simutanuously. Moreover, a device cannot start a new polling transaction if another polling transaction is not finished.
@param handle Device handle obtained using spi_host_add_dev @param trans_desc Description of transaction to execute @param ticks_to_wait Ticks to wait until there's room in the queue; currently only portMAX_DELAY is supported.
@return
- ESP_ERR_INVALID_ARG if parameter is invalid
- ESP_ERR_TIMEOUT if the device cannot get control of the bus before ticks_to_wait
expired
- ESP_ERR_NO_MEM if allocating DMA-capable temporary buffer failed
- ESP_ERR_INVALID_STATE if previous transactions are not finished
- ESP_OK on success