Struct nrf9160_hal::Clocks
source · pub struct Clocks<H, L, LSTAT> { /* private fields */ }
Expand description
A high level abstraction for the CLOCK peripheral.
Implementations§
source§impl<H, L, LSTAT> Clocks<H, L, LSTAT>
impl<H, L, LSTAT> Clocks<H, L, LSTAT>
sourcepub fn enable_ext_hfosc(self) -> Clocks<ExternalOscillator, L, LSTAT>
pub fn enable_ext_hfosc(self) -> Clocks<ExternalOscillator, L, LSTAT>
Use an external oscillator as the high frequency clock source.
sourcepub fn disable_ext_hfosc(self) -> Clocks<Internal, L, LSTAT>
pub fn disable_ext_hfosc(self) -> Clocks<Internal, L, LSTAT>
Use the internal oscillator as the high frequency clock source.
sourcepub fn start_lfclk(self) -> Clocks<H, L, LfOscStarted>
pub fn start_lfclk(self) -> Clocks<H, L, LfOscStarted>
Start the Low Frequency clock.
source§impl<H, L> Clocks<H, L, LfOscStarted>
impl<H, L> Clocks<H, L, LfOscStarted>
sourcepub fn stop_lfclk(self) -> Clocks<H, L, LfOscStopped>
pub fn stop_lfclk(self) -> Clocks<H, L, LfOscStopped>
Stop the Low Frequency clock.
Auto Trait Implementations§
impl<H, L, LSTAT> Freeze for Clocks<H, L, LSTAT>
impl<H, L, LSTAT> RefUnwindSafe for Clocks<H, L, LSTAT>
impl<H, L, LSTAT> Send for Clocks<H, L, LSTAT>
impl<H, L, LSTAT> !Sync for Clocks<H, L, LSTAT>
impl<H, L, LSTAT> Unpin for Clocks<H, L, LSTAT>
impl<H, L, LSTAT> UnwindSafe for Clocks<H, L, LSTAT>
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