Function esp_idf_svc::hal::sys::wl_erase_range
source · pub unsafe extern "C" fn wl_erase_range(
handle: i32,
start_addr: usize,
size: usize,
) -> i32
Expand description
@brief Erase part of the WL storage
@param handle WL handle that are related to the partition @param start_addr Address from where erase operation should start. Must be aligned to the result of function wl_sector_size(…). @param size Size of the range which should be erased, in bytes. Must be divisible by the result of function wl_sector_size(…)..
@return - ESP_OK, if the given range was erased successfully; - ESP_ERR_INVALID_ARG, if iterator or dst are NULL; - ESP_ERR_INVALID_SIZE, if erase would go out of bounds of the partition; - or one of error codes from lower-level flash driver.