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.
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.
sourcepub fn get_block_version() -> (u8, u8)
pub fn get_block_version() -> (u8, u8)
Get efuse block version
see https://github.com/espressif/esp-idf/blob/dc016f5987/components/hal/efuse_hal.c#L27-L30
sourcepub fn get_rtc_calib_version() -> u8
pub fn get_rtc_calib_version() -> u8
Get version of RTC calibration block
sourcepub fn get_rtc_calib_init_code(_unit: u8, atten: Attenuation) -> Option<u16>
pub fn get_rtc_calib_init_code(_unit: u8, atten: Attenuation) -> Option<u16>
Get ADC initial code for specified attenuation from efuse
sourcepub fn get_rtc_calib_cal_mv(_unit: u8, atten: Attenuation) -> u16
pub fn get_rtc_calib_cal_mv(_unit: u8, atten: Attenuation) -> u16
Get ADC reference point voltage for specified attenuation in millivolts
sourcepub fn get_rtc_calib_cal_code(_unit: u8, atten: Attenuation) -> Option<u16>
pub fn get_rtc_calib_cal_code(_unit: u8, atten: Attenuation) -> Option<u16>
Get ADC reference point digital code for specified attenuation
source§impl Efuse
impl Efuse
sourcepub fn read_field_le<T>(field: EfuseField) -> Twhere
T: 'static,
pub fn read_field_le<T>(field: EfuseField) -> Twhere T: 'static,
Read field value in a little-endian order
sourcepub fn read_field_be<T>(field: EfuseField) -> Twhere
T: 'static,
pub fn read_field_be<T>(field: EfuseField) -> Twhere T: 'static,
Read field value in a big-endian order
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more