pub struct RtcBackend;Expand description
An RTC-based TimerQueueBackend using half-period counting that uses the RTC in mode 1.
Implementations§
Source§impl RtcBackend
impl RtcBackend
Sourcepub unsafe fn interrupt_handler()
pub unsafe fn interrupt_handler()
RTC interrupt handler called before control passes to the
TimerQueue
handler`.
§Safety
This should only be called from the RTC interrupt handler.
Trait Implementations§
Source§impl TimerQueueBackend for RtcBackend
impl TimerQueueBackend for RtcBackend
Source§fn enable_timer()
fn enable_timer()
Optional. This is used to save power, this is called when the timer queue is not empty. Read more
Source§fn disable_timer()
fn disable_timer()
Optional. This is used to save power, this is called when the timer queue is empty. Read more
Source§fn on_interrupt()
fn on_interrupt()
Optional. Runs on interrupt before any timer queue handling.
Source§fn set_compare(instant: Self::Ticks)
fn set_compare(instant: Self::Ticks)
Set the compare value of the timer interrupt. Read more
Source§fn clear_compare_flag()
fn clear_compare_flag()
Clear the compare interrupt flag.
Source§fn pend_interrupt()
fn pend_interrupt()
Pend the timer’s interrupt.
Source§fn timer_queue() -> &'static TimerQueue<Self>
fn timer_queue() -> &'static TimerQueue<Self>
Returns a reference to the underlying timer queue.
Auto Trait Implementations§
impl Freeze for RtcBackend
impl RefUnwindSafe for RtcBackend
impl Send for RtcBackend
impl Sync for RtcBackend
impl Unpin for RtcBackend
impl UnwindSafe for RtcBackend
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