1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control"]
5 pub ctrl: CTRL,
6 #[doc = "0x04 - Timing Control"]
7 pub timctrl: TIMCTRL,
8 #[doc = "0x08 - Command"]
9 pub cmd: CMD,
10 #[doc = "0x0c - Status"]
11 pub status: STATUS,
12 #[doc = "0x10 - PRS Select"]
13 pub prssel: PRSSEL,
14 #[doc = "0x14 - Output Data"]
15 pub data: DATA,
16 #[doc = "0x18 - Scan Channel Mask 0"]
17 pub scanmask0: SCANMASK0,
18 #[doc = "0x1c - Scan Input Selection 0"]
19 pub scaninputsel0: SCANINPUTSEL0,
20 #[doc = "0x20 - Scan Channel Mask 1"]
21 pub scanmask1: SCANMASK1,
22 #[doc = "0x24 - Scan Input Selection 1"]
23 pub scaninputsel1: SCANINPUTSEL1,
24 #[doc = "0x28 - APORT Request Status"]
25 pub aportreq: APORTREQ,
26 #[doc = "0x2c - APORT Request Conflict"]
27 pub aportconflict: APORTCONFLICT,
28 #[doc = "0x30 - Comparator Threshold"]
29 pub cmpthr: CMPTHR,
30 #[doc = "0x34 - Exponential Moving Average"]
31 pub ema: EMA,
32 #[doc = "0x38 - Exponential Moving Average Control"]
33 pub emactrl: EMACTRL,
34 #[doc = "0x3c - Single Conversion Control"]
35 pub singlectrl: SINGLECTRL,
36 #[doc = "0x40 - Delta Modulation Baseline"]
37 pub dmbaseline: DMBASELINE,
38 #[doc = "0x44 - Delta Modulation Configuration"]
39 pub dmcfg: DMCFG,
40 #[doc = "0x48 - Analog Control"]
41 pub anactrl: ANACTRL,
42 _reserved19: [u8; 8usize],
43 #[doc = "0x54 - Interrupt Flag"]
44 pub if_: IF,
45 #[doc = "0x58 - Interrupt Flag Set"]
46 pub ifs: IFS,
47 #[doc = "0x5c - Interrupt Flag Clear"]
48 pub ifc: IFC,
49 #[doc = "0x60 - Interrupt Enable"]
50 pub ien: IEN,
51}
52#[doc = "Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctrl](ctrl) module"]
53pub type CTRL = crate::Reg<u32, _CTRL>;
54#[allow(missing_docs)]
55#[doc(hidden)]
56pub struct _CTRL;
57#[doc = "`read()` method returns [ctrl::R](ctrl::R) reader structure"]
58impl crate::Readable for CTRL {}
59#[doc = "`write(|w| ..)` method takes [ctrl::W](ctrl::W) writer structure"]
60impl crate::Writable for CTRL {}
61#[doc = "Control"]
62pub mod ctrl;
63#[doc = "Timing Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [timctrl](timctrl) module"]
64pub type TIMCTRL = crate::Reg<u32, _TIMCTRL>;
65#[allow(missing_docs)]
66#[doc(hidden)]
67pub struct _TIMCTRL;
68#[doc = "`read()` method returns [timctrl::R](timctrl::R) reader structure"]
69impl crate::Readable for TIMCTRL {}
70#[doc = "`write(|w| ..)` method takes [timctrl::W](timctrl::W) writer structure"]
71impl crate::Writable for TIMCTRL {}
72#[doc = "Timing Control"]
73pub mod timctrl;
74#[doc = "Command\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cmd](cmd) module"]
75pub type CMD = crate::Reg<u32, _CMD>;
76#[allow(missing_docs)]
77#[doc(hidden)]
78pub struct _CMD;
79#[doc = "`write(|w| ..)` method takes [cmd::W](cmd::W) writer structure"]
80impl crate::Writable for CMD {}
81#[doc = "Command"]
82pub mod cmd;
83#[doc = "Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [status](status) module"]
84pub type STATUS = crate::Reg<u32, _STATUS>;
85#[allow(missing_docs)]
86#[doc(hidden)]
87pub struct _STATUS;
88#[doc = "`read()` method returns [status::R](status::R) reader structure"]
89impl crate::Readable for STATUS {}
90#[doc = "Status"]
91pub mod status;
92#[doc = "PRS Select\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [prssel](prssel) module"]
93pub type PRSSEL = crate::Reg<u32, _PRSSEL>;
94#[allow(missing_docs)]
95#[doc(hidden)]
96pub struct _PRSSEL;
97#[doc = "`read()` method returns [prssel::R](prssel::R) reader structure"]
98impl crate::Readable for PRSSEL {}
99#[doc = "`write(|w| ..)` method takes [prssel::W](prssel::W) writer structure"]
100impl crate::Writable for PRSSEL {}
101#[doc = "PRS Select"]
102pub mod prssel;
103#[doc = "Output Data\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [data](data) module"]
104pub type DATA = crate::Reg<u32, _DATA>;
105#[allow(missing_docs)]
106#[doc(hidden)]
107pub struct _DATA;
108#[doc = "`read()` method returns [data::R](data::R) reader structure"]
109impl crate::Readable for DATA {}
110#[doc = "`write(|w| ..)` method takes [data::W](data::W) writer structure"]
111impl crate::Writable for DATA {}
112#[doc = "Output Data"]
113pub mod data;
114#[doc = "Scan Channel Mask 0\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [scanmask0](scanmask0) module"]
115pub type SCANMASK0 = crate::Reg<u32, _SCANMASK0>;
116#[allow(missing_docs)]
117#[doc(hidden)]
118pub struct _SCANMASK0;
119#[doc = "`read()` method returns [scanmask0::R](scanmask0::R) reader structure"]
120impl crate::Readable for SCANMASK0 {}
121#[doc = "`write(|w| ..)` method takes [scanmask0::W](scanmask0::W) writer structure"]
122impl crate::Writable for SCANMASK0 {}
123#[doc = "Scan Channel Mask 0"]
124pub mod scanmask0;
125#[doc = "Scan Input Selection 0\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [scaninputsel0](scaninputsel0) module"]
126pub type SCANINPUTSEL0 = crate::Reg<u32, _SCANINPUTSEL0>;
127#[allow(missing_docs)]
128#[doc(hidden)]
129pub struct _SCANINPUTSEL0;
130#[doc = "`read()` method returns [scaninputsel0::R](scaninputsel0::R) reader structure"]
131impl crate::Readable for SCANINPUTSEL0 {}
132#[doc = "`write(|w| ..)` method takes [scaninputsel0::W](scaninputsel0::W) writer structure"]
133impl crate::Writable for SCANINPUTSEL0 {}
134#[doc = "Scan Input Selection 0"]
135pub mod scaninputsel0;
136#[doc = "Scan Channel Mask 1\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [scanmask1](scanmask1) module"]
137pub type SCANMASK1 = crate::Reg<u32, _SCANMASK1>;
138#[allow(missing_docs)]
139#[doc(hidden)]
140pub struct _SCANMASK1;
141#[doc = "`read()` method returns [scanmask1::R](scanmask1::R) reader structure"]
142impl crate::Readable for SCANMASK1 {}
143#[doc = "`write(|w| ..)` method takes [scanmask1::W](scanmask1::W) writer structure"]
144impl crate::Writable for SCANMASK1 {}
145#[doc = "Scan Channel Mask 1"]
146pub mod scanmask1;
147#[doc = "Scan Input Selection 1\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [scaninputsel1](scaninputsel1) module"]
148pub type SCANINPUTSEL1 = crate::Reg<u32, _SCANINPUTSEL1>;
149#[allow(missing_docs)]
150#[doc(hidden)]
151pub struct _SCANINPUTSEL1;
152#[doc = "`read()` method returns [scaninputsel1::R](scaninputsel1::R) reader structure"]
153impl crate::Readable for SCANINPUTSEL1 {}
154#[doc = "`write(|w| ..)` method takes [scaninputsel1::W](scaninputsel1::W) writer structure"]
155impl crate::Writable for SCANINPUTSEL1 {}
156#[doc = "Scan Input Selection 1"]
157pub mod scaninputsel1;
158#[doc = "APORT Request Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [aportreq](aportreq) module"]
159pub type APORTREQ = crate::Reg<u32, _APORTREQ>;
160#[allow(missing_docs)]
161#[doc(hidden)]
162pub struct _APORTREQ;
163#[doc = "`read()` method returns [aportreq::R](aportreq::R) reader structure"]
164impl crate::Readable for APORTREQ {}
165#[doc = "APORT Request Status"]
166pub mod aportreq;
167#[doc = "APORT Request Conflict\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [aportconflict](aportconflict) module"]
168pub type APORTCONFLICT = crate::Reg<u32, _APORTCONFLICT>;
169#[allow(missing_docs)]
170#[doc(hidden)]
171pub struct _APORTCONFLICT;
172#[doc = "`read()` method returns [aportconflict::R](aportconflict::R) reader structure"]
173impl crate::Readable for APORTCONFLICT {}
174#[doc = "APORT Request Conflict"]
175pub mod aportconflict;
176#[doc = "Comparator Threshold\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cmpthr](cmpthr) module"]
177pub type CMPTHR = crate::Reg<u32, _CMPTHR>;
178#[allow(missing_docs)]
179#[doc(hidden)]
180pub struct _CMPTHR;
181#[doc = "`read()` method returns [cmpthr::R](cmpthr::R) reader structure"]
182impl crate::Readable for CMPTHR {}
183#[doc = "`write(|w| ..)` method takes [cmpthr::W](cmpthr::W) writer structure"]
184impl crate::Writable for CMPTHR {}
185#[doc = "Comparator Threshold"]
186pub mod cmpthr;
187#[doc = "Exponential Moving Average\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ema](ema) module"]
188pub type EMA = crate::Reg<u32, _EMA>;
189#[allow(missing_docs)]
190#[doc(hidden)]
191pub struct _EMA;
192#[doc = "`read()` method returns [ema::R](ema::R) reader structure"]
193impl crate::Readable for EMA {}
194#[doc = "`write(|w| ..)` method takes [ema::W](ema::W) writer structure"]
195impl crate::Writable for EMA {}
196#[doc = "Exponential Moving Average"]
197pub mod ema;
198#[doc = "Exponential Moving Average Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [emactrl](emactrl) module"]
199pub type EMACTRL = crate::Reg<u32, _EMACTRL>;
200#[allow(missing_docs)]
201#[doc(hidden)]
202pub struct _EMACTRL;
203#[doc = "`read()` method returns [emactrl::R](emactrl::R) reader structure"]
204impl crate::Readable for EMACTRL {}
205#[doc = "`write(|w| ..)` method takes [emactrl::W](emactrl::W) writer structure"]
206impl crate::Writable for EMACTRL {}
207#[doc = "Exponential Moving Average Control"]
208pub mod emactrl;
209#[doc = "Single Conversion Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [singlectrl](singlectrl) module"]
210pub type SINGLECTRL = crate::Reg<u32, _SINGLECTRL>;
211#[allow(missing_docs)]
212#[doc(hidden)]
213pub struct _SINGLECTRL;
214#[doc = "`read()` method returns [singlectrl::R](singlectrl::R) reader structure"]
215impl crate::Readable for SINGLECTRL {}
216#[doc = "`write(|w| ..)` method takes [singlectrl::W](singlectrl::W) writer structure"]
217impl crate::Writable for SINGLECTRL {}
218#[doc = "Single Conversion Control"]
219pub mod singlectrl;
220#[doc = "Delta Modulation Baseline\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dmbaseline](dmbaseline) module"]
221pub type DMBASELINE = crate::Reg<u32, _DMBASELINE>;
222#[allow(missing_docs)]
223#[doc(hidden)]
224pub struct _DMBASELINE;
225#[doc = "`read()` method returns [dmbaseline::R](dmbaseline::R) reader structure"]
226impl crate::Readable for DMBASELINE {}
227#[doc = "`write(|w| ..)` method takes [dmbaseline::W](dmbaseline::W) writer structure"]
228impl crate::Writable for DMBASELINE {}
229#[doc = "Delta Modulation Baseline"]
230pub mod dmbaseline;
231#[doc = "Delta Modulation Configuration\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dmcfg](dmcfg) module"]
232pub type DMCFG = crate::Reg<u32, _DMCFG>;
233#[allow(missing_docs)]
234#[doc(hidden)]
235pub struct _DMCFG;
236#[doc = "`read()` method returns [dmcfg::R](dmcfg::R) reader structure"]
237impl crate::Readable for DMCFG {}
238#[doc = "`write(|w| ..)` method takes [dmcfg::W](dmcfg::W) writer structure"]
239impl crate::Writable for DMCFG {}
240#[doc = "Delta Modulation Configuration"]
241pub mod dmcfg;
242#[doc = "Analog Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [anactrl](anactrl) module"]
243pub type ANACTRL = crate::Reg<u32, _ANACTRL>;
244#[allow(missing_docs)]
245#[doc(hidden)]
246pub struct _ANACTRL;
247#[doc = "`read()` method returns [anactrl::R](anactrl::R) reader structure"]
248impl crate::Readable for ANACTRL {}
249#[doc = "`write(|w| ..)` method takes [anactrl::W](anactrl::W) writer structure"]
250impl crate::Writable for ANACTRL {}
251#[doc = "Analog Control"]
252pub mod anactrl;
253#[doc = "Interrupt Flag\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [if_](if_) module"]
254pub type IF = crate::Reg<u32, _IF>;
255#[allow(missing_docs)]
256#[doc(hidden)]
257pub struct _IF;
258#[doc = "`read()` method returns [if_::R](if_::R) reader structure"]
259impl crate::Readable for IF {}
260#[doc = "Interrupt Flag"]
261pub mod if_;
262#[doc = "Interrupt Flag Set\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](ifs) module"]
263pub type IFS = crate::Reg<u32, _IFS>;
264#[allow(missing_docs)]
265#[doc(hidden)]
266pub struct _IFS;
267#[doc = "`write(|w| ..)` method takes [ifs::W](ifs::W) writer structure"]
268impl crate::Writable for IFS {}
269#[doc = "Interrupt Flag Set"]
270pub mod ifs;
271#[doc = "Interrupt Flag Clear\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifc](ifc) module"]
272pub type IFC = crate::Reg<u32, _IFC>;
273#[allow(missing_docs)]
274#[doc(hidden)]
275pub struct _IFC;
276#[doc = "`write(|w| ..)` method takes [ifc::W](ifc::W) writer structure"]
277impl crate::Writable for IFC {}
278#[doc = "Interrupt Flag Clear"]
279pub mod ifc;
280#[doc = "Interrupt Enable\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ien](ien) module"]
281pub type IEN = crate::Reg<u32, _IEN>;
282#[allow(missing_docs)]
283#[doc(hidden)]
284pub struct _IEN;
285#[doc = "`read()` method returns [ien::R](ien::R) reader structure"]
286impl crate::Readable for IEN {}
287#[doc = "`write(|w| ..)` method takes [ien::W](ien::W) writer structure"]
288impl crate::Writable for IEN {}
289#[doc = "Interrupt Enable"]
290pub mod ien;