#[repr(transparent)]pub struct Mod(pub u32);Expand description
Mode.
Tuple Fields§
§0: u32Implementations§
Source§impl Mod
impl Mod
Sourcepub const fn wden(&self) -> bool
pub const fn wden(&self) -> bool
Watchdog Enable. Raw bit values: false (0) = Stop: Timer stopped.; true (1) = Run: Timer running.
Sourcepub const fn set_wden(&mut self, val: bool)
pub const fn set_wden(&mut self, val: bool)
Watchdog Enable. Raw bit values: false (0) = Stop: Timer stopped.; true (1) = Run: Timer running.
Sourcepub const fn wdreset(&self) -> bool
pub const fn wdreset(&self) -> bool
Watchdog Reset Enable. Raw bit values: false (0) = Interrupt: Interrupt.; true (1) = Reset: Reset.
Sourcepub const fn set_wdreset(&mut self, val: bool)
pub const fn set_wdreset(&mut self, val: bool)
Watchdog Reset Enable. Raw bit values: false (0) = Interrupt: Interrupt.; true (1) = Reset: Reset.
Sourcepub const fn wdprotect(&self) -> bool
pub const fn wdprotect(&self) -> bool
Watchdog Update Mode. Raw bit values: false (0) = Flexible: Flexible.; true (1) = Threshold: Threshold.
Sourcepub const fn set_wdprotect(&mut self, val: bool)
pub const fn set_wdprotect(&mut self, val: bool)
Watchdog Update Mode. Raw bit values: false (0) = Flexible: Flexible.; true (1) = Threshold: Threshold.
Trait Implementations§
impl Copy for Mod
impl Eq for Mod
impl StructuralPartialEq for Mod
Auto Trait Implementations§
impl Freeze for Mod
impl RefUnwindSafe for Mod
impl Send for Mod
impl Sync for Mod
impl Unpin for Mod
impl UnwindSafe for Mod
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