pub struct RtcOsc<I: RtcSourceId> { /* private fields */ }Expand description
Oscillator for the Rtc
The RtcOsc represents proof that a clock source for the Rtc has been
selected and configured. It also guarantees that the clock source for the
RTC will not be modified or disabled while it is in use.
See the module-level documentation for an example of creating the
RtcOsc.
Implementations
sourceimpl<I: RtcSourceId> RtcOsc<I>
 
impl<I: RtcSourceId> RtcOsc<I>
sourcepub fn enable<S>(token: RtcOscToken, source: S) -> (Self, S::Inc)where
    S: Source<Id = I> + Increment,
 
pub fn enable<S>(token: RtcOscToken, source: S) -> (Self, S::Inc)where
    S: Source<Id = I> + Increment,
sourcepub fn disable<S>(self, source: S) -> (RtcOscToken, S::Dec)where
    S: Source<Id = I> + Decrement,
 
pub fn disable<S>(self, source: S) -> (RtcOscToken, S::Dec)where
    S: Source<Id = I> + Decrement,
Consume the RtcOsc and return the RtcOscToken
Disabling the RtcOsc will Decrement the consumer count of its
Enabled clock Source.
Auto Trait Implementations
impl<I> RefUnwindSafe for RtcOsc<I>where
    I: RefUnwindSafe,
impl<I> Send for RtcOsc<I>where
    I: Send,
impl<I> Sync for RtcOsc<I>where
    I: Sync,
impl<I> Unpin for RtcOsc<I>where
    I: Unpin,
impl<I> UnwindSafe for RtcOsc<I>where
    I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more