Skip to main content

Wwdgt

Struct Wwdgt 

Source
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

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.