Struct nrf52::clock::Clock
[−]
[src]
pub struct Clock {
registers: *const ClockRegisters,
client: Cell<Option<&'static ClockClient>>,
}Clock struct
Fields
registers: *const ClockRegisters
client: Cell<Option<&'static ClockClient>>
Methods
impl Clock[src]
pub const fn new() -> Clock[src]
Constructor
pub fn set_client(&self, client: &'static ClockClient)[src]
Client for callbacks
pub fn interrupt_enable(&self, interrupt: InterruptField)[src]
Enable interrupt (not used yet)
pub fn interrupt_disable(&self, interrupt: InterruptField)[src]
Disable interrupt (not used yet)
pub fn high_start(&self)[src]
Start the high frequency clock
pub fn high_stop(&self)[src]
Stop the high frequency clock
pub fn high_started(&self) -> bool[src]
Check if the high frequency clock has started
pub fn high_source(&self) -> HighClockSource[src]
Read clock source from the high frequency clock
pub fn high_running(&self) -> bool[src]
Check if the high frequency clock is running
pub fn low_start(&self)[src]
Start the low frequency clock
pub fn low_stop(&self)[src]
Stop the low frequency clock
pub fn low_started(&self) -> bool[src]
Check if the low frequency clock has started
pub fn low_source(&self) -> LowClockSource[src]
Read clock source from the low frequency clock
pub fn low_running(&self) -> bool[src]
Check if the low frequency clock is running
pub fn low_set_source(&self, clock_source: LowClockSource)[src]
Set low frequency clock source
pub fn high_set_source(&self, clock_source: HighClockSource)[src]
Set high frequency clock source