[−][src]Struct lpc55s6x_hal::drivers::clocks::ClockRequirements
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]
Freq: Into<Megahertz>,
pub fn configure(
self,
anactrl: &mut Anactrl,
pmc: &mut Pmc,
syscon: &mut Syscon
) -> Result<Clocks>
[src]
self,
anactrl: &mut Anactrl,
pmc: &mut Pmc,
syscon: &mut Syscon
) -> Result<Clocks>
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]
fn default() -> 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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self