pub struct Waketimer { /* private fields */ }Expand description
Wake timer. A nonzero counter write starts a one-shot countdown.
Implementations§
Source§impl Waketimer
impl Waketimer
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn wake_timer_ctrl(self) -> Reg<WakeTimerCtrl, RW>
pub const fn wake_timer_ctrl(self) -> Reg<WakeTimerCtrl, RW>
Wake Timer Control. WAKE_FLAG is write-one-to-clear. When modifying other fields, write WAKE_FLAG as zero to avoid acknowledging a pending event.
Sourcepub const fn wake_timer_cnt(self) -> Reg<WakeTimerCnt, RW>
pub const fn wake_timer_cnt(self) -> Reg<WakeTimerCnt, RW>
Wake Timer Counter. Do not write while counting is in progress. Read twice in succession and repeat until the two values match because of clock domain crossing. A nonzero write starts a countdown; expiry sets WAKE_FLAG and stops the counter until it is reloaded.
Trait Implementations§
impl Copy for Waketimer
impl Eq for Waketimer
impl Send for Waketimer
impl StructuralPartialEq for Waketimer
impl Sync for Waketimer
Auto Trait Implementations§
impl Freeze for Waketimer
impl RefUnwindSafe for Waketimer
impl Unpin for Waketimer
impl UnwindSafe for Waketimer
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