Struct PowerDownFlags

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

Power domains to be powered down during sleep

Tuple Fields§

§0: u32

Implementations§

Source§

impl PowerDownFlags

Source

pub fn pd_top(&self) -> bool

Controls the power-down status of the top power domain.

Source

pub fn pd_vddsdio(&self) -> bool

Controls the power-down status of the VDD_SDIO power domain.

Source

pub fn pd_modem(&self) -> bool

Controls the power-down status of the modem power domain.

Source

pub fn pd_hp_periph(&self) -> bool

Controls the power-down status of the high-performance peripheral power domain.

Source

pub fn pd_cpu(&self) -> bool

Controls the power-down status of the CPU power domain.

Source

pub fn pd_hp_aon(&self) -> bool

Controls the power-down status of the high-performance always-on domain.

Source

pub fn pd_mem_g0(&self) -> bool

Controls the power-down status of memory group 0.

Source

pub fn pd_mem_g1(&self) -> bool

Controls the power-down status of memory group 1.

Source

pub fn pd_mem_g2(&self) -> bool

Controls the power-down status of memory group 2.

Source

pub fn pd_mem_g3(&self) -> bool

Controls the power-down status of memory group 3.

Source

pub fn pd_xtal(&self) -> bool

Controls the power-down status of the crystal oscillator.

Source

pub fn pd_rc_fast(&self) -> bool

Controls the power-down status of the fast RC oscillator.

Source

pub fn pd_xtal32k(&self) -> bool

Controls the power-down status of the 32kHz crystal oscillator.

Source

pub fn pd_rc32k(&self) -> bool

Controls the power-down status of the 32kHz RC oscillator.

Source

pub fn pd_lp_periph(&self) -> bool

Controls the power-down status of the low-power peripheral domain.

Source

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

Controls the power-down status of the top power domain.

Source

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

Controls the power-down status of the VDD_SDIO power domain.

Source

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

Controls the power-down status of the modem power domain.

Source

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

Controls the power-down status of the high-performance peripheral power domain.

Source

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

Controls the power-down status of the CPU power domain.

Source

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

Controls the power-down status of the high-performance always-on domain.

Source

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

Controls the power-down status of memory group 0.

Source

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

Controls the power-down status of memory group 1.

Source

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

Controls the power-down status of memory group 2.

Source

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

Controls the power-down status of memory group 3.

Source

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

Controls the power-down status of the crystal oscillator.

Source

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

Controls the power-down status of the fast RC oscillator.

Source

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

Controls the power-down status of the 32kHz crystal oscillator.

Source

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

Controls the power-down status of the 32kHz RC oscillator.

Source

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

Controls the power-down status of the low-power peripheral domain.

Source§

impl PowerDownFlags

Source

pub fn pd_mem(self) -> bool

Checks whether all memory groups (G0, G1, G2, G3) are powered down.

Source

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 PowerDownFlags
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 PowerDownFlags
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 PowerDownFlags

Source§

fn clone(&self) -> PowerDownFlags

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 Copy for PowerDownFlags

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 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.

§

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.