#[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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for NRF_TIMER_Type

source§

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

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

impl Default for NRF_TIMER_Type

source§

fn default() -> Self

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

impl Copy for NRF_TIMER_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> 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.