nrf52840_pac/timer0/
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 COMPARE\\[0\\]
38event and CLEAR task"]
39pub type COMPARE0_CLEAR_R = crate::BitReader<COMPARE0_CLEAR_A>;
40#[doc = "Shortcut between COMPARE\\[0\\]
41event and CLEAR task\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 COMPARE\\[0\\]
76event and CLEAR task"]
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 COMPARE\\[1\\]
92event and CLEAR task"]
93pub type COMPARE1_CLEAR_R = crate::BitReader<COMPARE1_CLEAR_A>;
94#[doc = "Shortcut between COMPARE\\[1\\]
95event and CLEAR task\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 COMPARE\\[1\\]
130event and CLEAR task"]
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 COMPARE\\[2\\]
146event and CLEAR task"]
147pub type COMPARE2_CLEAR_R = crate::BitReader<COMPARE2_CLEAR_A>;
148#[doc = "Shortcut between COMPARE\\[2\\]
149event and CLEAR task\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 COMPARE\\[2\\]
184event and CLEAR task"]
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 COMPARE\\[3\\]
200event and CLEAR task"]
201pub type COMPARE3_CLEAR_R = crate::BitReader<COMPARE3_CLEAR_A>;
202#[doc = "Shortcut between COMPARE\\[3\\]
203event and CLEAR task\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 COMPARE\\[3\\]
238event and CLEAR task"]
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 `COMPARE0_STOP` reader - Shortcut between COMPARE\\[0\\]
254event and STOP task"]
255pub type COMPARE0_STOP_R = crate::BitReader<COMPARE0_STOP_A>;
256#[doc = "Shortcut between COMPARE\\[0\\]
257event and STOP task\n\nValue on reset: 0"]
258#[derive(Clone, Copy, Debug, PartialEq)]
259pub enum COMPARE0_STOP_A {
260    #[doc = "0: Disable shortcut"]
261    DISABLED = 0,
262    #[doc = "1: Enable shortcut"]
263    ENABLED = 1,
264}
265impl From<COMPARE0_STOP_A> for bool {
266    #[inline(always)]
267    fn from(variant: COMPARE0_STOP_A) -> Self {
268        variant as u8 != 0
269    }
270}
271impl COMPARE0_STOP_R {
272    #[doc = "Get enumerated values variant"]
273    #[inline(always)]
274    pub fn variant(&self) -> COMPARE0_STOP_A {
275        match self.bits {
276            false => COMPARE0_STOP_A::DISABLED,
277            true => COMPARE0_STOP_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 == COMPARE0_STOP_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 == COMPARE0_STOP_A::ENABLED
289    }
290}
291#[doc = "Field `COMPARE0_STOP` writer - Shortcut between COMPARE\\[0\\]
292event and STOP task"]
293pub type COMPARE0_STOP_W<'a, const O: u8> =
294    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE0_STOP_A, O>;
295impl<'a, const O: u8> COMPARE0_STOP_W<'a, O> {
296    #[doc = "Disable shortcut"]
297    #[inline(always)]
298    pub fn disabled(self) -> &'a mut W {
299        self.variant(COMPARE0_STOP_A::DISABLED)
300    }
301    #[doc = "Enable shortcut"]
302    #[inline(always)]
303    pub fn enabled(self) -> &'a mut W {
304        self.variant(COMPARE0_STOP_A::ENABLED)
305    }
306}
307#[doc = "Field `COMPARE1_STOP` reader - Shortcut between COMPARE\\[1\\]
308event and STOP task"]
309pub type COMPARE1_STOP_R = crate::BitReader<COMPARE1_STOP_A>;
310#[doc = "Shortcut between COMPARE\\[1\\]
311event and STOP task\n\nValue on reset: 0"]
312#[derive(Clone, Copy, Debug, PartialEq)]
313pub enum COMPARE1_STOP_A {
314    #[doc = "0: Disable shortcut"]
315    DISABLED = 0,
316    #[doc = "1: Enable shortcut"]
317    ENABLED = 1,
318}
319impl From<COMPARE1_STOP_A> for bool {
320    #[inline(always)]
321    fn from(variant: COMPARE1_STOP_A) -> Self {
322        variant as u8 != 0
323    }
324}
325impl COMPARE1_STOP_R {
326    #[doc = "Get enumerated values variant"]
327    #[inline(always)]
328    pub fn variant(&self) -> COMPARE1_STOP_A {
329        match self.bits {
330            false => COMPARE1_STOP_A::DISABLED,
331            true => COMPARE1_STOP_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 == COMPARE1_STOP_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 == COMPARE1_STOP_A::ENABLED
343    }
344}
345#[doc = "Field `COMPARE1_STOP` writer - Shortcut between COMPARE\\[1\\]
346event and STOP task"]
347pub type COMPARE1_STOP_W<'a, const O: u8> =
348    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE1_STOP_A, O>;
349impl<'a, const O: u8> COMPARE1_STOP_W<'a, O> {
350    #[doc = "Disable shortcut"]
351    #[inline(always)]
352    pub fn disabled(self) -> &'a mut W {
353        self.variant(COMPARE1_STOP_A::DISABLED)
354    }
355    #[doc = "Enable shortcut"]
356    #[inline(always)]
357    pub fn enabled(self) -> &'a mut W {
358        self.variant(COMPARE1_STOP_A::ENABLED)
359    }
360}
361#[doc = "Field `COMPARE2_STOP` reader - Shortcut between COMPARE\\[2\\]
362event and STOP task"]
363pub type COMPARE2_STOP_R = crate::BitReader<COMPARE2_STOP_A>;
364#[doc = "Shortcut between COMPARE\\[2\\]
365event and STOP task\n\nValue on reset: 0"]
366#[derive(Clone, Copy, Debug, PartialEq)]
367pub enum COMPARE2_STOP_A {
368    #[doc = "0: Disable shortcut"]
369    DISABLED = 0,
370    #[doc = "1: Enable shortcut"]
371    ENABLED = 1,
372}
373impl From<COMPARE2_STOP_A> for bool {
374    #[inline(always)]
375    fn from(variant: COMPARE2_STOP_A) -> Self {
376        variant as u8 != 0
377    }
378}
379impl COMPARE2_STOP_R {
380    #[doc = "Get enumerated values variant"]
381    #[inline(always)]
382    pub fn variant(&self) -> COMPARE2_STOP_A {
383        match self.bits {
384            false => COMPARE2_STOP_A::DISABLED,
385            true => COMPARE2_STOP_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 == COMPARE2_STOP_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 == COMPARE2_STOP_A::ENABLED
397    }
398}
399#[doc = "Field `COMPARE2_STOP` writer - Shortcut between COMPARE\\[2\\]
400event and STOP task"]
401pub type COMPARE2_STOP_W<'a, const O: u8> =
402    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE2_STOP_A, O>;
403impl<'a, const O: u8> COMPARE2_STOP_W<'a, O> {
404    #[doc = "Disable shortcut"]
405    #[inline(always)]
406    pub fn disabled(self) -> &'a mut W {
407        self.variant(COMPARE2_STOP_A::DISABLED)
408    }
409    #[doc = "Enable shortcut"]
410    #[inline(always)]
411    pub fn enabled(self) -> &'a mut W {
412        self.variant(COMPARE2_STOP_A::ENABLED)
413    }
414}
415#[doc = "Field `COMPARE3_STOP` reader - Shortcut between COMPARE\\[3\\]
416event and STOP task"]
417pub type COMPARE3_STOP_R = crate::BitReader<COMPARE3_STOP_A>;
418#[doc = "Shortcut between COMPARE\\[3\\]
419event and STOP task\n\nValue on reset: 0"]
420#[derive(Clone, Copy, Debug, PartialEq)]
421pub enum COMPARE3_STOP_A {
422    #[doc = "0: Disable shortcut"]
423    DISABLED = 0,
424    #[doc = "1: Enable shortcut"]
425    ENABLED = 1,
426}
427impl From<COMPARE3_STOP_A> for bool {
428    #[inline(always)]
429    fn from(variant: COMPARE3_STOP_A) -> Self {
430        variant as u8 != 0
431    }
432}
433impl COMPARE3_STOP_R {
434    #[doc = "Get enumerated values variant"]
435    #[inline(always)]
436    pub fn variant(&self) -> COMPARE3_STOP_A {
437        match self.bits {
438            false => COMPARE3_STOP_A::DISABLED,
439            true => COMPARE3_STOP_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 == COMPARE3_STOP_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 == COMPARE3_STOP_A::ENABLED
451    }
452}
453#[doc = "Field `COMPARE3_STOP` writer - Shortcut between COMPARE\\[3\\]
454event and STOP task"]
455pub type COMPARE3_STOP_W<'a, const O: u8> =
456    crate::BitWriter<'a, u32, SHORTS_SPEC, COMPARE3_STOP_A, O>;
457impl<'a, const O: u8> COMPARE3_STOP_W<'a, O> {
458    #[doc = "Disable shortcut"]
459    #[inline(always)]
460    pub fn disabled(self) -> &'a mut W {
461        self.variant(COMPARE3_STOP_A::DISABLED)
462    }
463    #[doc = "Enable shortcut"]
464    #[inline(always)]
465    pub fn enabled(self) -> &'a mut W {
466        self.variant(COMPARE3_STOP_A::ENABLED)
467    }
468}
469impl R {
470    #[doc = "Bit 0 - Shortcut between COMPARE\\[0\\]
471event and CLEAR task"]
472    #[inline(always)]
473    pub fn compare0_clear(&self) -> COMPARE0_CLEAR_R {
474        COMPARE0_CLEAR_R::new((self.bits & 1) != 0)
475    }
476    #[doc = "Bit 1 - Shortcut between COMPARE\\[1\\]
477event and CLEAR task"]
478    #[inline(always)]
479    pub fn compare1_clear(&self) -> COMPARE1_CLEAR_R {
480        COMPARE1_CLEAR_R::new(((self.bits >> 1) & 1) != 0)
481    }
482    #[doc = "Bit 2 - Shortcut between COMPARE\\[2\\]
483event and CLEAR task"]
484    #[inline(always)]
485    pub fn compare2_clear(&self) -> COMPARE2_CLEAR_R {
486        COMPARE2_CLEAR_R::new(((self.bits >> 2) & 1) != 0)
487    }
488    #[doc = "Bit 3 - Shortcut between COMPARE\\[3\\]
489event and CLEAR task"]
490    #[inline(always)]
491    pub fn compare3_clear(&self) -> COMPARE3_CLEAR_R {
492        COMPARE3_CLEAR_R::new(((self.bits >> 3) & 1) != 0)
493    }
494    #[doc = "Bit 8 - Shortcut between COMPARE\\[0\\]
495event and STOP task"]
496    #[inline(always)]
497    pub fn compare0_stop(&self) -> COMPARE0_STOP_R {
498        COMPARE0_STOP_R::new(((self.bits >> 8) & 1) != 0)
499    }
500    #[doc = "Bit 9 - Shortcut between COMPARE\\[1\\]
501event and STOP task"]
502    #[inline(always)]
503    pub fn compare1_stop(&self) -> COMPARE1_STOP_R {
504        COMPARE1_STOP_R::new(((self.bits >> 9) & 1) != 0)
505    }
506    #[doc = "Bit 10 - Shortcut between COMPARE\\[2\\]
507event and STOP task"]
508    #[inline(always)]
509    pub fn compare2_stop(&self) -> COMPARE2_STOP_R {
510        COMPARE2_STOP_R::new(((self.bits >> 10) & 1) != 0)
511    }
512    #[doc = "Bit 11 - Shortcut between COMPARE\\[3\\]
513event and STOP task"]
514    #[inline(always)]
515    pub fn compare3_stop(&self) -> COMPARE3_STOP_R {
516        COMPARE3_STOP_R::new(((self.bits >> 11) & 1) != 0)
517    }
518}
519impl W {
520    #[doc = "Bit 0 - Shortcut between COMPARE\\[0\\]
521event and CLEAR task"]
522    #[inline(always)]
523    pub fn compare0_clear(&mut self) -> COMPARE0_CLEAR_W<0> {
524        COMPARE0_CLEAR_W::new(self)
525    }
526    #[doc = "Bit 1 - Shortcut between COMPARE\\[1\\]
527event and CLEAR task"]
528    #[inline(always)]
529    pub fn compare1_clear(&mut self) -> COMPARE1_CLEAR_W<1> {
530        COMPARE1_CLEAR_W::new(self)
531    }
532    #[doc = "Bit 2 - Shortcut between COMPARE\\[2\\]
533event and CLEAR task"]
534    #[inline(always)]
535    pub fn compare2_clear(&mut self) -> COMPARE2_CLEAR_W<2> {
536        COMPARE2_CLEAR_W::new(self)
537    }
538    #[doc = "Bit 3 - Shortcut between COMPARE\\[3\\]
539event and CLEAR task"]
540    #[inline(always)]
541    pub fn compare3_clear(&mut self) -> COMPARE3_CLEAR_W<3> {
542        COMPARE3_CLEAR_W::new(self)
543    }
544    #[doc = "Bit 8 - Shortcut between COMPARE\\[0\\]
545event and STOP task"]
546    #[inline(always)]
547    pub fn compare0_stop(&mut self) -> COMPARE0_STOP_W<8> {
548        COMPARE0_STOP_W::new(self)
549    }
550    #[doc = "Bit 9 - Shortcut between COMPARE\\[1\\]
551event and STOP task"]
552    #[inline(always)]
553    pub fn compare1_stop(&mut self) -> COMPARE1_STOP_W<9> {
554        COMPARE1_STOP_W::new(self)
555    }
556    #[doc = "Bit 10 - Shortcut between COMPARE\\[2\\]
557event and STOP task"]
558    #[inline(always)]
559    pub fn compare2_stop(&mut self) -> COMPARE2_STOP_W<10> {
560        COMPARE2_STOP_W::new(self)
561    }
562    #[doc = "Bit 11 - Shortcut between COMPARE\\[3\\]
563event and STOP task"]
564    #[inline(always)]
565    pub fn compare3_stop(&mut self) -> COMPARE3_STOP_W<11> {
566        COMPARE3_STOP_W::new(self)
567    }
568    #[doc = "Writes raw bits to the register."]
569    #[inline(always)]
570    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
571        self.0.bits(bits);
572        self
573    }
574}
575#[doc = "Shortcut register\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"]
576pub struct SHORTS_SPEC;
577impl crate::RegisterSpec for SHORTS_SPEC {
578    type Ux = u32;
579}
580#[doc = "`read()` method returns [shorts::R](R) reader structure"]
581impl crate::Readable for SHORTS_SPEC {
582    type Reader = R;
583}
584#[doc = "`write(|w| ..)` method takes [shorts::W](W) writer structure"]
585impl crate::Writable for SHORTS_SPEC {
586    type Writer = W;
587}
588#[doc = "`reset()` method sets SHORTS to value 0"]
589impl crate::Resettable for SHORTS_SPEC {
590    #[inline(always)]
591    fn reset_value() -> Self::Ux {
592        0
593    }
594}