Struct lpc55_hal::drivers::clocks::ClockRequirements [−][src]
Fields
system_frequency: Option<Megahertz>
custom_pll: Option<Pll>
Implementations
impl ClockRequirements
[src]
pub fn system_frequency<Freq>(mut self: 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.
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]
self,
_clocks: Clocks,
pmc: &mut Pmc,
syscon: &mut Syscon
) -> Clocks
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]
fn default() -> ClockRequirements
[src]
Auto Trait Implementations
impl Send for ClockRequirements
[src]
impl Sync for ClockRequirements
[src]
impl Unpin for ClockRequirements
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,