Put a new sending transfer into the send queue. The driver takes ownership of the buffer until the buffer is returned by ``sdio_slave_send_get_finished`` after the transaction is finished.
Address for data to be sent. The buffer should be DMA capable and 32-bit aligned.
len
Length of the data, should not be longer than 4092 bytes (may support longer in the future).
arg
Argument to returned in ``sdio_slave_send_get_finished``. The argument can be used to indicate which transaction is done, or as a parameter for a callback. Set to NULL if not needed.
wait
Time to wait if the buffer is full.
Return value
- ESP_ERR_INVALID_ARG if the length is not greater than 0. - ESP_ERR_TIMEOUT if the queue is still full until timeout. - ESP_OK if success.
Examples
sdio_slave_send_queue() is referenced by 1 libraries and example projects: