#[repr(transparent)]pub struct Resetreas(pub u32);
Expand description
Reset reason
Tuple Fields§
§0: u32
Implementations§
Source§impl Resetreas
impl Resetreas
Sourcepub fn set_resetpin(&mut self, val: bool)
pub fn set_resetpin(&mut self, val: bool)
Reset from pin-reset detected
Sourcepub fn set_lockup(&mut self, val: bool)
pub fn set_lockup(&mut self, val: bool)
Reset from CPU lock-up detected
Sourcepub const fn off(&self) -> bool
pub const fn off(&self) -> bool
Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO
Sourcepub fn set_off(&mut self, val: bool)
pub fn set_off(&mut self, val: bool)
Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO
Sourcepub const fn lpcomp(&self) -> bool
pub const fn lpcomp(&self) -> bool
Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP
Sourcepub fn set_lpcomp(&mut self, val: bool)
pub fn set_lpcomp(&mut self, val: bool)
Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP
Sourcepub const fn dif(&self) -> bool
pub const fn dif(&self) -> bool
Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode
Sourcepub fn set_dif(&mut self, val: bool)
pub fn set_dif(&mut self, val: bool)
Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode
Sourcepub fn set_nfc(&mut self, val: bool)
pub fn set_nfc(&mut self, val: bool)
Reset due to wake up from System OFF mode by NFC field detect
Trait Implementations§
impl Copy for Resetreas
impl Eq for Resetreas
impl StructuralPartialEq for Resetreas
Auto Trait Implementations§
impl Freeze for Resetreas
impl RefUnwindSafe for Resetreas
impl Send for Resetreas
impl Sync for Resetreas
impl Unpin for Resetreas
impl UnwindSafe for Resetreas
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
)