1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 cr: Cr,
5 mr: Mr,
6 cdr: Cdr,
7 ier: Ier,
8 idr: Idr,
9 imr: Imr,
10 isr: Isr,
11 _reserved7: [u8; 0xc8],
12 wpmr: Wpmr,
13 wpsr: Wpsr,
14 _reserved9: [u8; 0x1c],
15 tpr: Tpr,
16 tcr: Tcr,
17 _reserved11: [u8; 0x08],
18 tnpr: Tnpr,
19 tncr: Tncr,
20 ptcr: Ptcr,
21 ptsr: Ptsr,
22}
23impl RegisterBlock {
24 #[doc = "0x00 - Control Register"]
25 #[inline(always)]
26 pub const fn cr(&self) -> &Cr {
27 &self.cr
28 }
29 #[doc = "0x04 - Mode Register"]
30 #[inline(always)]
31 pub const fn mr(&self) -> &Mr {
32 &self.mr
33 }
34 #[doc = "0x08 - Conversion Data Register"]
35 #[inline(always)]
36 pub const fn cdr(&self) -> &Cdr {
37 &self.cdr
38 }
39 #[doc = "0x0c - Interrupt Enable Register"]
40 #[inline(always)]
41 pub const fn ier(&self) -> &Ier {
42 &self.ier
43 }
44 #[doc = "0x10 - Interrupt Disable Register"]
45 #[inline(always)]
46 pub const fn idr(&self) -> &Idr {
47 &self.idr
48 }
49 #[doc = "0x14 - Interrupt Mask Register"]
50 #[inline(always)]
51 pub const fn imr(&self) -> &Imr {
52 &self.imr
53 }
54 #[doc = "0x18 - Interrupt Status Register"]
55 #[inline(always)]
56 pub const fn isr(&self) -> &Isr {
57 &self.isr
58 }
59 #[doc = "0xe4 - Write Protect Mode Register"]
60 #[inline(always)]
61 pub const fn wpmr(&self) -> &Wpmr {
62 &self.wpmr
63 }
64 #[doc = "0xe8 - Write Protect Status Register"]
65 #[inline(always)]
66 pub const fn wpsr(&self) -> &Wpsr {
67 &self.wpsr
68 }
69 #[doc = "0x108 - Transmit Pointer Register"]
70 #[inline(always)]
71 pub const fn tpr(&self) -> &Tpr {
72 &self.tpr
73 }
74 #[doc = "0x10c - Transmit Counter Register"]
75 #[inline(always)]
76 pub const fn tcr(&self) -> &Tcr {
77 &self.tcr
78 }
79 #[doc = "0x118 - Transmit Next Pointer Register"]
80 #[inline(always)]
81 pub const fn tnpr(&self) -> &Tnpr {
82 &self.tnpr
83 }
84 #[doc = "0x11c - Transmit Next Counter Register"]
85 #[inline(always)]
86 pub const fn tncr(&self) -> &Tncr {
87 &self.tncr
88 }
89 #[doc = "0x120 - Transfer Control Register"]
90 #[inline(always)]
91 pub const fn ptcr(&self) -> &Ptcr {
92 &self.ptcr
93 }
94 #[doc = "0x124 - Transfer Status Register"]
95 #[inline(always)]
96 pub const fn ptsr(&self) -> &Ptsr {
97 &self.ptsr
98 }
99}
100#[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`]
101module"]
102#[doc(alias = "CR")]
103pub type Cr = crate::Reg<cr::CrSpec>;
104#[doc = "Control Register"]
105pub mod cr;
106#[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`]
107module"]
108#[doc(alias = "MR")]
109pub type Mr = crate::Reg<mr::MrSpec>;
110#[doc = "Mode Register"]
111pub mod mr;
112#[doc = "CDR (w) register accessor: Conversion Data Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cdr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cdr`]
113module"]
114#[doc(alias = "CDR")]
115pub type Cdr = crate::Reg<cdr::CdrSpec>;
116#[doc = "Conversion Data Register"]
117pub mod cdr;
118#[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`]
119module"]
120#[doc(alias = "IER")]
121pub type Ier = crate::Reg<ier::IerSpec>;
122#[doc = "Interrupt Enable Register"]
123pub mod ier;
124#[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`]
125module"]
126#[doc(alias = "IDR")]
127pub type Idr = crate::Reg<idr::IdrSpec>;
128#[doc = "Interrupt Disable Register"]
129pub mod idr;
130#[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`]
131module"]
132#[doc(alias = "IMR")]
133pub type Imr = crate::Reg<imr::ImrSpec>;
134#[doc = "Interrupt Mask Register"]
135pub mod imr;
136#[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`]
137module"]
138#[doc(alias = "ISR")]
139pub type Isr = crate::Reg<isr::IsrSpec>;
140#[doc = "Interrupt Status Register"]
141pub mod isr;
142#[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`]
143module"]
144#[doc(alias = "WPMR")]
145pub type Wpmr = crate::Reg<wpmr::WpmrSpec>;
146#[doc = "Write Protect Mode Register"]
147pub mod wpmr;
148#[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`]
149module"]
150#[doc(alias = "WPSR")]
151pub type Wpsr = crate::Reg<wpsr::WpsrSpec>;
152#[doc = "Write Protect Status Register"]
153pub mod wpsr;
154#[doc = "TPR (rw) register accessor: Transmit Pointer Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tpr::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 [`tpr::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@tpr`]
155module"]
156#[doc(alias = "TPR")]
157pub type Tpr = crate::Reg<tpr::TprSpec>;
158#[doc = "Transmit Pointer Register"]
159pub mod tpr;
160#[doc = "TCR (rw) register accessor: Transmit Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tcr::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 [`tcr::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@tcr`]
161module"]
162#[doc(alias = "TCR")]
163pub type Tcr = crate::Reg<tcr::TcrSpec>;
164#[doc = "Transmit Counter Register"]
165pub mod tcr;
166#[doc = "TNPR (rw) register accessor: Transmit Next Pointer Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tnpr::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 [`tnpr::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@tnpr`]
167module"]
168#[doc(alias = "TNPR")]
169pub type Tnpr = crate::Reg<tnpr::TnprSpec>;
170#[doc = "Transmit Next Pointer Register"]
171pub mod tnpr;
172#[doc = "TNCR (rw) register accessor: Transmit Next Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tncr::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 [`tncr::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@tncr`]
173module"]
174#[doc(alias = "TNCR")]
175pub type Tncr = crate::Reg<tncr::TncrSpec>;
176#[doc = "Transmit Next Counter Register"]
177pub mod tncr;
178#[doc = "PTCR (w) register accessor: Transfer Control Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ptcr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptcr`]
179module"]
180#[doc(alias = "PTCR")]
181pub type Ptcr = crate::Reg<ptcr::PtcrSpec>;
182#[doc = "Transfer Control Register"]
183pub mod ptcr;
184#[doc = "PTSR (r) register accessor: Transfer Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ptsr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptsr`]
185module"]
186#[doc(alias = "PTSR")]
187pub type Ptsr = crate::Reg<ptsr::PtsrSpec>;
188#[doc = "Transfer Status Register"]
189pub mod ptsr;