nrf5340_net_pac/
rtc0_ns.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Start RTC counter"]
5    pub tasks_start: TASKS_START,
6    #[doc = "0x04 - Stop RTC counter"]
7    pub tasks_stop: TASKS_STOP,
8    #[doc = "0x08 - Clear RTC counter"]
9    pub tasks_clear: TASKS_CLEAR,
10    #[doc = "0x0c - Set counter to 0xFFFFF0"]
11    pub tasks_trigovrflw: TASKS_TRIGOVRFLW,
12    _reserved4: [u8; 0x30],
13    #[doc = "0x40..0x50 - Description collection: Capture RTC counter to CC\\[n\\]
14register"]
15    pub tasks_capture: [TASKS_CAPTURE; 4],
16    _reserved5: [u8; 0x30],
17    #[doc = "0x80 - Subscribe configuration for task START"]
18    pub subscribe_start: SUBSCRIBE_START,
19    #[doc = "0x84 - Subscribe configuration for task STOP"]
20    pub subscribe_stop: SUBSCRIBE_STOP,
21    #[doc = "0x88 - Subscribe configuration for task CLEAR"]
22    pub subscribe_clear: SUBSCRIBE_CLEAR,
23    #[doc = "0x8c - Subscribe configuration for task TRIGOVRFLW"]
24    pub subscribe_trigovrflw: SUBSCRIBE_TRIGOVRFLW,
25    _reserved9: [u8; 0x30],
26    #[doc = "0xc0..0xd0 - Description collection: Subscribe configuration for task CAPTURE\\[n\\]"]
27    pub subscribe_capture: [SUBSCRIBE_CAPTURE; 4],
28    _reserved10: [u8; 0x30],
29    #[doc = "0x100 - Event on counter increment"]
30    pub events_tick: EVENTS_TICK,
31    #[doc = "0x104 - Event on counter overflow"]
32    pub events_ovrflw: EVENTS_OVRFLW,
33    _reserved12: [u8; 0x38],
34    #[doc = "0x140..0x150 - Description collection: Compare event on CC\\[n\\]
35match"]
36    pub events_compare: [EVENTS_COMPARE; 4],
37    _reserved13: [u8; 0x30],
38    #[doc = "0x180 - Publish configuration for event TICK"]
39    pub publish_tick: PUBLISH_TICK,
40    #[doc = "0x184 - Publish configuration for event OVRFLW"]
41    pub publish_ovrflw: PUBLISH_OVRFLW,
42    _reserved15: [u8; 0x38],
43    #[doc = "0x1c0..0x1d0 - Description collection: Publish configuration for event COMPARE\\[n\\]"]
44    pub publish_compare: [PUBLISH_COMPARE; 4],
45    _reserved16: [u8; 0x30],
46    #[doc = "0x200 - Shortcuts between local events and tasks"]
47    pub shorts: SHORTS,
48    _reserved17: [u8; 0x0100],
49    #[doc = "0x304 - Enable interrupt"]
50    pub intenset: INTENSET,
51    #[doc = "0x308 - Disable interrupt"]
52    pub intenclr: INTENCLR,
53    _reserved19: [u8; 0x34],
54    #[doc = "0x340 - Enable or disable event routing"]
55    pub evten: EVTEN,
56    #[doc = "0x344 - Enable event routing"]
57    pub evtenset: EVTENSET,
58    #[doc = "0x348 - Disable event routing"]
59    pub evtenclr: EVTENCLR,
60    _reserved22: [u8; 0x01b8],
61    #[doc = "0x504 - Current counter value"]
62    pub counter: COUNTER,
63    #[doc = "0x508 - 12-bit prescaler for counter frequency (32768 / (PRESCALER + 1)). Must be written when RTC is stopped."]
64    pub prescaler: PRESCALER,
65    _reserved24: [u8; 0x34],
66    #[doc = "0x540..0x550 - Description collection: Compare register n"]
67    pub cc: [CC; 4],
68}
69#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
70pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
71#[doc = "Start RTC counter"]
72pub mod tasks_start;
73#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
74pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
75#[doc = "Stop RTC counter"]
76pub mod tasks_stop;
77#[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg<TASKS_CLEAR_SPEC>`"]
78pub type TASKS_CLEAR = crate::Reg<tasks_clear::TASKS_CLEAR_SPEC>;
79#[doc = "Clear RTC counter"]
80pub mod tasks_clear;
81#[doc = "TASKS_TRIGOVRFLW (w) register accessor: an alias for `Reg<TASKS_TRIGOVRFLW_SPEC>`"]
82pub type TASKS_TRIGOVRFLW = crate::Reg<tasks_trigovrflw::TASKS_TRIGOVRFLW_SPEC>;
83#[doc = "Set counter to 0xFFFFF0"]
84pub mod tasks_trigovrflw;
85#[doc = "TASKS_CAPTURE (w) register accessor: an alias for `Reg<TASKS_CAPTURE_SPEC>`"]
86pub type TASKS_CAPTURE = crate::Reg<tasks_capture::TASKS_CAPTURE_SPEC>;
87#[doc = "Description collection: Capture RTC counter to CC\\[n\\]
88register"]
89pub mod tasks_capture;
90#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
91pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
92#[doc = "Subscribe configuration for task START"]
93pub mod subscribe_start;
94#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
95pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
96#[doc = "Subscribe configuration for task STOP"]
97pub mod subscribe_stop;
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_TRIGOVRFLW (rw) register accessor: an alias for `Reg<SUBSCRIBE_TRIGOVRFLW_SPEC>`"]
103pub type SUBSCRIBE_TRIGOVRFLW = crate::Reg<subscribe_trigovrflw::SUBSCRIBE_TRIGOVRFLW_SPEC>;
104#[doc = "Subscribe configuration for task TRIGOVRFLW"]
105pub mod subscribe_trigovrflw;
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_TICK (rw) register accessor: an alias for `Reg<EVENTS_TICK_SPEC>`"]
111pub type EVENTS_TICK = crate::Reg<events_tick::EVENTS_TICK_SPEC>;
112#[doc = "Event on counter increment"]
113pub mod events_tick;
114#[doc = "EVENTS_OVRFLW (rw) register accessor: an alias for `Reg<EVENTS_OVRFLW_SPEC>`"]
115pub type EVENTS_OVRFLW = crate::Reg<events_ovrflw::EVENTS_OVRFLW_SPEC>;
116#[doc = "Event on counter overflow"]
117pub mod events_ovrflw;
118#[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg<EVENTS_COMPARE_SPEC>`"]
119pub type EVENTS_COMPARE = crate::Reg<events_compare::EVENTS_COMPARE_SPEC>;
120#[doc = "Description collection: Compare event on CC\\[n\\]
121match"]
122pub mod events_compare;
123#[doc = "PUBLISH_TICK (rw) register accessor: an alias for `Reg<PUBLISH_TICK_SPEC>`"]
124pub type PUBLISH_TICK = crate::Reg<publish_tick::PUBLISH_TICK_SPEC>;
125#[doc = "Publish configuration for event TICK"]
126pub mod publish_tick;
127#[doc = "PUBLISH_OVRFLW (rw) register accessor: an alias for `Reg<PUBLISH_OVRFLW_SPEC>`"]
128pub type PUBLISH_OVRFLW = crate::Reg<publish_ovrflw::PUBLISH_OVRFLW_SPEC>;
129#[doc = "Publish configuration for event OVRFLW"]
130pub mod publish_ovrflw;
131#[doc = "PUBLISH_COMPARE (rw) register accessor: an alias for `Reg<PUBLISH_COMPARE_SPEC>`"]
132pub type PUBLISH_COMPARE = crate::Reg<publish_compare::PUBLISH_COMPARE_SPEC>;
133#[doc = "Description collection: Publish configuration for event COMPARE\\[n\\]"]
134pub mod publish_compare;
135#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
136pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
137#[doc = "Shortcuts between local events and tasks"]
138pub mod shorts;
139#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
140pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
141#[doc = "Enable interrupt"]
142pub mod intenset;
143#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
144pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
145#[doc = "Disable interrupt"]
146pub mod intenclr;
147#[doc = "EVTEN (rw) register accessor: an alias for `Reg<EVTEN_SPEC>`"]
148pub type EVTEN = crate::Reg<evten::EVTEN_SPEC>;
149#[doc = "Enable or disable event routing"]
150pub mod evten;
151#[doc = "EVTENSET (rw) register accessor: an alias for `Reg<EVTENSET_SPEC>`"]
152pub type EVTENSET = crate::Reg<evtenset::EVTENSET_SPEC>;
153#[doc = "Enable event routing"]
154pub mod evtenset;
155#[doc = "EVTENCLR (rw) register accessor: an alias for `Reg<EVTENCLR_SPEC>`"]
156pub type EVTENCLR = crate::Reg<evtenclr::EVTENCLR_SPEC>;
157#[doc = "Disable event routing"]
158pub mod evtenclr;
159#[doc = "COUNTER (r) register accessor: an alias for `Reg<COUNTER_SPEC>`"]
160pub type COUNTER = crate::Reg<counter::COUNTER_SPEC>;
161#[doc = "Current counter value"]
162pub mod counter;
163#[doc = "PRESCALER (rw) register accessor: an alias for `Reg<PRESCALER_SPEC>`"]
164pub type PRESCALER = crate::Reg<prescaler::PRESCALER_SPEC>;
165#[doc = "12-bit prescaler for counter frequency (32768 / (PRESCALER + 1)). Must be written when RTC is stopped."]
166pub mod prescaler;
167#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
168pub type CC = crate::Reg<cc::CC_SPEC>;
169#[doc = "Description collection: Compare register n"]
170pub mod cc;