pub struct Watchdog<'d> { /* private fields */ }Expand description
Watchdog peripheral
Implementations§
Source§impl<'d> Watchdog<'d>
impl<'d> Watchdog<'d>
Sourcepub fn new(
_peri: Peri<'d, WWDT0>,
_irq: impl Binding<WWDT0, InterruptHandler> + 'd,
config: Config,
) -> Result<Self, Error>
pub fn new( _peri: Peri<'d, WWDT0>, _irq: impl Binding<WWDT0, InterruptHandler> + '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 WWDT0 peripheral instance_irq- Interrupt binding for WWDT0- `config - WWDT0 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