#[non_exhaustive]pub struct Config {
pub timeout_ticks: u32,
pub action_during_sleep: SleepConfig,
pub action_during_debug_halt: HaltConfig,
}Expand description
WDT 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.timeout_ticks: u32Number of 32768 Hz ticks in each watchdog period.
Note: there is a minimum of 15 ticks (458 microseconds). If a lower number is provided, 15 ticks will be used as the configured value.
action_during_sleep: SleepConfigShould the watchdog continue to count during sleep modes?
action_during_debug_halt: HaltConfigShould the watchdog continue to count when the CPU is halted for debug?
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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