Struct stm32_metapac::pwr::regs::Wkupepr
#[repr(transparent)]pub struct Wkupepr(pub u32);
Expand description
PWR wakeup enable and polarity register.
Tuple Fields§
§0: u32
Implementations§
§impl Wkupepr
impl Wkupepr
pub const fn wkupen(&self, n: usize) -> bool
pub const fn wkupen(&self, n: usize) -> bool
Enable Wakeup Pin WKUPn, (n = 4, 3, 2, 1) Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn bit) when WKUPn pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn selects falling edge.
pub fn set_wkupen(&mut self, n: usize, val: bool)
pub fn set_wkupen(&mut self, n: usize, val: bool)
Enable Wakeup Pin WKUPn, (n = 4, 3, 2, 1) Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn bit) when WKUPn pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn selects falling edge.
pub const fn wkupp(&self, n: usize) -> Wkupp
pub const fn wkupp(&self, n: usize) -> Wkupp
Wakeup pin polarity bit for WKUPn, (n = 4, 3, 2, 1) These bits define the polarity used for event detection on WKUPn external wakeup pin.
pub fn set_wkupp(&mut self, n: usize, val: Wkupp)
pub fn set_wkupp(&mut self, n: usize, val: Wkupp)
Wakeup pin polarity bit for WKUPn, (n = 4, 3, 2, 1) These bits define the polarity used for event detection on WKUPn external wakeup pin.
pub fn set_wkuppupd(&mut self, n: usize, val: Wkuppupd)
pub fn set_wkuppupd(&mut self, n: usize, val: Wkuppupd)
Wakeup pin pull configuration
Trait Implementations§
impl Copy for Wkupepr
impl Eq for Wkupepr
impl StructuralPartialEq for Wkupepr
Auto Trait Implementations§
impl Freeze for Wkupepr
impl RefUnwindSafe for Wkupepr
impl Send for Wkupepr
impl Sync for Wkupepr
impl Unpin for Wkupepr
impl UnwindSafe for Wkupepr
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
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)
clone_to_uninit
)