pub struct RtcCntl { /* private fields */ }
Implementations§
Source§impl RtcCntl
impl RtcCntl
pub const fn new(base: StaticRef<RtcCntlRegisters>) -> RtcCntl
pub fn disable_wdt(&self)
pub fn disable_super_wdt(&self)
pub fn enable_fosc(&self)
Trait Implementations§
Source§impl WatchDog for RtcCntl
impl WatchDog for RtcCntl
Source§fn setup(&self)
fn setup(&self)
This function must enable the watchdog timer and configure it to
trigger regulary. The period of the timer is left to the implementation
to decide. The implementation must ensure that it doesn’t trigger too
early (when we haven’t hung for example) or too late as to not catch
faults.
After calling this function the watchdog must be running.
Source§fn tickle(&self)
fn tickle(&self)
This function must tickle the watchdog to reset the timer.
If the watchdog was previously suspended then this should also
resume the timer.
Auto Trait Implementations§
impl Freeze for RtcCntl
impl !RefUnwindSafe for RtcCntl
impl !Send for RtcCntl
impl !Sync for RtcCntl
impl Unpin for RtcCntl
impl !UnwindSafe for RtcCntl
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