pub struct PowerManager { /* private fields */ }
Expand description
Contains state for the power management peripheral. This includes the configurations for various system clocks and the final frequency that the system is running at.
Implementations§
Source§impl PowerManager
impl PowerManager
Source§impl PowerManager
impl PowerManager
Sourcepub unsafe fn setup_system_clock(
&self,
clock_source: SystemClockSource,
flash_controller: &FLASHCALW,
)
pub unsafe fn setup_system_clock( &self, clock_source: SystemClockSource, flash_controller: &FLASHCALW, )
Sets up the system clock. This should be called as one of the first
lines in the main()
function within the platform’s main.rs
.
pub unsafe fn disable_system_clock(&self, clock_source: SystemClockSource)
pub unsafe fn change_system_clock( &self, clock_source: SystemClockSource, flash_controller: &FLASHCALW, )
pub fn get_system_frequency(&self) -> u32
Auto Trait Implementations§
impl !Freeze for PowerManager
impl !RefUnwindSafe for PowerManager
impl Send for PowerManager
impl !Sync for PowerManager
impl Unpin for PowerManager
impl UnwindSafe for PowerManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more