nrf5340_net_pac/timer0_ns/
shorts.rs

1#[doc = "Register `SHORTS` reader"]
2pub struct R(crate::R<SHORTS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SHORTS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SHORTS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SHORTS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `SHORTS` writer"]
17pub struct W(crate::W<SHORTS_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<SHORTS_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<SHORTS_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<SHORTS_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `COMPARE0_CLEAR` reader - Shortcut between event COMPARE\\[0\\]
38and task CLEAR"]
39pub type COMPARE0_CLEAR_R = crate::BitReader<COMPARE0_CLEAR_A>;
40#[doc = "Shortcut between event COMPARE\\[0\\]
41and task CLEAR\n\nValue on reset: 0"]
42#[derive(Clone, Copy, Debug, PartialEq)]
43pub enum COMPARE0_CLEAR_A {
44    #[doc = "0: Disable shortcut"]
45    DISABLED = 0,
46    #[doc = "1: Enable shortcut"]
47    ENABLED = 1,
48}
49impl From<COMPARE0_CLEAR_A> for bool {
50    #[inline(always)]
51    fn from(variant: COMPARE0_CLEAR_A) -> Self {
52        variant as u8 != 0
53    }
54}
55impl COMPARE0_CLEAR_R {
56    #[doc = "Get enumerated values variant"]
57    #[inline(always)]
58    pub fn variant(&self) -> COMPARE0_CLEAR_A {
59        match self.bits {
60            false => COMPARE0_CLEAR_A::DISABLED,
61            true => COMPARE0_CLEAR_A::ENABLED,
62        }
63    }
64    #[doc = "Checks if the value of the field is `DISABLED`"]
65    #[inline(always)]
66    pub fn is_disabled(&self) -> bool {
67        *self == COMPARE0_CLEAR_A::DISABLED
68    }
69    #[doc = "Checks if the value of the field is `ENABLED`"]
70    #[inline(always)]
71    pub fn is_enabled(&self) -> bool {
72        *self == COMPARE0_CLEAR_A::ENABLED
73    }
74}
75#[doc = "Field `COMPARE0_CLEAR` writer - Shortcut between event COMPARE\\[0\\]
76and task CLEAR"]
77pub type COMPARE0_CLEAR_W<'a, const O: u8> =
78    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE0_CLEAR_A, O>;
79impl<'a, const O: u8> COMPARE0_CLEAR_W<'a, O> {
80    #[doc = "Disable shortcut"]
81    #[inline(always)]
82    pub fn disabled(self) -> &'a mut W {
83        self.variant(COMPARE0_CLEAR_A::DISABLED)
84    }
85    #[doc = "Enable shortcut"]
86    #[inline(always)]
87    pub fn enabled(self) -> &'a mut W {
88        self.variant(COMPARE0_CLEAR_A::ENABLED)
89    }
90}
91#[doc = "Field `COMPARE1_CLEAR` reader - Shortcut between event COMPARE\\[1\\]
92and task CLEAR"]
93pub type COMPARE1_CLEAR_R = crate::BitReader<COMPARE1_CLEAR_A>;
94#[doc = "Shortcut between event COMPARE\\[1\\]
95and task CLEAR\n\nValue on reset: 0"]
96#[derive(Clone, Copy, Debug, PartialEq)]
97pub enum COMPARE1_CLEAR_A {
98    #[doc = "0: Disable shortcut"]
99    DISABLED = 0,
100    #[doc = "1: Enable shortcut"]
101    ENABLED = 1,
102}
103impl From<COMPARE1_CLEAR_A> for bool {
104    #[inline(always)]
105    fn from(variant: COMPARE1_CLEAR_A) -> Self {
106        variant as u8 != 0
107    }
108}
109impl COMPARE1_CLEAR_R {
110    #[doc = "Get enumerated values variant"]
111    #[inline(always)]
112    pub fn variant(&self) -> COMPARE1_CLEAR_A {
113        match self.bits {
114            false => COMPARE1_CLEAR_A::DISABLED,
115            true => COMPARE1_CLEAR_A::ENABLED,
116        }
117    }
118    #[doc = "Checks if the value of the field is `DISABLED`"]
119    #[inline(always)]
120    pub fn is_disabled(&self) -> bool {
121        *self == COMPARE1_CLEAR_A::DISABLED
122    }
123    #[doc = "Checks if the value of the field is `ENABLED`"]
124    #[inline(always)]
125    pub fn is_enabled(&self) -> bool {
126        *self == COMPARE1_CLEAR_A::ENABLED
127    }
128}
129#[doc = "Field `COMPARE1_CLEAR` writer - Shortcut between event COMPARE\\[1\\]
130and task CLEAR"]
131pub type COMPARE1_CLEAR_W<'a, const O: u8> =
132    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE1_CLEAR_A, O>;
133impl<'a, const O: u8> COMPARE1_CLEAR_W<'a, O> {
134    #[doc = "Disable shortcut"]
135    #[inline(always)]
136    pub fn disabled(self) -> &'a mut W {
137        self.variant(COMPARE1_CLEAR_A::DISABLED)
138    }
139    #[doc = "Enable shortcut"]
140    #[inline(always)]
141    pub fn enabled(self) -> &'a mut W {
142        self.variant(COMPARE1_CLEAR_A::ENABLED)
143    }
144}
145#[doc = "Field `COMPARE2_CLEAR` reader - Shortcut between event COMPARE\\[2\\]
146and task CLEAR"]
147pub type COMPARE2_CLEAR_R = crate::BitReader<COMPARE2_CLEAR_A>;
148#[doc = "Shortcut between event COMPARE\\[2\\]
149and task CLEAR\n\nValue on reset: 0"]
150#[derive(Clone, Copy, Debug, PartialEq)]
151pub enum COMPARE2_CLEAR_A {
152    #[doc = "0: Disable shortcut"]
153    DISABLED = 0,
154    #[doc = "1: Enable shortcut"]
155    ENABLED = 1,
156}
157impl From<COMPARE2_CLEAR_A> for bool {
158    #[inline(always)]
159    fn from(variant: COMPARE2_CLEAR_A) -> Self {
160        variant as u8 != 0
161    }
162}
163impl COMPARE2_CLEAR_R {
164    #[doc = "Get enumerated values variant"]
165    #[inline(always)]
166    pub fn variant(&self) -> COMPARE2_CLEAR_A {
167        match self.bits {
168            false => COMPARE2_CLEAR_A::DISABLED,
169            true => COMPARE2_CLEAR_A::ENABLED,
170        }
171    }
172    #[doc = "Checks if the value of the field is `DISABLED`"]
173    #[inline(always)]
174    pub fn is_disabled(&self) -> bool {
175        *self == COMPARE2_CLEAR_A::DISABLED
176    }
177    #[doc = "Checks if the value of the field is `ENABLED`"]
178    #[inline(always)]
179    pub fn is_enabled(&self) -> bool {
180        *self == COMPARE2_CLEAR_A::ENABLED
181    }
182}
183#[doc = "Field `COMPARE2_CLEAR` writer - Shortcut between event COMPARE\\[2\\]
184and task CLEAR"]
185pub type COMPARE2_CLEAR_W<'a, const O: u8> =
186    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE2_CLEAR_A, O>;
187impl<'a, const O: u8> COMPARE2_CLEAR_W<'a, O> {
188    #[doc = "Disable shortcut"]
189    #[inline(always)]
190    pub fn disabled(self) -> &'a mut W {
191        self.variant(COMPARE2_CLEAR_A::DISABLED)
192    }
193    #[doc = "Enable shortcut"]
194    #[inline(always)]
195    pub fn enabled(self) -> &'a mut W {
196        self.variant(COMPARE2_CLEAR_A::ENABLED)
197    }
198}
199#[doc = "Field `COMPARE3_CLEAR` reader - Shortcut between event COMPARE\\[3\\]
200and task CLEAR"]
201pub type COMPARE3_CLEAR_R = crate::BitReader<COMPARE3_CLEAR_A>;
202#[doc = "Shortcut between event COMPARE\\[3\\]
203and task CLEAR\n\nValue on reset: 0"]
204#[derive(Clone, Copy, Debug, PartialEq)]
205pub enum COMPARE3_CLEAR_A {
206    #[doc = "0: Disable shortcut"]
207    DISABLED = 0,
208    #[doc = "1: Enable shortcut"]
209    ENABLED = 1,
210}
211impl From<COMPARE3_CLEAR_A> for bool {
212    #[inline(always)]
213    fn from(variant: COMPARE3_CLEAR_A) -> Self {
214        variant as u8 != 0
215    }
216}
217impl COMPARE3_CLEAR_R {
218    #[doc = "Get enumerated values variant"]
219    #[inline(always)]
220    pub fn variant(&self) -> COMPARE3_CLEAR_A {
221        match self.bits {
222            false => COMPARE3_CLEAR_A::DISABLED,
223            true => COMPARE3_CLEAR_A::ENABLED,
224        }
225    }
226    #[doc = "Checks if the value of the field is `DISABLED`"]
227    #[inline(always)]
228    pub fn is_disabled(&self) -> bool {
229        *self == COMPARE3_CLEAR_A::DISABLED
230    }
231    #[doc = "Checks if the value of the field is `ENABLED`"]
232    #[inline(always)]
233    pub fn is_enabled(&self) -> bool {
234        *self == COMPARE3_CLEAR_A::ENABLED
235    }
236}
237#[doc = "Field `COMPARE3_CLEAR` writer - Shortcut between event COMPARE\\[3\\]
238and task CLEAR"]
239pub type COMPARE3_CLEAR_W<'a, const O: u8> =
240    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE3_CLEAR_A, O>;
241impl<'a, const O: u8> COMPARE3_CLEAR_W<'a, O> {
242    #[doc = "Disable shortcut"]
243    #[inline(always)]
244    pub fn disabled(self) -> &'a mut W {
245        self.variant(COMPARE3_CLEAR_A::DISABLED)
246    }
247    #[doc = "Enable shortcut"]
248    #[inline(always)]
249    pub fn enabled(self) -> &'a mut W {
250        self.variant(COMPARE3_CLEAR_A::ENABLED)
251    }
252}
253#[doc = "Field `COMPARE4_CLEAR` reader - Shortcut between event COMPARE\\[4\\]
254and task CLEAR"]
255pub type COMPARE4_CLEAR_R = crate::BitReader<COMPARE4_CLEAR_A>;
256#[doc = "Shortcut between event COMPARE\\[4\\]
257and task CLEAR\n\nValue on reset: 0"]
258#[derive(Clone, Copy, Debug, PartialEq)]
259pub enum COMPARE4_CLEAR_A {
260    #[doc = "0: Disable shortcut"]
261    DISABLED = 0,
262    #[doc = "1: Enable shortcut"]
263    ENABLED = 1,
264}
265impl From<COMPARE4_CLEAR_A> for bool {
266    #[inline(always)]
267    fn from(variant: COMPARE4_CLEAR_A) -> Self {
268        variant as u8 != 0
269    }
270}
271impl COMPARE4_CLEAR_R {
272    #[doc = "Get enumerated values variant"]
273    #[inline(always)]
274    pub fn variant(&self) -> COMPARE4_CLEAR_A {
275        match self.bits {
276            false => COMPARE4_CLEAR_A::DISABLED,
277            true => COMPARE4_CLEAR_A::ENABLED,
278        }
279    }
280    #[doc = "Checks if the value of the field is `DISABLED`"]
281    #[inline(always)]
282    pub fn is_disabled(&self) -> bool {
283        *self == COMPARE4_CLEAR_A::DISABLED
284    }
285    #[doc = "Checks if the value of the field is `ENABLED`"]
286    #[inline(always)]
287    pub fn is_enabled(&self) -> bool {
288        *self == COMPARE4_CLEAR_A::ENABLED
289    }
290}
291#[doc = "Field `COMPARE4_CLEAR` writer - Shortcut between event COMPARE\\[4\\]
292and task CLEAR"]
293pub type COMPARE4_CLEAR_W<'a, const O: u8> =
294    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE4_CLEAR_A, O>;
295impl<'a, const O: u8> COMPARE4_CLEAR_W<'a, O> {
296    #[doc = "Disable shortcut"]
297    #[inline(always)]
298    pub fn disabled(self) -> &'a mut W {
299        self.variant(COMPARE4_CLEAR_A::DISABLED)
300    }
301    #[doc = "Enable shortcut"]
302    #[inline(always)]
303    pub fn enabled(self) -> &'a mut W {
304        self.variant(COMPARE4_CLEAR_A::ENABLED)
305    }
306}
307#[doc = "Field `COMPARE5_CLEAR` reader - Shortcut between event COMPARE\\[5\\]
308and task CLEAR"]
309pub type COMPARE5_CLEAR_R = crate::BitReader<COMPARE5_CLEAR_A>;
310#[doc = "Shortcut between event COMPARE\\[5\\]
311and task CLEAR\n\nValue on reset: 0"]
312#[derive(Clone, Copy, Debug, PartialEq)]
313pub enum COMPARE5_CLEAR_A {
314    #[doc = "0: Disable shortcut"]
315    DISABLED = 0,
316    #[doc = "1: Enable shortcut"]
317    ENABLED = 1,
318}
319impl From<COMPARE5_CLEAR_A> for bool {
320    #[inline(always)]
321    fn from(variant: COMPARE5_CLEAR_A) -> Self {
322        variant as u8 != 0
323    }
324}
325impl COMPARE5_CLEAR_R {
326    #[doc = "Get enumerated values variant"]
327    #[inline(always)]
328    pub fn variant(&self) -> COMPARE5_CLEAR_A {
329        match self.bits {
330            false => COMPARE5_CLEAR_A::DISABLED,
331            true => COMPARE5_CLEAR_A::ENABLED,
332        }
333    }
334    #[doc = "Checks if the value of the field is `DISABLED`"]
335    #[inline(always)]
336    pub fn is_disabled(&self) -> bool {
337        *self == COMPARE5_CLEAR_A::DISABLED
338    }
339    #[doc = "Checks if the value of the field is `ENABLED`"]
340    #[inline(always)]
341    pub fn is_enabled(&self) -> bool {
342        *self == COMPARE5_CLEAR_A::ENABLED
343    }
344}
345#[doc = "Field `COMPARE5_CLEAR` writer - Shortcut between event COMPARE\\[5\\]
346and task CLEAR"]
347pub type COMPARE5_CLEAR_W<'a, const O: u8> =
348    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE5_CLEAR_A, O>;
349impl<'a, const O: u8> COMPARE5_CLEAR_W<'a, O> {
350    #[doc = "Disable shortcut"]
351    #[inline(always)]
352    pub fn disabled(self) -> &'a mut W {
353        self.variant(COMPARE5_CLEAR_A::DISABLED)
354    }
355    #[doc = "Enable shortcut"]
356    #[inline(always)]
357    pub fn enabled(self) -> &'a mut W {
358        self.variant(COMPARE5_CLEAR_A::ENABLED)
359    }
360}
361#[doc = "Field `COMPARE6_CLEAR` reader - Shortcut between event COMPARE\\[6\\]
362and task CLEAR"]
363pub type COMPARE6_CLEAR_R = crate::BitReader<COMPARE6_CLEAR_A>;
364#[doc = "Shortcut between event COMPARE\\[6\\]
365and task CLEAR\n\nValue on reset: 0"]
366#[derive(Clone, Copy, Debug, PartialEq)]
367pub enum COMPARE6_CLEAR_A {
368    #[doc = "0: Disable shortcut"]
369    DISABLED = 0,
370    #[doc = "1: Enable shortcut"]
371    ENABLED = 1,
372}
373impl From<COMPARE6_CLEAR_A> for bool {
374    #[inline(always)]
375    fn from(variant: COMPARE6_CLEAR_A) -> Self {
376        variant as u8 != 0
377    }
378}
379impl COMPARE6_CLEAR_R {
380    #[doc = "Get enumerated values variant"]
381    #[inline(always)]
382    pub fn variant(&self) -> COMPARE6_CLEAR_A {
383        match self.bits {
384            false => COMPARE6_CLEAR_A::DISABLED,
385            true => COMPARE6_CLEAR_A::ENABLED,
386        }
387    }
388    #[doc = "Checks if the value of the field is `DISABLED`"]
389    #[inline(always)]
390    pub fn is_disabled(&self) -> bool {
391        *self == COMPARE6_CLEAR_A::DISABLED
392    }
393    #[doc = "Checks if the value of the field is `ENABLED`"]
394    #[inline(always)]
395    pub fn is_enabled(&self) -> bool {
396        *self == COMPARE6_CLEAR_A::ENABLED
397    }
398}
399#[doc = "Field `COMPARE6_CLEAR` writer - Shortcut between event COMPARE\\[6\\]
400and task CLEAR"]
401pub type COMPARE6_CLEAR_W<'a, const O: u8> =
402    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE6_CLEAR_A, O>;
403impl<'a, const O: u8> COMPARE6_CLEAR_W<'a, O> {
404    #[doc = "Disable shortcut"]
405    #[inline(always)]
406    pub fn disabled(self) -> &'a mut W {
407        self.variant(COMPARE6_CLEAR_A::DISABLED)
408    }
409    #[doc = "Enable shortcut"]
410    #[inline(always)]
411    pub fn enabled(self) -> &'a mut W {
412        self.variant(COMPARE6_CLEAR_A::ENABLED)
413    }
414}
415#[doc = "Field `COMPARE7_CLEAR` reader - Shortcut between event COMPARE\\[7\\]
416and task CLEAR"]
417pub type COMPARE7_CLEAR_R = crate::BitReader<COMPARE7_CLEAR_A>;
418#[doc = "Shortcut between event COMPARE\\[7\\]
419and task CLEAR\n\nValue on reset: 0"]
420#[derive(Clone, Copy, Debug, PartialEq)]
421pub enum COMPARE7_CLEAR_A {
422    #[doc = "0: Disable shortcut"]
423    DISABLED = 0,
424    #[doc = "1: Enable shortcut"]
425    ENABLED = 1,
426}
427impl From<COMPARE7_CLEAR_A> for bool {
428    #[inline(always)]
429    fn from(variant: COMPARE7_CLEAR_A) -> Self {
430        variant as u8 != 0
431    }
432}
433impl COMPARE7_CLEAR_R {
434    #[doc = "Get enumerated values variant"]
435    #[inline(always)]
436    pub fn variant(&self) -> COMPARE7_CLEAR_A {
437        match self.bits {
438            false => COMPARE7_CLEAR_A::DISABLED,
439            true => COMPARE7_CLEAR_A::ENABLED,
440        }
441    }
442    #[doc = "Checks if the value of the field is `DISABLED`"]
443    #[inline(always)]
444    pub fn is_disabled(&self) -> bool {
445        *self == COMPARE7_CLEAR_A::DISABLED
446    }
447    #[doc = "Checks if the value of the field is `ENABLED`"]
448    #[inline(always)]
449    pub fn is_enabled(&self) -> bool {
450        *self == COMPARE7_CLEAR_A::ENABLED
451    }
452}
453#[doc = "Field `COMPARE7_CLEAR` writer - Shortcut between event COMPARE\\[7\\]
454and task CLEAR"]
455pub type COMPARE7_CLEAR_W<'a, const O: u8> =
456    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE7_CLEAR_A, O>;
457impl<'a, const O: u8> COMPARE7_CLEAR_W<'a, O> {
458    #[doc = "Disable shortcut"]
459    #[inline(always)]
460    pub fn disabled(self) -> &'a mut W {
461        self.variant(COMPARE7_CLEAR_A::DISABLED)
462    }
463    #[doc = "Enable shortcut"]
464    #[inline(always)]
465    pub fn enabled(self) -> &'a mut W {
466        self.variant(COMPARE7_CLEAR_A::ENABLED)
467    }
468}
469#[doc = "Field `COMPARE0_STOP` reader - Shortcut between event COMPARE\\[0\\]
470and task STOP"]
471pub type COMPARE0_STOP_R = crate::BitReader<COMPARE0_STOP_A>;
472#[doc = "Shortcut between event COMPARE\\[0\\]
473and task STOP\n\nValue on reset: 0"]
474#[derive(Clone, Copy, Debug, PartialEq)]
475pub enum COMPARE0_STOP_A {
476    #[doc = "0: Disable shortcut"]
477    DISABLED = 0,
478    #[doc = "1: Enable shortcut"]
479    ENABLED = 1,
480}
481impl From<COMPARE0_STOP_A> for bool {
482    #[inline(always)]
483    fn from(variant: COMPARE0_STOP_A) -> Self {
484        variant as u8 != 0
485    }
486}
487impl COMPARE0_STOP_R {
488    #[doc = "Get enumerated values variant"]
489    #[inline(always)]
490    pub fn variant(&self) -> COMPARE0_STOP_A {
491        match self.bits {
492            false => COMPARE0_STOP_A::DISABLED,
493            true => COMPARE0_STOP_A::ENABLED,
494        }
495    }
496    #[doc = "Checks if the value of the field is `DISABLED`"]
497    #[inline(always)]
498    pub fn is_disabled(&self) -> bool {
499        *self == COMPARE0_STOP_A::DISABLED
500    }
501    #[doc = "Checks if the value of the field is `ENABLED`"]
502    #[inline(always)]
503    pub fn is_enabled(&self) -> bool {
504        *self == COMPARE0_STOP_A::ENABLED
505    }
506}
507#[doc = "Field `COMPARE0_STOP` writer - Shortcut between event COMPARE\\[0\\]
508and task STOP"]
509pub type COMPARE0_STOP_W<'a, const O: u8> =
510    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE0_STOP_A, O>;
511impl<'a, const O: u8> COMPARE0_STOP_W<'a, O> {
512    #[doc = "Disable shortcut"]
513    #[inline(always)]
514    pub fn disabled(self) -> &'a mut W {
515        self.variant(COMPARE0_STOP_A::DISABLED)
516    }
517    #[doc = "Enable shortcut"]
518    #[inline(always)]
519    pub fn enabled(self) -> &'a mut W {
520        self.variant(COMPARE0_STOP_A::ENABLED)
521    }
522}
523#[doc = "Field `COMPARE1_STOP` reader - Shortcut between event COMPARE\\[1\\]
524and task STOP"]
525pub type COMPARE1_STOP_R = crate::BitReader<COMPARE1_STOP_A>;
526#[doc = "Shortcut between event COMPARE\\[1\\]
527and task STOP\n\nValue on reset: 0"]
528#[derive(Clone, Copy, Debug, PartialEq)]
529pub enum COMPARE1_STOP_A {
530    #[doc = "0: Disable shortcut"]
531    DISABLED = 0,
532    #[doc = "1: Enable shortcut"]
533    ENABLED = 1,
534}
535impl From<COMPARE1_STOP_A> for bool {
536    #[inline(always)]
537    fn from(variant: COMPARE1_STOP_A) -> Self {
538        variant as u8 != 0
539    }
540}
541impl COMPARE1_STOP_R {
542    #[doc = "Get enumerated values variant"]
543    #[inline(always)]
544    pub fn variant(&self) -> COMPARE1_STOP_A {
545        match self.bits {
546            false => COMPARE1_STOP_A::DISABLED,
547            true => COMPARE1_STOP_A::ENABLED,
548        }
549    }
550    #[doc = "Checks if the value of the field is `DISABLED`"]
551    #[inline(always)]
552    pub fn is_disabled(&self) -> bool {
553        *self == COMPARE1_STOP_A::DISABLED
554    }
555    #[doc = "Checks if the value of the field is `ENABLED`"]
556    #[inline(always)]
557    pub fn is_enabled(&self) -> bool {
558        *self == COMPARE1_STOP_A::ENABLED
559    }
560}
561#[doc = "Field `COMPARE1_STOP` writer - Shortcut between event COMPARE\\[1\\]
562and task STOP"]
563pub type COMPARE1_STOP_W<'a, const O: u8> =
564    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE1_STOP_A, O>;
565impl<'a, const O: u8> COMPARE1_STOP_W<'a, O> {
566    #[doc = "Disable shortcut"]
567    #[inline(always)]
568    pub fn disabled(self) -> &'a mut W {
569        self.variant(COMPARE1_STOP_A::DISABLED)
570    }
571    #[doc = "Enable shortcut"]
572    #[inline(always)]
573    pub fn enabled(self) -> &'a mut W {
574        self.variant(COMPARE1_STOP_A::ENABLED)
575    }
576}
577#[doc = "Field `COMPARE2_STOP` reader - Shortcut between event COMPARE\\[2\\]
578and task STOP"]
579pub type COMPARE2_STOP_R = crate::BitReader<COMPARE2_STOP_A>;
580#[doc = "Shortcut between event COMPARE\\[2\\]
581and task STOP\n\nValue on reset: 0"]
582#[derive(Clone, Copy, Debug, PartialEq)]
583pub enum COMPARE2_STOP_A {
584    #[doc = "0: Disable shortcut"]
585    DISABLED = 0,
586    #[doc = "1: Enable shortcut"]
587    ENABLED = 1,
588}
589impl From<COMPARE2_STOP_A> for bool {
590    #[inline(always)]
591    fn from(variant: COMPARE2_STOP_A) -> Self {
592        variant as u8 != 0
593    }
594}
595impl COMPARE2_STOP_R {
596    #[doc = "Get enumerated values variant"]
597    #[inline(always)]
598    pub fn variant(&self) -> COMPARE2_STOP_A {
599        match self.bits {
600            false => COMPARE2_STOP_A::DISABLED,
601            true => COMPARE2_STOP_A::ENABLED,
602        }
603    }
604    #[doc = "Checks if the value of the field is `DISABLED`"]
605    #[inline(always)]
606    pub fn is_disabled(&self) -> bool {
607        *self == COMPARE2_STOP_A::DISABLED
608    }
609    #[doc = "Checks if the value of the field is `ENABLED`"]
610    #[inline(always)]
611    pub fn is_enabled(&self) -> bool {
612        *self == COMPARE2_STOP_A::ENABLED
613    }
614}
615#[doc = "Field `COMPARE2_STOP` writer - Shortcut between event COMPARE\\[2\\]
616and task STOP"]
617pub type COMPARE2_STOP_W<'a, const O: u8> =
618    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE2_STOP_A, O>;
619impl<'a, const O: u8> COMPARE2_STOP_W<'a, O> {
620    #[doc = "Disable shortcut"]
621    #[inline(always)]
622    pub fn disabled(self) -> &'a mut W {
623        self.variant(COMPARE2_STOP_A::DISABLED)
624    }
625    #[doc = "Enable shortcut"]
626    #[inline(always)]
627    pub fn enabled(self) -> &'a mut W {
628        self.variant(COMPARE2_STOP_A::ENABLED)
629    }
630}
631#[doc = "Field `COMPARE3_STOP` reader - Shortcut between event COMPARE\\[3\\]
632and task STOP"]
633pub type COMPARE3_STOP_R = crate::BitReader<COMPARE3_STOP_A>;
634#[doc = "Shortcut between event COMPARE\\[3\\]
635and task STOP\n\nValue on reset: 0"]
636#[derive(Clone, Copy, Debug, PartialEq)]
637pub enum COMPARE3_STOP_A {
638    #[doc = "0: Disable shortcut"]
639    DISABLED = 0,
640    #[doc = "1: Enable shortcut"]
641    ENABLED = 1,
642}
643impl From<COMPARE3_STOP_A> for bool {
644    #[inline(always)]
645    fn from(variant: COMPARE3_STOP_A) -> Self {
646        variant as u8 != 0
647    }
648}
649impl COMPARE3_STOP_R {
650    #[doc = "Get enumerated values variant"]
651    #[inline(always)]
652    pub fn variant(&self) -> COMPARE3_STOP_A {
653        match self.bits {
654            false => COMPARE3_STOP_A::DISABLED,
655            true => COMPARE3_STOP_A::ENABLED,
656        }
657    }
658    #[doc = "Checks if the value of the field is `DISABLED`"]
659    #[inline(always)]
660    pub fn is_disabled(&self) -> bool {
661        *self == COMPARE3_STOP_A::DISABLED
662    }
663    #[doc = "Checks if the value of the field is `ENABLED`"]
664    #[inline(always)]
665    pub fn is_enabled(&self) -> bool {
666        *self == COMPARE3_STOP_A::ENABLED
667    }
668}
669#[doc = "Field `COMPARE3_STOP` writer - Shortcut between event COMPARE\\[3\\]
670and task STOP"]
671pub type COMPARE3_STOP_W<'a, const O: u8> =
672    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE3_STOP_A, O>;
673impl<'a, const O: u8> COMPARE3_STOP_W<'a, O> {
674    #[doc = "Disable shortcut"]
675    #[inline(always)]
676    pub fn disabled(self) -> &'a mut W {
677        self.variant(COMPARE3_STOP_A::DISABLED)
678    }
679    #[doc = "Enable shortcut"]
680    #[inline(always)]
681    pub fn enabled(self) -> &'a mut W {
682        self.variant(COMPARE3_STOP_A::ENABLED)
683    }
684}
685#[doc = "Field `COMPARE4_STOP` reader - Shortcut between event COMPARE\\[4\\]
686and task STOP"]
687pub type COMPARE4_STOP_R = crate::BitReader<COMPARE4_STOP_A>;
688#[doc = "Shortcut between event COMPARE\\[4\\]
689and task STOP\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum COMPARE4_STOP_A {
692    #[doc = "0: Disable shortcut"]
693    DISABLED = 0,
694    #[doc = "1: Enable shortcut"]
695    ENABLED = 1,
696}
697impl From<COMPARE4_STOP_A> for bool {
698    #[inline(always)]
699    fn from(variant: COMPARE4_STOP_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl COMPARE4_STOP_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> COMPARE4_STOP_A {
707        match self.bits {
708            false => COMPARE4_STOP_A::DISABLED,
709            true => COMPARE4_STOP_A::ENABLED,
710        }
711    }
712    #[doc = "Checks if the value of the field is `DISABLED`"]
713    #[inline(always)]
714    pub fn is_disabled(&self) -> bool {
715        *self == COMPARE4_STOP_A::DISABLED
716    }
717    #[doc = "Checks if the value of the field is `ENABLED`"]
718    #[inline(always)]
719    pub fn is_enabled(&self) -> bool {
720        *self == COMPARE4_STOP_A::ENABLED
721    }
722}
723#[doc = "Field `COMPARE4_STOP` writer - Shortcut between event COMPARE\\[4\\]
724and task STOP"]
725pub type COMPARE4_STOP_W<'a, const O: u8> =
726    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE4_STOP_A, O>;
727impl<'a, const O: u8> COMPARE4_STOP_W<'a, O> {
728    #[doc = "Disable shortcut"]
729    #[inline(always)]
730    pub fn disabled(self) -> &'a mut W {
731        self.variant(COMPARE4_STOP_A::DISABLED)
732    }
733    #[doc = "Enable shortcut"]
734    #[inline(always)]
735    pub fn enabled(self) -> &'a mut W {
736        self.variant(COMPARE4_STOP_A::ENABLED)
737    }
738}
739#[doc = "Field `COMPARE5_STOP` reader - Shortcut between event COMPARE\\[5\\]
740and task STOP"]
741pub type COMPARE5_STOP_R = crate::BitReader<COMPARE5_STOP_A>;
742#[doc = "Shortcut between event COMPARE\\[5\\]
743and task STOP\n\nValue on reset: 0"]
744#[derive(Clone, Copy, Debug, PartialEq)]
745pub enum COMPARE5_STOP_A {
746    #[doc = "0: Disable shortcut"]
747    DISABLED = 0,
748    #[doc = "1: Enable shortcut"]
749    ENABLED = 1,
750}
751impl From<COMPARE5_STOP_A> for bool {
752    #[inline(always)]
753    fn from(variant: COMPARE5_STOP_A) -> Self {
754        variant as u8 != 0
755    }
756}
757impl COMPARE5_STOP_R {
758    #[doc = "Get enumerated values variant"]
759    #[inline(always)]
760    pub fn variant(&self) -> COMPARE5_STOP_A {
761        match self.bits {
762            false => COMPARE5_STOP_A::DISABLED,
763            true => COMPARE5_STOP_A::ENABLED,
764        }
765    }
766    #[doc = "Checks if the value of the field is `DISABLED`"]
767    #[inline(always)]
768    pub fn is_disabled(&self) -> bool {
769        *self == COMPARE5_STOP_A::DISABLED
770    }
771    #[doc = "Checks if the value of the field is `ENABLED`"]
772    #[inline(always)]
773    pub fn is_enabled(&self) -> bool {
774        *self == COMPARE5_STOP_A::ENABLED
775    }
776}
777#[doc = "Field `COMPARE5_STOP` writer - Shortcut between event COMPARE\\[5\\]
778and task STOP"]
779pub type COMPARE5_STOP_W<'a, const O: u8> =
780    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE5_STOP_A, O>;
781impl<'a, const O: u8> COMPARE5_STOP_W<'a, O> {
782    #[doc = "Disable shortcut"]
783    #[inline(always)]
784    pub fn disabled(self) -> &'a mut W {
785        self.variant(COMPARE5_STOP_A::DISABLED)
786    }
787    #[doc = "Enable shortcut"]
788    #[inline(always)]
789    pub fn enabled(self) -> &'a mut W {
790        self.variant(COMPARE5_STOP_A::ENABLED)
791    }
792}
793#[doc = "Field `COMPARE6_STOP` reader - Shortcut between event COMPARE\\[6\\]
794and task STOP"]
795pub type COMPARE6_STOP_R = crate::BitReader<COMPARE6_STOP_A>;
796#[doc = "Shortcut between event COMPARE\\[6\\]
797and task STOP\n\nValue on reset: 0"]
798#[derive(Clone, Copy, Debug, PartialEq)]
799pub enum COMPARE6_STOP_A {
800    #[doc = "0: Disable shortcut"]
801    DISABLED = 0,
802    #[doc = "1: Enable shortcut"]
803    ENABLED = 1,
804}
805impl From<COMPARE6_STOP_A> for bool {
806    #[inline(always)]
807    fn from(variant: COMPARE6_STOP_A) -> Self {
808        variant as u8 != 0
809    }
810}
811impl COMPARE6_STOP_R {
812    #[doc = "Get enumerated values variant"]
813    #[inline(always)]
814    pub fn variant(&self) -> COMPARE6_STOP_A {
815        match self.bits {
816            false => COMPARE6_STOP_A::DISABLED,
817            true => COMPARE6_STOP_A::ENABLED,
818        }
819    }
820    #[doc = "Checks if the value of the field is `DISABLED`"]
821    #[inline(always)]
822    pub fn is_disabled(&self) -> bool {
823        *self == COMPARE6_STOP_A::DISABLED
824    }
825    #[doc = "Checks if the value of the field is `ENABLED`"]
826    #[inline(always)]
827    pub fn is_enabled(&self) -> bool {
828        *self == COMPARE6_STOP_A::ENABLED
829    }
830}
831#[doc = "Field `COMPARE6_STOP` writer - Shortcut between event COMPARE\\[6\\]
832and task STOP"]
833pub type COMPARE6_STOP_W<'a, const O: u8> =
834    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE6_STOP_A, O>;
835impl<'a, const O: u8> COMPARE6_STOP_W<'a, O> {
836    #[doc = "Disable shortcut"]
837    #[inline(always)]
838    pub fn disabled(self) -> &'a mut W {
839        self.variant(COMPARE6_STOP_A::DISABLED)
840    }
841    #[doc = "Enable shortcut"]
842    #[inline(always)]
843    pub fn enabled(self) -> &'a mut W {
844        self.variant(COMPARE6_STOP_A::ENABLED)
845    }
846}
847#[doc = "Field `COMPARE7_STOP` reader - Shortcut between event COMPARE\\[7\\]
848and task STOP"]
849pub type COMPARE7_STOP_R = crate::BitReader<COMPARE7_STOP_A>;
850#[doc = "Shortcut between event COMPARE\\[7\\]
851and task STOP\n\nValue on reset: 0"]
852#[derive(Clone, Copy, Debug, PartialEq)]
853pub enum COMPARE7_STOP_A {
854    #[doc = "0: Disable shortcut"]
855    DISABLED = 0,
856    #[doc = "1: Enable shortcut"]
857    ENABLED = 1,
858}
859impl From<COMPARE7_STOP_A> for bool {
860    #[inline(always)]
861    fn from(variant: COMPARE7_STOP_A) -> Self {
862        variant as u8 != 0
863    }
864}
865impl COMPARE7_STOP_R {
866    #[doc = "Get enumerated values variant"]
867    #[inline(always)]
868    pub fn variant(&self) -> COMPARE7_STOP_A {
869        match self.bits {
870            false => COMPARE7_STOP_A::DISABLED,
871            true => COMPARE7_STOP_A::ENABLED,
872        }
873    }
874    #[doc = "Checks if the value of the field is `DISABLED`"]
875    #[inline(always)]
876    pub fn is_disabled(&self) -> bool {
877        *self == COMPARE7_STOP_A::DISABLED
878    }
879    #[doc = "Checks if the value of the field is `ENABLED`"]
880    #[inline(always)]
881    pub fn is_enabled(&self) -> bool {
882        *self == COMPARE7_STOP_A::ENABLED
883    }
884}
885#[doc = "Field `COMPARE7_STOP` writer - Shortcut between event COMPARE\\[7\\]
886and task STOP"]
887pub type COMPARE7_STOP_W<'a, const O: u8> =
888    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE7_STOP_A, O>;
889impl<'a, const O: u8> COMPARE7_STOP_W<'a, O> {
890    #[doc = "Disable shortcut"]
891    #[inline(always)]
892    pub fn disabled(self) -> &'a mut W {
893        self.variant(COMPARE7_STOP_A::DISABLED)
894    }
895    #[doc = "Enable shortcut"]
896    #[inline(always)]
897    pub fn enabled(self) -> &'a mut W {
898        self.variant(COMPARE7_STOP_A::ENABLED)
899    }
900}
901impl R {
902    #[doc = "Bit 0 - Shortcut between event COMPARE\\[0\\]
903and task CLEAR"]
904    #[inline(always)]
905    pub fn compare0_clear(&self) -> COMPARE0_CLEAR_R {
906        COMPARE0_CLEAR_R::new((self.bits & 1) != 0)
907    }
908    #[doc = "Bit 1 - Shortcut between event COMPARE\\[1\\]
909and task CLEAR"]
910    #[inline(always)]
911    pub fn compare1_clear(&self) -> COMPARE1_CLEAR_R {
912        COMPARE1_CLEAR_R::new(((self.bits >> 1) & 1) != 0)
913    }
914    #[doc = "Bit 2 - Shortcut between event COMPARE\\[2\\]
915and task CLEAR"]
916    #[inline(always)]
917    pub fn compare2_clear(&self) -> COMPARE2_CLEAR_R {
918        COMPARE2_CLEAR_R::new(((self.bits >> 2) & 1) != 0)
919    }
920    #[doc = "Bit 3 - Shortcut between event COMPARE\\[3\\]
921and task CLEAR"]
922    #[inline(always)]
923    pub fn compare3_clear(&self) -> COMPARE3_CLEAR_R {
924        COMPARE3_CLEAR_R::new(((self.bits >> 3) & 1) != 0)
925    }
926    #[doc = "Bit 4 - Shortcut between event COMPARE\\[4\\]
927and task CLEAR"]
928    #[inline(always)]
929    pub fn compare4_clear(&self) -> COMPARE4_CLEAR_R {
930        COMPARE4_CLEAR_R::new(((self.bits >> 4) & 1) != 0)
931    }
932    #[doc = "Bit 5 - Shortcut between event COMPARE\\[5\\]
933and task CLEAR"]
934    #[inline(always)]
935    pub fn compare5_clear(&self) -> COMPARE5_CLEAR_R {
936        COMPARE5_CLEAR_R::new(((self.bits >> 5) & 1) != 0)
937    }
938    #[doc = "Bit 6 - Shortcut between event COMPARE\\[6\\]
939and task CLEAR"]
940    #[inline(always)]
941    pub fn compare6_clear(&self) -> COMPARE6_CLEAR_R {
942        COMPARE6_CLEAR_R::new(((self.bits >> 6) & 1) != 0)
943    }
944    #[doc = "Bit 7 - Shortcut between event COMPARE\\[7\\]
945and task CLEAR"]
946    #[inline(always)]
947    pub fn compare7_clear(&self) -> COMPARE7_CLEAR_R {
948        COMPARE7_CLEAR_R::new(((self.bits >> 7) & 1) != 0)
949    }
950    #[doc = "Bit 16 - Shortcut between event COMPARE\\[0\\]
951and task STOP"]
952    #[inline(always)]
953    pub fn compare0_stop(&self) -> COMPARE0_STOP_R {
954        COMPARE0_STOP_R::new(((self.bits >> 16) & 1) != 0)
955    }
956    #[doc = "Bit 17 - Shortcut between event COMPARE\\[1\\]
957and task STOP"]
958    #[inline(always)]
959    pub fn compare1_stop(&self) -> COMPARE1_STOP_R {
960        COMPARE1_STOP_R::new(((self.bits >> 17) & 1) != 0)
961    }
962    #[doc = "Bit 18 - Shortcut between event COMPARE\\[2\\]
963and task STOP"]
964    #[inline(always)]
965    pub fn compare2_stop(&self) -> COMPARE2_STOP_R {
966        COMPARE2_STOP_R::new(((self.bits >> 18) & 1) != 0)
967    }
968    #[doc = "Bit 19 - Shortcut between event COMPARE\\[3\\]
969and task STOP"]
970    #[inline(always)]
971    pub fn compare3_stop(&self) -> COMPARE3_STOP_R {
972        COMPARE3_STOP_R::new(((self.bits >> 19) & 1) != 0)
973    }
974    #[doc = "Bit 20 - Shortcut between event COMPARE\\[4\\]
975and task STOP"]
976    #[inline(always)]
977    pub fn compare4_stop(&self) -> COMPARE4_STOP_R {
978        COMPARE4_STOP_R::new(((self.bits >> 20) & 1) != 0)
979    }
980    #[doc = "Bit 21 - Shortcut between event COMPARE\\[5\\]
981and task STOP"]
982    #[inline(always)]
983    pub fn compare5_stop(&self) -> COMPARE5_STOP_R {
984        COMPARE5_STOP_R::new(((self.bits >> 21) & 1) != 0)
985    }
986    #[doc = "Bit 22 - Shortcut between event COMPARE\\[6\\]
987and task STOP"]
988    #[inline(always)]
989    pub fn compare6_stop(&self) -> COMPARE6_STOP_R {
990        COMPARE6_STOP_R::new(((self.bits >> 22) & 1) != 0)
991    }
992    #[doc = "Bit 23 - Shortcut between event COMPARE\\[7\\]
993and task STOP"]
994    #[inline(always)]
995    pub fn compare7_stop(&self) -> COMPARE7_STOP_R {
996        COMPARE7_STOP_R::new(((self.bits >> 23) & 1) != 0)
997    }
998}
999impl W {
1000    #[doc = "Bit 0 - Shortcut between event COMPARE\\[0\\]
1001and task CLEAR"]
1002    #[inline(always)]
1003    pub fn compare0_clear(&mut self) -> COMPARE0_CLEAR_W<0> {
1004        COMPARE0_CLEAR_W::new(self)
1005    }
1006    #[doc = "Bit 1 - Shortcut between event COMPARE\\[1\\]
1007and task CLEAR"]
1008    #[inline(always)]
1009    pub fn compare1_clear(&mut self) -> COMPARE1_CLEAR_W<1> {
1010        COMPARE1_CLEAR_W::new(self)
1011    }
1012    #[doc = "Bit 2 - Shortcut between event COMPARE\\[2\\]
1013and task CLEAR"]
1014    #[inline(always)]
1015    pub fn compare2_clear(&mut self) -> COMPARE2_CLEAR_W<2> {
1016        COMPARE2_CLEAR_W::new(self)
1017    }
1018    #[doc = "Bit 3 - Shortcut between event COMPARE\\[3\\]
1019and task CLEAR"]
1020    #[inline(always)]
1021    pub fn compare3_clear(&mut self) -> COMPARE3_CLEAR_W<3> {
1022        COMPARE3_CLEAR_W::new(self)
1023    }
1024    #[doc = "Bit 4 - Shortcut between event COMPARE\\[4\\]
1025and task CLEAR"]
1026    #[inline(always)]
1027    pub fn compare4_clear(&mut self) -> COMPARE4_CLEAR_W<4> {
1028        COMPARE4_CLEAR_W::new(self)
1029    }
1030    #[doc = "Bit 5 - Shortcut between event COMPARE\\[5\\]
1031and task CLEAR"]
1032    #[inline(always)]
1033    pub fn compare5_clear(&mut self) -> COMPARE5_CLEAR_W<5> {
1034        COMPARE5_CLEAR_W::new(self)
1035    }
1036    #[doc = "Bit 6 - Shortcut between event COMPARE\\[6\\]
1037and task CLEAR"]
1038    #[inline(always)]
1039    pub fn compare6_clear(&mut self) -> COMPARE6_CLEAR_W<6> {
1040        COMPARE6_CLEAR_W::new(self)
1041    }
1042    #[doc = "Bit 7 - Shortcut between event COMPARE\\[7\\]
1043and task CLEAR"]
1044    #[inline(always)]
1045    pub fn compare7_clear(&mut self) -> COMPARE7_CLEAR_W<7> {
1046        COMPARE7_CLEAR_W::new(self)
1047    }
1048    #[doc = "Bit 16 - Shortcut between event COMPARE\\[0\\]
1049and task STOP"]
1050    #[inline(always)]
1051    pub fn compare0_stop(&mut self) -> COMPARE0_STOP_W<16> {
1052        COMPARE0_STOP_W::new(self)
1053    }
1054    #[doc = "Bit 17 - Shortcut between event COMPARE\\[1\\]
1055and task STOP"]
1056    #[inline(always)]
1057    pub fn compare1_stop(&mut self) -> COMPARE1_STOP_W<17> {
1058        COMPARE1_STOP_W::new(self)
1059    }
1060    #[doc = "Bit 18 - Shortcut between event COMPARE\\[2\\]
1061and task STOP"]
1062    #[inline(always)]
1063    pub fn compare2_stop(&mut self) -> COMPARE2_STOP_W<18> {
1064        COMPARE2_STOP_W::new(self)
1065    }
1066    #[doc = "Bit 19 - Shortcut between event COMPARE\\[3\\]
1067and task STOP"]
1068    #[inline(always)]
1069    pub fn compare3_stop(&mut self) -> COMPARE3_STOP_W<19> {
1070        COMPARE3_STOP_W::new(self)
1071    }
1072    #[doc = "Bit 20 - Shortcut between event COMPARE\\[4\\]
1073and task STOP"]
1074    #[inline(always)]
1075    pub fn compare4_stop(&mut self) -> COMPARE4_STOP_W<20> {
1076        COMPARE4_STOP_W::new(self)
1077    }
1078    #[doc = "Bit 21 - Shortcut between event COMPARE\\[5\\]
1079and task STOP"]
1080    #[inline(always)]
1081    pub fn compare5_stop(&mut self) -> COMPARE5_STOP_W<21> {
1082        COMPARE5_STOP_W::new(self)
1083    }
1084    #[doc = "Bit 22 - Shortcut between event COMPARE\\[6\\]
1085and task STOP"]
1086    #[inline(always)]
1087    pub fn compare6_stop(&mut self) -> COMPARE6_STOP_W<22> {
1088        COMPARE6_STOP_W::new(self)
1089    }
1090    #[doc = "Bit 23 - Shortcut between event COMPARE\\[7\\]
1091and task STOP"]
1092    #[inline(always)]
1093    pub fn compare7_stop(&mut self) -> COMPARE7_STOP_W<23> {
1094        COMPARE7_STOP_W::new(self)
1095    }
1096    #[doc = "Writes raw bits to the register."]
1097    #[inline(always)]
1098    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1099        self.0.bits(bits);
1100        self
1101    }
1102}
1103#[doc = "Shortcuts between local events and tasks\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 [shorts](index.html) module"]
1104pub struct SHORTS_SPEC;
1105impl crate::RegisterSpec for SHORTS_SPEC {
1106    type Ux = u32;
1107}
1108#[doc = "`read()` method returns [shorts::R](R) reader structure"]
1109impl crate::Readable for SHORTS_SPEC {
1110    type Reader = R;
1111}
1112#[doc = "`write(|w| ..)` method takes [shorts::W](W) writer structure"]
1113impl crate::Writable for SHORTS_SPEC {
1114    type Writer = W;
1115}
1116#[doc = "`reset()` method sets SHORTS to value 0"]
1117impl crate::Resettable for SHORTS_SPEC {
1118    #[inline(always)]
1119    fn reset_value() -> Self::Ux {
1120        0
1121    }
1122}