Function esp_idf_svc::sys::esp_efuse_set_key_purpose

source ยท
pub unsafe extern "C" fn esp_efuse_set_key_purpose(
    block: u32,
    purpose: u32,
) -> i32
Expand description

@brief Sets a key purpose for an efuse key block.

@param[in] block A key block in the range EFUSE_BLK_KEY0..EFUSE_BLK_KEY_MAX @param[in] purpose Key purpose.

@return

  • ESP_OK: Successful.
  • ESP_ERR_INVALID_ARG: Error in the passed arguments.
  • ESP_ERR_EFUSE_REPEATED_PROG: Error repeated programming of programmed bits is strictly forbidden.
  • ESP_ERR_CODING: Error range of data does not match the coding scheme.