atsam4e8c_pac/afec1/
over.rs1#[doc = "Register `OVER` reader"]
2pub struct R(crate::R<OVER_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<OVER_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<OVER_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<OVER_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `OVRE0` reader - Overrun Error 0"]
17pub type OVRE0_R = crate::BitReader<bool>;
18#[doc = "Field `OVRE1` reader - Overrun Error 1"]
19pub type OVRE1_R = crate::BitReader<bool>;
20#[doc = "Field `OVRE2` reader - Overrun Error 2"]
21pub type OVRE2_R = crate::BitReader<bool>;
22#[doc = "Field `OVRE3` reader - Overrun Error 3"]
23pub type OVRE3_R = crate::BitReader<bool>;
24#[doc = "Field `OVRE4` reader - Overrun Error 4"]
25pub type OVRE4_R = crate::BitReader<bool>;
26#[doc = "Field `OVRE5` reader - Overrun Error 5"]
27pub type OVRE5_R = crate::BitReader<bool>;
28#[doc = "Field `OVRE6` reader - Overrun Error 6"]
29pub type OVRE6_R = crate::BitReader<bool>;
30#[doc = "Field `OVRE7` reader - Overrun Error 7"]
31pub type OVRE7_R = crate::BitReader<bool>;
32#[doc = "Field `OVRE8` reader - Overrun Error 8"]
33pub type OVRE8_R = crate::BitReader<bool>;
34#[doc = "Field `OVRE9` reader - Overrun Error 9"]
35pub type OVRE9_R = crate::BitReader<bool>;
36#[doc = "Field `OVRE10` reader - Overrun Error 10"]
37pub type OVRE10_R = crate::BitReader<bool>;
38#[doc = "Field `OVRE11` reader - Overrun Error 11"]
39pub type OVRE11_R = crate::BitReader<bool>;
40#[doc = "Field `OVRE12` reader - Overrun Error 12"]
41pub type OVRE12_R = crate::BitReader<bool>;
42#[doc = "Field `OVRE13` reader - Overrun Error 13"]
43pub type OVRE13_R = crate::BitReader<bool>;
44#[doc = "Field `OVRE14` reader - Overrun Error 14"]
45pub type OVRE14_R = crate::BitReader<bool>;
46#[doc = "Field `OVRE15` reader - Overrun Error 15"]
47pub type OVRE15_R = crate::BitReader<bool>;
48impl R {
49 #[doc = "Bit 0 - Overrun Error 0"]
50 #[inline(always)]
51 pub fn ovre0(&self) -> OVRE0_R {
52 OVRE0_R::new((self.bits & 1) != 0)
53 }
54 #[doc = "Bit 1 - Overrun Error 1"]
55 #[inline(always)]
56 pub fn ovre1(&self) -> OVRE1_R {
57 OVRE1_R::new(((self.bits >> 1) & 1) != 0)
58 }
59 #[doc = "Bit 2 - Overrun Error 2"]
60 #[inline(always)]
61 pub fn ovre2(&self) -> OVRE2_R {
62 OVRE2_R::new(((self.bits >> 2) & 1) != 0)
63 }
64 #[doc = "Bit 3 - Overrun Error 3"]
65 #[inline(always)]
66 pub fn ovre3(&self) -> OVRE3_R {
67 OVRE3_R::new(((self.bits >> 3) & 1) != 0)
68 }
69 #[doc = "Bit 4 - Overrun Error 4"]
70 #[inline(always)]
71 pub fn ovre4(&self) -> OVRE4_R {
72 OVRE4_R::new(((self.bits >> 4) & 1) != 0)
73 }
74 #[doc = "Bit 5 - Overrun Error 5"]
75 #[inline(always)]
76 pub fn ovre5(&self) -> OVRE5_R {
77 OVRE5_R::new(((self.bits >> 5) & 1) != 0)
78 }
79 #[doc = "Bit 6 - Overrun Error 6"]
80 #[inline(always)]
81 pub fn ovre6(&self) -> OVRE6_R {
82 OVRE6_R::new(((self.bits >> 6) & 1) != 0)
83 }
84 #[doc = "Bit 7 - Overrun Error 7"]
85 #[inline(always)]
86 pub fn ovre7(&self) -> OVRE7_R {
87 OVRE7_R::new(((self.bits >> 7) & 1) != 0)
88 }
89 #[doc = "Bit 8 - Overrun Error 8"]
90 #[inline(always)]
91 pub fn ovre8(&self) -> OVRE8_R {
92 OVRE8_R::new(((self.bits >> 8) & 1) != 0)
93 }
94 #[doc = "Bit 9 - Overrun Error 9"]
95 #[inline(always)]
96 pub fn ovre9(&self) -> OVRE9_R {
97 OVRE9_R::new(((self.bits >> 9) & 1) != 0)
98 }
99 #[doc = "Bit 10 - Overrun Error 10"]
100 #[inline(always)]
101 pub fn ovre10(&self) -> OVRE10_R {
102 OVRE10_R::new(((self.bits >> 10) & 1) != 0)
103 }
104 #[doc = "Bit 11 - Overrun Error 11"]
105 #[inline(always)]
106 pub fn ovre11(&self) -> OVRE11_R {
107 OVRE11_R::new(((self.bits >> 11) & 1) != 0)
108 }
109 #[doc = "Bit 12 - Overrun Error 12"]
110 #[inline(always)]
111 pub fn ovre12(&self) -> OVRE12_R {
112 OVRE12_R::new(((self.bits >> 12) & 1) != 0)
113 }
114 #[doc = "Bit 13 - Overrun Error 13"]
115 #[inline(always)]
116 pub fn ovre13(&self) -> OVRE13_R {
117 OVRE13_R::new(((self.bits >> 13) & 1) != 0)
118 }
119 #[doc = "Bit 14 - Overrun Error 14"]
120 #[inline(always)]
121 pub fn ovre14(&self) -> OVRE14_R {
122 OVRE14_R::new(((self.bits >> 14) & 1) != 0)
123 }
124 #[doc = "Bit 15 - Overrun Error 15"]
125 #[inline(always)]
126 pub fn ovre15(&self) -> OVRE15_R {
127 OVRE15_R::new(((self.bits >> 15) & 1) != 0)
128 }
129}
130#[doc = "AFEC Overrun Status Register\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 [over](index.html) module"]
131pub struct OVER_SPEC;
132impl crate::RegisterSpec for OVER_SPEC {
133 type Ux = u32;
134}
135#[doc = "`read()` method returns [over::R](R) reader structure"]
136impl crate::Readable for OVER_SPEC {
137 type Reader = R;
138}
139#[doc = "`reset()` method sets OVER to value 0"]
140impl crate::Resettable for OVER_SPEC {
141 const RESET_VALUE: Self::Ux = 0;
142}