Struct rp2040_pac2::watchdog::regs::Ctrl [−][src]
Watchdog control The rst_wdsel register determines which subsystems are reset when the watchdog is triggered. The watchdog can be triggered in software.
Implementations
impl Ctrl
[src]
pub const fn trigger(&self) -> bool
[src]
Trigger a watchdog reset
pub fn set_trigger(&mut self, val: bool)
[src]
Trigger a watchdog reset
pub const fn enable(&self) -> bool
[src]
When not enabled the watchdog timer is paused
pub fn set_enable(&mut self, val: bool)
[src]
When not enabled the watchdog timer is paused
pub const fn pause_dbg1(&self) -> bool
[src]
Pause the watchdog timer when processor 1 is in debug mode
pub fn set_pause_dbg1(&mut self, val: bool)
[src]
Pause the watchdog timer when processor 1 is in debug mode
pub const fn pause_dbg0(&self) -> bool
[src]
Pause the watchdog timer when processor 0 is in debug mode
pub fn set_pause_dbg0(&mut self, val: bool)
[src]
Pause the watchdog timer when processor 0 is in debug mode
pub const fn pause_jtag(&self) -> bool
[src]
Pause the watchdog timer when JTAG is accessing the bus fabric
pub fn set_pause_jtag(&mut self, val: bool)
[src]
Pause the watchdog timer when JTAG is accessing the bus fabric
pub const fn time(&self) -> u32
[src]
Indicates the number of ticks / 2 (see errata RP2040-E1) before a watchdog reset will be triggered
pub fn set_time(&mut self, val: u32)
[src]
Indicates the number of ticks / 2 (see errata RP2040-E1) before a watchdog reset will be triggered
Trait Implementations
impl Clone for Ctrl
[src]
fn clone(&self) -> Ctrl
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Ctrl
[src]
impl Default for Ctrl
[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>,