nrf52840_pac/uarte0/
inten.rs

1#[doc = "Register `INTEN` reader"]
2pub struct R(crate::R<INTEN_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INTEN_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INTEN_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INTEN_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INTEN` writer"]
17pub struct W(crate::W<INTEN_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INTEN_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<INTEN_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INTEN_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CTS` reader - Enable or disable interrupt for CTS event"]
38pub type CTS_R = crate::BitReader<CTS_A>;
39#[doc = "Enable or disable interrupt for CTS event\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum CTS_A {
42    #[doc = "0: Disable"]
43    DISABLED = 0,
44    #[doc = "1: Enable"]
45    ENABLED = 1,
46}
47impl From<CTS_A> for bool {
48    #[inline(always)]
49    fn from(variant: CTS_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl CTS_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> CTS_A {
57        match self.bits {
58            false => CTS_A::DISABLED,
59            true => CTS_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 == CTS_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 == CTS_A::ENABLED
71    }
72}
73#[doc = "Field `CTS` writer - Enable or disable interrupt for CTS event"]
74pub type CTS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, CTS_A, O>;
75impl<'a, const O: u8> CTS_W<'a, O> {
76    #[doc = "Disable"]
77    #[inline(always)]
78    pub fn disabled(self) -> &'a mut W {
79        self.variant(CTS_A::DISABLED)
80    }
81    #[doc = "Enable"]
82    #[inline(always)]
83    pub fn enabled(self) -> &'a mut W {
84        self.variant(CTS_A::ENABLED)
85    }
86}
87#[doc = "Field `NCTS` reader - Enable or disable interrupt for NCTS event"]
88pub type NCTS_R = crate::BitReader<NCTS_A>;
89#[doc = "Enable or disable interrupt for NCTS event\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum NCTS_A {
92    #[doc = "0: Disable"]
93    DISABLED = 0,
94    #[doc = "1: Enable"]
95    ENABLED = 1,
96}
97impl From<NCTS_A> for bool {
98    #[inline(always)]
99    fn from(variant: NCTS_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl NCTS_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> NCTS_A {
107        match self.bits {
108            false => NCTS_A::DISABLED,
109            true => NCTS_A::ENABLED,
110        }
111    }
112    #[doc = "Checks if the value of the field is `DISABLED`"]
113    #[inline(always)]
114    pub fn is_disabled(&self) -> bool {
115        *self == NCTS_A::DISABLED
116    }
117    #[doc = "Checks if the value of the field is `ENABLED`"]
118    #[inline(always)]
119    pub fn is_enabled(&self) -> bool {
120        *self == NCTS_A::ENABLED
121    }
122}
123#[doc = "Field `NCTS` writer - Enable or disable interrupt for NCTS event"]
124pub type NCTS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, NCTS_A, O>;
125impl<'a, const O: u8> NCTS_W<'a, O> {
126    #[doc = "Disable"]
127    #[inline(always)]
128    pub fn disabled(self) -> &'a mut W {
129        self.variant(NCTS_A::DISABLED)
130    }
131    #[doc = "Enable"]
132    #[inline(always)]
133    pub fn enabled(self) -> &'a mut W {
134        self.variant(NCTS_A::ENABLED)
135    }
136}
137#[doc = "Field `RXDRDY` reader - Enable or disable interrupt for RXDRDY event"]
138pub type RXDRDY_R = crate::BitReader<RXDRDY_A>;
139#[doc = "Enable or disable interrupt for RXDRDY event\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum RXDRDY_A {
142    #[doc = "0: Disable"]
143    DISABLED = 0,
144    #[doc = "1: Enable"]
145    ENABLED = 1,
146}
147impl From<RXDRDY_A> for bool {
148    #[inline(always)]
149    fn from(variant: RXDRDY_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl RXDRDY_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> RXDRDY_A {
157        match self.bits {
158            false => RXDRDY_A::DISABLED,
159            true => RXDRDY_A::ENABLED,
160        }
161    }
162    #[doc = "Checks if the value of the field is `DISABLED`"]
163    #[inline(always)]
164    pub fn is_disabled(&self) -> bool {
165        *self == RXDRDY_A::DISABLED
166    }
167    #[doc = "Checks if the value of the field is `ENABLED`"]
168    #[inline(always)]
169    pub fn is_enabled(&self) -> bool {
170        *self == RXDRDY_A::ENABLED
171    }
172}
173#[doc = "Field `RXDRDY` writer - Enable or disable interrupt for RXDRDY event"]
174pub type RXDRDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, RXDRDY_A, O>;
175impl<'a, const O: u8> RXDRDY_W<'a, O> {
176    #[doc = "Disable"]
177    #[inline(always)]
178    pub fn disabled(self) -> &'a mut W {
179        self.variant(RXDRDY_A::DISABLED)
180    }
181    #[doc = "Enable"]
182    #[inline(always)]
183    pub fn enabled(self) -> &'a mut W {
184        self.variant(RXDRDY_A::ENABLED)
185    }
186}
187#[doc = "Field `ENDRX` reader - Enable or disable interrupt for ENDRX event"]
188pub type ENDRX_R = crate::BitReader<ENDRX_A>;
189#[doc = "Enable or disable interrupt for ENDRX event\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum ENDRX_A {
192    #[doc = "0: Disable"]
193    DISABLED = 0,
194    #[doc = "1: Enable"]
195    ENABLED = 1,
196}
197impl From<ENDRX_A> for bool {
198    #[inline(always)]
199    fn from(variant: ENDRX_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl ENDRX_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> ENDRX_A {
207        match self.bits {
208            false => ENDRX_A::DISABLED,
209            true => ENDRX_A::ENABLED,
210        }
211    }
212    #[doc = "Checks if the value of the field is `DISABLED`"]
213    #[inline(always)]
214    pub fn is_disabled(&self) -> bool {
215        *self == ENDRX_A::DISABLED
216    }
217    #[doc = "Checks if the value of the field is `ENABLED`"]
218    #[inline(always)]
219    pub fn is_enabled(&self) -> bool {
220        *self == ENDRX_A::ENABLED
221    }
222}
223#[doc = "Field `ENDRX` writer - Enable or disable interrupt for ENDRX event"]
224pub type ENDRX_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, ENDRX_A, O>;
225impl<'a, const O: u8> ENDRX_W<'a, O> {
226    #[doc = "Disable"]
227    #[inline(always)]
228    pub fn disabled(self) -> &'a mut W {
229        self.variant(ENDRX_A::DISABLED)
230    }
231    #[doc = "Enable"]
232    #[inline(always)]
233    pub fn enabled(self) -> &'a mut W {
234        self.variant(ENDRX_A::ENABLED)
235    }
236}
237#[doc = "Field `TXDRDY` reader - Enable or disable interrupt for TXDRDY event"]
238pub type TXDRDY_R = crate::BitReader<TXDRDY_A>;
239#[doc = "Enable or disable interrupt for TXDRDY event\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum TXDRDY_A {
242    #[doc = "0: Disable"]
243    DISABLED = 0,
244    #[doc = "1: Enable"]
245    ENABLED = 1,
246}
247impl From<TXDRDY_A> for bool {
248    #[inline(always)]
249    fn from(variant: TXDRDY_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl TXDRDY_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> TXDRDY_A {
257        match self.bits {
258            false => TXDRDY_A::DISABLED,
259            true => TXDRDY_A::ENABLED,
260        }
261    }
262    #[doc = "Checks if the value of the field is `DISABLED`"]
263    #[inline(always)]
264    pub fn is_disabled(&self) -> bool {
265        *self == TXDRDY_A::DISABLED
266    }
267    #[doc = "Checks if the value of the field is `ENABLED`"]
268    #[inline(always)]
269    pub fn is_enabled(&self) -> bool {
270        *self == TXDRDY_A::ENABLED
271    }
272}
273#[doc = "Field `TXDRDY` writer - Enable or disable interrupt for TXDRDY event"]
274pub type TXDRDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TXDRDY_A, O>;
275impl<'a, const O: u8> TXDRDY_W<'a, O> {
276    #[doc = "Disable"]
277    #[inline(always)]
278    pub fn disabled(self) -> &'a mut W {
279        self.variant(TXDRDY_A::DISABLED)
280    }
281    #[doc = "Enable"]
282    #[inline(always)]
283    pub fn enabled(self) -> &'a mut W {
284        self.variant(TXDRDY_A::ENABLED)
285    }
286}
287#[doc = "Field `ENDTX` reader - Enable or disable interrupt for ENDTX event"]
288pub type ENDTX_R = crate::BitReader<ENDTX_A>;
289#[doc = "Enable or disable interrupt for ENDTX event\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum ENDTX_A {
292    #[doc = "0: Disable"]
293    DISABLED = 0,
294    #[doc = "1: Enable"]
295    ENABLED = 1,
296}
297impl From<ENDTX_A> for bool {
298    #[inline(always)]
299    fn from(variant: ENDTX_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl ENDTX_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> ENDTX_A {
307        match self.bits {
308            false => ENDTX_A::DISABLED,
309            true => ENDTX_A::ENABLED,
310        }
311    }
312    #[doc = "Checks if the value of the field is `DISABLED`"]
313    #[inline(always)]
314    pub fn is_disabled(&self) -> bool {
315        *self == ENDTX_A::DISABLED
316    }
317    #[doc = "Checks if the value of the field is `ENABLED`"]
318    #[inline(always)]
319    pub fn is_enabled(&self) -> bool {
320        *self == ENDTX_A::ENABLED
321    }
322}
323#[doc = "Field `ENDTX` writer - Enable or disable interrupt for ENDTX event"]
324pub type ENDTX_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, ENDTX_A, O>;
325impl<'a, const O: u8> ENDTX_W<'a, O> {
326    #[doc = "Disable"]
327    #[inline(always)]
328    pub fn disabled(self) -> &'a mut W {
329        self.variant(ENDTX_A::DISABLED)
330    }
331    #[doc = "Enable"]
332    #[inline(always)]
333    pub fn enabled(self) -> &'a mut W {
334        self.variant(ENDTX_A::ENABLED)
335    }
336}
337#[doc = "Field `ERROR` reader - Enable or disable interrupt for ERROR event"]
338pub type ERROR_R = crate::BitReader<ERROR_A>;
339#[doc = "Enable or disable interrupt for ERROR event\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum ERROR_A {
342    #[doc = "0: Disable"]
343    DISABLED = 0,
344    #[doc = "1: Enable"]
345    ENABLED = 1,
346}
347impl From<ERROR_A> for bool {
348    #[inline(always)]
349    fn from(variant: ERROR_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl ERROR_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> ERROR_A {
357        match self.bits {
358            false => ERROR_A::DISABLED,
359            true => ERROR_A::ENABLED,
360        }
361    }
362    #[doc = "Checks if the value of the field is `DISABLED`"]
363    #[inline(always)]
364    pub fn is_disabled(&self) -> bool {
365        *self == ERROR_A::DISABLED
366    }
367    #[doc = "Checks if the value of the field is `ENABLED`"]
368    #[inline(always)]
369    pub fn is_enabled(&self) -> bool {
370        *self == ERROR_A::ENABLED
371    }
372}
373#[doc = "Field `ERROR` writer - Enable or disable interrupt for ERROR event"]
374pub type ERROR_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, ERROR_A, O>;
375impl<'a, const O: u8> ERROR_W<'a, O> {
376    #[doc = "Disable"]
377    #[inline(always)]
378    pub fn disabled(self) -> &'a mut W {
379        self.variant(ERROR_A::DISABLED)
380    }
381    #[doc = "Enable"]
382    #[inline(always)]
383    pub fn enabled(self) -> &'a mut W {
384        self.variant(ERROR_A::ENABLED)
385    }
386}
387#[doc = "Field `RXTO` reader - Enable or disable interrupt for RXTO event"]
388pub type RXTO_R = crate::BitReader<RXTO_A>;
389#[doc = "Enable or disable interrupt for RXTO event\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum RXTO_A {
392    #[doc = "0: Disable"]
393    DISABLED = 0,
394    #[doc = "1: Enable"]
395    ENABLED = 1,
396}
397impl From<RXTO_A> for bool {
398    #[inline(always)]
399    fn from(variant: RXTO_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl RXTO_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> RXTO_A {
407        match self.bits {
408            false => RXTO_A::DISABLED,
409            true => RXTO_A::ENABLED,
410        }
411    }
412    #[doc = "Checks if the value of the field is `DISABLED`"]
413    #[inline(always)]
414    pub fn is_disabled(&self) -> bool {
415        *self == RXTO_A::DISABLED
416    }
417    #[doc = "Checks if the value of the field is `ENABLED`"]
418    #[inline(always)]
419    pub fn is_enabled(&self) -> bool {
420        *self == RXTO_A::ENABLED
421    }
422}
423#[doc = "Field `RXTO` writer - Enable or disable interrupt for RXTO event"]
424pub type RXTO_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, RXTO_A, O>;
425impl<'a, const O: u8> RXTO_W<'a, O> {
426    #[doc = "Disable"]
427    #[inline(always)]
428    pub fn disabled(self) -> &'a mut W {
429        self.variant(RXTO_A::DISABLED)
430    }
431    #[doc = "Enable"]
432    #[inline(always)]
433    pub fn enabled(self) -> &'a mut W {
434        self.variant(RXTO_A::ENABLED)
435    }
436}
437#[doc = "Field `RXSTARTED` reader - Enable or disable interrupt for RXSTARTED event"]
438pub type RXSTARTED_R = crate::BitReader<RXSTARTED_A>;
439#[doc = "Enable or disable interrupt for RXSTARTED event\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum RXSTARTED_A {
442    #[doc = "0: Disable"]
443    DISABLED = 0,
444    #[doc = "1: Enable"]
445    ENABLED = 1,
446}
447impl From<RXSTARTED_A> for bool {
448    #[inline(always)]
449    fn from(variant: RXSTARTED_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl RXSTARTED_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> RXSTARTED_A {
457        match self.bits {
458            false => RXSTARTED_A::DISABLED,
459            true => RXSTARTED_A::ENABLED,
460        }
461    }
462    #[doc = "Checks if the value of the field is `DISABLED`"]
463    #[inline(always)]
464    pub fn is_disabled(&self) -> bool {
465        *self == RXSTARTED_A::DISABLED
466    }
467    #[doc = "Checks if the value of the field is `ENABLED`"]
468    #[inline(always)]
469    pub fn is_enabled(&self) -> bool {
470        *self == RXSTARTED_A::ENABLED
471    }
472}
473#[doc = "Field `RXSTARTED` writer - Enable or disable interrupt for RXSTARTED event"]
474pub type RXSTARTED_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, RXSTARTED_A, O>;
475impl<'a, const O: u8> RXSTARTED_W<'a, O> {
476    #[doc = "Disable"]
477    #[inline(always)]
478    pub fn disabled(self) -> &'a mut W {
479        self.variant(RXSTARTED_A::DISABLED)
480    }
481    #[doc = "Enable"]
482    #[inline(always)]
483    pub fn enabled(self) -> &'a mut W {
484        self.variant(RXSTARTED_A::ENABLED)
485    }
486}
487#[doc = "Field `TXSTARTED` reader - Enable or disable interrupt for TXSTARTED event"]
488pub type TXSTARTED_R = crate::BitReader<TXSTARTED_A>;
489#[doc = "Enable or disable interrupt for TXSTARTED event\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum TXSTARTED_A {
492    #[doc = "0: Disable"]
493    DISABLED = 0,
494    #[doc = "1: Enable"]
495    ENABLED = 1,
496}
497impl From<TXSTARTED_A> for bool {
498    #[inline(always)]
499    fn from(variant: TXSTARTED_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl TXSTARTED_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> TXSTARTED_A {
507        match self.bits {
508            false => TXSTARTED_A::DISABLED,
509            true => TXSTARTED_A::ENABLED,
510        }
511    }
512    #[doc = "Checks if the value of the field is `DISABLED`"]
513    #[inline(always)]
514    pub fn is_disabled(&self) -> bool {
515        *self == TXSTARTED_A::DISABLED
516    }
517    #[doc = "Checks if the value of the field is `ENABLED`"]
518    #[inline(always)]
519    pub fn is_enabled(&self) -> bool {
520        *self == TXSTARTED_A::ENABLED
521    }
522}
523#[doc = "Field `TXSTARTED` writer - Enable or disable interrupt for TXSTARTED event"]
524pub type TXSTARTED_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TXSTARTED_A, O>;
525impl<'a, const O: u8> TXSTARTED_W<'a, O> {
526    #[doc = "Disable"]
527    #[inline(always)]
528    pub fn disabled(self) -> &'a mut W {
529        self.variant(TXSTARTED_A::DISABLED)
530    }
531    #[doc = "Enable"]
532    #[inline(always)]
533    pub fn enabled(self) -> &'a mut W {
534        self.variant(TXSTARTED_A::ENABLED)
535    }
536}
537#[doc = "Field `TXSTOPPED` reader - Enable or disable interrupt for TXSTOPPED event"]
538pub type TXSTOPPED_R = crate::BitReader<TXSTOPPED_A>;
539#[doc = "Enable or disable interrupt for TXSTOPPED event\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum TXSTOPPED_A {
542    #[doc = "0: Disable"]
543    DISABLED = 0,
544    #[doc = "1: Enable"]
545    ENABLED = 1,
546}
547impl From<TXSTOPPED_A> for bool {
548    #[inline(always)]
549    fn from(variant: TXSTOPPED_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl TXSTOPPED_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> TXSTOPPED_A {
557        match self.bits {
558            false => TXSTOPPED_A::DISABLED,
559            true => TXSTOPPED_A::ENABLED,
560        }
561    }
562    #[doc = "Checks if the value of the field is `DISABLED`"]
563    #[inline(always)]
564    pub fn is_disabled(&self) -> bool {
565        *self == TXSTOPPED_A::DISABLED
566    }
567    #[doc = "Checks if the value of the field is `ENABLED`"]
568    #[inline(always)]
569    pub fn is_enabled(&self) -> bool {
570        *self == TXSTOPPED_A::ENABLED
571    }
572}
573#[doc = "Field `TXSTOPPED` writer - Enable or disable interrupt for TXSTOPPED event"]
574pub type TXSTOPPED_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TXSTOPPED_A, O>;
575impl<'a, const O: u8> TXSTOPPED_W<'a, O> {
576    #[doc = "Disable"]
577    #[inline(always)]
578    pub fn disabled(self) -> &'a mut W {
579        self.variant(TXSTOPPED_A::DISABLED)
580    }
581    #[doc = "Enable"]
582    #[inline(always)]
583    pub fn enabled(self) -> &'a mut W {
584        self.variant(TXSTOPPED_A::ENABLED)
585    }
586}
587impl R {
588    #[doc = "Bit 0 - Enable or disable interrupt for CTS event"]
589    #[inline(always)]
590    pub fn cts(&self) -> CTS_R {
591        CTS_R::new((self.bits & 1) != 0)
592    }
593    #[doc = "Bit 1 - Enable or disable interrupt for NCTS event"]
594    #[inline(always)]
595    pub fn ncts(&self) -> NCTS_R {
596        NCTS_R::new(((self.bits >> 1) & 1) != 0)
597    }
598    #[doc = "Bit 2 - Enable or disable interrupt for RXDRDY event"]
599    #[inline(always)]
600    pub fn rxdrdy(&self) -> RXDRDY_R {
601        RXDRDY_R::new(((self.bits >> 2) & 1) != 0)
602    }
603    #[doc = "Bit 4 - Enable or disable interrupt for ENDRX event"]
604    #[inline(always)]
605    pub fn endrx(&self) -> ENDRX_R {
606        ENDRX_R::new(((self.bits >> 4) & 1) != 0)
607    }
608    #[doc = "Bit 7 - Enable or disable interrupt for TXDRDY event"]
609    #[inline(always)]
610    pub fn txdrdy(&self) -> TXDRDY_R {
611        TXDRDY_R::new(((self.bits >> 7) & 1) != 0)
612    }
613    #[doc = "Bit 8 - Enable or disable interrupt for ENDTX event"]
614    #[inline(always)]
615    pub fn endtx(&self) -> ENDTX_R {
616        ENDTX_R::new(((self.bits >> 8) & 1) != 0)
617    }
618    #[doc = "Bit 9 - Enable or disable interrupt for ERROR event"]
619    #[inline(always)]
620    pub fn error(&self) -> ERROR_R {
621        ERROR_R::new(((self.bits >> 9) & 1) != 0)
622    }
623    #[doc = "Bit 17 - Enable or disable interrupt for RXTO event"]
624    #[inline(always)]
625    pub fn rxto(&self) -> RXTO_R {
626        RXTO_R::new(((self.bits >> 17) & 1) != 0)
627    }
628    #[doc = "Bit 19 - Enable or disable interrupt for RXSTARTED event"]
629    #[inline(always)]
630    pub fn rxstarted(&self) -> RXSTARTED_R {
631        RXSTARTED_R::new(((self.bits >> 19) & 1) != 0)
632    }
633    #[doc = "Bit 20 - Enable or disable interrupt for TXSTARTED event"]
634    #[inline(always)]
635    pub fn txstarted(&self) -> TXSTARTED_R {
636        TXSTARTED_R::new(((self.bits >> 20) & 1) != 0)
637    }
638    #[doc = "Bit 22 - Enable or disable interrupt for TXSTOPPED event"]
639    #[inline(always)]
640    pub fn txstopped(&self) -> TXSTOPPED_R {
641        TXSTOPPED_R::new(((self.bits >> 22) & 1) != 0)
642    }
643}
644impl W {
645    #[doc = "Bit 0 - Enable or disable interrupt for CTS event"]
646    #[inline(always)]
647    pub fn cts(&mut self) -> CTS_W<0> {
648        CTS_W::new(self)
649    }
650    #[doc = "Bit 1 - Enable or disable interrupt for NCTS event"]
651    #[inline(always)]
652    pub fn ncts(&mut self) -> NCTS_W<1> {
653        NCTS_W::new(self)
654    }
655    #[doc = "Bit 2 - Enable or disable interrupt for RXDRDY event"]
656    #[inline(always)]
657    pub fn rxdrdy(&mut self) -> RXDRDY_W<2> {
658        RXDRDY_W::new(self)
659    }
660    #[doc = "Bit 4 - Enable or disable interrupt for ENDRX event"]
661    #[inline(always)]
662    pub fn endrx(&mut self) -> ENDRX_W<4> {
663        ENDRX_W::new(self)
664    }
665    #[doc = "Bit 7 - Enable or disable interrupt for TXDRDY event"]
666    #[inline(always)]
667    pub fn txdrdy(&mut self) -> TXDRDY_W<7> {
668        TXDRDY_W::new(self)
669    }
670    #[doc = "Bit 8 - Enable or disable interrupt for ENDTX event"]
671    #[inline(always)]
672    pub fn endtx(&mut self) -> ENDTX_W<8> {
673        ENDTX_W::new(self)
674    }
675    #[doc = "Bit 9 - Enable or disable interrupt for ERROR event"]
676    #[inline(always)]
677    pub fn error(&mut self) -> ERROR_W<9> {
678        ERROR_W::new(self)
679    }
680    #[doc = "Bit 17 - Enable or disable interrupt for RXTO event"]
681    #[inline(always)]
682    pub fn rxto(&mut self) -> RXTO_W<17> {
683        RXTO_W::new(self)
684    }
685    #[doc = "Bit 19 - Enable or disable interrupt for RXSTARTED event"]
686    #[inline(always)]
687    pub fn rxstarted(&mut self) -> RXSTARTED_W<19> {
688        RXSTARTED_W::new(self)
689    }
690    #[doc = "Bit 20 - Enable or disable interrupt for TXSTARTED event"]
691    #[inline(always)]
692    pub fn txstarted(&mut self) -> TXSTARTED_W<20> {
693        TXSTARTED_W::new(self)
694    }
695    #[doc = "Bit 22 - Enable or disable interrupt for TXSTOPPED event"]
696    #[inline(always)]
697    pub fn txstopped(&mut self) -> TXSTOPPED_W<22> {
698        TXSTOPPED_W::new(self)
699    }
700    #[doc = "Writes raw bits to the register."]
701    #[inline(always)]
702    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
703        self.0.bits(bits);
704        self
705    }
706}
707#[doc = "Enable or disable 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 [inten](index.html) module"]
708pub struct INTEN_SPEC;
709impl crate::RegisterSpec for INTEN_SPEC {
710    type Ux = u32;
711}
712#[doc = "`read()` method returns [inten::R](R) reader structure"]
713impl crate::Readable for INTEN_SPEC {
714    type Reader = R;
715}
716#[doc = "`write(|w| ..)` method takes [inten::W](W) writer structure"]
717impl crate::Writable for INTEN_SPEC {
718    type Writer = W;
719}
720#[doc = "`reset()` method sets INTEN to value 0"]
721impl crate::Resettable for INTEN_SPEC {
722    #[inline(always)]
723    fn reset_value() -> Self::Ux {
724        0
725    }
726}