pub struct Wwdgt { /* private fields */ }Expand description
The watchdog before it is started, the only state it can be configured in.
Implementations§
Source§impl Wwdgt
impl Wwdgt
Sourcepub fn start(self, psc: WwdgtPsc, cnt: u8, win: u8) -> WwdgtRunning
pub fn start(self, psc: WwdgtPsc, cnt: u8, win: u8) -> WwdgtRunning
Sets the period and the window and starts counting down; there is no way back.
Both cnt and win are counted in ticks of PCLK1 / 4096 / psc, from 0
to 63 — the register’s own top bit is added here, so a value that would
reset the chip on the spot cannot be passed in. The period lasts
cnt + 1 ticks, and the window opens cnt - win ticks into it: feeding
before that resets the chip just as failing to feed does.
§Panics
If either value needs more than 6 bits, or if win exceeds cnt.
Auto Trait Implementations§
impl !Sync for Wwdgt
impl Freeze for Wwdgt
impl RefUnwindSafe for Wwdgt
impl Send for Wwdgt
impl Unpin for Wwdgt
impl UnsafeUnpin for Wwdgt
impl UnwindSafe for Wwdgt
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