Function esp_idf_hal::sys::esp_efuse_read_field_cnt

source ·
pub unsafe extern "C" fn esp_efuse_read_field_cnt(
    field: *mut *const esp_efuse_desc_t,
    out_cnt: *mut usize,
) -> i32
Expand description

@brief Reads bits from EFUSE field and returns number of bits programmed as “1”.

If the bits are set not sequentially, they will still be counted. @note Please note that reading in the batch mode does not show uncommitted changes.

@param[in] field A pointer to the structure describing the fields of efuse. @param[out] out_cnt A pointer that will contain the number of programmed as “1” bits.

@return

  • ESP_OK: The operation was successfully completed.
  • ESP_ERR_INVALID_ARG: Error in the passed arguments.