[][src]Struct msp430fr2x5x_hal::rtc::Rtc

pub struct Rtc<SRC: RtcClockSrc> { /* fields omitted */ }

16-bit real-time counter

Implementations

impl Rtc<RtcVloclk>[src]

pub fn new(rtc: RTC) -> Self[src]

Convert into RTC object with VLOCLK as clock source

impl<SRC: RtcClockSrc> Rtc<SRC>[src]

pub fn use_smclk(self, _smclk: &Smclk) -> Rtc<RtcSmclk>[src]

Configure the RTC to use SMCLK as clock source. Setting comes in effect the next time RTC is started.

pub fn use_vloclk(self) -> Rtc<RtcVloclk>[src]

Configure the RTC to use VLOCLK as clock source. Setting comes in effect the next time RTC is started.

pub fn set_clk_div(&mut self, div: RtcDiv)[src]

Set RTC clock frequency divider

pub fn enable_interrupts(&mut self)[src]

Enable RTC timer interrupts

pub fn disable_interrupts(&mut self)[src]

Disable RTC timer interrupts

pub fn clear_interrupt(&mut self)[src]

Clear interrupt flag

pub fn get_count(&self) -> u16[src]

Read current timer count, which goes up from 0 to 2^16-1

Trait Implementations

impl<SRC: RtcClockSrc> Cancel for Rtc<SRC>[src]

type Error = Void

Error returned when a countdown can't be canceled.

impl<SRC: RtcClockSrc> CountDown for Rtc<SRC>[src]

type Time = u16

The unit of time used by this timer

impl<SRC: RtcClockSrc> Periodic for Rtc<SRC>[src]

Auto Trait Implementations

impl<SRC> Send for Rtc<SRC> where
    SRC: Send
[src]

impl<SRC> !Sync for Rtc<SRC>[src]

impl<SRC> Unpin for Rtc<SRC> where
    SRC: Unpin
[src]

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, 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.