# _embedded_hal_watchdog_WatchdogEnable in k210_hal::prelude - Rust
Enables A watchdog timer to reset the processor if software is frozen or stalled.
Keywords: rust, rustlang, rust-lang, _embedded_hal_watchdog_WatchdogEnable

# Trait k210_hal::prelude::_embedded_hal_watchdog_WatchdogEnable

source · [−]

    pub trait _embedded_hal_watchdog_WatchdogEnable {
        type Error;
        type Time;
        fn try_start<T>(&mut self, period: T) -> Result<(), Self::Error>
        where
            T: Into<Self::Time>;
    }

Expand description

Enables A watchdog timer to reset the processor if software is frozen or stalled.

## Associated Types

source

#### type Error

An enumeration of `WatchdogEnable` errors.

For infallible implementations, will be `Infallible`

source

#### type Time

Unit of time used by the watchdog

## Required methods

source

#### fn try_start<T>(&mut self, period: T) -> Result<(), Self::Error> where
T: Into<Self::Time>,

Starts the watchdog with a given period, typically once this is done the watchdog needs to be kicked periodically or the processor is reset.

## Implementors