[][src]Struct lpc8xx_hal::syscon::IoscDerivedClock

pub struct IoscDerivedClock<State = Enabled> { /* fields omitted */ }

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.

Methods

impl IoscDerivedClock<Disabled>[src]

pub fn enable(
    self,
    syscon: &mut Handle,
    iosc: IOSC,
    ioscout: IOSCOUT
) -> IoscDerivedClock<Enabled>
[src]

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

impl<State> Frequency for IoscDerivedClock<State>[src]

impl Enabled for IoscDerivedClock<Enabled>[src]

impl<State> Clock for IoscDerivedClock<State>[src]

Auto Trait Implementations

impl<State> Unpin for IoscDerivedClock<State> where
    State: Unpin

impl<State> Send for IoscDerivedClock<State> where
    State: Send

impl<State> Sync for IoscDerivedClock<State> where
    State: Sync

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self