spi_slave_get_trans_result() function
Get the result of a SPI transaction queued earlier This routine will wait until a transaction to the given device (queued earlier with spi_slave_queue_trans) has successfully completed. It will then return the description of the completed transaction so software can inspect the result and e.g. free the memory or reuse the buffers. It is mandatory to eventually use this function for any transaction queued by ``spi_slave_queue_trans``.
Arguments
host
SPI peripheral to that is acting as a slave
trans_desc
Pointer to variable able to contain a pointer to the description of the transaction that is executed
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_NOT_SUPPORTED if flag `SPI_SLAVE_NO_RETURN_RESULT` is set - ESP_OK on success
spi_slave_get_trans_result() is called by 1 function and calls 5 functions:
![]()
spi_slave_get_trans_result()
spi_slave_get_trans_result() reads 11 variables:
![]()
spi_slave_get_trans_result()