pub struct Wwdt { /* private fields */ }Expand description
Windowed Watchdog Timer.
Implementations§
Source§impl Wwdt
impl Wwdt
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn mod_(self) -> Reg<Mod, RW>
pub const fn mod_(self) -> Reg<Mod, RW>
Mode. Changes take effect after a watchdog feed. Once set, WDEN, WDPROTECT, WDRESET and LOCK clear only on reset. Enable the watchdog oscillator for each power mode before setting LOCK. After writing 1 to LOCK and performing a watchdog feed, the watchdog oscillator cannot be disabled or powered down. WDTOF clears by writing 0; WDINT is W1C and cannot clear while WARNINT equals TV.
Sourcepub const fn feed(self) -> Reg<Feed, W>
pub const fn feed(self) -> Reg<Feed, W>
Feed Sequence. Write 0xAA then 0x55 without any intervening watchdog register access. An incorrect access during a feed causes a reset or interrupt when enabled. Feed only when TV is no greater than WINDOW; protect the sequence from interrupt-driven accesses.
Trait Implementations§
impl Copy for Wwdt
impl Eq for Wwdt
impl Send for Wwdt
impl StructuralPartialEq for Wwdt
impl Sync for Wwdt
Auto Trait Implementations§
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