Function esp_idf_hal::sys::esp_efuse_write_field_blob
source · pub unsafe extern "C" fn esp_efuse_write_field_blob(
field: *mut *const esp_efuse_desc_t,
src: *const c_void,
src_size_bits: usize,
) -> i32
Expand description
@brief Writes array to EFUSE field.
The number of write bits will be limited to the minimum value from the description of the bits in “field” structure or “src_size_bits” required size. Use “esp_efuse_get_field_size()” function to determine the length of the field. After the function is completed, the writing registers are cleared. @param[in] field A pointer to the structure describing the fields of efuse. @param[in] src A pointer to array that contains the data for writing. @param[in] src_size_bits The number of bits required to write.
@return
- ESP_OK: The operation was successfully completed.
- 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.