Struct riot_sys::NRF_TIMER_Type
source · #[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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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 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
Mutably borrows from an owned value. Read more