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.
A pointer to the structure describing the fields of efuse.
src
A pointer to array that contains the data for writing.
src_size_bits
The number of bits required to write.
Return value
- 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.
Reads bits from EFUSE field and writes it into an array. The number of read bits will be limited to the minimum value from the description of the bits in "field" structure or "dst_size_bits" required size. Use "esp_efuse_get_field_size()" function to determine the length of the field.
Write a single bit eFuse field to 1 For use with eFuse fields that are a single bit. This function will write the bit to value 1 if it is not already set, or does nothing if the bit is already set. This is equivalent to calling esp_efuse_write_field_cnt() with the cnt parameter equal to 1, except that it will return ESP_OK if the field is already set to 1.
Writes a required count of bits as "1" to EFUSE field. If there are no free bits in the field to set the required number of bits to "1", ESP_ERR_EFUSE_CNT_IS_FULL error is returned, the field will not be partially recorded. After the function is completed, the writing registers are cleared.
This function processes the field by calling the passed function. This function selects the field, checks the length, and calls the register processing function.
Examples
esp_efuse_write_field_blob() is referenced by 1 libraries and example projects: