pub struct IoscDerivedClock<State = Enabled> { /* private fields */ }Expand description
The 750 kHz IRC/FRO-derived clock
This is one of the clocks that can be used to run the self-wake-up timer (WKT). See user manual, section 18.5.1.
Implementations§
Source§impl IoscDerivedClock<Disabled>
impl IoscDerivedClock<Disabled>
Sourcepub fn enable(
self,
syscon: &mut Handle,
iosc: IOSC,
ioscout: IOSCOUT,
) -> IoscDerivedClock<Enabled>
pub fn enable( self, syscon: &mut Handle, iosc: IOSC, ioscout: IOSCOUT, ) -> IoscDerivedClock<Enabled>
Enable the IRC/FRO-derived clock
This method is only available, if IoscDerivedClock is in the
Disabled state. Code that attempts to call this method when the
clock is already enabled will not compile.
Consumes this instance of IoscDerivedClock and returns another instance
that has its State type parameter set to Enabled. That new
instance implements clock::Enabled, which might be required by APIs
that need an enabled clock.
Also consumes the handles to IOSC and IOSCOUT, to make it
impossible (outside of unsafe code) to break API guarantees.
Trait Implementations§
Source§impl<State> Clock for IoscDerivedClock<State>
impl<State> Clock for IoscDerivedClock<State>
Source§impl<State: Debug> Debug for IoscDerivedClock<State>
impl<State: Debug> Debug for IoscDerivedClock<State>
Source§impl<State> Frequency for IoscDerivedClock<State>
impl<State> Frequency for IoscDerivedClock<State>
impl Enabled for IoscDerivedClock<Enabled>
Auto Trait Implementations§
impl<State> Freeze for IoscDerivedClock<State>where
State: Freeze,
impl<State> RefUnwindSafe for IoscDerivedClock<State>where
State: RefUnwindSafe,
impl<State> Send for IoscDerivedClock<State>where
State: Send,
impl<State> Sync for IoscDerivedClock<State>where
State: Sync,
impl<State> Unpin for IoscDerivedClock<State>where
State: Unpin,
impl<State> UnwindSafe for IoscDerivedClock<State>where
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more