#[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 const fn ctrlapsoft(&self) -> bool
pub const fn ctrlapsoft(&self) -> bool
Soft reset from CTRL-AP detected
Sourcepub fn set_ctrlapsoft(&mut self, val: bool)
pub fn set_ctrlapsoft(&mut self, val: bool)
Soft reset from CTRL-AP detected
Sourcepub const fn ctrlaphard(&self) -> bool
pub const fn ctrlaphard(&self) -> bool
Reset due to CTRL-AP hard reset
Sourcepub fn set_ctrlaphard(&mut self, val: bool)
pub fn set_ctrlaphard(&mut self, val: bool)
Reset due to CTRL-AP hard reset
Sourcepub fn set_ctrlappin(&mut self, val: bool)
pub fn set_ctrlappin(&mut self, val: bool)
Reset due to CTRL-AP pin reset
Sourcepub fn set_lockup(&mut self, val: bool)
pub fn set_lockup(&mut self, val: bool)
Reset from CPU lockup detected
Sourcepub 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
Sourcepub 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
Sourcepub 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
Sourcepub 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
Sourcepub const fn nfc(&self) -> bool
pub const fn nfc(&self) -> bool
Reset after wakeup from System OFF mode due to NFC field being detected
Sourcepub 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
Sourcepub fn set_sectamper(&mut self, val: bool)
pub fn set_sectamper(&mut self, val: bool)
Reset due to illegal tampering of the device