Struct lpc55_hal::drivers::clocks::ClockRequirements [−][src]
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]
impl ClockRequirements
[src]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.
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 Default for ClockRequirements
[src]
impl Default for ClockRequirements
[src]