#[repr(transparent)]pub struct DevSmWatchdog(pub u32);
Expand description
Watchdog that forces the device state machine to idle and raises an interrupt if the device stays in a state that isn’t idle for the configured limit. The counter is reset on every state transition. Set limit while enable is low and then set the enable.
Tuple Fields§
§0: u32
Implementations§
Source§impl DevSmWatchdog
impl DevSmWatchdog
pub const fn limit(&self) -> u32
pub fn set_limit(&mut self, val: u32)
pub const fn enable(&self) -> bool
pub fn set_enable(&mut self, val: bool)
Sourcepub const fn reset(&self) -> bool
pub const fn reset(&self) -> bool
Set to 1 to forcibly reset the device state machine on watchdog expiry
Sourcepub fn set_reset(&mut self, val: bool)
pub fn set_reset(&mut self, val: bool)
Set to 1 to forcibly reset the device state machine on watchdog expiry
pub const fn fired(&self) -> bool
pub fn set_fired(&mut self, val: bool)
Trait Implementations§
Source§impl Clone for DevSmWatchdog
impl Clone for DevSmWatchdog
Source§fn clone(&self) -> DevSmWatchdog
fn clone(&self) -> DevSmWatchdog
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DevSmWatchdog
impl Debug for DevSmWatchdog
Source§impl Default for DevSmWatchdog
impl Default for DevSmWatchdog
Source§fn default() -> DevSmWatchdog
fn default() -> DevSmWatchdog
Returns the “default value” for a type. Read more
Source§impl PartialEq for DevSmWatchdog
impl PartialEq for DevSmWatchdog
impl Copy for DevSmWatchdog
impl Eq for DevSmWatchdog
impl StructuralPartialEq for DevSmWatchdog
Auto Trait Implementations§
impl Freeze for DevSmWatchdog
impl RefUnwindSafe for DevSmWatchdog
impl Send for DevSmWatchdog
impl Sync for DevSmWatchdog
impl Unpin for DevSmWatchdog
impl UnwindSafe for DevSmWatchdog
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