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