atsam4sd16c_pac/adc/
cor.rs

1#[doc = "Register `COR` reader"]
2pub struct R(crate::R<COR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<COR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<COR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<COR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `COR` writer"]
17pub struct W(crate::W<COR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<COR_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<COR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<COR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `OFF0` reader - Offset for channel 0"]
38pub type OFF0_R = crate::BitReader<bool>;
39#[doc = "Field `OFF0` writer - Offset for channel 0"]
40pub type OFF0_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
41#[doc = "Field `OFF1` reader - Offset for channel 1"]
42pub type OFF1_R = crate::BitReader<bool>;
43#[doc = "Field `OFF1` writer - Offset for channel 1"]
44pub type OFF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
45#[doc = "Field `OFF2` reader - Offset for channel 2"]
46pub type OFF2_R = crate::BitReader<bool>;
47#[doc = "Field `OFF2` writer - Offset for channel 2"]
48pub type OFF2_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
49#[doc = "Field `OFF3` reader - Offset for channel 3"]
50pub type OFF3_R = crate::BitReader<bool>;
51#[doc = "Field `OFF3` writer - Offset for channel 3"]
52pub type OFF3_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
53#[doc = "Field `OFF4` reader - Offset for channel 4"]
54pub type OFF4_R = crate::BitReader<bool>;
55#[doc = "Field `OFF4` writer - Offset for channel 4"]
56pub type OFF4_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
57#[doc = "Field `OFF5` reader - Offset for channel 5"]
58pub type OFF5_R = crate::BitReader<bool>;
59#[doc = "Field `OFF5` writer - Offset for channel 5"]
60pub type OFF5_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
61#[doc = "Field `OFF6` reader - Offset for channel 6"]
62pub type OFF6_R = crate::BitReader<bool>;
63#[doc = "Field `OFF6` writer - Offset for channel 6"]
64pub type OFF6_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
65#[doc = "Field `OFF7` reader - Offset for channel 7"]
66pub type OFF7_R = crate::BitReader<bool>;
67#[doc = "Field `OFF7` writer - Offset for channel 7"]
68pub type OFF7_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
69#[doc = "Field `OFF8` reader - Offset for channel 8"]
70pub type OFF8_R = crate::BitReader<bool>;
71#[doc = "Field `OFF8` writer - Offset for channel 8"]
72pub type OFF8_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
73#[doc = "Field `OFF9` reader - Offset for channel 9"]
74pub type OFF9_R = crate::BitReader<bool>;
75#[doc = "Field `OFF9` writer - Offset for channel 9"]
76pub type OFF9_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
77#[doc = "Field `OFF10` reader - Offset for channel 10"]
78pub type OFF10_R = crate::BitReader<bool>;
79#[doc = "Field `OFF10` writer - Offset for channel 10"]
80pub type OFF10_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
81#[doc = "Field `OFF11` reader - Offset for channel 11"]
82pub type OFF11_R = crate::BitReader<bool>;
83#[doc = "Field `OFF11` writer - Offset for channel 11"]
84pub type OFF11_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
85#[doc = "Field `OFF12` reader - Offset for channel 12"]
86pub type OFF12_R = crate::BitReader<bool>;
87#[doc = "Field `OFF12` writer - Offset for channel 12"]
88pub type OFF12_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
89#[doc = "Field `OFF13` reader - Offset for channel 13"]
90pub type OFF13_R = crate::BitReader<bool>;
91#[doc = "Field `OFF13` writer - Offset for channel 13"]
92pub type OFF13_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
93#[doc = "Field `OFF14` reader - Offset for channel 14"]
94pub type OFF14_R = crate::BitReader<bool>;
95#[doc = "Field `OFF14` writer - Offset for channel 14"]
96pub type OFF14_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
97#[doc = "Field `OFF15` reader - Offset for channel 15"]
98pub type OFF15_R = crate::BitReader<bool>;
99#[doc = "Field `OFF15` writer - Offset for channel 15"]
100pub type OFF15_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
101#[doc = "Field `DIFF0` reader - Differential inputs for channel 0"]
102pub type DIFF0_R = crate::BitReader<bool>;
103#[doc = "Field `DIFF0` writer - Differential inputs for channel 0"]
104pub type DIFF0_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
105#[doc = "Field `DIFF1` reader - Differential inputs for channel 1"]
106pub type DIFF1_R = crate::BitReader<bool>;
107#[doc = "Field `DIFF1` writer - Differential inputs for channel 1"]
108pub type DIFF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
109#[doc = "Field `DIFF2` reader - Differential inputs for channel 2"]
110pub type DIFF2_R = crate::BitReader<bool>;
111#[doc = "Field `DIFF2` writer - Differential inputs for channel 2"]
112pub type DIFF2_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
113#[doc = "Field `DIFF3` reader - Differential inputs for channel 3"]
114pub type DIFF3_R = crate::BitReader<bool>;
115#[doc = "Field `DIFF3` writer - Differential inputs for channel 3"]
116pub type DIFF3_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
117#[doc = "Field `DIFF4` reader - Differential inputs for channel 4"]
118pub type DIFF4_R = crate::BitReader<bool>;
119#[doc = "Field `DIFF4` writer - Differential inputs for channel 4"]
120pub type DIFF4_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
121#[doc = "Field `DIFF5` reader - Differential inputs for channel 5"]
122pub type DIFF5_R = crate::BitReader<bool>;
123#[doc = "Field `DIFF5` writer - Differential inputs for channel 5"]
124pub type DIFF5_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
125#[doc = "Field `DIFF6` reader - Differential inputs for channel 6"]
126pub type DIFF6_R = crate::BitReader<bool>;
127#[doc = "Field `DIFF6` writer - Differential inputs for channel 6"]
128pub type DIFF6_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
129#[doc = "Field `DIFF7` reader - Differential inputs for channel 7"]
130pub type DIFF7_R = crate::BitReader<bool>;
131#[doc = "Field `DIFF7` writer - Differential inputs for channel 7"]
132pub type DIFF7_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
133#[doc = "Field `DIFF8` reader - Differential inputs for channel 8"]
134pub type DIFF8_R = crate::BitReader<bool>;
135#[doc = "Field `DIFF8` writer - Differential inputs for channel 8"]
136pub type DIFF8_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
137#[doc = "Field `DIFF9` reader - Differential inputs for channel 9"]
138pub type DIFF9_R = crate::BitReader<bool>;
139#[doc = "Field `DIFF9` writer - Differential inputs for channel 9"]
140pub type DIFF9_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
141#[doc = "Field `DIFF10` reader - Differential inputs for channel 10"]
142pub type DIFF10_R = crate::BitReader<bool>;
143#[doc = "Field `DIFF10` writer - Differential inputs for channel 10"]
144pub type DIFF10_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
145#[doc = "Field `DIFF11` reader - Differential inputs for channel 11"]
146pub type DIFF11_R = crate::BitReader<bool>;
147#[doc = "Field `DIFF11` writer - Differential inputs for channel 11"]
148pub type DIFF11_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
149#[doc = "Field `DIFF12` reader - Differential inputs for channel 12"]
150pub type DIFF12_R = crate::BitReader<bool>;
151#[doc = "Field `DIFF12` writer - Differential inputs for channel 12"]
152pub type DIFF12_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
153#[doc = "Field `DIFF13` reader - Differential inputs for channel 13"]
154pub type DIFF13_R = crate::BitReader<bool>;
155#[doc = "Field `DIFF13` writer - Differential inputs for channel 13"]
156pub type DIFF13_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
157#[doc = "Field `DIFF14` reader - Differential inputs for channel 14"]
158pub type DIFF14_R = crate::BitReader<bool>;
159#[doc = "Field `DIFF14` writer - Differential inputs for channel 14"]
160pub type DIFF14_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
161#[doc = "Field `DIFF15` reader - Differential inputs for channel 15"]
162pub type DIFF15_R = crate::BitReader<bool>;
163#[doc = "Field `DIFF15` writer - Differential inputs for channel 15"]
164pub type DIFF15_W<'a, const O: u8> = crate::BitWriter<'a, u32, COR_SPEC, bool, O>;
165impl R {
166    #[doc = "Bit 0 - Offset for channel 0"]
167    #[inline(always)]
168    pub fn off0(&self) -> OFF0_R {
169        OFF0_R::new((self.bits & 1) != 0)
170    }
171    #[doc = "Bit 1 - Offset for channel 1"]
172    #[inline(always)]
173    pub fn off1(&self) -> OFF1_R {
174        OFF1_R::new(((self.bits >> 1) & 1) != 0)
175    }
176    #[doc = "Bit 2 - Offset for channel 2"]
177    #[inline(always)]
178    pub fn off2(&self) -> OFF2_R {
179        OFF2_R::new(((self.bits >> 2) & 1) != 0)
180    }
181    #[doc = "Bit 3 - Offset for channel 3"]
182    #[inline(always)]
183    pub fn off3(&self) -> OFF3_R {
184        OFF3_R::new(((self.bits >> 3) & 1) != 0)
185    }
186    #[doc = "Bit 4 - Offset for channel 4"]
187    #[inline(always)]
188    pub fn off4(&self) -> OFF4_R {
189        OFF4_R::new(((self.bits >> 4) & 1) != 0)
190    }
191    #[doc = "Bit 5 - Offset for channel 5"]
192    #[inline(always)]
193    pub fn off5(&self) -> OFF5_R {
194        OFF5_R::new(((self.bits >> 5) & 1) != 0)
195    }
196    #[doc = "Bit 6 - Offset for channel 6"]
197    #[inline(always)]
198    pub fn off6(&self) -> OFF6_R {
199        OFF6_R::new(((self.bits >> 6) & 1) != 0)
200    }
201    #[doc = "Bit 7 - Offset for channel 7"]
202    #[inline(always)]
203    pub fn off7(&self) -> OFF7_R {
204        OFF7_R::new(((self.bits >> 7) & 1) != 0)
205    }
206    #[doc = "Bit 8 - Offset for channel 8"]
207    #[inline(always)]
208    pub fn off8(&self) -> OFF8_R {
209        OFF8_R::new(((self.bits >> 8) & 1) != 0)
210    }
211    #[doc = "Bit 9 - Offset for channel 9"]
212    #[inline(always)]
213    pub fn off9(&self) -> OFF9_R {
214        OFF9_R::new(((self.bits >> 9) & 1) != 0)
215    }
216    #[doc = "Bit 10 - Offset for channel 10"]
217    #[inline(always)]
218    pub fn off10(&self) -> OFF10_R {
219        OFF10_R::new(((self.bits >> 10) & 1) != 0)
220    }
221    #[doc = "Bit 11 - Offset for channel 11"]
222    #[inline(always)]
223    pub fn off11(&self) -> OFF11_R {
224        OFF11_R::new(((self.bits >> 11) & 1) != 0)
225    }
226    #[doc = "Bit 12 - Offset for channel 12"]
227    #[inline(always)]
228    pub fn off12(&self) -> OFF12_R {
229        OFF12_R::new(((self.bits >> 12) & 1) != 0)
230    }
231    #[doc = "Bit 13 - Offset for channel 13"]
232    #[inline(always)]
233    pub fn off13(&self) -> OFF13_R {
234        OFF13_R::new(((self.bits >> 13) & 1) != 0)
235    }
236    #[doc = "Bit 14 - Offset for channel 14"]
237    #[inline(always)]
238    pub fn off14(&self) -> OFF14_R {
239        OFF14_R::new(((self.bits >> 14) & 1) != 0)
240    }
241    #[doc = "Bit 15 - Offset for channel 15"]
242    #[inline(always)]
243    pub fn off15(&self) -> OFF15_R {
244        OFF15_R::new(((self.bits >> 15) & 1) != 0)
245    }
246    #[doc = "Bit 16 - Differential inputs for channel 0"]
247    #[inline(always)]
248    pub fn diff0(&self) -> DIFF0_R {
249        DIFF0_R::new(((self.bits >> 16) & 1) != 0)
250    }
251    #[doc = "Bit 17 - Differential inputs for channel 1"]
252    #[inline(always)]
253    pub fn diff1(&self) -> DIFF1_R {
254        DIFF1_R::new(((self.bits >> 17) & 1) != 0)
255    }
256    #[doc = "Bit 18 - Differential inputs for channel 2"]
257    #[inline(always)]
258    pub fn diff2(&self) -> DIFF2_R {
259        DIFF2_R::new(((self.bits >> 18) & 1) != 0)
260    }
261    #[doc = "Bit 19 - Differential inputs for channel 3"]
262    #[inline(always)]
263    pub fn diff3(&self) -> DIFF3_R {
264        DIFF3_R::new(((self.bits >> 19) & 1) != 0)
265    }
266    #[doc = "Bit 20 - Differential inputs for channel 4"]
267    #[inline(always)]
268    pub fn diff4(&self) -> DIFF4_R {
269        DIFF4_R::new(((self.bits >> 20) & 1) != 0)
270    }
271    #[doc = "Bit 21 - Differential inputs for channel 5"]
272    #[inline(always)]
273    pub fn diff5(&self) -> DIFF5_R {
274        DIFF5_R::new(((self.bits >> 21) & 1) != 0)
275    }
276    #[doc = "Bit 22 - Differential inputs for channel 6"]
277    #[inline(always)]
278    pub fn diff6(&self) -> DIFF6_R {
279        DIFF6_R::new(((self.bits >> 22) & 1) != 0)
280    }
281    #[doc = "Bit 23 - Differential inputs for channel 7"]
282    #[inline(always)]
283    pub fn diff7(&self) -> DIFF7_R {
284        DIFF7_R::new(((self.bits >> 23) & 1) != 0)
285    }
286    #[doc = "Bit 24 - Differential inputs for channel 8"]
287    #[inline(always)]
288    pub fn diff8(&self) -> DIFF8_R {
289        DIFF8_R::new(((self.bits >> 24) & 1) != 0)
290    }
291    #[doc = "Bit 25 - Differential inputs for channel 9"]
292    #[inline(always)]
293    pub fn diff9(&self) -> DIFF9_R {
294        DIFF9_R::new(((self.bits >> 25) & 1) != 0)
295    }
296    #[doc = "Bit 26 - Differential inputs for channel 10"]
297    #[inline(always)]
298    pub fn diff10(&self) -> DIFF10_R {
299        DIFF10_R::new(((self.bits >> 26) & 1) != 0)
300    }
301    #[doc = "Bit 27 - Differential inputs for channel 11"]
302    #[inline(always)]
303    pub fn diff11(&self) -> DIFF11_R {
304        DIFF11_R::new(((self.bits >> 27) & 1) != 0)
305    }
306    #[doc = "Bit 28 - Differential inputs for channel 12"]
307    #[inline(always)]
308    pub fn diff12(&self) -> DIFF12_R {
309        DIFF12_R::new(((self.bits >> 28) & 1) != 0)
310    }
311    #[doc = "Bit 29 - Differential inputs for channel 13"]
312    #[inline(always)]
313    pub fn diff13(&self) -> DIFF13_R {
314        DIFF13_R::new(((self.bits >> 29) & 1) != 0)
315    }
316    #[doc = "Bit 30 - Differential inputs for channel 14"]
317    #[inline(always)]
318    pub fn diff14(&self) -> DIFF14_R {
319        DIFF14_R::new(((self.bits >> 30) & 1) != 0)
320    }
321    #[doc = "Bit 31 - Differential inputs for channel 15"]
322    #[inline(always)]
323    pub fn diff15(&self) -> DIFF15_R {
324        DIFF15_R::new(((self.bits >> 31) & 1) != 0)
325    }
326}
327impl W {
328    #[doc = "Bit 0 - Offset for channel 0"]
329    #[inline(always)]
330    #[must_use]
331    pub fn off0(&mut self) -> OFF0_W<0> {
332        OFF0_W::new(self)
333    }
334    #[doc = "Bit 1 - Offset for channel 1"]
335    #[inline(always)]
336    #[must_use]
337    pub fn off1(&mut self) -> OFF1_W<1> {
338        OFF1_W::new(self)
339    }
340    #[doc = "Bit 2 - Offset for channel 2"]
341    #[inline(always)]
342    #[must_use]
343    pub fn off2(&mut self) -> OFF2_W<2> {
344        OFF2_W::new(self)
345    }
346    #[doc = "Bit 3 - Offset for channel 3"]
347    #[inline(always)]
348    #[must_use]
349    pub fn off3(&mut self) -> OFF3_W<3> {
350        OFF3_W::new(self)
351    }
352    #[doc = "Bit 4 - Offset for channel 4"]
353    #[inline(always)]
354    #[must_use]
355    pub fn off4(&mut self) -> OFF4_W<4> {
356        OFF4_W::new(self)
357    }
358    #[doc = "Bit 5 - Offset for channel 5"]
359    #[inline(always)]
360    #[must_use]
361    pub fn off5(&mut self) -> OFF5_W<5> {
362        OFF5_W::new(self)
363    }
364    #[doc = "Bit 6 - Offset for channel 6"]
365    #[inline(always)]
366    #[must_use]
367    pub fn off6(&mut self) -> OFF6_W<6> {
368        OFF6_W::new(self)
369    }
370    #[doc = "Bit 7 - Offset for channel 7"]
371    #[inline(always)]
372    #[must_use]
373    pub fn off7(&mut self) -> OFF7_W<7> {
374        OFF7_W::new(self)
375    }
376    #[doc = "Bit 8 - Offset for channel 8"]
377    #[inline(always)]
378    #[must_use]
379    pub fn off8(&mut self) -> OFF8_W<8> {
380        OFF8_W::new(self)
381    }
382    #[doc = "Bit 9 - Offset for channel 9"]
383    #[inline(always)]
384    #[must_use]
385    pub fn off9(&mut self) -> OFF9_W<9> {
386        OFF9_W::new(self)
387    }
388    #[doc = "Bit 10 - Offset for channel 10"]
389    #[inline(always)]
390    #[must_use]
391    pub fn off10(&mut self) -> OFF10_W<10> {
392        OFF10_W::new(self)
393    }
394    #[doc = "Bit 11 - Offset for channel 11"]
395    #[inline(always)]
396    #[must_use]
397    pub fn off11(&mut self) -> OFF11_W<11> {
398        OFF11_W::new(self)
399    }
400    #[doc = "Bit 12 - Offset for channel 12"]
401    #[inline(always)]
402    #[must_use]
403    pub fn off12(&mut self) -> OFF12_W<12> {
404        OFF12_W::new(self)
405    }
406    #[doc = "Bit 13 - Offset for channel 13"]
407    #[inline(always)]
408    #[must_use]
409    pub fn off13(&mut self) -> OFF13_W<13> {
410        OFF13_W::new(self)
411    }
412    #[doc = "Bit 14 - Offset for channel 14"]
413    #[inline(always)]
414    #[must_use]
415    pub fn off14(&mut self) -> OFF14_W<14> {
416        OFF14_W::new(self)
417    }
418    #[doc = "Bit 15 - Offset for channel 15"]
419    #[inline(always)]
420    #[must_use]
421    pub fn off15(&mut self) -> OFF15_W<15> {
422        OFF15_W::new(self)
423    }
424    #[doc = "Bit 16 - Differential inputs for channel 0"]
425    #[inline(always)]
426    #[must_use]
427    pub fn diff0(&mut self) -> DIFF0_W<16> {
428        DIFF0_W::new(self)
429    }
430    #[doc = "Bit 17 - Differential inputs for channel 1"]
431    #[inline(always)]
432    #[must_use]
433    pub fn diff1(&mut self) -> DIFF1_W<17> {
434        DIFF1_W::new(self)
435    }
436    #[doc = "Bit 18 - Differential inputs for channel 2"]
437    #[inline(always)]
438    #[must_use]
439    pub fn diff2(&mut self) -> DIFF2_W<18> {
440        DIFF2_W::new(self)
441    }
442    #[doc = "Bit 19 - Differential inputs for channel 3"]
443    #[inline(always)]
444    #[must_use]
445    pub fn diff3(&mut self) -> DIFF3_W<19> {
446        DIFF3_W::new(self)
447    }
448    #[doc = "Bit 20 - Differential inputs for channel 4"]
449    #[inline(always)]
450    #[must_use]
451    pub fn diff4(&mut self) -> DIFF4_W<20> {
452        DIFF4_W::new(self)
453    }
454    #[doc = "Bit 21 - Differential inputs for channel 5"]
455    #[inline(always)]
456    #[must_use]
457    pub fn diff5(&mut self) -> DIFF5_W<21> {
458        DIFF5_W::new(self)
459    }
460    #[doc = "Bit 22 - Differential inputs for channel 6"]
461    #[inline(always)]
462    #[must_use]
463    pub fn diff6(&mut self) -> DIFF6_W<22> {
464        DIFF6_W::new(self)
465    }
466    #[doc = "Bit 23 - Differential inputs for channel 7"]
467    #[inline(always)]
468    #[must_use]
469    pub fn diff7(&mut self) -> DIFF7_W<23> {
470        DIFF7_W::new(self)
471    }
472    #[doc = "Bit 24 - Differential inputs for channel 8"]
473    #[inline(always)]
474    #[must_use]
475    pub fn diff8(&mut self) -> DIFF8_W<24> {
476        DIFF8_W::new(self)
477    }
478    #[doc = "Bit 25 - Differential inputs for channel 9"]
479    #[inline(always)]
480    #[must_use]
481    pub fn diff9(&mut self) -> DIFF9_W<25> {
482        DIFF9_W::new(self)
483    }
484    #[doc = "Bit 26 - Differential inputs for channel 10"]
485    #[inline(always)]
486    #[must_use]
487    pub fn diff10(&mut self) -> DIFF10_W<26> {
488        DIFF10_W::new(self)
489    }
490    #[doc = "Bit 27 - Differential inputs for channel 11"]
491    #[inline(always)]
492    #[must_use]
493    pub fn diff11(&mut self) -> DIFF11_W<27> {
494        DIFF11_W::new(self)
495    }
496    #[doc = "Bit 28 - Differential inputs for channel 12"]
497    #[inline(always)]
498    #[must_use]
499    pub fn diff12(&mut self) -> DIFF12_W<28> {
500        DIFF12_W::new(self)
501    }
502    #[doc = "Bit 29 - Differential inputs for channel 13"]
503    #[inline(always)]
504    #[must_use]
505    pub fn diff13(&mut self) -> DIFF13_W<29> {
506        DIFF13_W::new(self)
507    }
508    #[doc = "Bit 30 - Differential inputs for channel 14"]
509    #[inline(always)]
510    #[must_use]
511    pub fn diff14(&mut self) -> DIFF14_W<30> {
512        DIFF14_W::new(self)
513    }
514    #[doc = "Bit 31 - Differential inputs for channel 15"]
515    #[inline(always)]
516    #[must_use]
517    pub fn diff15(&mut self) -> DIFF15_W<31> {
518        DIFF15_W::new(self)
519    }
520    #[doc = "Writes raw bits to the register."]
521    #[inline(always)]
522    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
523        self.0.bits(bits);
524        self
525    }
526}
527#[doc = "Channel Offset Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cor](index.html) module"]
528pub struct COR_SPEC;
529impl crate::RegisterSpec for COR_SPEC {
530    type Ux = u32;
531}
532#[doc = "`read()` method returns [cor::R](R) reader structure"]
533impl crate::Readable for COR_SPEC {
534    type Reader = R;
535}
536#[doc = "`write(|w| ..)` method takes [cor::W](W) writer structure"]
537impl crate::Writable for COR_SPEC {
538    type Writer = W;
539    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
540    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
541}
542#[doc = "`reset()` method sets COR to value 0"]
543impl crate::Resettable for COR_SPEC {
544    const RESET_VALUE: Self::Ux = 0;
545}