[][src]Struct wio_lite_mg126::rtc_timer::RealTimeCounterTimer

pub struct RealTimeCounterTimer<'a> { /* fields omitted */ }

Implements the 32 bit timer mode for the Real Time Counter for SAMD11 and SAMD21.

Implementations

impl<'a> RealTimeCounterTimer<'a>[src]

pub fn new(
    rtc_source_clock: &GClock,
    pm: &mut PM,
    clocks: &mut GenericClockController,
    rtc: &'a MODE0
) -> RealTimeCounterTimer<'a>
[src]

Creates a mode-0 RTC timer with the given clock and RTC peripheral

Trait Implementations

impl<'_> CountDown for RealTimeCounterTimer<'_>[src]

type Time = Nanoseconds

The unit of time used by this timer

impl<'_> InterruptDrivenTimer for RealTimeCounterTimer<'_>[src]

pub fn enable_interrupt(&mut self)[src]

Enable the interrupt generation for this hardware timer. This method only sets the clock configuration to trigger the interrupt; it does not configure the interrupt controller or define an interrupt handler.

pub fn disable_interrupt(&mut self)[src]

Disables interrupt generation for this hardware timer. This method only sets the clock configuration to prevent triggering the interrupt; it does not configure the interrupt controller.

impl<'_> Periodic for RealTimeCounterTimer<'_>[src]

Auto Trait Implementations

impl<'a> !Send for RealTimeCounterTimer<'a>

impl<'a> !Sync for RealTimeCounterTimer<'a>

impl<'a> Unpin for RealTimeCounterTimer<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.