Struct stm32_metapac::pwr::regs::Sr1
#[repr(transparent)]pub struct Sr1(pub u32);
Expand description
Power status register 1
Tuple Fields§
§0: u32
Implementations§
§impl Sr1
impl Sr1
pub const fn wuf1(&self) -> bool
pub const fn wuf1(&self) -> bool
Wake-up flag 1 This bit is set when a wake-up event is detected on wake-up pin, WKUP1. It is cleared by writing 1 in the CWUF1 bit of the PWR_SCR register.
pub fn set_wuf1(&mut self, val: bool)
pub fn set_wuf1(&mut self, val: bool)
Wake-up flag 1 This bit is set when a wake-up event is detected on wake-up pin, WKUP1. It is cleared by writing 1 in the CWUF1 bit of the PWR_SCR register.
pub const fn wuf2(&self) -> bool
pub const fn wuf2(&self) -> bool
Wake-up flag 2 This bit is set when a wake-up event is detected on wake-up pin, WKUP2. It is cleared by writing 1 in the CWUF2 bit of the PWR_SCR register.
pub fn set_wuf2(&mut self, val: bool)
pub fn set_wuf2(&mut self, val: bool)
Wake-up flag 2 This bit is set when a wake-up event is detected on wake-up pin, WKUP2. It is cleared by writing 1 in the CWUF2 bit of the PWR_SCR register.
pub const fn wuf3(&self) -> bool
pub const fn wuf3(&self) -> bool
Wake-up flag 3 This bit is set when a wake-up event is detected on wake-up pin, WKUP3. It is cleared by writing 1 in the CWUF3 bit of the PWR_SCR register.
pub fn set_wuf3(&mut self, val: bool)
pub fn set_wuf3(&mut self, val: bool)
Wake-up flag 3 This bit is set when a wake-up event is detected on wake-up pin, WKUP3. It is cleared by writing 1 in the CWUF3 bit of the PWR_SCR register.
pub const fn wuf4(&self) -> bool
pub const fn wuf4(&self) -> bool
Wake-up flag 4 This bit is set when a wake-up event is detected on wake-up pin,WKUP4. It is cleared by writing 1 in the CWUF4 bit of the PWR_SCR register.
pub fn set_wuf4(&mut self, val: bool)
pub fn set_wuf4(&mut self, val: bool)
Wake-up flag 4 This bit is set when a wake-up event is detected on wake-up pin,WKUP4. It is cleared by writing 1 in the CWUF4 bit of the PWR_SCR register.
pub const fn wuf5(&self) -> bool
pub const fn wuf5(&self) -> bool
Wake-up flag 5 This bit is set when a wake-up event is detected on wake-up pin, WKUP5. It is cleared by writing 1 in the CWUF5 bit of the PWR_SCR register.
pub fn set_wuf5(&mut self, val: bool)
pub fn set_wuf5(&mut self, val: bool)
Wake-up flag 5 This bit is set when a wake-up event is detected on wake-up pin, WKUP5. It is cleared by writing 1 in the CWUF5 bit of the PWR_SCR register.
pub const fn wuf7(&self) -> bool
pub const fn wuf7(&self) -> bool
Wake-up flag 7 This bit is set when a wake-up event is detected on wake-up pin, WKUP7. It is cleared by writing 1 in the CWUF7 bit of the PWR_SCR register.
pub fn set_wuf7(&mut self, val: bool)
pub fn set_wuf7(&mut self, val: bool)
Wake-up flag 7 This bit is set when a wake-up event is detected on wake-up pin, WKUP7. It is cleared by writing 1 in the CWUF7 bit of the PWR_SCR register.
pub const fn sbf(&self) -> bool
pub const fn sbf(&self) -> bool
Standby flag This bit is set by hardware when the device enters the Standby mode and is cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset.
pub fn set_sbf(&mut self, val: bool)
pub fn set_sbf(&mut self, val: bool)
Standby flag This bit is set by hardware when the device enters the Standby mode and is cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset.
pub const fn stopf(&self) -> Stopf
pub const fn stopf(&self) -> Stopf
Stop Flags These bits are set by hardware when the device enters any stop mode and are cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset.
pub fn set_stopf(&mut self, val: Stopf)
pub fn set_stopf(&mut self, val: Stopf)
Stop Flags These bits are set by hardware when the device enters any stop mode and are cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset.
Trait Implementations§
impl Copy for Sr1
impl Eq for Sr1
impl StructuralPartialEq for Sr1
Auto Trait Implementations§
impl Freeze for Sr1
impl RefUnwindSafe for Sr1
impl Send for Sr1
impl Sync for Sr1
impl Unpin for Sr1
impl UnwindSafe for Sr1
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
)