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