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