nrf52840::clock

Struct Clock

Source
pub struct Clock { /* private fields */ }
Expand description

Clock struct

Implementations§

Source§

impl Clock

Source

pub const fn new() -> Clock

Constructor

Source

pub fn set_client(&self, client: &'static dyn ClockClient)

Client for callbacks

Source

pub fn interrupt_enable(&self, interrupt: InterruptField)

Enable interrupt

Source

pub fn interrupt_disable(&self, interrupt: InterruptField)

Disable interrupt

Source

pub fn high_start(&self)

Start the high frequency clock - specifically HFXO, and sets the high frequency clock source to HFXO

Source

pub fn high_stop(&self)

Stop the high frequency clock

Source

pub fn high_started(&self) -> bool

Check if the high frequency clock has started

Source

pub fn high_source(&self) -> HighClockSource

Read clock source from the high frequency clock

Source

pub fn high_running(&self) -> bool

Check if the high frequency clock is running

Source

pub fn low_start(&self)

Start the low frequency clock

Source

pub fn low_stop(&self)

Stop the low frequency clock

Source

pub fn low_started(&self) -> bool

Check if the low frequency clock has started

Source

pub fn low_source(&self) -> LowClockSource

Read clock source from the low frequency clock

Source

pub fn low_running(&self) -> bool

Check if the low frequency clock is running

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.