Struct nrf52832::clock::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>,

§

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>,

§

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.