[−][src]Struct wio_lite_mg126::rtc_timer::RealTimeCounterTimer
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]
rtc_source_clock: &GClock,
pm: &mut PM,
clocks: &mut GenericClockController,
rtc: &'a MODE0
) -> RealTimeCounterTimer<'a>
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
pub fn start<T>(&mut self, timeout: T) where
T: Into<<RealTimeCounterTimer<'_> as CountDown>::Time>,
[src]
T: Into<<RealTimeCounterTimer<'_> as CountDown>::Time>,
pub fn wait(&mut self) -> Result<(), Error<Void>>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,