efm32tg11b540_pac/cmu/
calctrl.rs

1#[doc = "Register `CALCTRL` reader"]
2pub struct R(crate::R<CALCTRL_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<CALCTRL_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<CALCTRL_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<CALCTRL_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `CALCTRL` writer"]
17pub struct W(crate::W<CALCTRL_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<CALCTRL_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<CALCTRL_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<CALCTRL_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Calibration Up-counter Select\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum UPSEL_A {
41    #[doc = "0: Select HFXO as up-counter"]
42    HFXO = 0,
43    #[doc = "1: Select LFXO as up-counter"]
44    LFXO = 1,
45    #[doc = "2: Select HFRCO as up-counter"]
46    HFRCO = 2,
47    #[doc = "3: Select LFRCO as up-counter"]
48    LFRCO = 3,
49    #[doc = "4: Select AUXHFRCO as up-counter"]
50    AUXHFRCO = 4,
51    #[doc = "5: Select PRS input selected by PRSUPSEL as up-counter"]
52    PRS = 5,
53}
54impl From<UPSEL_A> for u8 {
55    #[inline(always)]
56    fn from(variant: UPSEL_A) -> Self {
57        variant as _
58    }
59}
60#[doc = "Field `UPSEL` reader - Calibration Up-counter Select"]
61pub type UPSEL_R = crate::FieldReader<u8, UPSEL_A>;
62impl UPSEL_R {
63    #[doc = "Get enumerated values variant"]
64    #[inline(always)]
65    pub fn variant(&self) -> Option<UPSEL_A> {
66        match self.bits {
67            0 => Some(UPSEL_A::HFXO),
68            1 => Some(UPSEL_A::LFXO),
69            2 => Some(UPSEL_A::HFRCO),
70            3 => Some(UPSEL_A::LFRCO),
71            4 => Some(UPSEL_A::AUXHFRCO),
72            5 => Some(UPSEL_A::PRS),
73            _ => None,
74        }
75    }
76    #[doc = "Checks if the value of the field is `HFXO`"]
77    #[inline(always)]
78    pub fn is_hfxo(&self) -> bool {
79        *self == UPSEL_A::HFXO
80    }
81    #[doc = "Checks if the value of the field is `LFXO`"]
82    #[inline(always)]
83    pub fn is_lfxo(&self) -> bool {
84        *self == UPSEL_A::LFXO
85    }
86    #[doc = "Checks if the value of the field is `HFRCO`"]
87    #[inline(always)]
88    pub fn is_hfrco(&self) -> bool {
89        *self == UPSEL_A::HFRCO
90    }
91    #[doc = "Checks if the value of the field is `LFRCO`"]
92    #[inline(always)]
93    pub fn is_lfrco(&self) -> bool {
94        *self == UPSEL_A::LFRCO
95    }
96    #[doc = "Checks if the value of the field is `AUXHFRCO`"]
97    #[inline(always)]
98    pub fn is_auxhfrco(&self) -> bool {
99        *self == UPSEL_A::AUXHFRCO
100    }
101    #[doc = "Checks if the value of the field is `PRS`"]
102    #[inline(always)]
103    pub fn is_prs(&self) -> bool {
104        *self == UPSEL_A::PRS
105    }
106}
107#[doc = "Field `UPSEL` writer - Calibration Up-counter Select"]
108pub type UPSEL_W<'a> = crate::FieldWriter<'a, u32, CALCTRL_SPEC, u8, UPSEL_A, 3, 0>;
109impl<'a> UPSEL_W<'a> {
110    #[doc = "Select HFXO as up-counter"]
111    #[inline(always)]
112    pub fn hfxo(self) -> &'a mut W {
113        self.variant(UPSEL_A::HFXO)
114    }
115    #[doc = "Select LFXO as up-counter"]
116    #[inline(always)]
117    pub fn lfxo(self) -> &'a mut W {
118        self.variant(UPSEL_A::LFXO)
119    }
120    #[doc = "Select HFRCO as up-counter"]
121    #[inline(always)]
122    pub fn hfrco(self) -> &'a mut W {
123        self.variant(UPSEL_A::HFRCO)
124    }
125    #[doc = "Select LFRCO as up-counter"]
126    #[inline(always)]
127    pub fn lfrco(self) -> &'a mut W {
128        self.variant(UPSEL_A::LFRCO)
129    }
130    #[doc = "Select AUXHFRCO as up-counter"]
131    #[inline(always)]
132    pub fn auxhfrco(self) -> &'a mut W {
133        self.variant(UPSEL_A::AUXHFRCO)
134    }
135    #[doc = "Select PRS input selected by PRSUPSEL as up-counter"]
136    #[inline(always)]
137    pub fn prs(self) -> &'a mut W {
138        self.variant(UPSEL_A::PRS)
139    }
140}
141#[doc = "Calibration Down-counter Select\n\nValue on reset: 0"]
142#[derive(Clone, Copy, Debug, PartialEq)]
143#[repr(u8)]
144pub enum DOWNSEL_A {
145    #[doc = "0: Select HFCLK for down-counter"]
146    HFCLK = 0,
147    #[doc = "1: Select HFXO for down-counter"]
148    HFXO = 1,
149    #[doc = "2: Select LFXO for down-counter"]
150    LFXO = 2,
151    #[doc = "3: Select HFRCO for down-counter"]
152    HFRCO = 3,
153    #[doc = "4: Select LFRCO for down-counter"]
154    LFRCO = 4,
155    #[doc = "5: Select AUXHFRCO for down-counter"]
156    AUXHFRCO = 5,
157    #[doc = "6: Select PRS input selected by PRSDOWNSEL as down-counter"]
158    PRS = 6,
159}
160impl From<DOWNSEL_A> for u8 {
161    #[inline(always)]
162    fn from(variant: DOWNSEL_A) -> Self {
163        variant as _
164    }
165}
166#[doc = "Field `DOWNSEL` reader - Calibration Down-counter Select"]
167pub type DOWNSEL_R = crate::FieldReader<u8, DOWNSEL_A>;
168impl DOWNSEL_R {
169    #[doc = "Get enumerated values variant"]
170    #[inline(always)]
171    pub fn variant(&self) -> Option<DOWNSEL_A> {
172        match self.bits {
173            0 => Some(DOWNSEL_A::HFCLK),
174            1 => Some(DOWNSEL_A::HFXO),
175            2 => Some(DOWNSEL_A::LFXO),
176            3 => Some(DOWNSEL_A::HFRCO),
177            4 => Some(DOWNSEL_A::LFRCO),
178            5 => Some(DOWNSEL_A::AUXHFRCO),
179            6 => Some(DOWNSEL_A::PRS),
180            _ => None,
181        }
182    }
183    #[doc = "Checks if the value of the field is `HFCLK`"]
184    #[inline(always)]
185    pub fn is_hfclk(&self) -> bool {
186        *self == DOWNSEL_A::HFCLK
187    }
188    #[doc = "Checks if the value of the field is `HFXO`"]
189    #[inline(always)]
190    pub fn is_hfxo(&self) -> bool {
191        *self == DOWNSEL_A::HFXO
192    }
193    #[doc = "Checks if the value of the field is `LFXO`"]
194    #[inline(always)]
195    pub fn is_lfxo(&self) -> bool {
196        *self == DOWNSEL_A::LFXO
197    }
198    #[doc = "Checks if the value of the field is `HFRCO`"]
199    #[inline(always)]
200    pub fn is_hfrco(&self) -> bool {
201        *self == DOWNSEL_A::HFRCO
202    }
203    #[doc = "Checks if the value of the field is `LFRCO`"]
204    #[inline(always)]
205    pub fn is_lfrco(&self) -> bool {
206        *self == DOWNSEL_A::LFRCO
207    }
208    #[doc = "Checks if the value of the field is `AUXHFRCO`"]
209    #[inline(always)]
210    pub fn is_auxhfrco(&self) -> bool {
211        *self == DOWNSEL_A::AUXHFRCO
212    }
213    #[doc = "Checks if the value of the field is `PRS`"]
214    #[inline(always)]
215    pub fn is_prs(&self) -> bool {
216        *self == DOWNSEL_A::PRS
217    }
218}
219#[doc = "Field `DOWNSEL` writer - Calibration Down-counter Select"]
220pub type DOWNSEL_W<'a> = crate::FieldWriter<'a, u32, CALCTRL_SPEC, u8, DOWNSEL_A, 3, 4>;
221impl<'a> DOWNSEL_W<'a> {
222    #[doc = "Select HFCLK for down-counter"]
223    #[inline(always)]
224    pub fn hfclk(self) -> &'a mut W {
225        self.variant(DOWNSEL_A::HFCLK)
226    }
227    #[doc = "Select HFXO for down-counter"]
228    #[inline(always)]
229    pub fn hfxo(self) -> &'a mut W {
230        self.variant(DOWNSEL_A::HFXO)
231    }
232    #[doc = "Select LFXO for down-counter"]
233    #[inline(always)]
234    pub fn lfxo(self) -> &'a mut W {
235        self.variant(DOWNSEL_A::LFXO)
236    }
237    #[doc = "Select HFRCO for down-counter"]
238    #[inline(always)]
239    pub fn hfrco(self) -> &'a mut W {
240        self.variant(DOWNSEL_A::HFRCO)
241    }
242    #[doc = "Select LFRCO for down-counter"]
243    #[inline(always)]
244    pub fn lfrco(self) -> &'a mut W {
245        self.variant(DOWNSEL_A::LFRCO)
246    }
247    #[doc = "Select AUXHFRCO for down-counter"]
248    #[inline(always)]
249    pub fn auxhfrco(self) -> &'a mut W {
250        self.variant(DOWNSEL_A::AUXHFRCO)
251    }
252    #[doc = "Select PRS input selected by PRSDOWNSEL as down-counter"]
253    #[inline(always)]
254    pub fn prs(self) -> &'a mut W {
255        self.variant(DOWNSEL_A::PRS)
256    }
257}
258#[doc = "Field `CONT` reader - Continuous Calibration"]
259pub type CONT_R = crate::BitReader<bool>;
260#[doc = "Field `CONT` writer - Continuous Calibration"]
261pub type CONT_W<'a> = crate::BitWriter<'a, u32, CALCTRL_SPEC, bool, 8>;
262#[doc = "PRS Select for PRS Input When Selected in UPSEL\n\nValue on reset: 0"]
263#[derive(Clone, Copy, Debug, PartialEq)]
264#[repr(u8)]
265pub enum PRSUPSEL_A {
266    #[doc = "0: PRS Channel 0 selected as input"]
267    PRSCH0 = 0,
268    #[doc = "1: PRS Channel 1 selected as input"]
269    PRSCH1 = 1,
270    #[doc = "2: PRS Channel 2 selected as input"]
271    PRSCH2 = 2,
272    #[doc = "3: PRS Channel 3 selected as input"]
273    PRSCH3 = 3,
274    #[doc = "4: PRS Channel 4 selected as input"]
275    PRSCH4 = 4,
276    #[doc = "5: PRS Channel 5 selected as input"]
277    PRSCH5 = 5,
278    #[doc = "6: PRS Channel 6 selected as input"]
279    PRSCH6 = 6,
280    #[doc = "7: PRS Channel 7 selected as input"]
281    PRSCH7 = 7,
282}
283impl From<PRSUPSEL_A> for u8 {
284    #[inline(always)]
285    fn from(variant: PRSUPSEL_A) -> Self {
286        variant as _
287    }
288}
289#[doc = "Field `PRSUPSEL` reader - PRS Select for PRS Input When Selected in UPSEL"]
290pub type PRSUPSEL_R = crate::FieldReader<u8, PRSUPSEL_A>;
291impl PRSUPSEL_R {
292    #[doc = "Get enumerated values variant"]
293    #[inline(always)]
294    pub fn variant(&self) -> PRSUPSEL_A {
295        match self.bits {
296            0 => PRSUPSEL_A::PRSCH0,
297            1 => PRSUPSEL_A::PRSCH1,
298            2 => PRSUPSEL_A::PRSCH2,
299            3 => PRSUPSEL_A::PRSCH3,
300            4 => PRSUPSEL_A::PRSCH4,
301            5 => PRSUPSEL_A::PRSCH5,
302            6 => PRSUPSEL_A::PRSCH6,
303            7 => PRSUPSEL_A::PRSCH7,
304            _ => unreachable!(),
305        }
306    }
307    #[doc = "Checks if the value of the field is `PRSCH0`"]
308    #[inline(always)]
309    pub fn is_prsch0(&self) -> bool {
310        *self == PRSUPSEL_A::PRSCH0
311    }
312    #[doc = "Checks if the value of the field is `PRSCH1`"]
313    #[inline(always)]
314    pub fn is_prsch1(&self) -> bool {
315        *self == PRSUPSEL_A::PRSCH1
316    }
317    #[doc = "Checks if the value of the field is `PRSCH2`"]
318    #[inline(always)]
319    pub fn is_prsch2(&self) -> bool {
320        *self == PRSUPSEL_A::PRSCH2
321    }
322    #[doc = "Checks if the value of the field is `PRSCH3`"]
323    #[inline(always)]
324    pub fn is_prsch3(&self) -> bool {
325        *self == PRSUPSEL_A::PRSCH3
326    }
327    #[doc = "Checks if the value of the field is `PRSCH4`"]
328    #[inline(always)]
329    pub fn is_prsch4(&self) -> bool {
330        *self == PRSUPSEL_A::PRSCH4
331    }
332    #[doc = "Checks if the value of the field is `PRSCH5`"]
333    #[inline(always)]
334    pub fn is_prsch5(&self) -> bool {
335        *self == PRSUPSEL_A::PRSCH5
336    }
337    #[doc = "Checks if the value of the field is `PRSCH6`"]
338    #[inline(always)]
339    pub fn is_prsch6(&self) -> bool {
340        *self == PRSUPSEL_A::PRSCH6
341    }
342    #[doc = "Checks if the value of the field is `PRSCH7`"]
343    #[inline(always)]
344    pub fn is_prsch7(&self) -> bool {
345        *self == PRSUPSEL_A::PRSCH7
346    }
347}
348#[doc = "Field `PRSUPSEL` writer - PRS Select for PRS Input When Selected in UPSEL"]
349pub type PRSUPSEL_W<'a> = crate::FieldWriterSafe<'a, u32, CALCTRL_SPEC, u8, PRSUPSEL_A, 3, 16>;
350impl<'a> PRSUPSEL_W<'a> {
351    #[doc = "PRS Channel 0 selected as input"]
352    #[inline(always)]
353    pub fn prsch0(self) -> &'a mut W {
354        self.variant(PRSUPSEL_A::PRSCH0)
355    }
356    #[doc = "PRS Channel 1 selected as input"]
357    #[inline(always)]
358    pub fn prsch1(self) -> &'a mut W {
359        self.variant(PRSUPSEL_A::PRSCH1)
360    }
361    #[doc = "PRS Channel 2 selected as input"]
362    #[inline(always)]
363    pub fn prsch2(self) -> &'a mut W {
364        self.variant(PRSUPSEL_A::PRSCH2)
365    }
366    #[doc = "PRS Channel 3 selected as input"]
367    #[inline(always)]
368    pub fn prsch3(self) -> &'a mut W {
369        self.variant(PRSUPSEL_A::PRSCH3)
370    }
371    #[doc = "PRS Channel 4 selected as input"]
372    #[inline(always)]
373    pub fn prsch4(self) -> &'a mut W {
374        self.variant(PRSUPSEL_A::PRSCH4)
375    }
376    #[doc = "PRS Channel 5 selected as input"]
377    #[inline(always)]
378    pub fn prsch5(self) -> &'a mut W {
379        self.variant(PRSUPSEL_A::PRSCH5)
380    }
381    #[doc = "PRS Channel 6 selected as input"]
382    #[inline(always)]
383    pub fn prsch6(self) -> &'a mut W {
384        self.variant(PRSUPSEL_A::PRSCH6)
385    }
386    #[doc = "PRS Channel 7 selected as input"]
387    #[inline(always)]
388    pub fn prsch7(self) -> &'a mut W {
389        self.variant(PRSUPSEL_A::PRSCH7)
390    }
391}
392#[doc = "PRS Select for PRS Input When Selected in DOWNSEL\n\nValue on reset: 0"]
393#[derive(Clone, Copy, Debug, PartialEq)]
394#[repr(u8)]
395pub enum PRSDOWNSEL_A {
396    #[doc = "0: PRS Channel 0 selected as input"]
397    PRSCH0 = 0,
398    #[doc = "1: PRS Channel 1 selected as input"]
399    PRSCH1 = 1,
400    #[doc = "2: PRS Channel 2 selected as input"]
401    PRSCH2 = 2,
402    #[doc = "3: PRS Channel 3 selected as input"]
403    PRSCH3 = 3,
404    #[doc = "4: PRS Channel 4 selected as input"]
405    PRSCH4 = 4,
406    #[doc = "5: PRS Channel 5 selected as input"]
407    PRSCH5 = 5,
408    #[doc = "6: PRS Channel 6 selected as input"]
409    PRSCH6 = 6,
410    #[doc = "7: PRS Channel 7 selected as input"]
411    PRSCH7 = 7,
412}
413impl From<PRSDOWNSEL_A> for u8 {
414    #[inline(always)]
415    fn from(variant: PRSDOWNSEL_A) -> Self {
416        variant as _
417    }
418}
419#[doc = "Field `PRSDOWNSEL` reader - PRS Select for PRS Input When Selected in DOWNSEL"]
420pub type PRSDOWNSEL_R = crate::FieldReader<u8, PRSDOWNSEL_A>;
421impl PRSDOWNSEL_R {
422    #[doc = "Get enumerated values variant"]
423    #[inline(always)]
424    pub fn variant(&self) -> PRSDOWNSEL_A {
425        match self.bits {
426            0 => PRSDOWNSEL_A::PRSCH0,
427            1 => PRSDOWNSEL_A::PRSCH1,
428            2 => PRSDOWNSEL_A::PRSCH2,
429            3 => PRSDOWNSEL_A::PRSCH3,
430            4 => PRSDOWNSEL_A::PRSCH4,
431            5 => PRSDOWNSEL_A::PRSCH5,
432            6 => PRSDOWNSEL_A::PRSCH6,
433            7 => PRSDOWNSEL_A::PRSCH7,
434            _ => unreachable!(),
435        }
436    }
437    #[doc = "Checks if the value of the field is `PRSCH0`"]
438    #[inline(always)]
439    pub fn is_prsch0(&self) -> bool {
440        *self == PRSDOWNSEL_A::PRSCH0
441    }
442    #[doc = "Checks if the value of the field is `PRSCH1`"]
443    #[inline(always)]
444    pub fn is_prsch1(&self) -> bool {
445        *self == PRSDOWNSEL_A::PRSCH1
446    }
447    #[doc = "Checks if the value of the field is `PRSCH2`"]
448    #[inline(always)]
449    pub fn is_prsch2(&self) -> bool {
450        *self == PRSDOWNSEL_A::PRSCH2
451    }
452    #[doc = "Checks if the value of the field is `PRSCH3`"]
453    #[inline(always)]
454    pub fn is_prsch3(&self) -> bool {
455        *self == PRSDOWNSEL_A::PRSCH3
456    }
457    #[doc = "Checks if the value of the field is `PRSCH4`"]
458    #[inline(always)]
459    pub fn is_prsch4(&self) -> bool {
460        *self == PRSDOWNSEL_A::PRSCH4
461    }
462    #[doc = "Checks if the value of the field is `PRSCH5`"]
463    #[inline(always)]
464    pub fn is_prsch5(&self) -> bool {
465        *self == PRSDOWNSEL_A::PRSCH5
466    }
467    #[doc = "Checks if the value of the field is `PRSCH6`"]
468    #[inline(always)]
469    pub fn is_prsch6(&self) -> bool {
470        *self == PRSDOWNSEL_A::PRSCH6
471    }
472    #[doc = "Checks if the value of the field is `PRSCH7`"]
473    #[inline(always)]
474    pub fn is_prsch7(&self) -> bool {
475        *self == PRSDOWNSEL_A::PRSCH7
476    }
477}
478#[doc = "Field `PRSDOWNSEL` writer - PRS Select for PRS Input When Selected in DOWNSEL"]
479pub type PRSDOWNSEL_W<'a> = crate::FieldWriterSafe<'a, u32, CALCTRL_SPEC, u8, PRSDOWNSEL_A, 3, 24>;
480impl<'a> PRSDOWNSEL_W<'a> {
481    #[doc = "PRS Channel 0 selected as input"]
482    #[inline(always)]
483    pub fn prsch0(self) -> &'a mut W {
484        self.variant(PRSDOWNSEL_A::PRSCH0)
485    }
486    #[doc = "PRS Channel 1 selected as input"]
487    #[inline(always)]
488    pub fn prsch1(self) -> &'a mut W {
489        self.variant(PRSDOWNSEL_A::PRSCH1)
490    }
491    #[doc = "PRS Channel 2 selected as input"]
492    #[inline(always)]
493    pub fn prsch2(self) -> &'a mut W {
494        self.variant(PRSDOWNSEL_A::PRSCH2)
495    }
496    #[doc = "PRS Channel 3 selected as input"]
497    #[inline(always)]
498    pub fn prsch3(self) -> &'a mut W {
499        self.variant(PRSDOWNSEL_A::PRSCH3)
500    }
501    #[doc = "PRS Channel 4 selected as input"]
502    #[inline(always)]
503    pub fn prsch4(self) -> &'a mut W {
504        self.variant(PRSDOWNSEL_A::PRSCH4)
505    }
506    #[doc = "PRS Channel 5 selected as input"]
507    #[inline(always)]
508    pub fn prsch5(self) -> &'a mut W {
509        self.variant(PRSDOWNSEL_A::PRSCH5)
510    }
511    #[doc = "PRS Channel 6 selected as input"]
512    #[inline(always)]
513    pub fn prsch6(self) -> &'a mut W {
514        self.variant(PRSDOWNSEL_A::PRSCH6)
515    }
516    #[doc = "PRS Channel 7 selected as input"]
517    #[inline(always)]
518    pub fn prsch7(self) -> &'a mut W {
519        self.variant(PRSDOWNSEL_A::PRSCH7)
520    }
521}
522impl R {
523    #[doc = "Bits 0:2 - Calibration Up-counter Select"]
524    #[inline(always)]
525    pub fn upsel(&self) -> UPSEL_R {
526        UPSEL_R::new((self.bits & 7) as u8)
527    }
528    #[doc = "Bits 4:6 - Calibration Down-counter Select"]
529    #[inline(always)]
530    pub fn downsel(&self) -> DOWNSEL_R {
531        DOWNSEL_R::new(((self.bits >> 4) & 7) as u8)
532    }
533    #[doc = "Bit 8 - Continuous Calibration"]
534    #[inline(always)]
535    pub fn cont(&self) -> CONT_R {
536        CONT_R::new(((self.bits >> 8) & 1) != 0)
537    }
538    #[doc = "Bits 16:18 - PRS Select for PRS Input When Selected in UPSEL"]
539    #[inline(always)]
540    pub fn prsupsel(&self) -> PRSUPSEL_R {
541        PRSUPSEL_R::new(((self.bits >> 16) & 7) as u8)
542    }
543    #[doc = "Bits 24:26 - PRS Select for PRS Input When Selected in DOWNSEL"]
544    #[inline(always)]
545    pub fn prsdownsel(&self) -> PRSDOWNSEL_R {
546        PRSDOWNSEL_R::new(((self.bits >> 24) & 7) as u8)
547    }
548}
549impl W {
550    #[doc = "Bits 0:2 - Calibration Up-counter Select"]
551    #[inline(always)]
552    pub fn upsel(&mut self) -> UPSEL_W {
553        UPSEL_W::new(self)
554    }
555    #[doc = "Bits 4:6 - Calibration Down-counter Select"]
556    #[inline(always)]
557    pub fn downsel(&mut self) -> DOWNSEL_W {
558        DOWNSEL_W::new(self)
559    }
560    #[doc = "Bit 8 - Continuous Calibration"]
561    #[inline(always)]
562    pub fn cont(&mut self) -> CONT_W {
563        CONT_W::new(self)
564    }
565    #[doc = "Bits 16:18 - PRS Select for PRS Input When Selected in UPSEL"]
566    #[inline(always)]
567    pub fn prsupsel(&mut self) -> PRSUPSEL_W {
568        PRSUPSEL_W::new(self)
569    }
570    #[doc = "Bits 24:26 - PRS Select for PRS Input When Selected in DOWNSEL"]
571    #[inline(always)]
572    pub fn prsdownsel(&mut self) -> PRSDOWNSEL_W {
573        PRSDOWNSEL_W::new(self)
574    }
575    #[doc = "Writes raw bits to the register."]
576    #[inline(always)]
577    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
578        self.0.bits(bits);
579        self
580    }
581}
582#[doc = "Calibration Control 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 [calctrl](index.html) module"]
583pub struct CALCTRL_SPEC;
584impl crate::RegisterSpec for CALCTRL_SPEC {
585    type Ux = u32;
586}
587#[doc = "`read()` method returns [calctrl::R](R) reader structure"]
588impl crate::Readable for CALCTRL_SPEC {
589    type Reader = R;
590}
591#[doc = "`write(|w| ..)` method takes [calctrl::W](W) writer structure"]
592impl crate::Writable for CALCTRL_SPEC {
593    type Writer = W;
594}
595#[doc = "`reset()` method sets CALCTRL to value 0"]
596impl crate::Resettable for CALCTRL_SPEC {
597    #[inline(always)]
598    fn reset_value() -> Self::Ux {
599        0
600    }
601}