Struct lpc82x_hal::syscon::IrcDerivedClock [−][src]
The 750 kHz IRC-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.
Methods
impl IrcDerivedClock<Disabled>
[src]
impl IrcDerivedClock<Disabled>
pub fn enable(
self,
syscon: &mut Handle,
irc: IRC,
ircout: IRCOUT
) -> IrcDerivedClock<Enabled>
[src]
pub fn enable(
self,
syscon: &mut Handle,
irc: IRC,
ircout: IRCOUT
) -> IrcDerivedClock<Enabled>
Enable the IRC-derived clock
This method is only available, if IrcDerivedClock
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 IrcDerivedClock
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 IRC
and IRCOUT
, to make it
impossible (outside of unsafe code) to break API guarantees.
Trait Implementations
impl<State> Frequency for IrcDerivedClock<State> where
State: InitState,
[src]
impl<State> Frequency for IrcDerivedClock<State> where
State: InitState,
impl Enabled for IrcDerivedClock<Enabled>
[src]
impl Enabled for IrcDerivedClock<Enabled>
impl<State> Clock for IrcDerivedClock<State> where
State: InitState,
[src]
impl<State> Clock for IrcDerivedClock<State> where
State: InitState,
Auto Trait Implementations
impl<State> Send for IrcDerivedClock<State> where
State: Send,
impl<State> Send for IrcDerivedClock<State> where
State: Send,
impl<State> Sync for IrcDerivedClock<State> where
State: Sync,
impl<State> Sync for IrcDerivedClock<State> where
State: Sync,