Struct stm32_metapac::pwr::regs::Wusr
#[repr(transparent)]pub struct Wusr(pub u32);
Expand description
wakeup status register
Tuple Fields§
§0: u32
Implementations§
§impl Wusr
impl Wusr
pub const fn wuf1(&self) -> bool
pub const fn wuf1(&self) -> bool
Wakeup flag 1 This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0.
pub fn set_wuf1(&mut self, val: bool)
pub fn set_wuf1(&mut self, val: bool)
Wakeup flag 1 This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0.
pub const fn wuf2(&self) -> bool
pub const fn wuf2(&self) -> bool
Wakeup flag 2 This bit is set when a wakeup event is detected on WKUP2 pin. This bit is cleared by writing 1 in the CWUF2 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN2=0.
pub fn set_wuf2(&mut self, val: bool)
pub fn set_wuf2(&mut self, val: bool)
Wakeup flag 2 This bit is set when a wakeup event is detected on WKUP2 pin. This bit is cleared by writing 1 in the CWUF2 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN2=0.
pub const fn wuf3(&self) -> bool
pub const fn wuf3(&self) -> bool
Wakeup flag 3 This bit is set when a wakeup event is detected on WKUP3 pin. This bit is cleared by writing 1 in the CWUF3 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN3=0.
pub fn set_wuf3(&mut self, val: bool)
pub fn set_wuf3(&mut self, val: bool)
Wakeup flag 3 This bit is set when a wakeup event is detected on WKUP3 pin. This bit is cleared by writing 1 in the CWUF3 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN3=0.
pub const fn wuf4(&self) -> bool
pub const fn wuf4(&self) -> bool
Wakeup flag 4 This bit is set when a wakeup event is detected on WKUP4 pin. This bit is cleared by writing 1 in the CWUF4 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN4=0.
pub fn set_wuf4(&mut self, val: bool)
pub fn set_wuf4(&mut self, val: bool)
Wakeup flag 4 This bit is set when a wakeup event is detected on WKUP4 pin. This bit is cleared by writing 1 in the CWUF4 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN4=0.
pub const fn wuf5(&self) -> bool
pub const fn wuf5(&self) -> bool
Wakeup flag 5 This bit is set when a wakeup event is detected on WKUP5 pin. This bit is cleared by writing 1 in the CWUF5 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN5=0.
pub fn set_wuf5(&mut self, val: bool)
pub fn set_wuf5(&mut self, val: bool)
Wakeup flag 5 This bit is set when a wakeup event is detected on WKUP5 pin. This bit is cleared by writing 1 in the CWUF5 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN5=0.
pub const fn wuf6(&self) -> bool
pub const fn wuf6(&self) -> bool
Wakeup flag 6 This bit is set when a wakeup event is detected on WKUP6 pin. This bit is cleared by writing 1 in the CWUF6 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN6=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
pub fn set_wuf6(&mut self, val: bool)
pub fn set_wuf6(&mut self, val: bool)
Wakeup flag 6 This bit is set when a wakeup event is detected on WKUP6 pin. This bit is cleared by writing 1 in the CWUF6 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN6=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
pub const fn wuf7(&self) -> bool
pub const fn wuf7(&self) -> bool
Wakeup flag 7 This bit is set when a wakeup event is detected on WKUP7 pin. This bit is cleared by writing 1 in the CWUF7 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN7=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
pub fn set_wuf7(&mut self, val: bool)
pub fn set_wuf7(&mut self, val: bool)
Wakeup flag 7 This bit is set when a wakeup event is detected on WKUP7 pin. This bit is cleared by writing 1 in the CWUF7 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN7=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
pub const fn wuf8(&self) -> bool
pub const fn wuf8(&self) -> bool
Wakeup flag 8 This bit is set when a wakeup event is detected on WKUP8 pin. This bit is cleared by writing 1 in the CWUF8 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN8=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
pub fn set_wuf8(&mut self, val: bool)
pub fn set_wuf8(&mut self, val: bool)
Wakeup flag 8 This bit is set when a wakeup event is detected on WKUP8 pin. This bit is cleared by writing 1 in the CWUF8 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN8=0. If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared.
Trait Implementations§
impl Copy for Wusr
impl Eq for Wusr
impl StructuralPartialEq for Wusr
Auto Trait Implementations§
impl Freeze for Wusr
impl RefUnwindSafe for Wusr
impl Send for Wusr
impl Sync for Wusr
impl Unpin for Wusr
impl UnwindSafe for Wusr
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
)