Struct Resetreas
#[repr(transparent)]pub struct Resetreas(pub u32);
Expand description
Reset reason
Tuple Fields§
§0: u32
Implementations§
§impl Resetreas
impl Resetreas
pub fn set_resetpin(&mut self, val: bool)
pub fn set_resetpin(&mut self, val: bool)
Reset from pin reset detected
pub fn set_ctrlap(&mut self, val: bool)
pub fn set_ctrlap(&mut self, val: bool)
Reset from application CTRL-AP detected
pub fn set_lockup(&mut self, val: bool)
pub fn set_lockup(&mut self, val: bool)
Reset from application CPU lockup detected
pub const fn off(&self) -> bool
pub const fn off(&self) -> bool
Reset due to wakeup from System OFF mode when wakeup is triggered by DETECT signal from GPIO
pub fn set_off(&mut self, val: bool)
pub fn set_off(&mut self, val: bool)
Reset due to wakeup from System OFF mode when wakeup is triggered by DETECT signal from GPIO
pub const fn lpcomp(&self) -> bool
pub const fn lpcomp(&self) -> bool
Reset due to wakeup from System OFF mode when wakeup is triggered by ANADETECT signal from LPCOMP
pub fn set_lpcomp(&mut self, val: bool)
pub fn set_lpcomp(&mut self, val: bool)
Reset due to wakeup from System OFF mode when wakeup is triggered by ANADETECT signal from LPCOMP
pub const fn dif(&self) -> bool
pub const fn dif(&self) -> bool
Reset due to wakeup from System OFF mode when wakeup is triggered by entering the Debug Interface mode
pub fn set_dif(&mut self, val: bool)
pub fn set_dif(&mut self, val: bool)
Reset due to wakeup from System OFF mode when wakeup is triggered by entering the Debug Interface mode
pub const fn nfc(&self) -> bool
pub const fn nfc(&self) -> bool
Reset after wakeup from System OFF mode due to NFC field being detected
pub fn set_nfc(&mut self, val: bool)
pub fn set_nfc(&mut self, val: bool)
Reset after wakeup from System OFF mode due to NFC field being detected
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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
)