Function esp_idf_sys::wl_read

source ·
pub unsafe extern "C" fn wl_read(
    handle: wl_handle_t,
    src_addr: usize,
    dest: *mut c_void,
    size: usize,
) -> esp_err_t
Expand description

@brief Read data from the WL storage

@param handle WL module instance that was initialized before @param dest Pointer to the buffer where data should be stored. Pointer must be non-NULL and buffer must be at least ‘size’ bytes long. @param src_addr Address of the data to be read, relative to the beginning of the partition. @param size Size of data to be read, in bytes.

@return - ESP_OK, if data was read successfully; - ESP_ERR_INVALID_ARG, if src_offset exceeds partition size; - ESP_ERR_INVALID_SIZE, if read would go out of bounds of the partition; - or one of error codes from lower-level flash driver.