Struct stm32_metapac::pwr::regs::Sr1
#[repr(transparent)]pub struct Sr1(pub u32);
Expand description
PWR status register 1
Tuple Fields§
§0: u32
Implementations§
§impl Sr1
impl Sr1
pub const fn sbf(&self) -> bool
pub const fn sbf(&self) -> bool
Standby/Shutdown flag This bit is set by hardware when the device enters Standby or Shutdown 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/Shutdown flag This bit is set by hardware when the device enters Standby or Shutdown 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.
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
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
)