1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 clkdiv_m1: CLKDIV_M1,
5 setup_0: SETUP_0,
6 setup_1: SETUP_1,
7 ctrl: CTRL,
8 irq_setup_0: IRQ_SETUP_0,
9 irq_setup_1: IRQ_SETUP_1,
10 rtc_1: RTC_1,
11 rtc_0: RTC_0,
12 intr: INTR,
13 inte: INTE,
14 intf: INTF,
15 ints: INTS,
16}
17impl RegisterBlock {
18#[doc = "0x00 - Divider minus 1 for the 1 second counter. Safe to change the value when RTC is not enabled."]
19 #[inline(always)]
20pub const fn clkdiv_m1(&self) -> &CLKDIV_M1 {
21&self.clkdiv_m1
22 }
23#[doc = "0x04 - RTC setup register 0"]
24 #[inline(always)]
25pub const fn setup_0(&self) -> &SETUP_0 {
26&self.setup_0
27 }
28#[doc = "0x08 - RTC setup register 1"]
29 #[inline(always)]
30pub const fn setup_1(&self) -> &SETUP_1 {
31&self.setup_1
32 }
33#[doc = "0x0c - RTC Control and status"]
34 #[inline(always)]
35pub const fn ctrl(&self) -> &CTRL {
36&self.ctrl
37 }
38#[doc = "0x10 - Interrupt setup register 0"]
39 #[inline(always)]
40pub const fn irq_setup_0(&self) -> &IRQ_SETUP_0 {
41&self.irq_setup_0
42 }
43#[doc = "0x14 - Interrupt setup register 1"]
44 #[inline(always)]
45pub const fn irq_setup_1(&self) -> &IRQ_SETUP_1 {
46&self.irq_setup_1
47 }
48#[doc = "0x18 - RTC register 1."]
49 #[inline(always)]
50pub const fn rtc_1(&self) -> &RTC_1 {
51&self.rtc_1
52 }
53#[doc = "0x1c - RTC register 0
54 Read this before RTC 1!"]
55 #[inline(always)]
56pub const fn rtc_0(&self) -> &RTC_0 {
57&self.rtc_0
58 }
59#[doc = "0x20 - Raw Interrupts"]
60 #[inline(always)]
61pub const fn intr(&self) -> &INTR {
62&self.intr
63 }
64#[doc = "0x24 - Interrupt Enable"]
65 #[inline(always)]
66pub const fn inte(&self) -> &INTE {
67&self.inte
68 }
69#[doc = "0x28 - Interrupt Force"]
70 #[inline(always)]
71pub const fn intf(&self) -> &INTF {
72&self.intf
73 }
74#[doc = "0x2c - Interrupt status after masking & forcing"]
75 #[inline(always)]
76pub const fn ints(&self) -> &INTS {
77&self.ints
78 }
79}
80#[doc = "CLKDIV_M1 (rw) register accessor: Divider minus 1 for the 1 second counter. Safe to change the value when RTC is not enabled.
8182You can [`read`](crate::generic::Reg::read) this register and get [`clkdiv_m1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv_m1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
8384For information about available fields see [`mod@clkdiv_m1`]
85module"]
86pub type CLKDIV_M1 = crate::Reg<clkdiv_m1::CLKDIV_M1_SPEC>;
87#[doc = "Divider minus 1 for the 1 second counter. Safe to change the value when RTC is not enabled."]
88pub mod clkdiv_m1;
89#[doc = "SETUP_0 (rw) register accessor: RTC setup register 0
9091You can [`read`](crate::generic::Reg::read) this register and get [`setup_0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`setup_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
9293For information about available fields see [`mod@setup_0`]
94module"]
95pub type SETUP_0 = crate::Reg<setup_0::SETUP_0_SPEC>;
96#[doc = "RTC setup register 0"]
97pub mod setup_0;
98#[doc = "SETUP_1 (rw) register accessor: RTC setup register 1
99100You can [`read`](crate::generic::Reg::read) this register and get [`setup_1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`setup_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
101102For information about available fields see [`mod@setup_1`]
103module"]
104pub type SETUP_1 = crate::Reg<setup_1::SETUP_1_SPEC>;
105#[doc = "RTC setup register 1"]
106pub mod setup_1;
107#[doc = "CTRL (rw) register accessor: RTC Control and status
108109You can [`read`](crate::generic::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
110111For information about available fields see [`mod@ctrl`]
112module"]
113pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
114#[doc = "RTC Control and status"]
115pub mod ctrl;
116#[doc = "IRQ_SETUP_0 (rw) register accessor: Interrupt setup register 0
117118You can [`read`](crate::generic::Reg::read) this register and get [`irq_setup_0::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irq_setup_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
119120For information about available fields see [`mod@irq_setup_0`]
121module"]
122pub type IRQ_SETUP_0 = crate::Reg<irq_setup_0::IRQ_SETUP_0_SPEC>;
123#[doc = "Interrupt setup register 0"]
124pub mod irq_setup_0;
125#[doc = "IRQ_SETUP_1 (rw) register accessor: Interrupt setup register 1
126127You can [`read`](crate::generic::Reg::read) this register and get [`irq_setup_1::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irq_setup_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
128129For information about available fields see [`mod@irq_setup_1`]
130module"]
131pub type IRQ_SETUP_1 = crate::Reg<irq_setup_1::IRQ_SETUP_1_SPEC>;
132#[doc = "Interrupt setup register 1"]
133pub mod irq_setup_1;
134#[doc = "RTC_1 (r) register accessor: RTC register 1.
135136You can [`read`](crate::generic::Reg::read) this register and get [`rtc_1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
137138For information about available fields see [`mod@rtc_1`]
139module"]
140pub type RTC_1 = crate::Reg<rtc_1::RTC_1_SPEC>;
141#[doc = "RTC register 1."]
142pub mod rtc_1;
143#[doc = "RTC_0 (r) register accessor: RTC register 0
144 Read this before RTC 1!
145146You can [`read`](crate::generic::Reg::read) this register and get [`rtc_0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
147148For information about available fields see [`mod@rtc_0`]
149module"]
150pub type RTC_0 = crate::Reg<rtc_0::RTC_0_SPEC>;
151#[doc = "RTC register 0
152 Read this before RTC 1!"]
153pub mod rtc_0;
154#[doc = "INTR (r) register accessor: Raw Interrupts
155156You can [`read`](crate::generic::Reg::read) this register and get [`intr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
157158For information about available fields see [`mod@intr`]
159module"]
160pub type INTR = crate::Reg<intr::INTR_SPEC>;
161#[doc = "Raw Interrupts"]
162pub mod intr;
163#[doc = "INTE (rw) register accessor: Interrupt Enable
164165You can [`read`](crate::generic::Reg::read) this register and get [`inte::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`inte::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
166167For information about available fields see [`mod@inte`]
168module"]
169pub type INTE = crate::Reg<inte::INTE_SPEC>;
170#[doc = "Interrupt Enable"]
171pub mod inte;
172#[doc = "INTF (rw) register accessor: Interrupt Force
173174You can [`read`](crate::generic::Reg::read) this register and get [`intf::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`intf::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
175176For information about available fields see [`mod@intf`]
177module"]
178pub type INTF = crate::Reg<intf::INTF_SPEC>;
179#[doc = "Interrupt Force"]
180pub mod intf;
181#[doc = "INTS (r) register accessor: Interrupt status after masking & forcing
182183You can [`read`](crate::generic::Reg::read) this register and get [`ints::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
184185For information about available fields see [`mod@ints`]
186module"]
187pub type INTS = crate::Reg<ints::INTS_SPEC>;
188#[doc = "Interrupt status after masking & forcing"]
189pub mod ints;