pub unsafe extern "C" fn sdmmc_io_read_bytes(
card: *mut sdmmc_card_t,
function: u32,
addr: u32,
dst: *mut c_void,
size: usize,
) -> esp_err_t
Expand description
Read multiple bytes from an SDIO card using IO_RW_EXTENDED (CMD53)
This function performs read operation using CMD53 in byte mode. For block mode, see sdmmc_io_read_blocks.
By default OP Code is set (incrementing address). To send CMD53 without this bit, OR the argument addr
with
SDMMC_IO_FIXED_ADDR
.
@param card pointer to card information structure previously initialized
using sdmmc_card_init
@param function IO function number
@param addr byte address within IO function where reading starts
@param dst buffer which receives the data read from card. Aligned to 4 byte boundary unless
SDMMC_HOST_FLAG_ALLOC_ALIGNED_BUF
flag is set when calling sdmmc_card_init
. The flag is mandatory
when the buffer is behind the cache.
@param size number of bytes to read, 1 to 512.
@return
- ESP_OK on success
- ESP_ERR_INVALID_SIZE if size exceeds 512 bytes
- One of the error codes from SDMMC host controller