nrf9160_pac/
timer0_ns.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..0x58 - Description collection: Capture Timer value to CC\\[n\\]
16register"]
17    pub tasks_capture: [TASKS_CAPTURE; 6],
18    _reserved6: [u8; 0x28],
19    #[doc = "0x80 - Subscribe configuration for task START"]
20    pub subscribe_start: SUBSCRIBE_START,
21    #[doc = "0x84 - Subscribe configuration for task STOP"]
22    pub subscribe_stop: SUBSCRIBE_STOP,
23    #[doc = "0x88 - Subscribe configuration for task COUNT"]
24    pub subscribe_count: SUBSCRIBE_COUNT,
25    #[doc = "0x8c - Subscribe configuration for task CLEAR"]
26    pub subscribe_clear: SUBSCRIBE_CLEAR,
27    #[doc = "0x90 - Deprecated register - Subscribe configuration for task SHUTDOWN"]
28    pub subscribe_shutdown: SUBSCRIBE_SHUTDOWN,
29    _reserved11: [u8; 0x2c],
30    #[doc = "0xc0..0xd8 - Description collection: Subscribe configuration for task CAPTURE\\[n\\]"]
31    pub subscribe_capture: [SUBSCRIBE_CAPTURE; 6],
32    _reserved12: [u8; 0x68],
33    #[doc = "0x140..0x158 - Description collection: Compare event on CC\\[n\\]
34match"]
35    pub events_compare: [EVENTS_COMPARE; 6],
36    _reserved13: [u8; 0x68],
37    #[doc = "0x1c0..0x1d8 - Description collection: Publish configuration for event COMPARE\\[n\\]"]
38    pub publish_compare: [PUBLISH_COMPARE; 6],
39    _reserved14: [u8; 0x28],
40    #[doc = "0x200 - Shortcuts between local events and tasks"]
41    pub shorts: SHORTS,
42    _reserved15: [u8; 0x0100],
43    #[doc = "0x304 - Enable interrupt"]
44    pub intenset: INTENSET,
45    #[doc = "0x308 - Disable interrupt"]
46    pub intenclr: INTENCLR,
47    _reserved17: [u8; 0x01f8],
48    #[doc = "0x504 - Timer mode selection"]
49    pub mode: MODE,
50    #[doc = "0x508 - Configure the number of bits used by the TIMER"]
51    pub bitmode: BITMODE,
52    _reserved19: [u8; 0x04],
53    #[doc = "0x510 - Timer prescaler register"]
54    pub prescaler: PRESCALER,
55    #[doc = "0x514..0x52c - Description collection: Enable one-shot operation for Capture/Compare channel n"]
56    pub oneshoten: [ONESHOTEN; 6],
57    _reserved21: [u8; 0x14],
58    #[doc = "0x540..0x558 - Description collection: Capture/Compare register n"]
59    pub cc: [CC; 6],
60}
61#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
62pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
63#[doc = "Start Timer"]
64pub mod tasks_start;
65#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
66pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
67#[doc = "Stop Timer"]
68pub mod tasks_stop;
69#[doc = "TASKS_COUNT (w) register accessor: an alias for `Reg<TASKS_COUNT_SPEC>`"]
70pub type TASKS_COUNT = crate::Reg<tasks_count::TASKS_COUNT_SPEC>;
71#[doc = "Increment Timer (Counter mode only)"]
72pub mod tasks_count;
73#[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg<TASKS_CLEAR_SPEC>`"]
74pub type TASKS_CLEAR = crate::Reg<tasks_clear::TASKS_CLEAR_SPEC>;
75#[doc = "Clear time"]
76pub mod tasks_clear;
77#[doc = "TASKS_SHUTDOWN (w) register accessor: an alias for `Reg<TASKS_SHUTDOWN_SPEC>`"]
78pub type TASKS_SHUTDOWN = crate::Reg<tasks_shutdown::TASKS_SHUTDOWN_SPEC>;
79#[doc = "Deprecated register - Shut down timer"]
80pub mod tasks_shutdown;
81#[doc = "TASKS_CAPTURE (w) register accessor: an alias for `Reg<TASKS_CAPTURE_SPEC>`"]
82pub type TASKS_CAPTURE = crate::Reg<tasks_capture::TASKS_CAPTURE_SPEC>;
83#[doc = "Description collection: Capture Timer value to CC\\[n\\]
84register"]
85pub mod tasks_capture;
86#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
87pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
88#[doc = "Subscribe configuration for task START"]
89pub mod subscribe_start;
90#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
91pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
92#[doc = "Subscribe configuration for task STOP"]
93pub mod subscribe_stop;
94#[doc = "SUBSCRIBE_COUNT (rw) register accessor: an alias for `Reg<SUBSCRIBE_COUNT_SPEC>`"]
95pub type SUBSCRIBE_COUNT = crate::Reg<subscribe_count::SUBSCRIBE_COUNT_SPEC>;
96#[doc = "Subscribe configuration for task COUNT"]
97pub mod subscribe_count;
98#[doc = "SUBSCRIBE_CLEAR (rw) register accessor: an alias for `Reg<SUBSCRIBE_CLEAR_SPEC>`"]
99pub type SUBSCRIBE_CLEAR = crate::Reg<subscribe_clear::SUBSCRIBE_CLEAR_SPEC>;
100#[doc = "Subscribe configuration for task CLEAR"]
101pub mod subscribe_clear;
102#[doc = "SUBSCRIBE_SHUTDOWN (rw) register accessor: an alias for `Reg<SUBSCRIBE_SHUTDOWN_SPEC>`"]
103pub type SUBSCRIBE_SHUTDOWN = crate::Reg<subscribe_shutdown::SUBSCRIBE_SHUTDOWN_SPEC>;
104#[doc = "Deprecated register - Subscribe configuration for task SHUTDOWN"]
105pub mod subscribe_shutdown;
106#[doc = "SUBSCRIBE_CAPTURE (rw) register accessor: an alias for `Reg<SUBSCRIBE_CAPTURE_SPEC>`"]
107pub type SUBSCRIBE_CAPTURE = crate::Reg<subscribe_capture::SUBSCRIBE_CAPTURE_SPEC>;
108#[doc = "Description collection: Subscribe configuration for task CAPTURE\\[n\\]"]
109pub mod subscribe_capture;
110#[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg<EVENTS_COMPARE_SPEC>`"]
111pub type EVENTS_COMPARE = crate::Reg<events_compare::EVENTS_COMPARE_SPEC>;
112#[doc = "Description collection: Compare event on CC\\[n\\]
113match"]
114pub mod events_compare;
115#[doc = "PUBLISH_COMPARE (rw) register accessor: an alias for `Reg<PUBLISH_COMPARE_SPEC>`"]
116pub type PUBLISH_COMPARE = crate::Reg<publish_compare::PUBLISH_COMPARE_SPEC>;
117#[doc = "Description collection: Publish configuration for event COMPARE\\[n\\]"]
118pub mod publish_compare;
119#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
120pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
121#[doc = "Shortcuts between local events and tasks"]
122pub mod shorts;
123#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
124pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
125#[doc = "Enable interrupt"]
126pub mod intenset;
127#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
128pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
129#[doc = "Disable interrupt"]
130pub mod intenclr;
131#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
132pub type MODE = crate::Reg<mode::MODE_SPEC>;
133#[doc = "Timer mode selection"]
134pub mod mode;
135#[doc = "BITMODE (rw) register accessor: an alias for `Reg<BITMODE_SPEC>`"]
136pub type BITMODE = crate::Reg<bitmode::BITMODE_SPEC>;
137#[doc = "Configure the number of bits used by the TIMER"]
138pub mod bitmode;
139#[doc = "PRESCALER (rw) register accessor: an alias for `Reg<PRESCALER_SPEC>`"]
140pub type PRESCALER = crate::Reg<prescaler::PRESCALER_SPEC>;
141#[doc = "Timer prescaler register"]
142pub mod prescaler;
143#[doc = "ONESHOTEN (rw) register accessor: an alias for `Reg<ONESHOTEN_SPEC>`"]
144pub type ONESHOTEN = crate::Reg<oneshoten::ONESHOTEN_SPEC>;
145#[doc = "Description collection: Enable one-shot operation for Capture/Compare channel n"]
146pub mod oneshoten;
147#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
148pub type CC = crate::Reg<cc::CC_SPEC>;
149#[doc = "Description collection: Capture/Compare register n"]
150pub mod cc;