1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 cr: Cr,
5 mr: Mr,
6 timr: Timr,
7 calr: Calr,
8 timalr: Timalr,
9 calalr: Calalr,
10 sr: Sr,
11 sccr: Sccr,
12 ier: Ier,
13 idr: Idr,
14 imr: Imr,
15 ver: Ver,
16 _reserved12: [u8; 0xb4],
17 wpmr: Wpmr,
18}
19impl RegisterBlock {
20 #[doc = "0x00 - Control Register"]
21 #[inline(always)]
22 pub const fn cr(&self) -> &Cr {
23 &self.cr
24 }
25 #[doc = "0x04 - Mode Register"]
26 #[inline(always)]
27 pub const fn mr(&self) -> &Mr {
28 &self.mr
29 }
30 #[doc = "0x08 - Time Register"]
31 #[inline(always)]
32 pub const fn timr(&self) -> &Timr {
33 &self.timr
34 }
35 #[doc = "0x0c - Calendar Register"]
36 #[inline(always)]
37 pub const fn calr(&self) -> &Calr {
38 &self.calr
39 }
40 #[doc = "0x10 - Time Alarm Register"]
41 #[inline(always)]
42 pub const fn timalr(&self) -> &Timalr {
43 &self.timalr
44 }
45 #[doc = "0x14 - Calendar Alarm Register"]
46 #[inline(always)]
47 pub const fn calalr(&self) -> &Calalr {
48 &self.calalr
49 }
50 #[doc = "0x18 - Status Register"]
51 #[inline(always)]
52 pub const fn sr(&self) -> &Sr {
53 &self.sr
54 }
55 #[doc = "0x1c - Status Clear Command Register"]
56 #[inline(always)]
57 pub const fn sccr(&self) -> &Sccr {
58 &self.sccr
59 }
60 #[doc = "0x20 - Interrupt Enable Register"]
61 #[inline(always)]
62 pub const fn ier(&self) -> &Ier {
63 &self.ier
64 }
65 #[doc = "0x24 - Interrupt Disable Register"]
66 #[inline(always)]
67 pub const fn idr(&self) -> &Idr {
68 &self.idr
69 }
70 #[doc = "0x28 - Interrupt Mask Register"]
71 #[inline(always)]
72 pub const fn imr(&self) -> &Imr {
73 &self.imr
74 }
75 #[doc = "0x2c - Valid Entry Register"]
76 #[inline(always)]
77 pub const fn ver(&self) -> &Ver {
78 &self.ver
79 }
80 #[doc = "0xe4 - Write Protect Mode Register"]
81 #[inline(always)]
82 pub const fn wpmr(&self) -> &Wpmr {
83 &self.wpmr
84 }
85}
86#[doc = "CR (rw) register accessor: Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cr::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 [`cr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`]
87module"]
88#[doc(alias = "CR")]
89pub type Cr = crate::Reg<cr::CrSpec>;
90#[doc = "Control Register"]
91pub mod cr;
92#[doc = "MR (rw) register accessor: Mode Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mr::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 [`mr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mr`]
93module"]
94#[doc(alias = "MR")]
95pub type Mr = crate::Reg<mr::MrSpec>;
96#[doc = "Mode Register"]
97pub mod mr;
98#[doc = "TIMR (rw) register accessor: Time Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timr::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 [`timr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timr`]
99module"]
100#[doc(alias = "TIMR")]
101pub type Timr = crate::Reg<timr::TimrSpec>;
102#[doc = "Time Register"]
103pub mod timr;
104#[doc = "CALR (rw) register accessor: Calendar Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`calr::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 [`calr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@calr`]
105module"]
106#[doc(alias = "CALR")]
107pub type Calr = crate::Reg<calr::CalrSpec>;
108#[doc = "Calendar Register"]
109pub mod calr;
110#[doc = "TIMALR (rw) register accessor: Time Alarm Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timalr::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 [`timalr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timalr`]
111module"]
112#[doc(alias = "TIMALR")]
113pub type Timalr = crate::Reg<timalr::TimalrSpec>;
114#[doc = "Time Alarm Register"]
115pub mod timalr;
116#[doc = "CALALR (rw) register accessor: Calendar Alarm Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`calalr::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 [`calalr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@calalr`]
117module"]
118#[doc(alias = "CALALR")]
119pub type Calalr = crate::Reg<calalr::CalalrSpec>;
120#[doc = "Calendar Alarm Register"]
121pub mod calalr;
122#[doc = "SR (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`]
123module"]
124#[doc(alias = "SR")]
125pub type Sr = crate::Reg<sr::SrSpec>;
126#[doc = "Status Register"]
127pub mod sr;
128#[doc = "SCCR (w) register accessor: Status Clear Command Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sccr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sccr`]
129module"]
130#[doc(alias = "SCCR")]
131pub type Sccr = crate::Reg<sccr::SccrSpec>;
132#[doc = "Status Clear Command Register"]
133pub mod sccr;
134#[doc = "IER (w) register accessor: Interrupt Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ier::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ier`]
135module"]
136#[doc(alias = "IER")]
137pub type Ier = crate::Reg<ier::IerSpec>;
138#[doc = "Interrupt Enable Register"]
139pub mod ier;
140#[doc = "IDR (w) register accessor: Interrupt Disable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`idr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idr`]
141module"]
142#[doc(alias = "IDR")]
143pub type Idr = crate::Reg<idr::IdrSpec>;
144#[doc = "Interrupt Disable Register"]
145pub mod idr;
146#[doc = "IMR (r) register accessor: Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imr`]
147module"]
148#[doc(alias = "IMR")]
149pub type Imr = crate::Reg<imr::ImrSpec>;
150#[doc = "Interrupt Mask Register"]
151pub mod imr;
152#[doc = "VER (r) register accessor: Valid Entry Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ver::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ver`]
153module"]
154#[doc(alias = "VER")]
155pub type Ver = crate::Reg<ver::VerSpec>;
156#[doc = "Valid Entry Register"]
157pub mod ver;
158#[doc = "WPMR (rw) register accessor: Write Protect Mode Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wpmr::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 [`wpmr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wpmr`]
159module"]
160#[doc(alias = "WPMR")]
161pub type Wpmr = crate::Reg<wpmr::WpmrSpec>;
162#[doc = "Write Protect Mode Register"]
163pub mod wpmr;