Skip to main content

atsame70q21/pmc/
pmc_fspr.rs

1#[doc = "Register `PMC_FSPR` reader"]
2pub struct R(crate::R<PMC_FSPR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PMC_FSPR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PMC_FSPR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PMC_FSPR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `PMC_FSPR` writer"]
17pub struct W(crate::W<PMC_FSPR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PMC_FSPR_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<PMC_FSPR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PMC_FSPR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `FSTP0` reader - Fast Startup Input Polarity 0"]
38pub struct FSTP0_R(crate::FieldReader<bool, bool>);
39impl FSTP0_R {
40    #[inline(always)]
41    pub(crate) fn new(bits: bool) -> Self {
42        FSTP0_R(crate::FieldReader::new(bits))
43    }
44}
45impl core::ops::Deref for FSTP0_R {
46    type Target = crate::FieldReader<bool, bool>;
47    #[inline(always)]
48    fn deref(&self) -> &Self::Target {
49        &self.0
50    }
51}
52#[doc = "Field `FSTP0` writer - Fast Startup Input Polarity 0"]
53pub struct FSTP0_W<'a> {
54    w: &'a mut W,
55}
56impl<'a> FSTP0_W<'a> {
57    #[doc = r"Sets the field bit"]
58    #[inline(always)]
59    pub fn set_bit(self) -> &'a mut W {
60        self.bit(true)
61    }
62    #[doc = r"Clears the field bit"]
63    #[inline(always)]
64    pub fn clear_bit(self) -> &'a mut W {
65        self.bit(false)
66    }
67    #[doc = r"Writes raw bits to the field"]
68    #[inline(always)]
69    pub fn bit(self, value: bool) -> &'a mut W {
70        self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
71        self.w
72    }
73}
74#[doc = "Field `FSTP1` reader - Fast Startup Input Polarity 1"]
75pub struct FSTP1_R(crate::FieldReader<bool, bool>);
76impl FSTP1_R {
77    #[inline(always)]
78    pub(crate) fn new(bits: bool) -> Self {
79        FSTP1_R(crate::FieldReader::new(bits))
80    }
81}
82impl core::ops::Deref for FSTP1_R {
83    type Target = crate::FieldReader<bool, bool>;
84    #[inline(always)]
85    fn deref(&self) -> &Self::Target {
86        &self.0
87    }
88}
89#[doc = "Field `FSTP1` writer - Fast Startup Input Polarity 1"]
90pub struct FSTP1_W<'a> {
91    w: &'a mut W,
92}
93impl<'a> FSTP1_W<'a> {
94    #[doc = r"Sets the field bit"]
95    #[inline(always)]
96    pub fn set_bit(self) -> &'a mut W {
97        self.bit(true)
98    }
99    #[doc = r"Clears the field bit"]
100    #[inline(always)]
101    pub fn clear_bit(self) -> &'a mut W {
102        self.bit(false)
103    }
104    #[doc = r"Writes raw bits to the field"]
105    #[inline(always)]
106    pub fn bit(self, value: bool) -> &'a mut W {
107        self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
108        self.w
109    }
110}
111#[doc = "Field `FSTP2` reader - Fast Startup Input Polarity 2"]
112pub struct FSTP2_R(crate::FieldReader<bool, bool>);
113impl FSTP2_R {
114    #[inline(always)]
115    pub(crate) fn new(bits: bool) -> Self {
116        FSTP2_R(crate::FieldReader::new(bits))
117    }
118}
119impl core::ops::Deref for FSTP2_R {
120    type Target = crate::FieldReader<bool, bool>;
121    #[inline(always)]
122    fn deref(&self) -> &Self::Target {
123        &self.0
124    }
125}
126#[doc = "Field `FSTP2` writer - Fast Startup Input Polarity 2"]
127pub struct FSTP2_W<'a> {
128    w: &'a mut W,
129}
130impl<'a> FSTP2_W<'a> {
131    #[doc = r"Sets the field bit"]
132    #[inline(always)]
133    pub fn set_bit(self) -> &'a mut W {
134        self.bit(true)
135    }
136    #[doc = r"Clears the field bit"]
137    #[inline(always)]
138    pub fn clear_bit(self) -> &'a mut W {
139        self.bit(false)
140    }
141    #[doc = r"Writes raw bits to the field"]
142    #[inline(always)]
143    pub fn bit(self, value: bool) -> &'a mut W {
144        self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
145        self.w
146    }
147}
148#[doc = "Field `FSTP3` reader - Fast Startup Input Polarity 3"]
149pub struct FSTP3_R(crate::FieldReader<bool, bool>);
150impl FSTP3_R {
151    #[inline(always)]
152    pub(crate) fn new(bits: bool) -> Self {
153        FSTP3_R(crate::FieldReader::new(bits))
154    }
155}
156impl core::ops::Deref for FSTP3_R {
157    type Target = crate::FieldReader<bool, bool>;
158    #[inline(always)]
159    fn deref(&self) -> &Self::Target {
160        &self.0
161    }
162}
163#[doc = "Field `FSTP3` writer - Fast Startup Input Polarity 3"]
164pub struct FSTP3_W<'a> {
165    w: &'a mut W,
166}
167impl<'a> FSTP3_W<'a> {
168    #[doc = r"Sets the field bit"]
169    #[inline(always)]
170    pub fn set_bit(self) -> &'a mut W {
171        self.bit(true)
172    }
173    #[doc = r"Clears the field bit"]
174    #[inline(always)]
175    pub fn clear_bit(self) -> &'a mut W {
176        self.bit(false)
177    }
178    #[doc = r"Writes raw bits to the field"]
179    #[inline(always)]
180    pub fn bit(self, value: bool) -> &'a mut W {
181        self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
182        self.w
183    }
184}
185#[doc = "Field `FSTP4` reader - Fast Startup Input Polarity 4"]
186pub struct FSTP4_R(crate::FieldReader<bool, bool>);
187impl FSTP4_R {
188    #[inline(always)]
189    pub(crate) fn new(bits: bool) -> Self {
190        FSTP4_R(crate::FieldReader::new(bits))
191    }
192}
193impl core::ops::Deref for FSTP4_R {
194    type Target = crate::FieldReader<bool, bool>;
195    #[inline(always)]
196    fn deref(&self) -> &Self::Target {
197        &self.0
198    }
199}
200#[doc = "Field `FSTP4` writer - Fast Startup Input Polarity 4"]
201pub struct FSTP4_W<'a> {
202    w: &'a mut W,
203}
204impl<'a> FSTP4_W<'a> {
205    #[doc = r"Sets the field bit"]
206    #[inline(always)]
207    pub fn set_bit(self) -> &'a mut W {
208        self.bit(true)
209    }
210    #[doc = r"Clears the field bit"]
211    #[inline(always)]
212    pub fn clear_bit(self) -> &'a mut W {
213        self.bit(false)
214    }
215    #[doc = r"Writes raw bits to the field"]
216    #[inline(always)]
217    pub fn bit(self, value: bool) -> &'a mut W {
218        self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
219        self.w
220    }
221}
222#[doc = "Field `FSTP5` reader - Fast Startup Input Polarity 5"]
223pub struct FSTP5_R(crate::FieldReader<bool, bool>);
224impl FSTP5_R {
225    #[inline(always)]
226    pub(crate) fn new(bits: bool) -> Self {
227        FSTP5_R(crate::FieldReader::new(bits))
228    }
229}
230impl core::ops::Deref for FSTP5_R {
231    type Target = crate::FieldReader<bool, bool>;
232    #[inline(always)]
233    fn deref(&self) -> &Self::Target {
234        &self.0
235    }
236}
237#[doc = "Field `FSTP5` writer - Fast Startup Input Polarity 5"]
238pub struct FSTP5_W<'a> {
239    w: &'a mut W,
240}
241impl<'a> FSTP5_W<'a> {
242    #[doc = r"Sets the field bit"]
243    #[inline(always)]
244    pub fn set_bit(self) -> &'a mut W {
245        self.bit(true)
246    }
247    #[doc = r"Clears the field bit"]
248    #[inline(always)]
249    pub fn clear_bit(self) -> &'a mut W {
250        self.bit(false)
251    }
252    #[doc = r"Writes raw bits to the field"]
253    #[inline(always)]
254    pub fn bit(self, value: bool) -> &'a mut W {
255        self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
256        self.w
257    }
258}
259#[doc = "Field `FSTP6` reader - Fast Startup Input Polarity 6"]
260pub struct FSTP6_R(crate::FieldReader<bool, bool>);
261impl FSTP6_R {
262    #[inline(always)]
263    pub(crate) fn new(bits: bool) -> Self {
264        FSTP6_R(crate::FieldReader::new(bits))
265    }
266}
267impl core::ops::Deref for FSTP6_R {
268    type Target = crate::FieldReader<bool, bool>;
269    #[inline(always)]
270    fn deref(&self) -> &Self::Target {
271        &self.0
272    }
273}
274#[doc = "Field `FSTP6` writer - Fast Startup Input Polarity 6"]
275pub struct FSTP6_W<'a> {
276    w: &'a mut W,
277}
278impl<'a> FSTP6_W<'a> {
279    #[doc = r"Sets the field bit"]
280    #[inline(always)]
281    pub fn set_bit(self) -> &'a mut W {
282        self.bit(true)
283    }
284    #[doc = r"Clears the field bit"]
285    #[inline(always)]
286    pub fn clear_bit(self) -> &'a mut W {
287        self.bit(false)
288    }
289    #[doc = r"Writes raw bits to the field"]
290    #[inline(always)]
291    pub fn bit(self, value: bool) -> &'a mut W {
292        self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
293        self.w
294    }
295}
296#[doc = "Field `FSTP7` reader - Fast Startup Input Polarity 7"]
297pub struct FSTP7_R(crate::FieldReader<bool, bool>);
298impl FSTP7_R {
299    #[inline(always)]
300    pub(crate) fn new(bits: bool) -> Self {
301        FSTP7_R(crate::FieldReader::new(bits))
302    }
303}
304impl core::ops::Deref for FSTP7_R {
305    type Target = crate::FieldReader<bool, bool>;
306    #[inline(always)]
307    fn deref(&self) -> &Self::Target {
308        &self.0
309    }
310}
311#[doc = "Field `FSTP7` writer - Fast Startup Input Polarity 7"]
312pub struct FSTP7_W<'a> {
313    w: &'a mut W,
314}
315impl<'a> FSTP7_W<'a> {
316    #[doc = r"Sets the field bit"]
317    #[inline(always)]
318    pub fn set_bit(self) -> &'a mut W {
319        self.bit(true)
320    }
321    #[doc = r"Clears the field bit"]
322    #[inline(always)]
323    pub fn clear_bit(self) -> &'a mut W {
324        self.bit(false)
325    }
326    #[doc = r"Writes raw bits to the field"]
327    #[inline(always)]
328    pub fn bit(self, value: bool) -> &'a mut W {
329        self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
330        self.w
331    }
332}
333#[doc = "Field `FSTP8` reader - Fast Startup Input Polarity 8"]
334pub struct FSTP8_R(crate::FieldReader<bool, bool>);
335impl FSTP8_R {
336    #[inline(always)]
337    pub(crate) fn new(bits: bool) -> Self {
338        FSTP8_R(crate::FieldReader::new(bits))
339    }
340}
341impl core::ops::Deref for FSTP8_R {
342    type Target = crate::FieldReader<bool, bool>;
343    #[inline(always)]
344    fn deref(&self) -> &Self::Target {
345        &self.0
346    }
347}
348#[doc = "Field `FSTP8` writer - Fast Startup Input Polarity 8"]
349pub struct FSTP8_W<'a> {
350    w: &'a mut W,
351}
352impl<'a> FSTP8_W<'a> {
353    #[doc = r"Sets the field bit"]
354    #[inline(always)]
355    pub fn set_bit(self) -> &'a mut W {
356        self.bit(true)
357    }
358    #[doc = r"Clears the field bit"]
359    #[inline(always)]
360    pub fn clear_bit(self) -> &'a mut W {
361        self.bit(false)
362    }
363    #[doc = r"Writes raw bits to the field"]
364    #[inline(always)]
365    pub fn bit(self, value: bool) -> &'a mut W {
366        self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
367        self.w
368    }
369}
370#[doc = "Field `FSTP9` reader - Fast Startup Input Polarity 9"]
371pub struct FSTP9_R(crate::FieldReader<bool, bool>);
372impl FSTP9_R {
373    #[inline(always)]
374    pub(crate) fn new(bits: bool) -> Self {
375        FSTP9_R(crate::FieldReader::new(bits))
376    }
377}
378impl core::ops::Deref for FSTP9_R {
379    type Target = crate::FieldReader<bool, bool>;
380    #[inline(always)]
381    fn deref(&self) -> &Self::Target {
382        &self.0
383    }
384}
385#[doc = "Field `FSTP9` writer - Fast Startup Input Polarity 9"]
386pub struct FSTP9_W<'a> {
387    w: &'a mut W,
388}
389impl<'a> FSTP9_W<'a> {
390    #[doc = r"Sets the field bit"]
391    #[inline(always)]
392    pub fn set_bit(self) -> &'a mut W {
393        self.bit(true)
394    }
395    #[doc = r"Clears the field bit"]
396    #[inline(always)]
397    pub fn clear_bit(self) -> &'a mut W {
398        self.bit(false)
399    }
400    #[doc = r"Writes raw bits to the field"]
401    #[inline(always)]
402    pub fn bit(self, value: bool) -> &'a mut W {
403        self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
404        self.w
405    }
406}
407#[doc = "Field `FSTP10` reader - Fast Startup Input Polarity 10"]
408pub struct FSTP10_R(crate::FieldReader<bool, bool>);
409impl FSTP10_R {
410    #[inline(always)]
411    pub(crate) fn new(bits: bool) -> Self {
412        FSTP10_R(crate::FieldReader::new(bits))
413    }
414}
415impl core::ops::Deref for FSTP10_R {
416    type Target = crate::FieldReader<bool, bool>;
417    #[inline(always)]
418    fn deref(&self) -> &Self::Target {
419        &self.0
420    }
421}
422#[doc = "Field `FSTP10` writer - Fast Startup Input Polarity 10"]
423pub struct FSTP10_W<'a> {
424    w: &'a mut W,
425}
426impl<'a> FSTP10_W<'a> {
427    #[doc = r"Sets the field bit"]
428    #[inline(always)]
429    pub fn set_bit(self) -> &'a mut W {
430        self.bit(true)
431    }
432    #[doc = r"Clears the field bit"]
433    #[inline(always)]
434    pub fn clear_bit(self) -> &'a mut W {
435        self.bit(false)
436    }
437    #[doc = r"Writes raw bits to the field"]
438    #[inline(always)]
439    pub fn bit(self, value: bool) -> &'a mut W {
440        self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
441        self.w
442    }
443}
444#[doc = "Field `FSTP11` reader - Fast Startup Input Polarity 11"]
445pub struct FSTP11_R(crate::FieldReader<bool, bool>);
446impl FSTP11_R {
447    #[inline(always)]
448    pub(crate) fn new(bits: bool) -> Self {
449        FSTP11_R(crate::FieldReader::new(bits))
450    }
451}
452impl core::ops::Deref for FSTP11_R {
453    type Target = crate::FieldReader<bool, bool>;
454    #[inline(always)]
455    fn deref(&self) -> &Self::Target {
456        &self.0
457    }
458}
459#[doc = "Field `FSTP11` writer - Fast Startup Input Polarity 11"]
460pub struct FSTP11_W<'a> {
461    w: &'a mut W,
462}
463impl<'a> FSTP11_W<'a> {
464    #[doc = r"Sets the field bit"]
465    #[inline(always)]
466    pub fn set_bit(self) -> &'a mut W {
467        self.bit(true)
468    }
469    #[doc = r"Clears the field bit"]
470    #[inline(always)]
471    pub fn clear_bit(self) -> &'a mut W {
472        self.bit(false)
473    }
474    #[doc = r"Writes raw bits to the field"]
475    #[inline(always)]
476    pub fn bit(self, value: bool) -> &'a mut W {
477        self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
478        self.w
479    }
480}
481#[doc = "Field `FSTP12` reader - Fast Startup Input Polarity 12"]
482pub struct FSTP12_R(crate::FieldReader<bool, bool>);
483impl FSTP12_R {
484    #[inline(always)]
485    pub(crate) fn new(bits: bool) -> Self {
486        FSTP12_R(crate::FieldReader::new(bits))
487    }
488}
489impl core::ops::Deref for FSTP12_R {
490    type Target = crate::FieldReader<bool, bool>;
491    #[inline(always)]
492    fn deref(&self) -> &Self::Target {
493        &self.0
494    }
495}
496#[doc = "Field `FSTP12` writer - Fast Startup Input Polarity 12"]
497pub struct FSTP12_W<'a> {
498    w: &'a mut W,
499}
500impl<'a> FSTP12_W<'a> {
501    #[doc = r"Sets the field bit"]
502    #[inline(always)]
503    pub fn set_bit(self) -> &'a mut W {
504        self.bit(true)
505    }
506    #[doc = r"Clears the field bit"]
507    #[inline(always)]
508    pub fn clear_bit(self) -> &'a mut W {
509        self.bit(false)
510    }
511    #[doc = r"Writes raw bits to the field"]
512    #[inline(always)]
513    pub fn bit(self, value: bool) -> &'a mut W {
514        self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
515        self.w
516    }
517}
518#[doc = "Field `FSTP13` reader - Fast Startup Input Polarity 13"]
519pub struct FSTP13_R(crate::FieldReader<bool, bool>);
520impl FSTP13_R {
521    #[inline(always)]
522    pub(crate) fn new(bits: bool) -> Self {
523        FSTP13_R(crate::FieldReader::new(bits))
524    }
525}
526impl core::ops::Deref for FSTP13_R {
527    type Target = crate::FieldReader<bool, bool>;
528    #[inline(always)]
529    fn deref(&self) -> &Self::Target {
530        &self.0
531    }
532}
533#[doc = "Field `FSTP13` writer - Fast Startup Input Polarity 13"]
534pub struct FSTP13_W<'a> {
535    w: &'a mut W,
536}
537impl<'a> FSTP13_W<'a> {
538    #[doc = r"Sets the field bit"]
539    #[inline(always)]
540    pub fn set_bit(self) -> &'a mut W {
541        self.bit(true)
542    }
543    #[doc = r"Clears the field bit"]
544    #[inline(always)]
545    pub fn clear_bit(self) -> &'a mut W {
546        self.bit(false)
547    }
548    #[doc = r"Writes raw bits to the field"]
549    #[inline(always)]
550    pub fn bit(self, value: bool) -> &'a mut W {
551        self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
552        self.w
553    }
554}
555#[doc = "Field `FSTP14` reader - Fast Startup Input Polarity 14"]
556pub struct FSTP14_R(crate::FieldReader<bool, bool>);
557impl FSTP14_R {
558    #[inline(always)]
559    pub(crate) fn new(bits: bool) -> Self {
560        FSTP14_R(crate::FieldReader::new(bits))
561    }
562}
563impl core::ops::Deref for FSTP14_R {
564    type Target = crate::FieldReader<bool, bool>;
565    #[inline(always)]
566    fn deref(&self) -> &Self::Target {
567        &self.0
568    }
569}
570#[doc = "Field `FSTP14` writer - Fast Startup Input Polarity 14"]
571pub struct FSTP14_W<'a> {
572    w: &'a mut W,
573}
574impl<'a> FSTP14_W<'a> {
575    #[doc = r"Sets the field bit"]
576    #[inline(always)]
577    pub fn set_bit(self) -> &'a mut W {
578        self.bit(true)
579    }
580    #[doc = r"Clears the field bit"]
581    #[inline(always)]
582    pub fn clear_bit(self) -> &'a mut W {
583        self.bit(false)
584    }
585    #[doc = r"Writes raw bits to the field"]
586    #[inline(always)]
587    pub fn bit(self, value: bool) -> &'a mut W {
588        self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
589        self.w
590    }
591}
592#[doc = "Field `FSTP15` reader - Fast Startup Input Polarity 15"]
593pub struct FSTP15_R(crate::FieldReader<bool, bool>);
594impl FSTP15_R {
595    #[inline(always)]
596    pub(crate) fn new(bits: bool) -> Self {
597        FSTP15_R(crate::FieldReader::new(bits))
598    }
599}
600impl core::ops::Deref for FSTP15_R {
601    type Target = crate::FieldReader<bool, bool>;
602    #[inline(always)]
603    fn deref(&self) -> &Self::Target {
604        &self.0
605    }
606}
607#[doc = "Field `FSTP15` writer - Fast Startup Input Polarity 15"]
608pub struct FSTP15_W<'a> {
609    w: &'a mut W,
610}
611impl<'a> FSTP15_W<'a> {
612    #[doc = r"Sets the field bit"]
613    #[inline(always)]
614    pub fn set_bit(self) -> &'a mut W {
615        self.bit(true)
616    }
617    #[doc = r"Clears the field bit"]
618    #[inline(always)]
619    pub fn clear_bit(self) -> &'a mut W {
620        self.bit(false)
621    }
622    #[doc = r"Writes raw bits to the field"]
623    #[inline(always)]
624    pub fn bit(self, value: bool) -> &'a mut W {
625        self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
626        self.w
627    }
628}
629impl R {
630    #[doc = "Bit 0 - Fast Startup Input Polarity 0"]
631    #[inline(always)]
632    pub fn fstp0(&self) -> FSTP0_R {
633        FSTP0_R::new((self.bits & 0x01) != 0)
634    }
635    #[doc = "Bit 1 - Fast Startup Input Polarity 1"]
636    #[inline(always)]
637    pub fn fstp1(&self) -> FSTP1_R {
638        FSTP1_R::new(((self.bits >> 1) & 0x01) != 0)
639    }
640    #[doc = "Bit 2 - Fast Startup Input Polarity 2"]
641    #[inline(always)]
642    pub fn fstp2(&self) -> FSTP2_R {
643        FSTP2_R::new(((self.bits >> 2) & 0x01) != 0)
644    }
645    #[doc = "Bit 3 - Fast Startup Input Polarity 3"]
646    #[inline(always)]
647    pub fn fstp3(&self) -> FSTP3_R {
648        FSTP3_R::new(((self.bits >> 3) & 0x01) != 0)
649    }
650    #[doc = "Bit 4 - Fast Startup Input Polarity 4"]
651    #[inline(always)]
652    pub fn fstp4(&self) -> FSTP4_R {
653        FSTP4_R::new(((self.bits >> 4) & 0x01) != 0)
654    }
655    #[doc = "Bit 5 - Fast Startup Input Polarity 5"]
656    #[inline(always)]
657    pub fn fstp5(&self) -> FSTP5_R {
658        FSTP5_R::new(((self.bits >> 5) & 0x01) != 0)
659    }
660    #[doc = "Bit 6 - Fast Startup Input Polarity 6"]
661    #[inline(always)]
662    pub fn fstp6(&self) -> FSTP6_R {
663        FSTP6_R::new(((self.bits >> 6) & 0x01) != 0)
664    }
665    #[doc = "Bit 7 - Fast Startup Input Polarity 7"]
666    #[inline(always)]
667    pub fn fstp7(&self) -> FSTP7_R {
668        FSTP7_R::new(((self.bits >> 7) & 0x01) != 0)
669    }
670    #[doc = "Bit 8 - Fast Startup Input Polarity 8"]
671    #[inline(always)]
672    pub fn fstp8(&self) -> FSTP8_R {
673        FSTP8_R::new(((self.bits >> 8) & 0x01) != 0)
674    }
675    #[doc = "Bit 9 - Fast Startup Input Polarity 9"]
676    #[inline(always)]
677    pub fn fstp9(&self) -> FSTP9_R {
678        FSTP9_R::new(((self.bits >> 9) & 0x01) != 0)
679    }
680    #[doc = "Bit 10 - Fast Startup Input Polarity 10"]
681    #[inline(always)]
682    pub fn fstp10(&self) -> FSTP10_R {
683        FSTP10_R::new(((self.bits >> 10) & 0x01) != 0)
684    }
685    #[doc = "Bit 11 - Fast Startup Input Polarity 11"]
686    #[inline(always)]
687    pub fn fstp11(&self) -> FSTP11_R {
688        FSTP11_R::new(((self.bits >> 11) & 0x01) != 0)
689    }
690    #[doc = "Bit 12 - Fast Startup Input Polarity 12"]
691    #[inline(always)]
692    pub fn fstp12(&self) -> FSTP12_R {
693        FSTP12_R::new(((self.bits >> 12) & 0x01) != 0)
694    }
695    #[doc = "Bit 13 - Fast Startup Input Polarity 13"]
696    #[inline(always)]
697    pub fn fstp13(&self) -> FSTP13_R {
698        FSTP13_R::new(((self.bits >> 13) & 0x01) != 0)
699    }
700    #[doc = "Bit 14 - Fast Startup Input Polarity 14"]
701    #[inline(always)]
702    pub fn fstp14(&self) -> FSTP14_R {
703        FSTP14_R::new(((self.bits >> 14) & 0x01) != 0)
704    }
705    #[doc = "Bit 15 - Fast Startup Input Polarity 15"]
706    #[inline(always)]
707    pub fn fstp15(&self) -> FSTP15_R {
708        FSTP15_R::new(((self.bits >> 15) & 0x01) != 0)
709    }
710}
711impl W {
712    #[doc = "Bit 0 - Fast Startup Input Polarity 0"]
713    #[inline(always)]
714    pub fn fstp0(&mut self) -> FSTP0_W {
715        FSTP0_W { w: self }
716    }
717    #[doc = "Bit 1 - Fast Startup Input Polarity 1"]
718    #[inline(always)]
719    pub fn fstp1(&mut self) -> FSTP1_W {
720        FSTP1_W { w: self }
721    }
722    #[doc = "Bit 2 - Fast Startup Input Polarity 2"]
723    #[inline(always)]
724    pub fn fstp2(&mut self) -> FSTP2_W {
725        FSTP2_W { w: self }
726    }
727    #[doc = "Bit 3 - Fast Startup Input Polarity 3"]
728    #[inline(always)]
729    pub fn fstp3(&mut self) -> FSTP3_W {
730        FSTP3_W { w: self }
731    }
732    #[doc = "Bit 4 - Fast Startup Input Polarity 4"]
733    #[inline(always)]
734    pub fn fstp4(&mut self) -> FSTP4_W {
735        FSTP4_W { w: self }
736    }
737    #[doc = "Bit 5 - Fast Startup Input Polarity 5"]
738    #[inline(always)]
739    pub fn fstp5(&mut self) -> FSTP5_W {
740        FSTP5_W { w: self }
741    }
742    #[doc = "Bit 6 - Fast Startup Input Polarity 6"]
743    #[inline(always)]
744    pub fn fstp6(&mut self) -> FSTP6_W {
745        FSTP6_W { w: self }
746    }
747    #[doc = "Bit 7 - Fast Startup Input Polarity 7"]
748    #[inline(always)]
749    pub fn fstp7(&mut self) -> FSTP7_W {
750        FSTP7_W { w: self }
751    }
752    #[doc = "Bit 8 - Fast Startup Input Polarity 8"]
753    #[inline(always)]
754    pub fn fstp8(&mut self) -> FSTP8_W {
755        FSTP8_W { w: self }
756    }
757    #[doc = "Bit 9 - Fast Startup Input Polarity 9"]
758    #[inline(always)]
759    pub fn fstp9(&mut self) -> FSTP9_W {
760        FSTP9_W { w: self }
761    }
762    #[doc = "Bit 10 - Fast Startup Input Polarity 10"]
763    #[inline(always)]
764    pub fn fstp10(&mut self) -> FSTP10_W {
765        FSTP10_W { w: self }
766    }
767    #[doc = "Bit 11 - Fast Startup Input Polarity 11"]
768    #[inline(always)]
769    pub fn fstp11(&mut self) -> FSTP11_W {
770        FSTP11_W { w: self }
771    }
772    #[doc = "Bit 12 - Fast Startup Input Polarity 12"]
773    #[inline(always)]
774    pub fn fstp12(&mut self) -> FSTP12_W {
775        FSTP12_W { w: self }
776    }
777    #[doc = "Bit 13 - Fast Startup Input Polarity 13"]
778    #[inline(always)]
779    pub fn fstp13(&mut self) -> FSTP13_W {
780        FSTP13_W { w: self }
781    }
782    #[doc = "Bit 14 - Fast Startup Input Polarity 14"]
783    #[inline(always)]
784    pub fn fstp14(&mut self) -> FSTP14_W {
785        FSTP14_W { w: self }
786    }
787    #[doc = "Bit 15 - Fast Startup Input Polarity 15"]
788    #[inline(always)]
789    pub fn fstp15(&mut self) -> FSTP15_W {
790        FSTP15_W { w: self }
791    }
792    #[doc = "Writes raw bits to the register."]
793    #[inline(always)]
794    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
795        self.0.bits(bits);
796        self
797    }
798}
799#[doc = "Fast Startup Polarity 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 [pmc_fspr](index.html) module"]
800pub struct PMC_FSPR_SPEC;
801impl crate::RegisterSpec for PMC_FSPR_SPEC {
802    type Ux = u32;
803}
804#[doc = "`read()` method returns [pmc_fspr::R](R) reader structure"]
805impl crate::Readable for PMC_FSPR_SPEC {
806    type Reader = R;
807}
808#[doc = "`write(|w| ..)` method takes [pmc_fspr::W](W) writer structure"]
809impl crate::Writable for PMC_FSPR_SPEC {
810    type Writer = W;
811}
812#[doc = "`reset()` method sets PMC_FSPR to value 0"]
813impl crate::Resettable for PMC_FSPR_SPEC {
814    #[inline(always)]
815    fn reset_value() -> Self::Ux {
816        0
817    }
818}