[][src]Function esp_idf_bindgen::esp_partition_erase_range

pub unsafe extern "C" fn esp_partition_erase_range(
    partition: *const esp_partition_t,
    offset: size_t,
    size: size_t
) -> esp_err_t

@brief Erase part of the partition

@param partition Pointer to partition structure obtained using esp_partition_find_first or esp_partition_get. Must be non-NULL. @param offset Offset from the beginning of partition where erase operation should start. Must be aligned to 4 kilobytes. @param size Size of the range which should be erased, in bytes. Must be divisible by 4 kilobytes.

@return ESP_OK, if the 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.