Struct rp_pac::vreg_and_chip_reset::regs::ChipReset
source · #[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.
Trait Implementations§
impl Copy for ChipReset
impl Eq for ChipReset
impl StructuralPartialEq for ChipReset
Auto Trait Implementations§
impl Freeze for ChipReset
impl RefUnwindSafe for ChipReset
impl Send for ChipReset
impl Sync for ChipReset
impl Unpin for ChipReset
impl UnwindSafe for ChipReset
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> 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
)