Function esp_idf_sys::esp_efuse_destroy_block
source ยท pub unsafe extern "C" fn esp_efuse_destroy_block(
block: esp_efuse_block_t,
) -> esp_err_t
Expand description
@brief Destroys the data in the given efuse block, if possible.
Data destruction occurs through the following steps:
- Destroy data in the block:
- If write protection is inactive for the block, then unset bits are burned.
- If write protection is active, the block remains unaltered.
- Set read protection for the block if possible (check write-protection for RD_DIS). In this case, data becomes inaccessible, and the software reads it as all zeros. If write protection is enabled and read protection can not be set, data in the block remains readable (returns an error).
Do not use the batch mode with this function as it does the burning itself!
@param[in] block A key block in the range EFUSE_BLK_KEY0..EFUSE_BLK_KEY_MAX
@return
- ESP_OK: Successful.
- ESP_FAIL: Data remained readable because the block is write-protected and read protection can not be set.