pub struct Syscon { /* private fields */ }
Implementations§
Source§impl Syscon
The main API for the SYSCON peripheral
impl Syscon
The main API for the SYSCON peripheral
Sourcepub fn enable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
pub fn enable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
Enables the clock for a peripheral or other hardware component
Sourcepub fn disable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
pub fn disable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
Disable peripheral clock
Sourcepub fn is_clock_enabled<P: ClockControl>(&self, peripheral: &P) -> bool
pub fn is_clock_enabled<P: ClockControl>(&self, peripheral: &P) -> bool
Check if peripheral clock is enabled
Sourcepub fn reset<P: ResetControl>(&mut self, peripheral: &mut P)
pub fn reset<P: ResetControl>(&mut self, peripheral: &mut P)
Reset a peripheral
Sourcepub unsafe fn reset_all_noncritical_peripherals() -> Syscon
pub unsafe fn reset_all_noncritical_peripherals() -> Syscon
Steals syscon and asserts reset to all peripherals that won’t immediately cause a crash. Flash, Fmc, and AnalogCtrl are not reset.
§Safety
Steals the syscon, must not be called if Syscon is owned
impl Syscon
This impl block contains no items.
TODO: do this systematically By default, fro_12m is enabled in MAINCLKSELA
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Syscon
impl RefUnwindSafe for Syscon
impl Send for Syscon
impl !Sync for Syscon
impl Unpin for Syscon
impl UnwindSafe for Syscon
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