pub struct PowerDownFlags(pub u32);
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

source

pub fn pd_vddsdio(&self) -> bool

source

pub fn pd_modem(&self) -> bool

source

pub fn pd_hp_periph(&self) -> bool

source

pub fn pd_cpu(&self) -> bool

source

pub fn pd_hp_aon(&self) -> bool

source

pub fn pd_mem_g0(&self) -> bool

source

pub fn pd_mem_g1(&self) -> bool

source

pub fn pd_mem_g2(&self) -> bool

source

pub fn pd_mem_g3(&self) -> bool

source

pub fn pd_xtal(&self) -> bool

source

pub fn pd_rc_fast(&self) -> bool

source

pub fn pd_xtal32k(&self) -> bool

source

pub fn pd_rc32k(&self) -> bool

source

pub fn pd_lp_periph(&self) -> bool

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source§

impl PowerDownFlags

source

pub fn pd_mem(self) -> bool

source

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

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 · source§

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

Performs copy-assignment from source. Read more
source§

impl Copy for PowerDownFlags

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

Get a single bit.
§

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

§

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

Set a single bit.
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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.
source§

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

Performs the conversion.