Struct rp2040_pac2::vreg_and_chip_reset::regs::ChipReset [−][src]
Chip reset control and status
Implementations
impl ChipReset
[src]
pub const fn psm_restart_flag(&self) -> bool
[src]
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.
pub fn set_psm_restart_flag(&mut self, val: bool)
[src]
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.
pub const fn had_psm_restart(&self) -> bool
[src]
Last reset was from the debug port
pub fn set_had_psm_restart(&mut self, val: bool)
[src]
Last reset was from the debug port
pub const fn had_run(&self) -> bool
[src]
Last reset was from the RUN pin
pub fn set_had_run(&mut self, val: bool)
[src]
Last reset was from the RUN pin
pub const fn had_por(&self) -> bool
[src]
Last reset was from the power-on reset or brown-out detection blocks
pub fn set_had_por(&mut self, val: bool)
[src]
Last reset was from the power-on reset or brown-out detection blocks
Trait Implementations
impl Clone for ChipReset
[src]
fn clone(&self) -> ChipReset
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ChipReset
[src]
impl Default for ChipReset
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,