Function esp_idf_svc::sys::esp_efuse_set_write_protect
source ยท pub unsafe extern "C" fn esp_efuse_set_write_protect(blk: u32) -> i32
Expand description
@brief Sets a write protection for the whole block.
After that, it is impossible to write to this block. The write protection does not apply to block 0. @param[in] blk Block number of eFuse. (EFUSE_BLK1, EFUSE_BLK2 and EFUSE_BLK3)
@return
- ESP_OK: The operation was successfully completed.
- ESP_ERR_INVALID_ARG: Error in the passed arguments.
- ESP_ERR_EFUSE_CNT_IS_FULL: Not all requested cnt bits is set.
- ESP_ERR_NOT_SUPPORTED: The block does not support this command.