Struct Power
#[repr(transparent)]pub struct Power(pub u32);
Expand description
Description cluster: RAM[n] power control register
Tuple Fields§
§0: u32
Implementations§
§impl Power
impl Power
pub const fn spower(&self, n: usize) -> bool
pub const fn spower(&self, n: usize) -> bool
Keep RAM section S0 of RAM[n] on or off in System ON mode
pub fn set_spower(&mut self, n: usize, val: bool)
pub fn set_spower(&mut self, n: usize, val: bool)
Keep RAM section S0 of RAM[n] on or off in System ON mode
pub const fn sretention(&self, n: usize) -> bool
pub const fn sretention(&self, n: usize) -> bool
Keep retention on RAM section S0 of RAM[n] when RAM section is switched off
pub fn set_sretention(&mut self, n: usize, val: bool)
pub fn set_sretention(&mut self, n: usize, val: bool)
Keep retention on RAM section S0 of RAM[n] when RAM section is switched off
Trait Implementations§
impl Copy for Power
impl Eq for Power
impl StructuralPartialEq for Power
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnwindSafe for Power
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more