1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 cr: Cr,
5 mr: Mr,
6 _reserved2: [u8; 0x1c],
7 ier: Ier,
8 idr: Idr,
9 imr: Imr,
10 isr: Isr,
11 _reserved6: [u8; 0x60],
12 acr: Acr,
13 _reserved7: [u8; 0x4c],
14 wpmr: Wpmr,
15 wpsr: Wpsr,
16}
17impl RegisterBlock {
18 #[doc = "0x00 - Control Register"]
19 #[inline(always)]
20 pub const fn cr(&self) -> &Cr {
21 &self.cr
22 }
23 #[doc = "0x04 - Mode Register"]
24 #[inline(always)]
25 pub const fn mr(&self) -> &Mr {
26 &self.mr
27 }
28 #[doc = "0x24 - Interrupt Enable Register"]
29 #[inline(always)]
30 pub const fn ier(&self) -> &Ier {
31 &self.ier
32 }
33 #[doc = "0x28 - Interrupt Disable Register"]
34 #[inline(always)]
35 pub const fn idr(&self) -> &Idr {
36 &self.idr
37 }
38 #[doc = "0x2c - Interrupt Mask Register"]
39 #[inline(always)]
40 pub const fn imr(&self) -> &Imr {
41 &self.imr
42 }
43 #[doc = "0x30 - Interrupt Status Register"]
44 #[inline(always)]
45 pub const fn isr(&self) -> &Isr {
46 &self.isr
47 }
48 #[doc = "0x94 - Analog Control Register"]
49 #[inline(always)]
50 pub const fn acr(&self) -> &Acr {
51 &self.acr
52 }
53 #[doc = "0xe4 - Write Protect Mode Register"]
54 #[inline(always)]
55 pub const fn wpmr(&self) -> &Wpmr {
56 &self.wpmr
57 }
58 #[doc = "0xe8 - Write Protect Status Register"]
59 #[inline(always)]
60 pub const fn wpsr(&self) -> &Wpsr {
61 &self.wpsr
62 }
63}
64#[doc = "CR (w) register accessor: Control Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`]
65module"]
66#[doc(alias = "CR")]
67pub type Cr = crate::Reg<cr::CrSpec>;
68#[doc = "Control Register"]
69pub mod cr;
70#[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`]
71module"]
72#[doc(alias = "MR")]
73pub type Mr = crate::Reg<mr::MrSpec>;
74#[doc = "Mode Register"]
75pub mod mr;
76#[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`]
77module"]
78#[doc(alias = "IER")]
79pub type Ier = crate::Reg<ier::IerSpec>;
80#[doc = "Interrupt Enable Register"]
81pub mod ier;
82#[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`]
83module"]
84#[doc(alias = "IDR")]
85pub type Idr = crate::Reg<idr::IdrSpec>;
86#[doc = "Interrupt Disable Register"]
87pub mod idr;
88#[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`]
89module"]
90#[doc(alias = "IMR")]
91pub type Imr = crate::Reg<imr::ImrSpec>;
92#[doc = "Interrupt Mask Register"]
93pub mod imr;
94#[doc = "ISR (r) register accessor: Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`]
95module"]
96#[doc(alias = "ISR")]
97pub type Isr = crate::Reg<isr::IsrSpec>;
98#[doc = "Interrupt Status Register"]
99pub mod isr;
100#[doc = "ACR (rw) register accessor: Analog Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`acr::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 [`acr::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@acr`]
101module"]
102#[doc(alias = "ACR")]
103pub type Acr = crate::Reg<acr::AcrSpec>;
104#[doc = "Analog Control Register"]
105pub mod acr;
106#[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`]
107module"]
108#[doc(alias = "WPMR")]
109pub type Wpmr = crate::Reg<wpmr::WpmrSpec>;
110#[doc = "Write Protect Mode Register"]
111pub mod wpmr;
112#[doc = "WPSR (r) register accessor: Write Protect Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wpsr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wpsr`]
113module"]
114#[doc(alias = "WPSR")]
115pub type Wpsr = crate::Reg<wpsr::WpsrSpec>;
116#[doc = "Write Protect Status Register"]
117pub mod wpsr;