pub struct Watchdog<'d> { /* private fields */ }Expand description
Watchdog peripheral
Implementations§
Source§impl<'d> Watchdog<'d>
impl<'d> Watchdog<'d>
Sourcepub fn new<T: Instance>(
_peri: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
config: Config,
) -> Result<Self, Error>
pub fn new<T: Instance>( _peri: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, config: Config, ) -> Result<Self, Error>
Create a new WWDT instance.
Configure the WWDT, enables the interrupt, set the timeout and or warning value.
§Arguments
_peri- The WWDT peripheral instance_irq- Interrupt binding for WWDT0- `config - WWDT config with timeout and optional warning value
Auto Trait Implementations§
impl<'d> Freeze for Watchdog<'d>
impl<'d> RefUnwindSafe for Watchdog<'d>
impl<'d> Send for Watchdog<'d>
impl<'d> Sync for Watchdog<'d>
impl<'d> Unpin for Watchdog<'d>
impl<'d> !UnwindSafe for Watchdog<'d>
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