Struct esp32_hal::rtc_cntl::sleep::RtcSleepConfig
source · pub struct RtcSleepConfig(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl RtcSleepConfig
impl RtcSleepConfig
sourcepub fn lslp_mem_inf_fpu(&self) -> bool
pub fn lslp_mem_inf_fpu(&self) -> bool
force normal voltage in sleep mode (digital domain memory)
sourcepub fn rtc_mem_inf_fpu(&self) -> bool
pub fn rtc_mem_inf_fpu(&self) -> bool
force normal voltage in sleep mode (RTC memory)
sourcepub fn rtc_mem_inf_follow_cpu(&self) -> bool
pub fn rtc_mem_inf_follow_cpu(&self) -> bool
keep low voltage in sleep mode (even if ULP/touch is used)
sourcepub fn rtc_fastmem_pd_en(&self) -> bool
pub fn rtc_fastmem_pd_en(&self) -> bool
power down RTC fast memory
sourcepub fn rtc_slowmem_pd_en(&self) -> bool
pub fn rtc_slowmem_pd_en(&self) -> bool
power down RTC slow memory
sourcepub fn rtc_peri_pd_en(&self) -> bool
pub fn rtc_peri_pd_en(&self) -> bool
power down RTC peripherals
sourcepub fn wifi_pd_en(&self) -> bool
pub fn wifi_pd_en(&self) -> bool
power down WiFi
sourcepub fn int_8m_pd_en(&self) -> bool
pub fn int_8m_pd_en(&self) -> bool
Power down Internal 8M oscillator
sourcepub fn rom_mem_pd_en(&self) -> bool
pub fn rom_mem_pd_en(&self) -> bool
power down main RAM and ROM
sourcepub fn wdt_flashboot_mod_en(&self) -> bool
pub fn wdt_flashboot_mod_en(&self) -> bool
enable WDT flashboot mode
sourcepub fn dig_dbias_wak(&self) -> u8
pub fn dig_dbias_wak(&self) -> u8
bias for digital domain, in active mode
sourcepub fn dig_dbias_slp(&self) -> u8
pub fn dig_dbias_slp(&self) -> u8
bias for digital domain, in sleep mode
sourcepub fn rtc_dbias_wak(&self) -> u8
pub fn rtc_dbias_wak(&self) -> u8
bias for RTC domain, in active mode
sourcepub fn rtc_dbias_slp(&self) -> u8
pub fn rtc_dbias_slp(&self) -> u8
bias for RTC domain, in sleep mode
sourcepub fn lslp_meminf_pd(&self) -> bool
pub fn lslp_meminf_pd(&self) -> bool
remove all peripheral force power up flags
sourcepub fn vddsdio_pd_en(&self) -> bool
pub fn vddsdio_pd_en(&self) -> bool
power down VDDSDIO regulator
sourcepub fn deep_slp_reject(&self) -> bool
pub fn deep_slp_reject(&self) -> bool
enable deep sleep reject
sourcepub fn light_slp_reject(&self) -> bool
pub fn light_slp_reject(&self) -> bool
enable light sleep reject
sourcepub fn set_lslp_mem_inf_fpu(&mut self, value: bool)
pub fn set_lslp_mem_inf_fpu(&mut self, value: bool)
force normal voltage in sleep mode (digital domain memory)
sourcepub fn set_rtc_mem_inf_fpu(&mut self, value: bool)
pub fn set_rtc_mem_inf_fpu(&mut self, value: bool)
force normal voltage in sleep mode (RTC memory)
sourcepub fn set_rtc_mem_inf_follow_cpu(&mut self, value: bool)
pub fn set_rtc_mem_inf_follow_cpu(&mut self, value: bool)
keep low voltage in sleep mode (even if ULP/touch is used)
sourcepub fn set_rtc_fastmem_pd_en(&mut self, value: bool)
pub fn set_rtc_fastmem_pd_en(&mut self, value: bool)
power down RTC fast memory
sourcepub fn set_rtc_slowmem_pd_en(&mut self, value: bool)
pub fn set_rtc_slowmem_pd_en(&mut self, value: bool)
power down RTC slow memory
sourcepub fn set_rtc_peri_pd_en(&mut self, value: bool)
pub fn set_rtc_peri_pd_en(&mut self, value: bool)
power down RTC peripherals
sourcepub fn set_wifi_pd_en(&mut self, value: bool)
pub fn set_wifi_pd_en(&mut self, value: bool)
power down WiFi
sourcepub fn set_int_8m_pd_en(&mut self, value: bool)
pub fn set_int_8m_pd_en(&mut self, value: bool)
Power down Internal 8M oscillator
sourcepub fn set_rom_mem_pd_en(&mut self, value: bool)
pub fn set_rom_mem_pd_en(&mut self, value: bool)
power down main RAM and ROM
sourcepub fn set_deep_slp(&mut self, value: bool)
pub fn set_deep_slp(&mut self, value: bool)
power down digital domain
sourcepub fn set_wdt_flashboot_mod_en(&mut self, value: bool)
pub fn set_wdt_flashboot_mod_en(&mut self, value: bool)
enable WDT flashboot mode
sourcepub fn set_dig_dbias_wak(&mut self, value: u8)
pub fn set_dig_dbias_wak(&mut self, value: u8)
bias for digital domain, in active mode
sourcepub fn set_dig_dbias_slp(&mut self, value: u8)
pub fn set_dig_dbias_slp(&mut self, value: u8)
bias for digital domain, in sleep mode
sourcepub fn set_rtc_dbias_wak(&mut self, value: u8)
pub fn set_rtc_dbias_wak(&mut self, value: u8)
bias for RTC domain, in active mode
sourcepub fn set_rtc_dbias_slp(&mut self, value: u8)
pub fn set_rtc_dbias_slp(&mut self, value: u8)
bias for RTC domain, in sleep mode
sourcepub fn set_lslp_meminf_pd(&mut self, value: bool)
pub fn set_lslp_meminf_pd(&mut self, value: bool)
remove all peripheral force power up flags
sourcepub fn set_vddsdio_pd_en(&mut self, value: bool)
pub fn set_vddsdio_pd_en(&mut self, value: bool)
power down VDDSDIO regulator
sourcepub fn set_xtal_fpu(&mut self, value: bool)
pub fn set_xtal_fpu(&mut self, value: bool)
keep main XTAL powered up in sleep
sourcepub fn set_deep_slp_reject(&mut self, value: bool)
pub fn set_deep_slp_reject(&mut self, value: bool)
enable deep sleep reject
sourcepub fn set_light_slp_reject(&mut self, value: bool)
pub fn set_light_slp_reject(&mut self, value: bool)
enable light sleep reject
source§impl RtcSleepConfig
impl RtcSleepConfig
pub fn deep() -> RtcSleepConfig
Trait Implementations§
source§impl<T> BitRange<T> for RtcSleepConfig
impl<T> BitRange<T> for RtcSleepConfig
source§impl<T> BitRangeMut<T> for RtcSleepConfigwhere
u32: BitRangeMut<T>,
impl<T> BitRangeMut<T> for RtcSleepConfigwhere
u32: BitRangeMut<T>,
source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
source§impl Clone for RtcSleepConfig
impl Clone for RtcSleepConfig
source§fn clone(&self) -> RtcSleepConfig
fn clone(&self) -> RtcSleepConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more