#[repr(transparent)]pub struct Resetreas(pub u32);Expand description
Reset reason
Tuple Fields§
§0: u32Implementations§
Source§impl Resetreas
impl Resetreas
Sourcepub const fn set_resetpin(&mut self, val: bool)
pub const fn set_resetpin(&mut self, val: bool)
Reset from pin reset detected
Sourcepub const fn set_ctrlap(&mut self, val: bool)
pub const fn set_ctrlap(&mut self, val: bool)
Reset from application CTRL-AP detected
Sourcepub const fn set_lockup(&mut self, val: bool)
pub const fn set_lockup(&mut self, val: bool)
Reset from application 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 const fn set_off(&mut self, val: bool)
pub const 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 const fn set_lpcomp(&mut self, val: bool)
pub const 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 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
Sourcepub const fn set_dif(&mut self, val: bool)
pub const 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
Sourcepub const fn set_llockup(&mut self, val: bool)
pub const fn set_llockup(&mut self, val: bool)
Reset from network CPU lockup detected
Sourcepub const fn set_mforceoff(&mut self, val: bool)
pub const fn set_mforceoff(&mut self, val: bool)
Force-OFF reset from application core detected
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 const fn set_nfc(&mut self, val: bool)
pub const fn set_nfc(&mut self, val: bool)
Reset after wakeup from System OFF mode due to NFC field being detected
Sourcepub const fn vbus(&self) -> bool
pub const fn vbus(&self) -> bool
Reset after wakeup from System OFF mode due to VBUS rising into valid range
Sourcepub const fn set_vbus(&mut self, val: bool)
pub const fn set_vbus(&mut self, val: bool)
Reset after wakeup from System OFF mode due to VBUS rising into valid range
Sourcepub const fn set_lctrlap(&mut self, val: bool)
pub const fn set_lctrlap(&mut self, val: bool)
Reset from network CTRL-AP detected