[−][src]Trait lpc55s6x_hal::peripherals::syscon::ClockControl
Internal trait for controlling peripheral clocks
This trait is an internal implementation detail and should neither be implemented nor used outside of LPC82x HAL. Any changes to this trait won't be considered breaking changes.
Compared to https://git.io/fjpf9 (in lpc-rs/lpc8xx-hal/lpc8xx-hal-common) we use a less minimal API in order to hide the fact that there are three different AHLBCKLCTRL?, which a HAL user shouldn't really need to know about.
Required methods
fn enable_clock(&self, s: &mut Syscon)
Internal method to enable a peripheral clock
fn disable_clock(&self, s: &mut Syscon)
Internal method to disable a peripheral clock
fn is_clock_enabled(&self, s: &Syscon) -> bool
Check if peripheral clock is enabled