Struct rp2040_pac2::vreg_and_chip_reset::regs::ChipReset[][src]

#[repr(transparent)]pub struct ChipReset(pub u32);

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]

impl Copy for ChipReset[src]

impl Default for ChipReset[src]

Auto Trait Implementations

impl Send for ChipReset

impl Sync for ChipReset

impl Unpin for ChipReset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.