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