#[repr(transparent)]pub struct ChipReset(pub u32);
Expand description
Chip reset control and status
Tuple Fields§
§0: u32
Implementations§
Source§impl ChipReset
impl ChipReset
Sourcepub const fn had_por(&self) -> bool
pub const fn had_por(&self) -> bool
Last reset was from the power-on reset or brown-out detection blocks
Sourcepub fn set_had_por(&mut self, val: bool)
pub fn set_had_por(&mut self, val: bool)
Last reset was from the power-on reset or brown-out detection blocks
Sourcepub fn set_had_run(&mut self, val: bool)
pub fn set_had_run(&mut self, val: bool)
Last reset was from the RUN pin
Sourcepub const fn had_psm_restart(&self) -> bool
pub const fn had_psm_restart(&self) -> bool
Last reset was from the debug port
Sourcepub fn set_had_psm_restart(&mut self, val: bool)
pub fn set_had_psm_restart(&mut self, val: bool)
Last reset was from the debug port
Sourcepub const fn psm_restart_flag(&self) -> bool
pub const fn psm_restart_flag(&self) -> bool
This is set by psm_restart from the debugger. Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up. In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.
Sourcepub fn set_psm_restart_flag(&mut self, val: bool)
pub fn set_psm_restart_flag(&mut self, val: bool)
This is set by psm_restart from the debugger. Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up. In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.