#[non_exhaustive]pub struct WatchdogConfig {
pub swd: bool,
pub rwdt: WatchdogStatus,
pub timg0: WatchdogStatus,
pub timg1: WatchdogStatus,
}Expand description
Watchdog configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.swd: boolEnable the super watchdog timer, which has a trigger time of slightly less than one second.
rwdt: WatchdogStatusConfigures the reset watchdog timer.
timg0: WatchdogStatusConfigures the timg0 watchdog timer.
timg1: WatchdogStatusConfigures the timg1 watchdog timer.
By default, the bootloader does not enable this watchdog timer.
Trait Implementations§
Source§impl Default for WatchdogConfig
impl Default for WatchdogConfig
Source§fn default() -> WatchdogConfig
fn default() -> WatchdogConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WatchdogConfig
impl RefUnwindSafe for WatchdogConfig
impl Send for WatchdogConfig
impl Sync for WatchdogConfig
impl Unpin for WatchdogConfig
impl UnwindSafe for WatchdogConfig
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