1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control A"]
5 pub ctrla: CTRLA,
6 #[doc = "0x01 - Control B"]
7 pub ctrlb: CTRLB,
8 #[doc = "0x02 - Reference Control"]
9 pub refctrl: REFCTRL,
10 #[doc = "0x03 - Event Control"]
11 pub evctrl: EVCTRL,
12 #[doc = "0x04 - Interrupt Enable Clear"]
13 pub intenclr: INTENCLR,
14 #[doc = "0x05 - Interrupt Enable Set"]
15 pub intenset: INTENSET,
16 #[doc = "0x06 - Interrupt Flag Status and Clear"]
17 pub intflag: INTFLAG,
18 #[doc = "0x07 - Sequence Status"]
19 pub seqstatus: SEQSTATUS,
20 #[doc = "0x08 - Input Control"]
21 pub inputctrl: INPUTCTRL,
22 #[doc = "0x0a - Control C"]
23 pub ctrlc: CTRLC,
24 #[doc = "0x0c - Average Control"]
25 pub avgctrl: AVGCTRL,
26 #[doc = "0x0d - Sample Time Control"]
27 pub sampctrl: SAMPCTRL,
28 #[doc = "0x0e - Window Monitor Lower Threshold"]
29 pub winlt: WINLT,
30 #[doc = "0x10 - Window Monitor Upper Threshold"]
31 pub winut: WINUT,
32 #[doc = "0x12 - Gain Correction"]
33 pub gaincorr: GAINCORR,
34 #[doc = "0x14 - Offset Correction"]
35 pub offsetcorr: OFFSETCORR,
36 _reserved16: [u8; 2usize],
37 #[doc = "0x18 - Software Trigger"]
38 pub swtrig: SWTRIG,
39 _reserved17: [u8; 3usize],
40 #[doc = "0x1c - Debug Control"]
41 pub dbgctrl: DBGCTRL,
42 _reserved18: [u8; 3usize],
43 #[doc = "0x20 - Synchronization Busy"]
44 pub syncbusy: SYNCBUSY,
45 _reserved19: [u8; 2usize],
46 #[doc = "0x24 - Result"]
47 pub result: RESULT,
48 _reserved20: [u8; 2usize],
49 #[doc = "0x28 - Sequence Control"]
50 pub seqctrl: SEQCTRL,
51 #[doc = "0x2c - Calibration"]
52 pub calib: CALIB,
53}
54#[doc = "Control A\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 avaliable fields see [ctrla](ctrla) module"]
55pub type CTRLA = crate::Reg<u8, _CTRLA>;
56#[allow(missing_docs)]
57#[doc(hidden)]
58pub struct _CTRLA;
59#[doc = "`read()` method returns [ctrla::R](ctrla::R) reader structure"]
60impl crate::Readable for CTRLA {}
61#[doc = "`write(|w| ..)` method takes [ctrla::W](ctrla::W) writer structure"]
62impl crate::Writable for CTRLA {}
63#[doc = "Control A"]
64pub mod ctrla;
65#[doc = "Control B\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 avaliable fields see [ctrlb](ctrlb) module"]
66pub type CTRLB = crate::Reg<u8, _CTRLB>;
67#[allow(missing_docs)]
68#[doc(hidden)]
69pub struct _CTRLB;
70#[doc = "`read()` method returns [ctrlb::R](ctrlb::R) reader structure"]
71impl crate::Readable for CTRLB {}
72#[doc = "`write(|w| ..)` method takes [ctrlb::W](ctrlb::W) writer structure"]
73impl crate::Writable for CTRLB {}
74#[doc = "Control B"]
75pub mod ctrlb;
76#[doc = "Reference 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 avaliable fields see [refctrl](refctrl) module"]
77pub type REFCTRL = crate::Reg<u8, _REFCTRL>;
78#[allow(missing_docs)]
79#[doc(hidden)]
80pub struct _REFCTRL;
81#[doc = "`read()` method returns [refctrl::R](refctrl::R) reader structure"]
82impl crate::Readable for REFCTRL {}
83#[doc = "`write(|w| ..)` method takes [refctrl::W](refctrl::W) writer structure"]
84impl crate::Writable for REFCTRL {}
85#[doc = "Reference Control"]
86pub mod refctrl;
87#[doc = "Event 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 avaliable fields see [evctrl](evctrl) module"]
88pub type EVCTRL = crate::Reg<u8, _EVCTRL>;
89#[allow(missing_docs)]
90#[doc(hidden)]
91pub struct _EVCTRL;
92#[doc = "`read()` method returns [evctrl::R](evctrl::R) reader structure"]
93impl crate::Readable for EVCTRL {}
94#[doc = "`write(|w| ..)` method takes [evctrl::W](evctrl::W) writer structure"]
95impl crate::Writable for EVCTRL {}
96#[doc = "Event Control"]
97pub mod evctrl;
98#[doc = "Interrupt Enable Clear\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 avaliable fields see [intenclr](intenclr) module"]
99pub type INTENCLR = crate::Reg<u8, _INTENCLR>;
100#[allow(missing_docs)]
101#[doc(hidden)]
102pub struct _INTENCLR;
103#[doc = "`read()` method returns [intenclr::R](intenclr::R) reader structure"]
104impl crate::Readable for INTENCLR {}
105#[doc = "`write(|w| ..)` method takes [intenclr::W](intenclr::W) writer structure"]
106impl crate::Writable for INTENCLR {}
107#[doc = "Interrupt Enable Clear"]
108pub mod intenclr;
109#[doc = "Interrupt Enable Set\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 avaliable fields see [intenset](intenset) module"]
110pub type INTENSET = crate::Reg<u8, _INTENSET>;
111#[allow(missing_docs)]
112#[doc(hidden)]
113pub struct _INTENSET;
114#[doc = "`read()` method returns [intenset::R](intenset::R) reader structure"]
115impl crate::Readable for INTENSET {}
116#[doc = "`write(|w| ..)` method takes [intenset::W](intenset::W) writer structure"]
117impl crate::Writable for INTENSET {}
118#[doc = "Interrupt Enable Set"]
119pub mod intenset;
120#[doc = "Interrupt Flag Status and Clear\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 avaliable fields see [intflag](intflag) module"]
121pub type INTFLAG = crate::Reg<u8, _INTFLAG>;
122#[allow(missing_docs)]
123#[doc(hidden)]
124pub struct _INTFLAG;
125#[doc = "`read()` method returns [intflag::R](intflag::R) reader structure"]
126impl crate::Readable for INTFLAG {}
127#[doc = "`write(|w| ..)` method takes [intflag::W](intflag::W) writer structure"]
128impl crate::Writable for INTFLAG {}
129#[doc = "Interrupt Flag Status and Clear"]
130pub mod intflag;
131#[doc = "Sequence 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 avaliable fields see [seqstatus](seqstatus) module"]
132pub type SEQSTATUS = crate::Reg<u8, _SEQSTATUS>;
133#[allow(missing_docs)]
134#[doc(hidden)]
135pub struct _SEQSTATUS;
136#[doc = "`read()` method returns [seqstatus::R](seqstatus::R) reader structure"]
137impl crate::Readable for SEQSTATUS {}
138#[doc = "Sequence Status"]
139pub mod seqstatus;
140#[doc = "Input 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 avaliable fields see [inputctrl](inputctrl) module"]
141pub type INPUTCTRL = crate::Reg<u16, _INPUTCTRL>;
142#[allow(missing_docs)]
143#[doc(hidden)]
144pub struct _INPUTCTRL;
145#[doc = "`read()` method returns [inputctrl::R](inputctrl::R) reader structure"]
146impl crate::Readable for INPUTCTRL {}
147#[doc = "`write(|w| ..)` method takes [inputctrl::W](inputctrl::W) writer structure"]
148impl crate::Writable for INPUTCTRL {}
149#[doc = "Input Control"]
150pub mod inputctrl;
151#[doc = "Control C\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 avaliable fields see [ctrlc](ctrlc) module"]
152pub type CTRLC = crate::Reg<u16, _CTRLC>;
153#[allow(missing_docs)]
154#[doc(hidden)]
155pub struct _CTRLC;
156#[doc = "`read()` method returns [ctrlc::R](ctrlc::R) reader structure"]
157impl crate::Readable for CTRLC {}
158#[doc = "`write(|w| ..)` method takes [ctrlc::W](ctrlc::W) writer structure"]
159impl crate::Writable for CTRLC {}
160#[doc = "Control C"]
161pub mod ctrlc;
162#[doc = "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 avaliable fields see [avgctrl](avgctrl) module"]
163pub type AVGCTRL = crate::Reg<u8, _AVGCTRL>;
164#[allow(missing_docs)]
165#[doc(hidden)]
166pub struct _AVGCTRL;
167#[doc = "`read()` method returns [avgctrl::R](avgctrl::R) reader structure"]
168impl crate::Readable for AVGCTRL {}
169#[doc = "`write(|w| ..)` method takes [avgctrl::W](avgctrl::W) writer structure"]
170impl crate::Writable for AVGCTRL {}
171#[doc = "Average Control"]
172pub mod avgctrl;
173#[doc = "Sample Time 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 avaliable fields see [sampctrl](sampctrl) module"]
174pub type SAMPCTRL = crate::Reg<u8, _SAMPCTRL>;
175#[allow(missing_docs)]
176#[doc(hidden)]
177pub struct _SAMPCTRL;
178#[doc = "`read()` method returns [sampctrl::R](sampctrl::R) reader structure"]
179impl crate::Readable for SAMPCTRL {}
180#[doc = "`write(|w| ..)` method takes [sampctrl::W](sampctrl::W) writer structure"]
181impl crate::Writable for SAMPCTRL {}
182#[doc = "Sample Time Control"]
183pub mod sampctrl;
184#[doc = "Window Monitor Lower 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 avaliable fields see [winlt](winlt) module"]
185pub type WINLT = crate::Reg<u16, _WINLT>;
186#[allow(missing_docs)]
187#[doc(hidden)]
188pub struct _WINLT;
189#[doc = "`read()` method returns [winlt::R](winlt::R) reader structure"]
190impl crate::Readable for WINLT {}
191#[doc = "`write(|w| ..)` method takes [winlt::W](winlt::W) writer structure"]
192impl crate::Writable for WINLT {}
193#[doc = "Window Monitor Lower Threshold"]
194pub mod winlt;
195#[doc = "Window Monitor Upper 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 avaliable fields see [winut](winut) module"]
196pub type WINUT = crate::Reg<u16, _WINUT>;
197#[allow(missing_docs)]
198#[doc(hidden)]
199pub struct _WINUT;
200#[doc = "`read()` method returns [winut::R](winut::R) reader structure"]
201impl crate::Readable for WINUT {}
202#[doc = "`write(|w| ..)` method takes [winut::W](winut::W) writer structure"]
203impl crate::Writable for WINUT {}
204#[doc = "Window Monitor Upper Threshold"]
205pub mod winut;
206#[doc = "Gain Correction\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 avaliable fields see [gaincorr](gaincorr) module"]
207pub type GAINCORR = crate::Reg<u16, _GAINCORR>;
208#[allow(missing_docs)]
209#[doc(hidden)]
210pub struct _GAINCORR;
211#[doc = "`read()` method returns [gaincorr::R](gaincorr::R) reader structure"]
212impl crate::Readable for GAINCORR {}
213#[doc = "`write(|w| ..)` method takes [gaincorr::W](gaincorr::W) writer structure"]
214impl crate::Writable for GAINCORR {}
215#[doc = "Gain Correction"]
216pub mod gaincorr;
217#[doc = "Offset Correction\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 avaliable fields see [offsetcorr](offsetcorr) module"]
218pub type OFFSETCORR = crate::Reg<u16, _OFFSETCORR>;
219#[allow(missing_docs)]
220#[doc(hidden)]
221pub struct _OFFSETCORR;
222#[doc = "`read()` method returns [offsetcorr::R](offsetcorr::R) reader structure"]
223impl crate::Readable for OFFSETCORR {}
224#[doc = "`write(|w| ..)` method takes [offsetcorr::W](offsetcorr::W) writer structure"]
225impl crate::Writable for OFFSETCORR {}
226#[doc = "Offset Correction"]
227pub mod offsetcorr;
228#[doc = "Software Trigger\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 avaliable fields see [swtrig](swtrig) module"]
229pub type SWTRIG = crate::Reg<u8, _SWTRIG>;
230#[allow(missing_docs)]
231#[doc(hidden)]
232pub struct _SWTRIG;
233#[doc = "`read()` method returns [swtrig::R](swtrig::R) reader structure"]
234impl crate::Readable for SWTRIG {}
235#[doc = "`write(|w| ..)` method takes [swtrig::W](swtrig::W) writer structure"]
236impl crate::Writable for SWTRIG {}
237#[doc = "Software Trigger"]
238pub mod swtrig;
239#[doc = "Debug 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 avaliable fields see [dbgctrl](dbgctrl) module"]
240pub type DBGCTRL = crate::Reg<u8, _DBGCTRL>;
241#[allow(missing_docs)]
242#[doc(hidden)]
243pub struct _DBGCTRL;
244#[doc = "`read()` method returns [dbgctrl::R](dbgctrl::R) reader structure"]
245impl crate::Readable for DBGCTRL {}
246#[doc = "`write(|w| ..)` method takes [dbgctrl::W](dbgctrl::W) writer structure"]
247impl crate::Writable for DBGCTRL {}
248#[doc = "Debug Control"]
249pub mod dbgctrl;
250#[doc = "Synchronization Busy\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [syncbusy](syncbusy) module"]
251pub type SYNCBUSY = crate::Reg<u16, _SYNCBUSY>;
252#[allow(missing_docs)]
253#[doc(hidden)]
254pub struct _SYNCBUSY;
255#[doc = "`read()` method returns [syncbusy::R](syncbusy::R) reader structure"]
256impl crate::Readable for SYNCBUSY {}
257#[doc = "Synchronization Busy"]
258pub mod syncbusy;
259#[doc = "Result\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [result](result) module"]
260pub type RESULT = crate::Reg<u16, _RESULT>;
261#[allow(missing_docs)]
262#[doc(hidden)]
263pub struct _RESULT;
264#[doc = "`read()` method returns [result::R](result::R) reader structure"]
265impl crate::Readable for RESULT {}
266#[doc = "Result"]
267pub mod result;
268#[doc = "Sequence 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 avaliable fields see [seqctrl](seqctrl) module"]
269pub type SEQCTRL = crate::Reg<u32, _SEQCTRL>;
270#[allow(missing_docs)]
271#[doc(hidden)]
272pub struct _SEQCTRL;
273#[doc = "`read()` method returns [seqctrl::R](seqctrl::R) reader structure"]
274impl crate::Readable for SEQCTRL {}
275#[doc = "`write(|w| ..)` method takes [seqctrl::W](seqctrl::W) writer structure"]
276impl crate::Writable for SEQCTRL {}
277#[doc = "Sequence Control"]
278pub mod seqctrl;
279#[doc = "Calibration\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 avaliable fields see [calib](calib) module"]
280pub type CALIB = crate::Reg<u16, _CALIB>;
281#[allow(missing_docs)]
282#[doc(hidden)]
283pub struct _CALIB;
284#[doc = "`read()` method returns [calib::R](calib::R) reader structure"]
285impl crate::Readable for CALIB {}
286#[doc = "`write(|w| ..)` method takes [calib::W](calib::W) writer structure"]
287impl crate::Writable for CALIB {}
288#[doc = "Calibration"]
289pub mod calib;