#[repr(transparent)]pub struct Power(pub u32);
Expand description
Description cluster: RAMn power control register
Tuple Fields§
§0: u32
Implementations§
Source§impl Power
impl Power
Sourcepub 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
Sourcepub 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
Sourcepub 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
Sourcepub 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)