Struct rp2040_hal::watchdog::Watchdog
source · [−]pub struct Watchdog { /* private fields */ }
Expand description
Watchdog peripheral
Implementations
sourceimpl Watchdog
impl Watchdog
sourcepub fn enable_tick_generation(&mut self, cycles: u8)
pub fn enable_tick_generation(&mut self, cycles: u8)
Starts tick generation on clk_tick which is driven from clk_ref.
Arguments
cycles
- Total number of tick cycles before the next tick is generated.
sourcepub fn pause_on_debug(&mut self, pause: bool)
pub fn pause_on_debug(&mut self, pause: bool)
Defines whether or not the watchdog timer should be paused when processor(s) are in debug mode or when JTAG is accessing bus fabric
Arguments
pause
- If true, watchdog timer will be paused
Trait Implementations
sourceimpl WatchdogDisable for Watchdog
impl WatchdogDisable for Watchdog
sourceimpl WatchdogEnable for Watchdog
impl WatchdogEnable for Watchdog
Auto Trait Implementations
impl RefUnwindSafe for Watchdog
impl Send for Watchdog
impl !Sync for Watchdog
impl Unpin for Watchdog
impl UnwindSafe for Watchdog
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more