nrf52840_pac/
timer0.rs
1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start Timer"]
5 pub tasks_start: TASKS_START,
6 #[doc = "0x04 - Stop Timer"]
7 pub tasks_stop: TASKS_STOP,
8 #[doc = "0x08 - Increment Timer (Counter mode only)"]
9 pub tasks_count: TASKS_COUNT,
10 #[doc = "0x0c - Clear time"]
11 pub tasks_clear: TASKS_CLEAR,
12 #[doc = "0x10 - Deprecated register - Shut down timer"]
13 pub tasks_shutdown: TASKS_SHUTDOWN,
14 _reserved5: [u8; 0x2c],
15 #[doc = "0x40..0x50 - Description collection\\[n\\]: Capture Timer value to CC\\[n\\]
16register"]
17 pub tasks_capture: [TASKS_CAPTURE; 4],
18 _reserved6: [u8; 0xf0],
19 #[doc = "0x140..0x150 - Description collection\\[n\\]: Compare event on CC\\[n\\]
20match"]
21 pub events_compare: [EVENTS_COMPARE; 4],
22 _reserved7: [u8; 0xb0],
23 #[doc = "0x200 - Shortcut register"]
24 pub shorts: SHORTS,
25 _reserved8: [u8; 0x0100],
26 #[doc = "0x304 - Enable interrupt"]
27 pub intenset: INTENSET,
28 #[doc = "0x308 - Disable interrupt"]
29 pub intenclr: INTENCLR,
30 _reserved10: [u8; 0x01f8],
31 #[doc = "0x504 - Timer mode selection"]
32 pub mode: MODE,
33 #[doc = "0x508 - Configure the number of bits used by the TIMER"]
34 pub bitmode: BITMODE,
35 _reserved12: [u8; 0x04],
36 #[doc = "0x510 - Timer prescaler register"]
37 pub prescaler: PRESCALER,
38 _reserved13: [u8; 0x2c],
39 #[doc = "0x540..0x550 - Description collection\\[n\\]: Capture/Compare register n"]
40 pub cc: [CC; 4],
41}
42#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
43pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
44#[doc = "Start Timer"]
45pub mod tasks_start;
46#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
47pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
48#[doc = "Stop Timer"]
49pub mod tasks_stop;
50#[doc = "TASKS_COUNT (w) register accessor: an alias for `Reg<TASKS_COUNT_SPEC>`"]
51pub type TASKS_COUNT = crate::Reg<tasks_count::TASKS_COUNT_SPEC>;
52#[doc = "Increment Timer (Counter mode only)"]
53pub mod tasks_count;
54#[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg<TASKS_CLEAR_SPEC>`"]
55pub type TASKS_CLEAR = crate::Reg<tasks_clear::TASKS_CLEAR_SPEC>;
56#[doc = "Clear time"]
57pub mod tasks_clear;
58#[doc = "TASKS_SHUTDOWN (w) register accessor: an alias for `Reg<TASKS_SHUTDOWN_SPEC>`"]
59pub type TASKS_SHUTDOWN = crate::Reg<tasks_shutdown::TASKS_SHUTDOWN_SPEC>;
60#[doc = "Deprecated register - Shut down timer"]
61pub mod tasks_shutdown;
62#[doc = "TASKS_CAPTURE (w) register accessor: an alias for `Reg<TASKS_CAPTURE_SPEC>`"]
63pub type TASKS_CAPTURE = crate::Reg<tasks_capture::TASKS_CAPTURE_SPEC>;
64#[doc = "Description collection\\[n\\]: Capture Timer value to CC\\[n\\]
65register"]
66pub mod tasks_capture;
67#[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg<EVENTS_COMPARE_SPEC>`"]
68pub type EVENTS_COMPARE = crate::Reg<events_compare::EVENTS_COMPARE_SPEC>;
69#[doc = "Description collection\\[n\\]: Compare event on CC\\[n\\]
70match"]
71pub mod events_compare;
72#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
73pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
74#[doc = "Shortcut register"]
75pub mod shorts;
76#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
77pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
78#[doc = "Enable interrupt"]
79pub mod intenset;
80#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
81pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
82#[doc = "Disable interrupt"]
83pub mod intenclr;
84#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
85pub type MODE = crate::Reg<mode::MODE_SPEC>;
86#[doc = "Timer mode selection"]
87pub mod mode;
88#[doc = "BITMODE (rw) register accessor: an alias for `Reg<BITMODE_SPEC>`"]
89pub type BITMODE = crate::Reg<bitmode::BITMODE_SPEC>;
90#[doc = "Configure the number of bits used by the TIMER"]
91pub mod bitmode;
92#[doc = "PRESCALER (rw) register accessor: an alias for `Reg<PRESCALER_SPEC>`"]
93pub type PRESCALER = crate::Reg<prescaler::PRESCALER_SPEC>;
94#[doc = "Timer prescaler register"]
95pub mod prescaler;
96#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
97pub type CC = crate::Reg<cc::CC_SPEC>;
98#[doc = "Description collection\\[n\\]: Capture/Compare register n"]
99pub mod cc;