Function esp_idf_svc::sys::wl_read
source · pub unsafe extern "C" fn wl_read(
handle: i32,
src_addr: usize,
dest: *mut c_void,
size: usize,
) -> i32
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. The Pointer must be non-NULL and the 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.