Struct stm32_metapac::pwr::regs::Wucr1
#[repr(transparent)]pub struct Wucr1(pub u32);
Expand description
wakeup control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Wucr1
impl Wucr1
pub const fn wupen(&self, n: usize) -> bool
pub const fn wupen(&self, n: usize) -> bool
Wakeup and interrupt pin WKUP1 enable Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.
pub fn set_wupen(&mut self, n: usize, val: bool)
pub fn set_wupen(&mut self, n: usize, val: bool)
Wakeup and interrupt pin WKUP1 enable Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.
Trait Implementations§
impl Copy for Wucr1
impl Eq for Wucr1
impl StructuralPartialEq for Wucr1
Auto Trait Implementations§
impl Freeze for Wucr1
impl RefUnwindSafe for Wucr1
impl Send for Wucr1
impl Sync for Wucr1
impl Unpin for Wucr1
impl UnwindSafe for Wucr1
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
)