pub struct Efuse;
Implementations
sourceimpl 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_core_count() -> u32
pub fn get_core_count() -> u32
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.
sourcepub fn get_max_cpu_frequency() -> Rate<u32, 1, 1>
pub fn get_max_cpu_frequency() -> Rate<u32, 1, 1>
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.
sourcepub fn is_bluetooth_enabled() -> bool
pub fn is_bluetooth_enabled() -> bool
Returns the CHIP_VER_DIS_BT eFuse value.
sourcepub fn get_chip_type() -> ChipType
pub fn get_chip_type() -> ChipType
Returns the CHIP_VER_PKG eFuse value.
sourcepub fn get_flash_encryption() -> bool
pub fn get_flash_encryption() -> bool
Get status of SPI boot encryption.
Auto Trait Implementations
impl RefUnwindSafe for Efuse
impl Send for Efuse
impl Sync for Efuse
impl Unpin for Efuse
impl UnwindSafe for Efuse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more