#[non_exhaustive]pub struct WatchdogConfig { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Watchdog configuration.
Implementations§
Source§impl WatchdogConfig
impl WatchdogConfig
Sourcepub fn swd(&self) -> bool
pub fn swd(&self) -> bool
Enable the super watchdog timer, which has a trigger time of slightly less than one second.
Sourcepub fn with_rwdt(self, rwdt: WatchdogStatus) -> Self
pub fn with_rwdt(self, rwdt: WatchdogStatus) -> Self
Assign the given value to the rwdt
field.
Sourcepub fn rwdt(&self) -> WatchdogStatus
pub fn rwdt(&self) -> WatchdogStatus
Configures the reset watchdog timer.
Sourcepub fn with_timg0(self, timg0: WatchdogStatus) -> Self
pub fn with_timg0(self, timg0: WatchdogStatus) -> Self
Assign the given value to the timg0
field.
Sourcepub fn timg0(&self) -> WatchdogStatus
pub fn timg0(&self) -> WatchdogStatus
Configures the timg0
watchdog timer.
Sourcepub fn with_timg1(self, timg1: WatchdogStatus) -> Self
pub fn with_timg1(self, timg1: WatchdogStatus) -> Self
Assign the given value to the timg1
field.
Sourcepub fn timg1(&self) -> WatchdogStatus
pub fn timg1(&self) -> WatchdogStatus
Configures the timg1
watchdog timer.
By default, the bootloader does not enable this watchdog timer.
Trait Implementations§
Source§impl Clone for WatchdogConfig
impl Clone for WatchdogConfig
Source§fn clone(&self) -> WatchdogConfig
fn clone(&self) -> WatchdogConfig
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for WatchdogConfig
impl Default for WatchdogConfig
Source§fn default() -> WatchdogConfig
fn default() -> WatchdogConfig
Returns the “default value” for a type. Read more
impl Copy for WatchdogConfig
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)