riot_sys::bindgen

Struct NRF_CLOCK_Type

Source
#[repr(C)]
pub struct NRF_CLOCK_Type {
Show 36 fields pub TASKS_HFCLKSTART: u32, pub TASKS_HFCLKSTOP: u32, pub TASKS_LFCLKSTART: u32, pub TASKS_LFCLKSTOP: u32, pub TASKS_CAL: u32, pub TASKS_CTSTART: u32, pub TASKS_CTSTOP: u32, pub RESERVED: [u32; 57], pub EVENTS_HFCLKSTARTED: u32, pub EVENTS_LFCLKSTARTED: u32, pub RESERVED1: u32, pub EVENTS_DONE: u32, pub EVENTS_CTTO: u32, pub RESERVED2: [u32; 5], pub EVENTS_CTSTARTED: u32, pub EVENTS_CTSTOPPED: u32, pub RESERVED3: [u32; 117], pub INTENSET: u32, pub INTENCLR: u32, pub RESERVED4: [u32; 63], pub HFCLKRUN: u32, pub HFCLKSTAT: u32, pub RESERVED5: u32, pub LFCLKRUN: u32, pub LFCLKSTAT: u32, pub LFCLKSRCCOPY: u32, pub RESERVED6: [u32; 62], pub LFCLKSRC: u32, pub RESERVED7: [u32; 3], pub HFXODEBOUNCE: u32, pub RESERVED8: [u32; 3], pub CTIV: u32, pub RESERVED9: [u32; 8], pub TRACECONFIG: u32, pub RESERVED10: [u32; 21], pub LFRCMODE: u32,
}
Expand description

@brief Clock control (CLOCK)

Fields§

§TASKS_HFCLKSTART: u32

< (@ 0x00000000) Start HFXO crystal oscillator

§TASKS_HFCLKSTOP: u32

< (@ 0x00000004) Stop HFXO crystal oscillator

§TASKS_LFCLKSTART: u32

< (@ 0x00000008) Start LFCLK

§TASKS_LFCLKSTOP: u32

< (@ 0x0000000C) Stop LFCLK

§TASKS_CAL: u32

< (@ 0x00000010) Start calibration of LFRC

§TASKS_CTSTART: u32

< (@ 0x00000014) Start calibration timer

§TASKS_CTSTOP: u32

< (@ 0x00000018) Stop calibration timer

§RESERVED: [u32; 57]§EVENTS_HFCLKSTARTED: u32

< (@ 0x00000100) HFXO crystal oscillator started

§EVENTS_LFCLKSTARTED: u32

< (@ 0x00000104) LFCLK started

§RESERVED1: u32§EVENTS_DONE: u32

< (@ 0x0000010C) Calibration of LFRC completed

§EVENTS_CTTO: u32

< (@ 0x00000110) Calibration timer timeout

§RESERVED2: [u32; 5]§EVENTS_CTSTARTED: u32

< (@ 0x00000128) Calibration timer has been started and is ready to process new tasks

§EVENTS_CTSTOPPED: u32

< (@ 0x0000012C) Calibration timer has been stopped and is ready to process new tasks

§RESERVED3: [u32; 117]§INTENSET: u32

< (@ 0x00000304) Enable interrupt

§INTENCLR: u32

< (@ 0x00000308) Disable interrupt

§RESERVED4: [u32; 63]§HFCLKRUN: u32

< (@ 0x00000408) Status indicating that HFCLKSTART task has been triggered

§HFCLKSTAT: u32

< (@ 0x0000040C) HFCLK status

§RESERVED5: u32§LFCLKRUN: u32

< (@ 0x00000414) Status indicating that LFCLKSTART task has been triggered

§LFCLKSTAT: u32

< (@ 0x00000418) LFCLK status

§LFCLKSRCCOPY: u32

< (@ 0x0000041C) Copy of LFCLKSRC register, set when LFCLKSTART task was triggered

§RESERVED6: [u32; 62]§LFCLKSRC: u32

< (@ 0x00000518) Clock source for the LFCLK

§RESERVED7: [u32; 3]§HFXODEBOUNCE: u32

< (@ 0x00000528) HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART task.

§RESERVED8: [u32; 3]§CTIV: u32

< (@ 0x00000538) Calibration timer interval

§RESERVED9: [u32; 8]§TRACECONFIG: u32

< (@ 0x0000055C) Clocking options for the trace port debug interface

§RESERVED10: [u32; 21]§LFRCMODE: u32

< (@ 0x000005B4) LFRC mode configuration

Trait Implementations§

Source§

impl Clone for NRF_CLOCK_Type

Source§

fn clone(&self) -> NRF_CLOCK_Type

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NRF_CLOCK_Type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NRF_CLOCK_Type

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for NRF_CLOCK_Type

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1464 bytes