pub struct PowerDownFlags(pub u32);Expand description
Power domains to be powered down during sleep
Tuple Fields§
§0: u32Implementations§
Source§impl PowerDownFlags
 
impl PowerDownFlags
Sourcepub fn pd_vddsdio(&self) -> bool
 
pub fn pd_vddsdio(&self) -> bool
Controls the power-down status of the VDD_SDIO power domain.
Sourcepub fn pd_hp_periph(&self) -> bool
 
pub fn pd_hp_periph(&self) -> bool
Controls the power-down status of the high-performance peripheral power domain.
Sourcepub fn pd_hp_aon(&self) -> bool
 
pub fn pd_hp_aon(&self) -> bool
Controls the power-down status of the high-performance always-on domain.
Sourcepub fn pd_rc_fast(&self) -> bool
 
pub fn pd_rc_fast(&self) -> bool
Controls the power-down status of the fast RC oscillator.
Sourcepub fn pd_xtal32k(&self) -> bool
 
pub fn pd_xtal32k(&self) -> bool
Controls the power-down status of the 32kHz crystal oscillator.
Sourcepub fn pd_lp_periph(&self) -> bool
 
pub fn pd_lp_periph(&self) -> bool
Controls the power-down status of the low-power peripheral domain.
Sourcepub fn set_pd_top(&mut self, value: bool)
 
pub fn set_pd_top(&mut self, value: bool)
Controls the power-down status of the top power domain.
Sourcepub fn set_pd_vddsdio(&mut self, value: bool)
 
pub fn set_pd_vddsdio(&mut self, value: bool)
Controls the power-down status of the VDD_SDIO power domain.
Sourcepub fn set_pd_modem(&mut self, value: bool)
 
pub fn set_pd_modem(&mut self, value: bool)
Controls the power-down status of the modem power domain.
Sourcepub fn set_pd_hp_periph(&mut self, value: bool)
 
pub fn set_pd_hp_periph(&mut self, value: bool)
Controls the power-down status of the high-performance peripheral power domain.
Sourcepub fn set_pd_cpu(&mut self, value: bool)
 
pub fn set_pd_cpu(&mut self, value: bool)
Controls the power-down status of the CPU power domain.
Sourcepub fn set_pd_hp_aon(&mut self, value: bool)
 
pub fn set_pd_hp_aon(&mut self, value: bool)
Controls the power-down status of the high-performance always-on domain.
Sourcepub fn set_pd_mem_g0(&mut self, value: bool)
 
pub fn set_pd_mem_g0(&mut self, value: bool)
Controls the power-down status of memory group 0.
Sourcepub fn set_pd_mem_g1(&mut self, value: bool)
 
pub fn set_pd_mem_g1(&mut self, value: bool)
Controls the power-down status of memory group 1.
Sourcepub fn set_pd_mem_g2(&mut self, value: bool)
 
pub fn set_pd_mem_g2(&mut self, value: bool)
Controls the power-down status of memory group 2.
Sourcepub fn set_pd_mem_g3(&mut self, value: bool)
 
pub fn set_pd_mem_g3(&mut self, value: bool)
Controls the power-down status of memory group 3.
Sourcepub fn set_pd_xtal(&mut self, value: bool)
 
pub fn set_pd_xtal(&mut self, value: bool)
Controls the power-down status of the crystal oscillator.
Sourcepub fn set_pd_rc_fast(&mut self, value: bool)
 
pub fn set_pd_rc_fast(&mut self, value: bool)
Controls the power-down status of the fast RC oscillator.
Sourcepub fn set_pd_xtal32k(&mut self, value: bool)
 
pub fn set_pd_xtal32k(&mut self, value: bool)
Controls the power-down status of the 32kHz crystal oscillator.
Sourcepub fn set_pd_rc32k(&mut self, value: bool)
 
pub fn set_pd_rc32k(&mut self, value: bool)
Controls the power-down status of the 32kHz RC oscillator.
Sourcepub fn set_pd_lp_periph(&mut self, value: bool)
 
pub fn set_pd_lp_periph(&mut self, value: bool)
Controls the power-down status of the low-power peripheral domain.
Source§impl PowerDownFlags
 
impl PowerDownFlags
Sourcepub fn pd_mem(self) -> bool
 
pub fn pd_mem(self) -> bool
Checks whether all memory groups (G0, G1, G2, G3) are powered down.
Sourcepub fn set_pd_mem(&mut self, value: bool)
 
pub fn set_pd_mem(&mut self, value: bool)
Sets the power-down status for all memory groups (G0, G1, G2, G3) at once.
Trait Implementations§
Source§impl<T> BitRange<T> for PowerDownFlagswhere
    u32: BitRange<T>,
Available on crate feature unstable only. 
impl<T> BitRange<T> for PowerDownFlagswhere
    u32: BitRange<T>,
unstable only.Source§impl<T> BitRangeMut<T> for PowerDownFlagswhere
    u32: BitRangeMut<T>,
Available on crate feature unstable only. 
impl<T> BitRangeMut<T> for PowerDownFlagswhere
    u32: BitRangeMut<T>,
unstable only.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 PowerDownFlags
Available on crate feature unstable only. 
impl Clone for PowerDownFlags
unstable only.Source§fn clone(&self) -> PowerDownFlags
 
fn clone(&self) -> PowerDownFlags
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PowerDownFlags
unstable only.Auto Trait Implementations§
impl Freeze for PowerDownFlags
impl RefUnwindSafe for PowerDownFlags
impl Send for PowerDownFlags
impl Sync for PowerDownFlags
impl Unpin for PowerDownFlags
impl UnwindSafe for PowerDownFlags
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
Source§impl<T> BitMut for Twhere
    T: BitRangeMut<u8>,
 
impl<T> BitMut for Twhere
    T: BitRangeMut<u8>,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
 
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)