sdio_slave_recv() function
Get received data if exist. The driver returns the ownership of the buffer to the app.
Arguments
handle_ret
Handle to the buffer holding received data. Use this handle in ``sdio_slave_recv_load_buf`` to receive in the same buffer again.
out_addr
Output of the start address, set to NULL if not needed.
out_len
Actual length of the data in the buffer, set to NULL if not needed.
wait
Time to wait before data received.
Return value
- ESP_ERR_INVALID_ARG if handle_ret is NULL - ESP_ERR_TIMEOUT if timeout before receiving new data - ESP_OK if success
Notes
Call ``sdio_slave_load_buf`` with the handle to re-load the buffer onto the link list, and receive with the same buffer again. The address and length of the buffer got here is the same as got from `sdio_slave_get_buffer`.
sdio_slave_recv() calls 1 function:
![]()
sdio_slave_recv()
sdio_slave_recv() reads 3 variables:
![]()
sdio_slave_recv()