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_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 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_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_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.
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>,
Available on crate feature
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>,
Available on crate feature
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)
Set a range of bits.
Source§impl Clone for PowerDownFlags
Available on crate feature unstable only.
impl Clone for PowerDownFlags
Available on crate feature
unstable only.Source§fn clone(&self) -> PowerDownFlags
fn clone(&self) -> PowerDownFlags
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PowerDownFlags
Available on crate feature
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)