[−][src]Struct esp32_hal::efuse::Efuse
Implementations
impl Efuse
[src]
pub fn get_mac_address() -> [u8; 6]
[src]
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]);
pub fn get_core_count() -> u32
[src]
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.
pub fn get_max_cpu_fequency() -> Hertz
[src]
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.
pub fn is_bluetooth_enabled() -> bool
[src]
pub fn get_chip_type() -> ChipType
[src]
pub fn get_adc_vref() -> Option<i32>
[src]
Returns the reference voltage for the SAR ADCs in mV on this chip.
If the value is not available in the eFuse, None
is returned.
pub fn get_adc1_two_point_cal() -> Option<(i32, i32)>
[src]
Returns the two point calibration for the ADC1.
The returned tuple is in a form of (low_value, high_value)
:
- the
low_value
represents ADC1 reading at 150mV on this chip - the
high_value
represents ADC1 reading at 850mv on this chip
If the values are not available in the eFuse, function returns None
.
pub fn get_adc2_two_point_cal() -> Option<(i32, i32)>
[src]
Returns the two point calibration for the ADC2.
The returned tuple is in a form of (low_value, high_value)
:
- the
low_value
represents ADC2 reading at 150mV on this chip - the
high_value
represents ADC2 reading at 850mv on this chip
If the values are not available in the eFuse, function returns None
.
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,