Struct esp32_hal::efuse::Efuse

source ·
pub struct Efuse;

Implementations§

Reads chip’s MAC address from the eFuse storage.

Example
let mac_address = Efuse::get_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]
);

Returns the number of CPUs available on the chip.

While ESP32 chips usually come with two mostly equivalent CPUs (protocol CPU and application CPU), the application CPU is unavailable on some.

Returns the maximum rated clock of the CPU in MHz.

Note that the actual clock may be lower, depending on the current power configuration of the chip, clock source, and other settings.

Returns the CHIP_VER_DIS_BT eFuse value.

Returns the CHIP_VER_PKG eFuse value.

Get status of SPI boot encryption.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.