Function esp_idf_sys::sdio_slave_send_queue
source ยท pub unsafe extern "C" fn sdio_slave_send_queue(
addr: *mut u8,
len: usize,
arg: *mut c_void,
wait: TickType_t,
) -> esp_err_t
Expand description
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.
@param addr Address for data to be sent. The buffer should be DMA capable and 32-bit aligned.
@param len Length of the data, should not be longer than 4092 bytes (may support longer in the future).
@param 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.
@param wait Time to wait if the buffer is full.
@return - 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.