[−][src]Struct msp430fr2x5x_hal::rtc::Rtc
16-bit real-time counter
Implementations
impl Rtc<RtcVloclk>
[src]
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.
pub fn cancel(&mut self) -> Result<(), Self::Error>
[src]
impl<SRC: RtcClockSrc> CountDown for Rtc<SRC>
[src]
type Time = u16
The unit of time used by this timer
pub fn start<T: Into<Self::Time>>(&mut self, count: T)
[src]
pub fn wait(&mut self) -> Result<(), Void>
[src]
impl<SRC: RtcClockSrc> Periodic for Rtc<SRC>
[src]
Auto Trait Implementations
impl<SRC> Send for Rtc<SRC> where
SRC: Send,
[src]
SRC: Send,
impl<SRC> !Sync for Rtc<SRC>
[src]
impl<SRC> Unpin for Rtc<SRC> where
SRC: Unpin,
[src]
SRC: Unpin,
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, 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>,