Struct nrf52811_pac::timer0::RegisterBlock[][src]

#[repr(C)]
pub struct RegisterBlock {
Show 14 fields pub tasks_start: Reg<TASKS_START_SPEC>, pub tasks_stop: Reg<TASKS_STOP_SPEC>, pub tasks_count: Reg<TASKS_COUNT_SPEC>, pub tasks_clear: Reg<TASKS_CLEAR_SPEC>, pub tasks_shutdown: Reg<TASKS_SHUTDOWN_SPEC>, pub tasks_capture: [Reg<TASKS_CAPTURE_SPEC>; 6], pub events_compare: [Reg<EVENTS_COMPARE_SPEC>; 6], pub shorts: Reg<SHORTS_SPEC>, pub intenset: Reg<INTENSET_SPEC>, pub intenclr: Reg<INTENCLR_SPEC>, pub mode: Reg<MODE_SPEC>, pub bitmode: Reg<BITMODE_SPEC>, pub prescaler: Reg<PRESCALER_SPEC>, pub cc: [Reg<CC_SPEC>; 6], // some fields omitted
}
Expand description

Register block

Fields

tasks_start: Reg<TASKS_START_SPEC>

0x00 - Start Timer

tasks_stop: Reg<TASKS_STOP_SPEC>

0x04 - Stop Timer

tasks_count: Reg<TASKS_COUNT_SPEC>

0x08 - Increment Timer (Counter mode only)

tasks_clear: Reg<TASKS_CLEAR_SPEC>

0x0c - Clear time

tasks_shutdown: Reg<TASKS_SHUTDOWN_SPEC>

0x10 - Deprecated register - Shut down timer

tasks_capture: [Reg<TASKS_CAPTURE_SPEC>; 6]

0x40..0x58 - Description collection: Capture Timer value to CC[n] register

events_compare: [Reg<EVENTS_COMPARE_SPEC>; 6]

0x140..0x158 - Description collection: Compare event on CC[n] match

shorts: Reg<SHORTS_SPEC>

0x200 - Shortcuts between local events and tasks

intenset: Reg<INTENSET_SPEC>

0x304 - Enable interrupt

intenclr: Reg<INTENCLR_SPEC>

0x308 - Disable interrupt

mode: Reg<MODE_SPEC>

0x504 - Timer mode selection

bitmode: Reg<BITMODE_SPEC>

0x508 - Configure the number of bits used by the TIMER

prescaler: Reg<PRESCALER_SPEC>

0x510 - Timer prescaler register

cc: [Reg<CC_SPEC>; 6]

0x540..0x558 - Description collection: Capture/Compare register n

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.