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

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

Fields

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

Methods

impl ClockRequirements[src]

pub fn support_usbfs(self) -> Self[src]

Ensures that the resulting clock configuration supports USBFS.

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.

It's a bit ridiculous to do this in code, but no idea how to avoid it.

Can be called only once, to not invalidate previous configurations

Trait Implementations

impl Debug for ClockRequirements[src]

impl Default for ClockRequirements[src]

Auto Trait Implementations

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