PeripheralClock

Trait PeripheralClock 

Source
pub trait PeripheralClock {
    const CLOCK: SEL_A;

    // Required method
    fn select<S>(selector: &S, handle: &mut Handle)
       where S: PeripheralClockSelector;
}
Expand description

Internal trait used configure peripheral clock sources

This trait is an internal implementation detail and should neither be implemented nor used outside of LPC8xx HAL. Any changes to this trait won’t be considered breaking changes.

Required Associated Constants§

Source

const CLOCK: SEL_A

The variant of FCLKSEL.SEL that selects this clock source

This is not available (or required) on LPC82x.

Required Methods§

Source

fn select<S>(selector: &S, handle: &mut Handle)

Select the clock

The selector argument should not be required to implement this trait, but it makes sure that the caller has access to the peripheral they are selecting the clock for.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PeripheralClock for FRG<FRG0>

Source§

const CLOCK: SEL_A = SEL_A::FRG0CLK

Source§

impl PeripheralClock for FRG<FRG1>

Source§

const CLOCK: SEL_A = SEL_A::FRG1CLK

Source§

impl PeripheralClock for IOSC

Source§

const CLOCK: SEL_A = SEL_A::FRO