[][src]Struct lpc55_hal::drivers::clocks::ClockRequirements

pub struct ClockRequirements {
    pub system_frequency: Option<Megahertz>,
    pub custom_pll: Option<Pll>,
}

Fields

system_frequency: Option<Megahertz>custom_pll: Option<Pll>

Implementations

impl ClockRequirements[src]

pub fn system_frequency<Freq>(self, freq: Freq) -> Self where
    Freq: Into<Megahertz>, 
[src]

pub fn configure(
    self,
    anactrl: &mut Anactrl,
    pmc: &mut Pmc,
    syscon: &mut Syscon
) -> Result<Clocks>
[src]

Requirements solver - tries to generate and configure a clock configuration from (partial) requirements.

Can be called only once, to not invalidate previous configurations

pub unsafe fn reconfigure(
    self,
    _clocks: Clocks,
    pmc: &mut Pmc,
    syscon: &mut Syscon
) -> Clocks
[src]

Same as above, but allows clock to be changed after an initial configuration. This is unsafe because it's up to the developer to ensure the new configuration is okay for the device peripherals being used.

Trait Implementations

impl Debug for ClockRequirements[src]

impl Default for ClockRequirements[src]

Auto Trait Implementations

impl Send for ClockRequirements

impl Sync for ClockRequirements

impl Unpin for ClockRequirements

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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> 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.