Function esp_idf_sys::wl_erase_range
source · pub unsafe extern "C" fn wl_erase_range(
handle: wl_handle_t,
start_addr: usize,
size: usize,
) -> esp_err_t
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.