#[repr(transparent)]pub struct Ctrl(pub u32);
Expand description
Watchdog control The rst_wdsel register determines which subsystems are reset when the watchdog is triggered. The watchdog can be triggered in software.
Tuple Fields§
§0: u32
Implementations§
source§impl Ctrl
impl Ctrl
sourcepub const fn time(&self) -> u32
pub const fn time(&self) -> u32
Indicates the time in usec before a watchdog reset will be triggered
sourcepub fn set_time(&mut self, val: u32)
pub fn set_time(&mut self, val: u32)
Indicates the time in usec before a watchdog reset will be triggered
sourcepub const fn pause_jtag(&self) -> bool
pub const fn pause_jtag(&self) -> bool
Pause the watchdog timer when JTAG is accessing the bus fabric
sourcepub fn set_pause_jtag(&mut self, val: bool)
pub fn set_pause_jtag(&mut self, val: bool)
Pause the watchdog timer when JTAG is accessing the bus fabric
sourcepub const fn pause_dbg0(&self) -> bool
pub const fn pause_dbg0(&self) -> bool
Pause the watchdog timer when processor 0 is in debug mode
sourcepub fn set_pause_dbg0(&mut self, val: bool)
pub fn set_pause_dbg0(&mut self, val: bool)
Pause the watchdog timer when processor 0 is in debug mode
sourcepub const fn pause_dbg1(&self) -> bool
pub const fn pause_dbg1(&self) -> bool
Pause the watchdog timer when processor 1 is in debug mode
sourcepub fn set_pause_dbg1(&mut self, val: bool)
pub fn set_pause_dbg1(&mut self, val: bool)
Pause the watchdog timer when processor 1 is in debug mode
sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
When not enabled the watchdog timer is paused
sourcepub fn set_trigger(&mut self, val: bool)
pub fn set_trigger(&mut self, val: bool)
Trigger a watchdog reset
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)