1#[doc = "Register `cisr` reader"]
2pub type R = crate::R<CISR_SPEC>;
3#[doc = "Register `cisr` writer"]
4pub type W = crate::W<CISR_SPEC>;
5#[doc = "Field `cris[0-7]` reader - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
6pub type CRIS_R = crate::BitReader<CRIS_A>;
7#[doc = "Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nValue on reset: 0"]
8#[derive(Clone, Copy, Debug, PartialEq, Eq)]
9pub enum CRIS_A {
10 #[doc = "0: `0`"]
11 NOT_PENDING = 0,
12 #[doc = "1: `1`"]
13 PENDING = 1,
14}
15impl From<CRIS_A> for bool {
16 #[inline(always)]
17 fn from(variant: CRIS_A) -> Self {
18 variant as u8 != 0
19 }
20}
21impl CRIS_R {
22 #[doc = "Get enumerated values variant"]
23 #[inline(always)]
24 pub const fn variant(&self) -> CRIS_A {
25 match self.bits {
26 false => CRIS_A::NOT_PENDING,
27 true => CRIS_A::PENDING,
28 }
29 }
30 #[doc = "`0`"]
31 #[inline(always)]
32 pub fn is_not_pending(&self) -> bool {
33 *self == CRIS_A::NOT_PENDING
34 }
35 #[doc = "`1`"]
36 #[inline(always)]
37 pub fn is_pending(&self) -> bool {
38 *self == CRIS_A::PENDING
39 }
40}
41#[doc = "Field `cris[0-7]` writer - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
42pub type CRIS_W<'a, REG> = crate::BitWriter1C<'a, REG, CRIS_A>;
43impl<'a, REG> CRIS_W<'a, REG>
44where
45 REG: crate::Writable + crate::RegisterSpec,
46{
47 #[doc = "`0`"]
48 #[inline(always)]
49 pub fn not_pending(self) -> &'a mut crate::W<REG> {
50 self.variant(CRIS_A::NOT_PENDING)
51 }
52 #[doc = "`1`"]
53 #[inline(always)]
54 pub fn pending(self) -> &'a mut crate::W<REG> {
55 self.variant(CRIS_A::PENDING)
56 }
57}
58#[doc = "Field `cfis[0-7]` reader - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
59pub type CFIS_R = crate::BitReader<CFIS_A>;
60#[doc = "Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nValue on reset: 0"]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum CFIS_A {
63 #[doc = "0: `0`"]
64 NOT_PENDING = 0,
65 #[doc = "1: `1`"]
66 PENDING = 1,
67}
68impl From<CFIS_A> for bool {
69 #[inline(always)]
70 fn from(variant: CFIS_A) -> Self {
71 variant as u8 != 0
72 }
73}
74impl CFIS_R {
75 #[doc = "Get enumerated values variant"]
76 #[inline(always)]
77 pub const fn variant(&self) -> CFIS_A {
78 match self.bits {
79 false => CFIS_A::NOT_PENDING,
80 true => CFIS_A::PENDING,
81 }
82 }
83 #[doc = "`0`"]
84 #[inline(always)]
85 pub fn is_not_pending(&self) -> bool {
86 *self == CFIS_A::NOT_PENDING
87 }
88 #[doc = "`1`"]
89 #[inline(always)]
90 pub fn is_pending(&self) -> bool {
91 *self == CFIS_A::PENDING
92 }
93}
94#[doc = "Field `cfis[0-7]` writer - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
95pub type CFIS_W<'a, REG> = crate::BitWriter1C<'a, REG, CFIS_A>;
96impl<'a, REG> CFIS_W<'a, REG>
97where
98 REG: crate::Writable + crate::RegisterSpec,
99{
100 #[doc = "`0`"]
101 #[inline(always)]
102 pub fn not_pending(self) -> &'a mut crate::W<REG> {
103 self.variant(CFIS_A::NOT_PENDING)
104 }
105 #[doc = "`1`"]
106 #[inline(always)]
107 pub fn pending(self) -> &'a mut crate::W<REG> {
108 self.variant(CFIS_A::PENDING)
109 }
110}
111impl R {
112 #[doc = "Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nNOTE: `n` is number of field in register. `n == 0` corresponds to `cris0` field"]
113 #[inline(always)]
114 pub fn cris(&self, n: u8) -> CRIS_R {
115 #[allow(clippy::no_effect)]
116 [(); 8][n as usize];
117 CRIS_R::new(((self.bits >> (n * 2)) & 1) != 0)
118 }
119 #[doc = "Bit 0 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
120 #[inline(always)]
121 pub fn cris0(&self) -> CRIS_R {
122 CRIS_R::new((self.bits & 1) != 0)
123 }
124 #[doc = "Bit 2 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
125 #[inline(always)]
126 pub fn cris1(&self) -> CRIS_R {
127 CRIS_R::new(((self.bits >> 2) & 1) != 0)
128 }
129 #[doc = "Bit 4 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
130 #[inline(always)]
131 pub fn cris2(&self) -> CRIS_R {
132 CRIS_R::new(((self.bits >> 4) & 1) != 0)
133 }
134 #[doc = "Bit 6 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
135 #[inline(always)]
136 pub fn cris3(&self) -> CRIS_R {
137 CRIS_R::new(((self.bits >> 6) & 1) != 0)
138 }
139 #[doc = "Bit 8 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
140 #[inline(always)]
141 pub fn cris4(&self) -> CRIS_R {
142 CRIS_R::new(((self.bits >> 8) & 1) != 0)
143 }
144 #[doc = "Bit 10 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
145 #[inline(always)]
146 pub fn cris5(&self) -> CRIS_R {
147 CRIS_R::new(((self.bits >> 10) & 1) != 0)
148 }
149 #[doc = "Bit 12 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
150 #[inline(always)]
151 pub fn cris6(&self) -> CRIS_R {
152 CRIS_R::new(((self.bits >> 12) & 1) != 0)
153 }
154 #[doc = "Bit 14 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
155 #[inline(always)]
156 pub fn cris7(&self) -> CRIS_R {
157 CRIS_R::new(((self.bits >> 14) & 1) != 0)
158 }
159 #[doc = "Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nNOTE: `n` is number of field in register. `n == 0` corresponds to `cfis0` field"]
160 #[inline(always)]
161 pub fn cfis(&self, n: u8) -> CFIS_R {
162 #[allow(clippy::no_effect)]
163 [(); 8][n as usize];
164 CFIS_R::new(((self.bits >> (n * 2 + 1)) & 1) != 0)
165 }
166 #[doc = "Bit 1 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
167 #[inline(always)]
168 pub fn cfis0(&self) -> CFIS_R {
169 CFIS_R::new(((self.bits >> 1) & 1) != 0)
170 }
171 #[doc = "Bit 3 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
172 #[inline(always)]
173 pub fn cfis1(&self) -> CFIS_R {
174 CFIS_R::new(((self.bits >> 3) & 1) != 0)
175 }
176 #[doc = "Bit 5 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
177 #[inline(always)]
178 pub fn cfis2(&self) -> CFIS_R {
179 CFIS_R::new(((self.bits >> 5) & 1) != 0)
180 }
181 #[doc = "Bit 7 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
182 #[inline(always)]
183 pub fn cfis3(&self) -> CFIS_R {
184 CFIS_R::new(((self.bits >> 7) & 1) != 0)
185 }
186 #[doc = "Bit 9 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
187 #[inline(always)]
188 pub fn cfis4(&self) -> CFIS_R {
189 CFIS_R::new(((self.bits >> 9) & 1) != 0)
190 }
191 #[doc = "Bit 11 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
192 #[inline(always)]
193 pub fn cfis5(&self) -> CFIS_R {
194 CFIS_R::new(((self.bits >> 11) & 1) != 0)
195 }
196 #[doc = "Bit 13 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
197 #[inline(always)]
198 pub fn cfis6(&self) -> CFIS_R {
199 CFIS_R::new(((self.bits >> 13) & 1) != 0)
200 }
201 #[doc = "Bit 15 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
202 #[inline(always)]
203 pub fn cfis7(&self) -> CFIS_R {
204 CFIS_R::new(((self.bits >> 15) & 1) != 0)
205 }
206}
207impl W {
208 #[doc = "Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nNOTE: `n` is number of field in register. `n == 0` corresponds to `cris0` field"]
209 #[inline(always)]
210 #[must_use]
211 pub fn cris(&mut self, n: u8) -> CRIS_W<CISR_SPEC> {
212 #[allow(clippy::no_effect)]
213 [(); 8][n as usize];
214 CRIS_W::new(self, n * 2)
215 }
216 #[doc = "Bit 0 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
217 #[inline(always)]
218 #[must_use]
219 pub fn cris0(&mut self) -> CRIS_W<CISR_SPEC> {
220 CRIS_W::new(self, 0)
221 }
222 #[doc = "Bit 2 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
223 #[inline(always)]
224 #[must_use]
225 pub fn cris1(&mut self) -> CRIS_W<CISR_SPEC> {
226 CRIS_W::new(self, 2)
227 }
228 #[doc = "Bit 4 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
229 #[inline(always)]
230 #[must_use]
231 pub fn cris2(&mut self) -> CRIS_W<CISR_SPEC> {
232 CRIS_W::new(self, 4)
233 }
234 #[doc = "Bit 6 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
235 #[inline(always)]
236 #[must_use]
237 pub fn cris3(&mut self) -> CRIS_W<CISR_SPEC> {
238 CRIS_W::new(self, 6)
239 }
240 #[doc = "Bit 8 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
241 #[inline(always)]
242 #[must_use]
243 pub fn cris4(&mut self) -> CRIS_W<CISR_SPEC> {
244 CRIS_W::new(self, 8)
245 }
246 #[doc = "Bit 10 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
247 #[inline(always)]
248 #[must_use]
249 pub fn cris5(&mut self) -> CRIS_W<CISR_SPEC> {
250 CRIS_W::new(self, 10)
251 }
252 #[doc = "Bit 12 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
253 #[inline(always)]
254 #[must_use]
255 pub fn cris6(&mut self) -> CRIS_W<CISR_SPEC> {
256 CRIS_W::new(self, 12)
257 }
258 #[doc = "Bit 14 - Status of the capture channel rising lock interrupt\n\nWhen the capture channel captures rising edge, if the rise lock interrupt ( CRIE ) is enabled, this bit is set 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
259 #[inline(always)]
260 #[must_use]
261 pub fn cris7(&mut self) -> CRIS_W<CISR_SPEC> {
262 CRIS_W::new(self, 14)
263 }
264 #[doc = "Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt.\n\nNOTE: `n` is number of field in register. `n == 0` corresponds to `cfis0` field"]
265 #[inline(always)]
266 #[must_use]
267 pub fn cfis(&mut self, n: u8) -> CFIS_W<CISR_SPEC> {
268 #[allow(clippy::no_effect)]
269 [(); 8][n as usize];
270 CFIS_W::new(self, n * 2 + 1)
271 }
272 #[doc = "Bit 1 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
273 #[inline(always)]
274 #[must_use]
275 pub fn cfis0(&mut self) -> CFIS_W<CISR_SPEC> {
276 CFIS_W::new(self, 1)
277 }
278 #[doc = "Bit 3 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
279 #[inline(always)]
280 #[must_use]
281 pub fn cfis1(&mut self) -> CFIS_W<CISR_SPEC> {
282 CFIS_W::new(self, 3)
283 }
284 #[doc = "Bit 5 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
285 #[inline(always)]
286 #[must_use]
287 pub fn cfis2(&mut self) -> CFIS_W<CISR_SPEC> {
288 CFIS_W::new(self, 5)
289 }
290 #[doc = "Bit 7 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
291 #[inline(always)]
292 #[must_use]
293 pub fn cfis3(&mut self) -> CFIS_W<CISR_SPEC> {
294 CFIS_W::new(self, 7)
295 }
296 #[doc = "Bit 9 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
297 #[inline(always)]
298 #[must_use]
299 pub fn cfis4(&mut self) -> CFIS_W<CISR_SPEC> {
300 CFIS_W::new(self, 9)
301 }
302 #[doc = "Bit 11 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
303 #[inline(always)]
304 #[must_use]
305 pub fn cfis5(&mut self) -> CFIS_W<CISR_SPEC> {
306 CFIS_W::new(self, 11)
307 }
308 #[doc = "Bit 13 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
309 #[inline(always)]
310 #[must_use]
311 pub fn cfis6(&mut self) -> CFIS_W<CISR_SPEC> {
312 CFIS_W::new(self, 13)
313 }
314 #[doc = "Bit 15 - Status of the capture channel falling lock interrupt\n\nWhen the capture channel captures falling edge, if the fall lock interrupt ( CFIE ) is enabled, this bit is set to 1 by hardware. Writing 1 to clear this bit.\n\nReads 0: The capture channel interrupt is not pending.\n\nReads 1: The capture channel interrupt is pending.\n\nWrites 0: no effect.\n\nWrites 1: Clear the status of the capture channel interrupt."]
315 #[inline(always)]
316 #[must_use]
317 pub fn cfis7(&mut self) -> CFIS_W<CISR_SPEC> {
318 CFIS_W::new(self, 15)
319 }
320 #[doc = r" Writes raw bits to the register."]
321 #[doc = r""]
322 #[doc = r" # Safety"]
323 #[doc = r""]
324 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
325 #[inline(always)]
326 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
327 self.bits = bits;
328 self
329 }
330}
331#[doc = "Capture IRQ Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cisr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cisr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
332pub struct CISR_SPEC;
333impl crate::RegisterSpec for CISR_SPEC {
334 type Ux = u32;
335}
336#[doc = "`read()` method returns [`cisr::R`](R) reader structure"]
337impl crate::Readable for CISR_SPEC {}
338#[doc = "`write(|w| ..)` method takes [`cisr::W`](W) writer structure"]
339impl crate::Writable for CISR_SPEC {
340 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
341 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0x03;
342}
343#[doc = "`reset()` method sets cisr to value 0"]
344impl crate::Resettable for CISR_SPEC {
345 const RESET_VALUE: Self::Ux = 0;
346}