1#[doc = "Register `INTENSET` reader"]
2pub struct R(crate::R<INTENSET_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<INTENSET_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<INTENSET_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<INTENSET_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `INTENSET` writer"]
17pub struct W(crate::W<INTENSET_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<INTENSET_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<INTENSET_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<INTENSET_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `OVR0` reader - Channel 0 Overrun Interrupt Enable"]
38pub type OVR0_R = crate::BitReader<bool>;
39#[doc = "Field `OVR0` writer - Channel 0 Overrun Interrupt Enable"]
40pub type OVR0_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
41#[doc = "Field `OVR1` reader - Channel 1 Overrun Interrupt Enable"]
42pub type OVR1_R = crate::BitReader<bool>;
43#[doc = "Field `OVR1` writer - Channel 1 Overrun Interrupt Enable"]
44pub type OVR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
45#[doc = "Field `OVR2` reader - Channel 2 Overrun Interrupt Enable"]
46pub type OVR2_R = crate::BitReader<bool>;
47#[doc = "Field `OVR2` writer - Channel 2 Overrun Interrupt Enable"]
48pub type OVR2_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
49#[doc = "Field `OVR3` reader - Channel 3 Overrun Interrupt Enable"]
50pub type OVR3_R = crate::BitReader<bool>;
51#[doc = "Field `OVR3` writer - Channel 3 Overrun Interrupt Enable"]
52pub type OVR3_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
53#[doc = "Field `OVR4` reader - Channel 4 Overrun Interrupt Enable"]
54pub type OVR4_R = crate::BitReader<bool>;
55#[doc = "Field `OVR4` writer - Channel 4 Overrun Interrupt Enable"]
56pub type OVR4_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
57#[doc = "Field `OVR5` reader - Channel 5 Overrun Interrupt Enable"]
58pub type OVR5_R = crate::BitReader<bool>;
59#[doc = "Field `OVR5` writer - Channel 5 Overrun Interrupt Enable"]
60pub type OVR5_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
61#[doc = "Field `OVR6` reader - Channel 6 Overrun Interrupt Enable"]
62pub type OVR6_R = crate::BitReader<bool>;
63#[doc = "Field `OVR6` writer - Channel 6 Overrun Interrupt Enable"]
64pub type OVR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
65#[doc = "Field `OVR7` reader - Channel 7 Overrun Interrupt Enable"]
66pub type OVR7_R = crate::BitReader<bool>;
67#[doc = "Field `OVR7` writer - Channel 7 Overrun Interrupt Enable"]
68pub type OVR7_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
69#[doc = "Field `OVR8` reader - Channel 8 Overrun Interrupt Enable"]
70pub type OVR8_R = crate::BitReader<bool>;
71#[doc = "Field `OVR8` writer - Channel 8 Overrun Interrupt Enable"]
72pub type OVR8_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
73#[doc = "Field `OVR9` reader - Channel 9 Overrun Interrupt Enable"]
74pub type OVR9_R = crate::BitReader<bool>;
75#[doc = "Field `OVR9` writer - Channel 9 Overrun Interrupt Enable"]
76pub type OVR9_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
77#[doc = "Field `OVR10` reader - Channel 10 Overrun Interrupt Enable"]
78pub type OVR10_R = crate::BitReader<bool>;
79#[doc = "Field `OVR10` writer - Channel 10 Overrun Interrupt Enable"]
80pub type OVR10_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
81#[doc = "Field `OVR11` reader - Channel 11 Overrun Interrupt Enable"]
82pub type OVR11_R = crate::BitReader<bool>;
83#[doc = "Field `OVR11` writer - Channel 11 Overrun Interrupt Enable"]
84pub type OVR11_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
85#[doc = "Field `EVD0` reader - Channel 0 Event Detection Interrupt Enable"]
86pub type EVD0_R = crate::BitReader<bool>;
87#[doc = "Field `EVD0` writer - Channel 0 Event Detection Interrupt Enable"]
88pub type EVD0_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
89#[doc = "Field `EVD1` reader - Channel 1 Event Detection Interrupt Enable"]
90pub type EVD1_R = crate::BitReader<bool>;
91#[doc = "Field `EVD1` writer - Channel 1 Event Detection Interrupt Enable"]
92pub type EVD1_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
93#[doc = "Field `EVD2` reader - Channel 2 Event Detection Interrupt Enable"]
94pub type EVD2_R = crate::BitReader<bool>;
95#[doc = "Field `EVD2` writer - Channel 2 Event Detection Interrupt Enable"]
96pub type EVD2_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
97#[doc = "Field `EVD3` reader - Channel 3 Event Detection Interrupt Enable"]
98pub type EVD3_R = crate::BitReader<bool>;
99#[doc = "Field `EVD3` writer - Channel 3 Event Detection Interrupt Enable"]
100pub type EVD3_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
101#[doc = "Field `EVD4` reader - Channel 4 Event Detection Interrupt Enable"]
102pub type EVD4_R = crate::BitReader<bool>;
103#[doc = "Field `EVD4` writer - Channel 4 Event Detection Interrupt Enable"]
104pub type EVD4_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
105#[doc = "Field `EVD5` reader - Channel 5 Event Detection Interrupt Enable"]
106pub type EVD5_R = crate::BitReader<bool>;
107#[doc = "Field `EVD5` writer - Channel 5 Event Detection Interrupt Enable"]
108pub type EVD5_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
109#[doc = "Field `EVD6` reader - Channel 6 Event Detection Interrupt Enable"]
110pub type EVD6_R = crate::BitReader<bool>;
111#[doc = "Field `EVD6` writer - Channel 6 Event Detection Interrupt Enable"]
112pub type EVD6_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
113#[doc = "Field `EVD7` reader - Channel 7 Event Detection Interrupt Enable"]
114pub type EVD7_R = crate::BitReader<bool>;
115#[doc = "Field `EVD7` writer - Channel 7 Event Detection Interrupt Enable"]
116pub type EVD7_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
117#[doc = "Field `EVD8` reader - Channel 8 Event Detection Interrupt Enable"]
118pub type EVD8_R = crate::BitReader<bool>;
119#[doc = "Field `EVD8` writer - Channel 8 Event Detection Interrupt Enable"]
120pub type EVD8_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
121#[doc = "Field `EVD9` reader - Channel 9 Event Detection Interrupt Enable"]
122pub type EVD9_R = crate::BitReader<bool>;
123#[doc = "Field `EVD9` writer - Channel 9 Event Detection Interrupt Enable"]
124pub type EVD9_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
125#[doc = "Field `EVD10` reader - Channel 10 Event Detection Interrupt Enable"]
126pub type EVD10_R = crate::BitReader<bool>;
127#[doc = "Field `EVD10` writer - Channel 10 Event Detection Interrupt Enable"]
128pub type EVD10_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
129#[doc = "Field `EVD11` reader - Channel 11 Event Detection Interrupt Enable"]
130pub type EVD11_R = crate::BitReader<bool>;
131#[doc = "Field `EVD11` writer - Channel 11 Event Detection Interrupt Enable"]
132pub type EVD11_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, bool, O>;
133impl R {
134 #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
135 #[inline(always)]
136 pub fn ovr0(&self) -> OVR0_R {
137 OVR0_R::new((self.bits & 1) != 0)
138 }
139 #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
140 #[inline(always)]
141 pub fn ovr1(&self) -> OVR1_R {
142 OVR1_R::new(((self.bits >> 1) & 1) != 0)
143 }
144 #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
145 #[inline(always)]
146 pub fn ovr2(&self) -> OVR2_R {
147 OVR2_R::new(((self.bits >> 2) & 1) != 0)
148 }
149 #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
150 #[inline(always)]
151 pub fn ovr3(&self) -> OVR3_R {
152 OVR3_R::new(((self.bits >> 3) & 1) != 0)
153 }
154 #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
155 #[inline(always)]
156 pub fn ovr4(&self) -> OVR4_R {
157 OVR4_R::new(((self.bits >> 4) & 1) != 0)
158 }
159 #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
160 #[inline(always)]
161 pub fn ovr5(&self) -> OVR5_R {
162 OVR5_R::new(((self.bits >> 5) & 1) != 0)
163 }
164 #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
165 #[inline(always)]
166 pub fn ovr6(&self) -> OVR6_R {
167 OVR6_R::new(((self.bits >> 6) & 1) != 0)
168 }
169 #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
170 #[inline(always)]
171 pub fn ovr7(&self) -> OVR7_R {
172 OVR7_R::new(((self.bits >> 7) & 1) != 0)
173 }
174 #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
175 #[inline(always)]
176 pub fn ovr8(&self) -> OVR8_R {
177 OVR8_R::new(((self.bits >> 8) & 1) != 0)
178 }
179 #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
180 #[inline(always)]
181 pub fn ovr9(&self) -> OVR9_R {
182 OVR9_R::new(((self.bits >> 9) & 1) != 0)
183 }
184 #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
185 #[inline(always)]
186 pub fn ovr10(&self) -> OVR10_R {
187 OVR10_R::new(((self.bits >> 10) & 1) != 0)
188 }
189 #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
190 #[inline(always)]
191 pub fn ovr11(&self) -> OVR11_R {
192 OVR11_R::new(((self.bits >> 11) & 1) != 0)
193 }
194 #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
195 #[inline(always)]
196 pub fn evd0(&self) -> EVD0_R {
197 EVD0_R::new(((self.bits >> 16) & 1) != 0)
198 }
199 #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
200 #[inline(always)]
201 pub fn evd1(&self) -> EVD1_R {
202 EVD1_R::new(((self.bits >> 17) & 1) != 0)
203 }
204 #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
205 #[inline(always)]
206 pub fn evd2(&self) -> EVD2_R {
207 EVD2_R::new(((self.bits >> 18) & 1) != 0)
208 }
209 #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
210 #[inline(always)]
211 pub fn evd3(&self) -> EVD3_R {
212 EVD3_R::new(((self.bits >> 19) & 1) != 0)
213 }
214 #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
215 #[inline(always)]
216 pub fn evd4(&self) -> EVD4_R {
217 EVD4_R::new(((self.bits >> 20) & 1) != 0)
218 }
219 #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
220 #[inline(always)]
221 pub fn evd5(&self) -> EVD5_R {
222 EVD5_R::new(((self.bits >> 21) & 1) != 0)
223 }
224 #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
225 #[inline(always)]
226 pub fn evd6(&self) -> EVD6_R {
227 EVD6_R::new(((self.bits >> 22) & 1) != 0)
228 }
229 #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
230 #[inline(always)]
231 pub fn evd7(&self) -> EVD7_R {
232 EVD7_R::new(((self.bits >> 23) & 1) != 0)
233 }
234 #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
235 #[inline(always)]
236 pub fn evd8(&self) -> EVD8_R {
237 EVD8_R::new(((self.bits >> 24) & 1) != 0)
238 }
239 #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
240 #[inline(always)]
241 pub fn evd9(&self) -> EVD9_R {
242 EVD9_R::new(((self.bits >> 25) & 1) != 0)
243 }
244 #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
245 #[inline(always)]
246 pub fn evd10(&self) -> EVD10_R {
247 EVD10_R::new(((self.bits >> 26) & 1) != 0)
248 }
249 #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
250 #[inline(always)]
251 pub fn evd11(&self) -> EVD11_R {
252 EVD11_R::new(((self.bits >> 27) & 1) != 0)
253 }
254}
255impl W {
256 #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
257 #[inline(always)]
258 #[must_use]
259 pub fn ovr0(&mut self) -> OVR0_W<0> {
260 OVR0_W::new(self)
261 }
262 #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
263 #[inline(always)]
264 #[must_use]
265 pub fn ovr1(&mut self) -> OVR1_W<1> {
266 OVR1_W::new(self)
267 }
268 #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
269 #[inline(always)]
270 #[must_use]
271 pub fn ovr2(&mut self) -> OVR2_W<2> {
272 OVR2_W::new(self)
273 }
274 #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
275 #[inline(always)]
276 #[must_use]
277 pub fn ovr3(&mut self) -> OVR3_W<3> {
278 OVR3_W::new(self)
279 }
280 #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
281 #[inline(always)]
282 #[must_use]
283 pub fn ovr4(&mut self) -> OVR4_W<4> {
284 OVR4_W::new(self)
285 }
286 #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
287 #[inline(always)]
288 #[must_use]
289 pub fn ovr5(&mut self) -> OVR5_W<5> {
290 OVR5_W::new(self)
291 }
292 #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
293 #[inline(always)]
294 #[must_use]
295 pub fn ovr6(&mut self) -> OVR6_W<6> {
296 OVR6_W::new(self)
297 }
298 #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
299 #[inline(always)]
300 #[must_use]
301 pub fn ovr7(&mut self) -> OVR7_W<7> {
302 OVR7_W::new(self)
303 }
304 #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
305 #[inline(always)]
306 #[must_use]
307 pub fn ovr8(&mut self) -> OVR8_W<8> {
308 OVR8_W::new(self)
309 }
310 #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
311 #[inline(always)]
312 #[must_use]
313 pub fn ovr9(&mut self) -> OVR9_W<9> {
314 OVR9_W::new(self)
315 }
316 #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
317 #[inline(always)]
318 #[must_use]
319 pub fn ovr10(&mut self) -> OVR10_W<10> {
320 OVR10_W::new(self)
321 }
322 #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
323 #[inline(always)]
324 #[must_use]
325 pub fn ovr11(&mut self) -> OVR11_W<11> {
326 OVR11_W::new(self)
327 }
328 #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
329 #[inline(always)]
330 #[must_use]
331 pub fn evd0(&mut self) -> EVD0_W<16> {
332 EVD0_W::new(self)
333 }
334 #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
335 #[inline(always)]
336 #[must_use]
337 pub fn evd1(&mut self) -> EVD1_W<17> {
338 EVD1_W::new(self)
339 }
340 #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
341 #[inline(always)]
342 #[must_use]
343 pub fn evd2(&mut self) -> EVD2_W<18> {
344 EVD2_W::new(self)
345 }
346 #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
347 #[inline(always)]
348 #[must_use]
349 pub fn evd3(&mut self) -> EVD3_W<19> {
350 EVD3_W::new(self)
351 }
352 #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
353 #[inline(always)]
354 #[must_use]
355 pub fn evd4(&mut self) -> EVD4_W<20> {
356 EVD4_W::new(self)
357 }
358 #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
359 #[inline(always)]
360 #[must_use]
361 pub fn evd5(&mut self) -> EVD5_W<21> {
362 EVD5_W::new(self)
363 }
364 #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
365 #[inline(always)]
366 #[must_use]
367 pub fn evd6(&mut self) -> EVD6_W<22> {
368 EVD6_W::new(self)
369 }
370 #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
371 #[inline(always)]
372 #[must_use]
373 pub fn evd7(&mut self) -> EVD7_W<23> {
374 EVD7_W::new(self)
375 }
376 #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
377 #[inline(always)]
378 #[must_use]
379 pub fn evd8(&mut self) -> EVD8_W<24> {
380 EVD8_W::new(self)
381 }
382 #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
383 #[inline(always)]
384 #[must_use]
385 pub fn evd9(&mut self) -> EVD9_W<25> {
386 EVD9_W::new(self)
387 }
388 #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
389 #[inline(always)]
390 #[must_use]
391 pub fn evd10(&mut self) -> EVD10_W<26> {
392 EVD10_W::new(self)
393 }
394 #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
395 #[inline(always)]
396 #[must_use]
397 pub fn evd11(&mut self) -> EVD11_W<27> {
398 EVD11_W::new(self)
399 }
400 #[doc = "Writes raw bits to the register."]
401 #[inline(always)]
402 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
403 self.0.bits(bits);
404 self
405 }
406}
407#[doc = "Interrupt Enable Set\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 [intenset](index.html) module"]
408pub struct INTENSET_SPEC;
409impl crate::RegisterSpec for INTENSET_SPEC {
410 type Ux = u32;
411}
412#[doc = "`read()` method returns [intenset::R](R) reader structure"]
413impl crate::Readable for INTENSET_SPEC {
414 type Reader = R;
415}
416#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
417impl crate::Writable for INTENSET_SPEC {
418 type Writer = W;
419 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
420 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
421}
422#[doc = "`reset()` method sets INTENSET to value 0"]
423impl crate::Resettable for INTENSET_SPEC {
424 const RESET_VALUE: Self::Ux = 0;
425}