[][src]Function esp_idf_bindgen::spi_flash_read

pub unsafe extern "C" fn spi_flash_read(
    src_addr: size_t,
    dest: *mut c_void,
    size: size_t
) -> esp_err_t

@brief Read data from Flash.

@note For fastest read performance, all parameters should be 4 byte aligned. If source address and read size are not 4 byte aligned, read may be split into multiple flash operations. If destination buffer is not 4 byte aligned, a temporary buffer will be allocated on the stack.

@note Reading more than 16KB of data at a time will be split into multiple reads to avoid disruption to other tasks in the system. Consider using spi_flash_mmap() to read large amounts of data.

@param src_addr source address of the data in Flash. @param dest pointer to the destination buffer @param size length of data

@return esp_err_t