Struct nrf52810_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>; 4], pub events_compare: [Reg<EVENTS_COMPARE_SPEC>; 4], 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>; 4], // 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>; 4]
0x40..0x50 - Description collection: Capture Timer value to CC[n] register
events_compare: [Reg<EVENTS_COMPARE_SPEC>; 4]
0x140..0x150 - 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>; 4]
0x540..0x550 - Description collection: Capture/Compare register n