nrf5340_net_pac/timer0_ns/
intenset.rs1#[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 `COMPARE0` reader - Write '1' to enable interrupt for event COMPARE\\[0\\]"]
38pub type COMPARE0_R = crate::BitReader<COMPARE0_A>;
39#[doc = "Write '1' to enable interrupt for event COMPARE\\[0\\]\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum COMPARE0_A {
42 #[doc = "0: Read: Disabled"]
43 DISABLED = 0,
44 #[doc = "1: Read: Enabled"]
45 ENABLED = 1,
46}
47impl From<COMPARE0_A> for bool {
48 #[inline(always)]
49 fn from(variant: COMPARE0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl COMPARE0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> COMPARE0_A {
57 match self.bits {
58 false => COMPARE0_A::DISABLED,
59 true => COMPARE0_A::ENABLED,
60 }
61 }
62 #[doc = "Checks if the value of the field is `DISABLED`"]
63 #[inline(always)]
64 pub fn is_disabled(&self) -> bool {
65 *self == COMPARE0_A::DISABLED
66 }
67 #[doc = "Checks if the value of the field is `ENABLED`"]
68 #[inline(always)]
69 pub fn is_enabled(&self) -> bool {
70 *self == COMPARE0_A::ENABLED
71 }
72}
73#[doc = "Write '1' to enable interrupt for event COMPARE\\[0\\]\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75pub enum COMPARE0_AW {
76 #[doc = "1: Enable"]
77 SET = 1,
78}
79impl From<COMPARE0_AW> for bool {
80 #[inline(always)]
81 fn from(variant: COMPARE0_AW) -> Self {
82 variant as u8 != 0
83 }
84}
85#[doc = "Field `COMPARE0` writer - Write '1' to enable interrupt for event COMPARE\\[0\\]"]
86pub type COMPARE0_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE0_AW, O>;
87impl<'a, const O: u8> COMPARE0_W<'a, O> {
88 #[doc = "Enable"]
89 #[inline(always)]
90 pub fn set(self) -> &'a mut W {
91 self.variant(COMPARE0_AW::SET)
92 }
93}
94#[doc = "Field `COMPARE1` reader - Write '1' to enable interrupt for event COMPARE\\[1\\]"]
95pub type COMPARE1_R = crate::BitReader<COMPARE1_A>;
96#[doc = "Write '1' to enable interrupt for event COMPARE\\[1\\]\n\nValue on reset: 0"]
97#[derive(Clone, Copy, Debug, PartialEq)]
98pub enum COMPARE1_A {
99 #[doc = "0: Read: Disabled"]
100 DISABLED = 0,
101 #[doc = "1: Read: Enabled"]
102 ENABLED = 1,
103}
104impl From<COMPARE1_A> for bool {
105 #[inline(always)]
106 fn from(variant: COMPARE1_A) -> Self {
107 variant as u8 != 0
108 }
109}
110impl COMPARE1_R {
111 #[doc = "Get enumerated values variant"]
112 #[inline(always)]
113 pub fn variant(&self) -> COMPARE1_A {
114 match self.bits {
115 false => COMPARE1_A::DISABLED,
116 true => COMPARE1_A::ENABLED,
117 }
118 }
119 #[doc = "Checks if the value of the field is `DISABLED`"]
120 #[inline(always)]
121 pub fn is_disabled(&self) -> bool {
122 *self == COMPARE1_A::DISABLED
123 }
124 #[doc = "Checks if the value of the field is `ENABLED`"]
125 #[inline(always)]
126 pub fn is_enabled(&self) -> bool {
127 *self == COMPARE1_A::ENABLED
128 }
129}
130#[doc = "Write '1' to enable interrupt for event COMPARE\\[1\\]\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq)]
132pub enum COMPARE1_AW {
133 #[doc = "1: Enable"]
134 SET = 1,
135}
136impl From<COMPARE1_AW> for bool {
137 #[inline(always)]
138 fn from(variant: COMPARE1_AW) -> Self {
139 variant as u8 != 0
140 }
141}
142#[doc = "Field `COMPARE1` writer - Write '1' to enable interrupt for event COMPARE\\[1\\]"]
143pub type COMPARE1_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE1_AW, O>;
144impl<'a, const O: u8> COMPARE1_W<'a, O> {
145 #[doc = "Enable"]
146 #[inline(always)]
147 pub fn set(self) -> &'a mut W {
148 self.variant(COMPARE1_AW::SET)
149 }
150}
151#[doc = "Field `COMPARE2` reader - Write '1' to enable interrupt for event COMPARE\\[2\\]"]
152pub type COMPARE2_R = crate::BitReader<COMPARE2_A>;
153#[doc = "Write '1' to enable interrupt for event COMPARE\\[2\\]\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq)]
155pub enum COMPARE2_A {
156 #[doc = "0: Read: Disabled"]
157 DISABLED = 0,
158 #[doc = "1: Read: Enabled"]
159 ENABLED = 1,
160}
161impl From<COMPARE2_A> for bool {
162 #[inline(always)]
163 fn from(variant: COMPARE2_A) -> Self {
164 variant as u8 != 0
165 }
166}
167impl COMPARE2_R {
168 #[doc = "Get enumerated values variant"]
169 #[inline(always)]
170 pub fn variant(&self) -> COMPARE2_A {
171 match self.bits {
172 false => COMPARE2_A::DISABLED,
173 true => COMPARE2_A::ENABLED,
174 }
175 }
176 #[doc = "Checks if the value of the field is `DISABLED`"]
177 #[inline(always)]
178 pub fn is_disabled(&self) -> bool {
179 *self == COMPARE2_A::DISABLED
180 }
181 #[doc = "Checks if the value of the field is `ENABLED`"]
182 #[inline(always)]
183 pub fn is_enabled(&self) -> bool {
184 *self == COMPARE2_A::ENABLED
185 }
186}
187#[doc = "Write '1' to enable interrupt for event COMPARE\\[2\\]\n\nValue on reset: 0"]
188#[derive(Clone, Copy, Debug, PartialEq)]
189pub enum COMPARE2_AW {
190 #[doc = "1: Enable"]
191 SET = 1,
192}
193impl From<COMPARE2_AW> for bool {
194 #[inline(always)]
195 fn from(variant: COMPARE2_AW) -> Self {
196 variant as u8 != 0
197 }
198}
199#[doc = "Field `COMPARE2` writer - Write '1' to enable interrupt for event COMPARE\\[2\\]"]
200pub type COMPARE2_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE2_AW, O>;
201impl<'a, const O: u8> COMPARE2_W<'a, O> {
202 #[doc = "Enable"]
203 #[inline(always)]
204 pub fn set(self) -> &'a mut W {
205 self.variant(COMPARE2_AW::SET)
206 }
207}
208#[doc = "Field `COMPARE3` reader - Write '1' to enable interrupt for event COMPARE\\[3\\]"]
209pub type COMPARE3_R = crate::BitReader<COMPARE3_A>;
210#[doc = "Write '1' to enable interrupt for event COMPARE\\[3\\]\n\nValue on reset: 0"]
211#[derive(Clone, Copy, Debug, PartialEq)]
212pub enum COMPARE3_A {
213 #[doc = "0: Read: Disabled"]
214 DISABLED = 0,
215 #[doc = "1: Read: Enabled"]
216 ENABLED = 1,
217}
218impl From<COMPARE3_A> for bool {
219 #[inline(always)]
220 fn from(variant: COMPARE3_A) -> Self {
221 variant as u8 != 0
222 }
223}
224impl COMPARE3_R {
225 #[doc = "Get enumerated values variant"]
226 #[inline(always)]
227 pub fn variant(&self) -> COMPARE3_A {
228 match self.bits {
229 false => COMPARE3_A::DISABLED,
230 true => COMPARE3_A::ENABLED,
231 }
232 }
233 #[doc = "Checks if the value of the field is `DISABLED`"]
234 #[inline(always)]
235 pub fn is_disabled(&self) -> bool {
236 *self == COMPARE3_A::DISABLED
237 }
238 #[doc = "Checks if the value of the field is `ENABLED`"]
239 #[inline(always)]
240 pub fn is_enabled(&self) -> bool {
241 *self == COMPARE3_A::ENABLED
242 }
243}
244#[doc = "Write '1' to enable interrupt for event COMPARE\\[3\\]\n\nValue on reset: 0"]
245#[derive(Clone, Copy, Debug, PartialEq)]
246pub enum COMPARE3_AW {
247 #[doc = "1: Enable"]
248 SET = 1,
249}
250impl From<COMPARE3_AW> for bool {
251 #[inline(always)]
252 fn from(variant: COMPARE3_AW) -> Self {
253 variant as u8 != 0
254 }
255}
256#[doc = "Field `COMPARE3` writer - Write '1' to enable interrupt for event COMPARE\\[3\\]"]
257pub type COMPARE3_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE3_AW, O>;
258impl<'a, const O: u8> COMPARE3_W<'a, O> {
259 #[doc = "Enable"]
260 #[inline(always)]
261 pub fn set(self) -> &'a mut W {
262 self.variant(COMPARE3_AW::SET)
263 }
264}
265#[doc = "Field `COMPARE4` reader - Write '1' to enable interrupt for event COMPARE\\[4\\]"]
266pub type COMPARE4_R = crate::BitReader<COMPARE4_A>;
267#[doc = "Write '1' to enable interrupt for event COMPARE\\[4\\]\n\nValue on reset: 0"]
268#[derive(Clone, Copy, Debug, PartialEq)]
269pub enum COMPARE4_A {
270 #[doc = "0: Read: Disabled"]
271 DISABLED = 0,
272 #[doc = "1: Read: Enabled"]
273 ENABLED = 1,
274}
275impl From<COMPARE4_A> for bool {
276 #[inline(always)]
277 fn from(variant: COMPARE4_A) -> Self {
278 variant as u8 != 0
279 }
280}
281impl COMPARE4_R {
282 #[doc = "Get enumerated values variant"]
283 #[inline(always)]
284 pub fn variant(&self) -> COMPARE4_A {
285 match self.bits {
286 false => COMPARE4_A::DISABLED,
287 true => COMPARE4_A::ENABLED,
288 }
289 }
290 #[doc = "Checks if the value of the field is `DISABLED`"]
291 #[inline(always)]
292 pub fn is_disabled(&self) -> bool {
293 *self == COMPARE4_A::DISABLED
294 }
295 #[doc = "Checks if the value of the field is `ENABLED`"]
296 #[inline(always)]
297 pub fn is_enabled(&self) -> bool {
298 *self == COMPARE4_A::ENABLED
299 }
300}
301#[doc = "Write '1' to enable interrupt for event COMPARE\\[4\\]\n\nValue on reset: 0"]
302#[derive(Clone, Copy, Debug, PartialEq)]
303pub enum COMPARE4_AW {
304 #[doc = "1: Enable"]
305 SET = 1,
306}
307impl From<COMPARE4_AW> for bool {
308 #[inline(always)]
309 fn from(variant: COMPARE4_AW) -> Self {
310 variant as u8 != 0
311 }
312}
313#[doc = "Field `COMPARE4` writer - Write '1' to enable interrupt for event COMPARE\\[4\\]"]
314pub type COMPARE4_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE4_AW, O>;
315impl<'a, const O: u8> COMPARE4_W<'a, O> {
316 #[doc = "Enable"]
317 #[inline(always)]
318 pub fn set(self) -> &'a mut W {
319 self.variant(COMPARE4_AW::SET)
320 }
321}
322#[doc = "Field `COMPARE5` reader - Write '1' to enable interrupt for event COMPARE\\[5\\]"]
323pub type COMPARE5_R = crate::BitReader<COMPARE5_A>;
324#[doc = "Write '1' to enable interrupt for event COMPARE\\[5\\]\n\nValue on reset: 0"]
325#[derive(Clone, Copy, Debug, PartialEq)]
326pub enum COMPARE5_A {
327 #[doc = "0: Read: Disabled"]
328 DISABLED = 0,
329 #[doc = "1: Read: Enabled"]
330 ENABLED = 1,
331}
332impl From<COMPARE5_A> for bool {
333 #[inline(always)]
334 fn from(variant: COMPARE5_A) -> Self {
335 variant as u8 != 0
336 }
337}
338impl COMPARE5_R {
339 #[doc = "Get enumerated values variant"]
340 #[inline(always)]
341 pub fn variant(&self) -> COMPARE5_A {
342 match self.bits {
343 false => COMPARE5_A::DISABLED,
344 true => COMPARE5_A::ENABLED,
345 }
346 }
347 #[doc = "Checks if the value of the field is `DISABLED`"]
348 #[inline(always)]
349 pub fn is_disabled(&self) -> bool {
350 *self == COMPARE5_A::DISABLED
351 }
352 #[doc = "Checks if the value of the field is `ENABLED`"]
353 #[inline(always)]
354 pub fn is_enabled(&self) -> bool {
355 *self == COMPARE5_A::ENABLED
356 }
357}
358#[doc = "Write '1' to enable interrupt for event COMPARE\\[5\\]\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq)]
360pub enum COMPARE5_AW {
361 #[doc = "1: Enable"]
362 SET = 1,
363}
364impl From<COMPARE5_AW> for bool {
365 #[inline(always)]
366 fn from(variant: COMPARE5_AW) -> Self {
367 variant as u8 != 0
368 }
369}
370#[doc = "Field `COMPARE5` writer - Write '1' to enable interrupt for event COMPARE\\[5\\]"]
371pub type COMPARE5_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE5_AW, O>;
372impl<'a, const O: u8> COMPARE5_W<'a, O> {
373 #[doc = "Enable"]
374 #[inline(always)]
375 pub fn set(self) -> &'a mut W {
376 self.variant(COMPARE5_AW::SET)
377 }
378}
379#[doc = "Field `COMPARE6` reader - Write '1' to enable interrupt for event COMPARE\\[6\\]"]
380pub type COMPARE6_R = crate::BitReader<COMPARE6_A>;
381#[doc = "Write '1' to enable interrupt for event COMPARE\\[6\\]\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum COMPARE6_A {
384 #[doc = "0: Read: Disabled"]
385 DISABLED = 0,
386 #[doc = "1: Read: Enabled"]
387 ENABLED = 1,
388}
389impl From<COMPARE6_A> for bool {
390 #[inline(always)]
391 fn from(variant: COMPARE6_A) -> Self {
392 variant as u8 != 0
393 }
394}
395impl COMPARE6_R {
396 #[doc = "Get enumerated values variant"]
397 #[inline(always)]
398 pub fn variant(&self) -> COMPARE6_A {
399 match self.bits {
400 false => COMPARE6_A::DISABLED,
401 true => COMPARE6_A::ENABLED,
402 }
403 }
404 #[doc = "Checks if the value of the field is `DISABLED`"]
405 #[inline(always)]
406 pub fn is_disabled(&self) -> bool {
407 *self == COMPARE6_A::DISABLED
408 }
409 #[doc = "Checks if the value of the field is `ENABLED`"]
410 #[inline(always)]
411 pub fn is_enabled(&self) -> bool {
412 *self == COMPARE6_A::ENABLED
413 }
414}
415#[doc = "Write '1' to enable interrupt for event COMPARE\\[6\\]\n\nValue on reset: 0"]
416#[derive(Clone, Copy, Debug, PartialEq)]
417pub enum COMPARE6_AW {
418 #[doc = "1: Enable"]
419 SET = 1,
420}
421impl From<COMPARE6_AW> for bool {
422 #[inline(always)]
423 fn from(variant: COMPARE6_AW) -> Self {
424 variant as u8 != 0
425 }
426}
427#[doc = "Field `COMPARE6` writer - Write '1' to enable interrupt for event COMPARE\\[6\\]"]
428pub type COMPARE6_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE6_AW, O>;
429impl<'a, const O: u8> COMPARE6_W<'a, O> {
430 #[doc = "Enable"]
431 #[inline(always)]
432 pub fn set(self) -> &'a mut W {
433 self.variant(COMPARE6_AW::SET)
434 }
435}
436#[doc = "Field `COMPARE7` reader - Write '1' to enable interrupt for event COMPARE\\[7\\]"]
437pub type COMPARE7_R = crate::BitReader<COMPARE7_A>;
438#[doc = "Write '1' to enable interrupt for event COMPARE\\[7\\]\n\nValue on reset: 0"]
439#[derive(Clone, Copy, Debug, PartialEq)]
440pub enum COMPARE7_A {
441 #[doc = "0: Read: Disabled"]
442 DISABLED = 0,
443 #[doc = "1: Read: Enabled"]
444 ENABLED = 1,
445}
446impl From<COMPARE7_A> for bool {
447 #[inline(always)]
448 fn from(variant: COMPARE7_A) -> Self {
449 variant as u8 != 0
450 }
451}
452impl COMPARE7_R {
453 #[doc = "Get enumerated values variant"]
454 #[inline(always)]
455 pub fn variant(&self) -> COMPARE7_A {
456 match self.bits {
457 false => COMPARE7_A::DISABLED,
458 true => COMPARE7_A::ENABLED,
459 }
460 }
461 #[doc = "Checks if the value of the field is `DISABLED`"]
462 #[inline(always)]
463 pub fn is_disabled(&self) -> bool {
464 *self == COMPARE7_A::DISABLED
465 }
466 #[doc = "Checks if the value of the field is `ENABLED`"]
467 #[inline(always)]
468 pub fn is_enabled(&self) -> bool {
469 *self == COMPARE7_A::ENABLED
470 }
471}
472#[doc = "Write '1' to enable interrupt for event COMPARE\\[7\\]\n\nValue on reset: 0"]
473#[derive(Clone, Copy, Debug, PartialEq)]
474pub enum COMPARE7_AW {
475 #[doc = "1: Enable"]
476 SET = 1,
477}
478impl From<COMPARE7_AW> for bool {
479 #[inline(always)]
480 fn from(variant: COMPARE7_AW) -> Self {
481 variant as u8 != 0
482 }
483}
484#[doc = "Field `COMPARE7` writer - Write '1' to enable interrupt for event COMPARE\\[7\\]"]
485pub type COMPARE7_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, COMPARE7_AW, O>;
486impl<'a, const O: u8> COMPARE7_W<'a, O> {
487 #[doc = "Enable"]
488 #[inline(always)]
489 pub fn set(self) -> &'a mut W {
490 self.variant(COMPARE7_AW::SET)
491 }
492}
493impl R {
494 #[doc = "Bit 16 - Write '1' to enable interrupt for event COMPARE\\[0\\]"]
495 #[inline(always)]
496 pub fn compare0(&self) -> COMPARE0_R {
497 COMPARE0_R::new(((self.bits >> 16) & 1) != 0)
498 }
499 #[doc = "Bit 17 - Write '1' to enable interrupt for event COMPARE\\[1\\]"]
500 #[inline(always)]
501 pub fn compare1(&self) -> COMPARE1_R {
502 COMPARE1_R::new(((self.bits >> 17) & 1) != 0)
503 }
504 #[doc = "Bit 18 - Write '1' to enable interrupt for event COMPARE\\[2\\]"]
505 #[inline(always)]
506 pub fn compare2(&self) -> COMPARE2_R {
507 COMPARE2_R::new(((self.bits >> 18) & 1) != 0)
508 }
509 #[doc = "Bit 19 - Write '1' to enable interrupt for event COMPARE\\[3\\]"]
510 #[inline(always)]
511 pub fn compare3(&self) -> COMPARE3_R {
512 COMPARE3_R::new(((self.bits >> 19) & 1) != 0)
513 }
514 #[doc = "Bit 20 - Write '1' to enable interrupt for event COMPARE\\[4\\]"]
515 #[inline(always)]
516 pub fn compare4(&self) -> COMPARE4_R {
517 COMPARE4_R::new(((self.bits >> 20) & 1) != 0)
518 }
519 #[doc = "Bit 21 - Write '1' to enable interrupt for event COMPARE\\[5\\]"]
520 #[inline(always)]
521 pub fn compare5(&self) -> COMPARE5_R {
522 COMPARE5_R::new(((self.bits >> 21) & 1) != 0)
523 }
524 #[doc = "Bit 22 - Write '1' to enable interrupt for event COMPARE\\[6\\]"]
525 #[inline(always)]
526 pub fn compare6(&self) -> COMPARE6_R {
527 COMPARE6_R::new(((self.bits >> 22) & 1) != 0)
528 }
529 #[doc = "Bit 23 - Write '1' to enable interrupt for event COMPARE\\[7\\]"]
530 #[inline(always)]
531 pub fn compare7(&self) -> COMPARE7_R {
532 COMPARE7_R::new(((self.bits >> 23) & 1) != 0)
533 }
534}
535impl W {
536 #[doc = "Bit 16 - Write '1' to enable interrupt for event COMPARE\\[0\\]"]
537 #[inline(always)]
538 pub fn compare0(&mut self) -> COMPARE0_W<16> {
539 COMPARE0_W::new(self)
540 }
541 #[doc = "Bit 17 - Write '1' to enable interrupt for event COMPARE\\[1\\]"]
542 #[inline(always)]
543 pub fn compare1(&mut self) -> COMPARE1_W<17> {
544 COMPARE1_W::new(self)
545 }
546 #[doc = "Bit 18 - Write '1' to enable interrupt for event COMPARE\\[2\\]"]
547 #[inline(always)]
548 pub fn compare2(&mut self) -> COMPARE2_W<18> {
549 COMPARE2_W::new(self)
550 }
551 #[doc = "Bit 19 - Write '1' to enable interrupt for event COMPARE\\[3\\]"]
552 #[inline(always)]
553 pub fn compare3(&mut self) -> COMPARE3_W<19> {
554 COMPARE3_W::new(self)
555 }
556 #[doc = "Bit 20 - Write '1' to enable interrupt for event COMPARE\\[4\\]"]
557 #[inline(always)]
558 pub fn compare4(&mut self) -> COMPARE4_W<20> {
559 COMPARE4_W::new(self)
560 }
561 #[doc = "Bit 21 - Write '1' to enable interrupt for event COMPARE\\[5\\]"]
562 #[inline(always)]
563 pub fn compare5(&mut self) -> COMPARE5_W<21> {
564 COMPARE5_W::new(self)
565 }
566 #[doc = "Bit 22 - Write '1' to enable interrupt for event COMPARE\\[6\\]"]
567 #[inline(always)]
568 pub fn compare6(&mut self) -> COMPARE6_W<22> {
569 COMPARE6_W::new(self)
570 }
571 #[doc = "Bit 23 - Write '1' to enable interrupt for event COMPARE\\[7\\]"]
572 #[inline(always)]
573 pub fn compare7(&mut self) -> COMPARE7_W<23> {
574 COMPARE7_W::new(self)
575 }
576 #[doc = "Writes raw bits to the register."]
577 #[inline(always)]
578 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
579 self.0.bits(bits);
580 self
581 }
582}
583#[doc = "Enable interrupt\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"]
584pub struct INTENSET_SPEC;
585impl crate::RegisterSpec for INTENSET_SPEC {
586 type Ux = u32;
587}
588#[doc = "`read()` method returns [intenset::R](R) reader structure"]
589impl crate::Readable for INTENSET_SPEC {
590 type Reader = R;
591}
592#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
593impl crate::Writable for INTENSET_SPEC {
594 type Writer = W;
595}
596#[doc = "`reset()` method sets INTENSET to value 0"]
597impl crate::Resettable for INTENSET_SPEC {
598 #[inline(always)]
599 fn reset_value() -> Self::Ux {
600 0
601 }
602}