esp_hal

Module efuse

Source
Expand description

§Reading of eFuses (ESP32-C6)

§Overview

The efuse module provides functionality for reading eFuse data from the ESP32-C6 chip, allowing access to various chip-specific information such as:

  • MAC address
  • ADC calibration data
  • Chip version

and more. It is useful for retrieving chip-specific configuration and identification data during runtime.

The Efuse struct represents the eFuse peripheral and is responsible for reading various eFuse fields and values.

§Example

§Read chip’s MAC address from the eFuse storage.

let mac_address = Efuse::read_base_mac_address();
writeln!(
    serial_tx,
    "MAC: {:#X}:{:#X}:{:#X}:{:#X}:{:#X}:{:#X}",
    mac_address[0],
    mac_address[1],
    mac_address[2],
    mac_address[3],
    mac_address[4],
    mac_address[5]
);

Structs§

  • A struct representing the eFuse functionality of the chip.

Constants§