#[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
impl Clone for NRF_CLOCK_Type
source§fn clone(&self) -> NRF_CLOCK_Type
fn clone(&self) -> NRF_CLOCK_Type
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NRF_CLOCK_Type
impl Debug for NRF_CLOCK_Type
source§impl Default for NRF_CLOCK_Type
impl Default for NRF_CLOCK_Type
impl Copy for NRF_CLOCK_Type
Auto Trait Implementations§
impl Freeze for NRF_CLOCK_Type
impl RefUnwindSafe for NRF_CLOCK_Type
impl Send for NRF_CLOCK_Type
impl Sync for NRF_CLOCK_Type
impl Unpin for NRF_CLOCK_Type
impl UnwindSafe for NRF_CLOCK_Type
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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