Function esp_idf_sys::esp_partition_erase_range
source ยท pub unsafe extern "C" fn esp_partition_erase_range(
partition: *const esp_partition_t,
offset: usize,
size: usize,
) -> esp_err_t
Expand description
@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 partition->erase_size. @param size Size of the range which should be erased, in bytes. Must be divisible by partition->erase_size.
@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.