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§
Required Methods§
Sourcefn select<S>(selector: &S, handle: &mut Handle)where
S: PeripheralClockSelector,
fn select<S>(selector: &S, handle: &mut Handle)where
S: PeripheralClockSelector,
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.