#[repr(C)]pub struct NRF_TIMER_Type {Show 21 fields
pub TASKS_START: u32,
pub TASKS_STOP: u32,
pub TASKS_COUNT: u32,
pub TASKS_CLEAR: u32,
pub TASKS_SHUTDOWN: u32,
pub RESERVED: [u32; 11],
pub TASKS_CAPTURE: [u32; 6],
pub RESERVED1: [u32; 58],
pub EVENTS_COMPARE: [u32; 6],
pub RESERVED2: [u32; 42],
pub SHORTS: u32,
pub RESERVED3: [u32; 64],
pub INTENSET: u32,
pub INTENCLR: u32,
pub RESERVED4: [u32; 126],
pub MODE: u32,
pub BITMODE: u32,
pub RESERVED5: u32,
pub PRESCALER: u32,
pub RESERVED6: [u32; 11],
pub CC: [u32; 6],
}
Expand description
@brief Timer/Counter 0 (TIMER0)
Fields§
§TASKS_START: u32
< (@ 0x00000000) Start Timer
TASKS_STOP: u32
< (@ 0x00000004) Stop Timer
TASKS_COUNT: u32
< (@ 0x00000008) Increment Timer (Counter mode only)
TASKS_CLEAR: u32
< (@ 0x0000000C) Clear time
TASKS_SHUTDOWN: u32
< (@ 0x00000010) Deprecated register - Shut down timer
RESERVED: [u32; 11]
§TASKS_CAPTURE: [u32; 6]
< (@ 0x00000040) Description collection: Capture Timer value to CC[n] register
RESERVED1: [u32; 58]
§EVENTS_COMPARE: [u32; 6]
< (@ 0x00000140) Description collection: Compare event on CC[n] match
RESERVED2: [u32; 42]
§SHORTS: u32
< (@ 0x00000200) Shortcuts between local events and tasks
RESERVED3: [u32; 64]
§INTENSET: u32
< (@ 0x00000304) Enable interrupt
INTENCLR: u32
< (@ 0x00000308) Disable interrupt
RESERVED4: [u32; 126]
§MODE: u32
< (@ 0x00000504) Timer mode selection
BITMODE: u32
< (@ 0x00000508) Configure the number of bits used by the TIMER
RESERVED5: u32
§PRESCALER: u32
< (@ 0x00000510) Timer prescaler register
RESERVED6: [u32; 11]
§CC: [u32; 6]
< (@ 0x00000540) Description collection: Capture/Compare register n
Trait Implementations§
Source§impl Clone for NRF_TIMER_Type
impl Clone for NRF_TIMER_Type
Source§fn clone(&self) -> NRF_TIMER_Type
fn clone(&self) -> NRF_TIMER_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_TIMER_Type
impl Debug for NRF_TIMER_Type
Source§impl Default for NRF_TIMER_Type
impl Default for NRF_TIMER_Type
impl Copy for NRF_TIMER_Type
Auto Trait Implementations§
impl Freeze for NRF_TIMER_Type
impl RefUnwindSafe for NRF_TIMER_Type
impl Send for NRF_TIMER_Type
impl Sync for NRF_TIMER_Type
impl Unpin for NRF_TIMER_Type
impl UnwindSafe for NRF_TIMER_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,
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: 1368 bytes