Function esp_idf_svc::hal::sys::sdmmc_io_read_blocks

source ยท
pub unsafe extern "C" fn sdmmc_io_read_blocks(
    card: *mut sdmmc_card_t,
    function: u32,
    addr: u32,
    dst: *mut c_void,
    size: usize,
) -> i32
Expand description

Read blocks of data from an SDIO card using IO_RW_EXTENDED (CMD53)

This function performs read operation using CMD53 in block mode. For byte mode, see sdmmc_io_read_bytes.

@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 writing starts @param dst buffer which receives the data read from card @param size number of bytes to read, must be divisible by the card block size. @return - ESP_OK on success - ESP_ERR_INVALID_SIZE if size is not divisible by 512 bytes - One of the error codes from SDMMC host controller