Struct rp2040_pac2::watchdog::regs::Ctrl[][src]

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

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]

impl Copy for Ctrl[src]

impl Default for Ctrl[src]

Auto Trait Implementations

impl Send for Ctrl

impl Sync for Ctrl

impl Unpin for Ctrl

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.