Struct esp32c2_hal::efuse::Efuse
source · pub struct Efuse;
Implementations§
source§impl Efuse
impl Efuse
sourcepub fn get_mac_address() -> [u8; 6]
pub fn get_mac_address() -> [u8; 6]
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]
);
sourcepub fn get_flash_encryption() -> bool
pub fn get_flash_encryption() -> bool
Get status of SPI boot encryption.
sourcepub fn get_rwdt_multiplier() -> u8
pub fn get_rwdt_multiplier() -> u8
Get the multiplier for the timeout value of the RWDT STAGE 0 register.