Struct RtcSleepConfig

Source
pub struct RtcSleepConfig(pub u32);
Available on crate feature unstable only.
Expand description

Configuration for the RTC sleep behavior.

Tuple Fields§

§0: u32

Implementations§

Source§

impl RtcSleepConfig

Source

pub fn lslp_mem_inf_fpu(&self) -> bool

force normal voltage in sleep mode (digital domain memory)

Source

pub fn rtc_mem_inf_fpu(&self) -> bool

force normal voltage in sleep mode (RTC memory)

Source

pub fn rtc_mem_inf_follow_cpu(&self) -> bool

keep low voltage in sleep mode (even if ULP/touch is used)

Source

pub fn rtc_fastmem_pd_en(&self) -> bool

power down RTC fast memory

Source

pub fn rtc_slowmem_pd_en(&self) -> bool

power down RTC slow memory

Source

pub fn rtc_peri_pd_en(&self) -> bool

power down RTC peripherals

Source

pub fn wifi_pd_en(&self) -> bool

power down WiFi

Source

pub fn int_8m_pd_en(&self) -> bool

Power down Internal 8M oscillator

Source

pub fn rom_mem_pd_en(&self) -> bool

power down main RAM and ROM

Source

pub fn deep_slp(&self) -> bool

power down digital domain

Source

pub fn wdt_flashboot_mod_en(&self) -> bool

enable WDT flashboot mode

Source

pub fn dig_dbias_wak(&self) -> u8

bias for digital domain, in active mode

Source

pub fn dig_dbias_slp(&self) -> u8

bias for digital domain, in sleep mode

Source

pub fn rtc_dbias_wak(&self) -> u8

bias for RTC domain, in active mode

Source

pub fn rtc_dbias_slp(&self) -> u8

bias for RTC domain, in sleep mode

Source

pub fn lslp_meminf_pd(&self) -> bool

remove all peripheral force power up flags

Source

pub fn vddsdio_pd_en(&self) -> bool

power down VDDSDIO regulator

Source

pub fn xtal_fpu(&self) -> bool

keep main XTAL powered up in sleep

Source

pub fn deep_slp_reject(&self) -> bool

enable deep sleep reject

Source

pub fn light_slp_reject(&self) -> bool

enable light sleep reject

Source

pub fn set_lslp_mem_inf_fpu(&mut self, value: bool)

force normal voltage in sleep mode (digital domain memory)

Source

pub fn set_rtc_mem_inf_fpu(&mut self, value: bool)

force normal voltage in sleep mode (RTC memory)

Source

pub fn set_rtc_mem_inf_follow_cpu(&mut self, value: bool)

keep low voltage in sleep mode (even if ULP/touch is used)

Source

pub fn set_rtc_fastmem_pd_en(&mut self, value: bool)

power down RTC fast memory

Source

pub fn set_rtc_slowmem_pd_en(&mut self, value: bool)

power down RTC slow memory

Source

pub fn set_rtc_peri_pd_en(&mut self, value: bool)

power down RTC peripherals

Source

pub fn set_wifi_pd_en(&mut self, value: bool)

power down WiFi

Source

pub fn set_int_8m_pd_en(&mut self, value: bool)

Power down Internal 8M oscillator

Source

pub fn set_rom_mem_pd_en(&mut self, value: bool)

power down main RAM and ROM

Source

pub fn set_deep_slp(&mut self, value: bool)

power down digital domain

Source

pub fn set_wdt_flashboot_mod_en(&mut self, value: bool)

enable WDT flashboot mode

Source

pub fn set_dig_dbias_wak(&mut self, value: u8)

bias for digital domain, in active mode

Source

pub fn set_dig_dbias_slp(&mut self, value: u8)

bias for digital domain, in sleep mode

Source

pub fn set_rtc_dbias_wak(&mut self, value: u8)

bias for RTC domain, in active mode

Source

pub fn set_rtc_dbias_slp(&mut self, value: u8)

bias for RTC domain, in sleep mode

Source

pub fn set_lslp_meminf_pd(&mut self, value: bool)

remove all peripheral force power up flags

Source

pub fn set_vddsdio_pd_en(&mut self, value: bool)

power down VDDSDIO regulator

Source

pub fn set_xtal_fpu(&mut self, value: bool)

keep main XTAL powered up in sleep

Source

pub fn set_deep_slp_reject(&mut self, value: bool)

enable deep sleep reject

Source

pub fn set_light_slp_reject(&mut self, value: bool)

enable light sleep reject

Source§

impl RtcSleepConfig

Source

pub fn deep() -> Self

Configures the RTC for deep sleep mode.

Trait Implementations§

Source§

impl<T> BitRange<T> for RtcSleepConfig
where u32: BitRange<T>,

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> T

Get a range of bits.
Source§

impl<T> BitRangeMut<T> for RtcSleepConfig
where u32: BitRangeMut<T>,

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)

Set a range of bits.
Source§

impl Clone for RtcSleepConfig

Source§

fn clone(&self) -> RtcSleepConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RtcSleepConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RtcSleepConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for RtcSleepConfig

Auto Trait Implementations§

§

impl Freeze for RtcSleepConfig

§

impl RefUnwindSafe for RtcSleepConfig

§

impl Send for RtcSleepConfig

§

impl Sync for RtcSleepConfig

§

impl Unpin for RtcSleepConfig

§

impl UnwindSafe for RtcSleepConfig

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Bit for T
where T: BitRange<u8>,

Source§

fn bit(&self, bit: usize) -> bool

Get a single bit.
Source§

impl<T> BitMut for T
where T: BitRangeMut<u8>,

Source§

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.