Struct stm32_metapac::pwr::regs::Wucr2
#[repr(transparent)]pub struct Wucr2(pub u32);
Expand description
wakeup control register 2
Tuple Fields§
§0: u32
Implementations§
§impl Wucr2
impl Wucr2
pub const fn wupp(&self, n: usize) -> Wupp
pub const fn wupp(&self, n: usize) -> Wupp
Wakeup pin WKUP1 polarity. This bit must be configured when WUPEN1 = 0. 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_wupp(&mut self, n: usize, val: Wupp)
pub fn set_wupp(&mut self, n: usize, val: Wupp)
Wakeup pin WKUP1 polarity. This bit must be configured when WUPEN1 = 0. 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 Wucr2
impl Eq for Wucr2
impl StructuralPartialEq for Wucr2
Auto Trait Implementations§
impl Freeze for Wucr2
impl RefUnwindSafe for Wucr2
impl Send for Wucr2
impl Sync for Wucr2
impl Unpin for Wucr2
impl UnwindSafe for Wucr2
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
)