pub struct Clock { /* private fields */ }
Expand description
Clock struct
Implementations§
source§impl Clock
impl Clock
sourcepub fn set_client(&self, client: &'static dyn ClockClient)
pub fn set_client(&self, client: &'static dyn ClockClient)
Client for callbacks
sourcepub fn interrupt_enable(&self, interrupt: InterruptField)
pub fn interrupt_enable(&self, interrupt: InterruptField)
Enable interrupt
sourcepub fn interrupt_disable(&self, interrupt: InterruptField)
pub fn interrupt_disable(&self, interrupt: InterruptField)
Disable interrupt
sourcepub fn high_start(&self)
pub fn high_start(&self)
Start the high frequency clock - specifically HFXO, and sets the high frequency clock source to HFXO
sourcepub fn high_started(&self) -> bool
pub fn high_started(&self) -> bool
Check if the high frequency clock has started
sourcepub fn high_source(&self) -> HighClockSource
pub fn high_source(&self) -> HighClockSource
Read clock source from the high frequency clock
sourcepub fn high_running(&self) -> bool
pub fn high_running(&self) -> bool
Check if the high frequency clock is running
sourcepub fn low_started(&self) -> bool
pub fn low_started(&self) -> bool
Check if the low frequency clock has started
sourcepub fn low_source(&self) -> LowClockSource
pub fn low_source(&self) -> LowClockSource
Read clock source from the low frequency clock
sourcepub fn low_running(&self) -> bool
pub fn low_running(&self) -> bool
Check if the low frequency clock is running
sourcepub fn low_set_source(&self, clock_source: LowClockSource)
pub fn low_set_source(&self, clock_source: LowClockSource)
Set low frequency clock source
Auto Trait Implementations§
impl !Freeze for Clock
impl !RefUnwindSafe for Clock
impl !Send for Clock
impl !Sync for Clock
impl Unpin for Clock
impl !UnwindSafe for Clock
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