Struct lpc55_hal::peripherals::syscon::Syscon [−][src]
pub struct Syscon { /* fields omitted */ }
Implementations
impl Syscon
[src]
impl Syscon
[src]The main API for the SYSCON peripheral
pub fn enable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
[src]
Enables the clock for a peripheral or other hardware component
pub fn disable_clock<P: ClockControl>(&mut self, peripheral: &mut P)
[src]
Disable peripheral clock
pub fn is_clock_enabled<P: ClockControl>(&self, peripheral: &P) -> bool
[src]
Check if peripheral clock is enabled
pub fn reset<P: ResetControl>(&mut self, peripheral: &mut P)
[src]
Reset a peripheral
pub unsafe fn reset_all_noncritical_peripherals() -> Syscon
[src]
Steals syscon and asserts reset to all peripherals that won’t immediately cause a crash. Flash, Fmc, and AnalogCtrl are not reset.