1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
#[doc = "Register `UCBxIE` reader"]
pub struct R(crate::R<UCBXIE_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<UCBXIE_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<UCBXIE_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<UCBXIE_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `UCBxIE` writer"]
pub struct W(crate::W<UCBXIE_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<UCBXIE_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<UCBXIE_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<UCBXIE_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Receive interrupt enable 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCRXIE0_A {
    #[doc = "0: Interrupt disabled"]
    UCRXIE0_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCRXIE0_1 = 1,
}
impl From<UCRXIE0_A> for bool {
    #[inline(always)]
    fn from(variant: UCRXIE0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCRXIE0` reader - Receive interrupt enable 0"]
pub type UCRXIE0_R = crate::BitReader<UCRXIE0_A>;
impl UCRXIE0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCRXIE0_A {
        match self.bits {
            false => UCRXIE0_A::UCRXIE0_0,
            true => UCRXIE0_A::UCRXIE0_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCRXIE0_0`"]
    #[inline(always)]
    pub fn is_ucrxie0_0(&self) -> bool {
        *self == UCRXIE0_A::UCRXIE0_0
    }
    #[doc = "Checks if the value of the field is `UCRXIE0_1`"]
    #[inline(always)]
    pub fn is_ucrxie0_1(&self) -> bool {
        *self == UCRXIE0_A::UCRXIE0_1
    }
}
#[doc = "Field `UCRXIE0` writer - Receive interrupt enable 0"]
pub type UCRXIE0_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCRXIE0_A, O>;
impl<'a, const O: u8> UCRXIE0_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucrxie0_0(self) -> &'a mut W {
        self.variant(UCRXIE0_A::UCRXIE0_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucrxie0_1(self) -> &'a mut W {
        self.variant(UCRXIE0_A::UCRXIE0_1)
    }
}
#[doc = "Transmit interrupt enable 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCTXIE0_A {
    #[doc = "0: Interrupt disabled"]
    UCTXIE0_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCTXIE0_1 = 1,
}
impl From<UCTXIE0_A> for bool {
    #[inline(always)]
    fn from(variant: UCTXIE0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCTXIE0` reader - Transmit interrupt enable 0"]
pub type UCTXIE0_R = crate::BitReader<UCTXIE0_A>;
impl UCTXIE0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCTXIE0_A {
        match self.bits {
            false => UCTXIE0_A::UCTXIE0_0,
            true => UCTXIE0_A::UCTXIE0_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCTXIE0_0`"]
    #[inline(always)]
    pub fn is_uctxie0_0(&self) -> bool {
        *self == UCTXIE0_A::UCTXIE0_0
    }
    #[doc = "Checks if the value of the field is `UCTXIE0_1`"]
    #[inline(always)]
    pub fn is_uctxie0_1(&self) -> bool {
        *self == UCTXIE0_A::UCTXIE0_1
    }
}
#[doc = "Field `UCTXIE0` writer - Transmit interrupt enable 0"]
pub type UCTXIE0_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCTXIE0_A, O>;
impl<'a, const O: u8> UCTXIE0_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn uctxie0_0(self) -> &'a mut W {
        self.variant(UCTXIE0_A::UCTXIE0_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn uctxie0_1(self) -> &'a mut W {
        self.variant(UCTXIE0_A::UCTXIE0_1)
    }
}
#[doc = "START condition interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCSTTIE_A {
    #[doc = "0: Interrupt disabled"]
    UCSTTIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCSTTIE_1 = 1,
}
impl From<UCSTTIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCSTTIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCSTTIE` reader - START condition interrupt enable"]
pub type UCSTTIE_R = crate::BitReader<UCSTTIE_A>;
impl UCSTTIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCSTTIE_A {
        match self.bits {
            false => UCSTTIE_A::UCSTTIE_0,
            true => UCSTTIE_A::UCSTTIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCSTTIE_0`"]
    #[inline(always)]
    pub fn is_ucsttie_0(&self) -> bool {
        *self == UCSTTIE_A::UCSTTIE_0
    }
    #[doc = "Checks if the value of the field is `UCSTTIE_1`"]
    #[inline(always)]
    pub fn is_ucsttie_1(&self) -> bool {
        *self == UCSTTIE_A::UCSTTIE_1
    }
}
#[doc = "Field `UCSTTIE` writer - START condition interrupt enable"]
pub type UCSTTIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCSTTIE_A, O>;
impl<'a, const O: u8> UCSTTIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucsttie_0(self) -> &'a mut W {
        self.variant(UCSTTIE_A::UCSTTIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucsttie_1(self) -> &'a mut W {
        self.variant(UCSTTIE_A::UCSTTIE_1)
    }
}
#[doc = "STOP condition interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCSTPIE_A {
    #[doc = "0: Interrupt disabled"]
    UCSTPIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCSTPIE_1 = 1,
}
impl From<UCSTPIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCSTPIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCSTPIE` reader - STOP condition interrupt enable"]
pub type UCSTPIE_R = crate::BitReader<UCSTPIE_A>;
impl UCSTPIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCSTPIE_A {
        match self.bits {
            false => UCSTPIE_A::UCSTPIE_0,
            true => UCSTPIE_A::UCSTPIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCSTPIE_0`"]
    #[inline(always)]
    pub fn is_ucstpie_0(&self) -> bool {
        *self == UCSTPIE_A::UCSTPIE_0
    }
    #[doc = "Checks if the value of the field is `UCSTPIE_1`"]
    #[inline(always)]
    pub fn is_ucstpie_1(&self) -> bool {
        *self == UCSTPIE_A::UCSTPIE_1
    }
}
#[doc = "Field `UCSTPIE` writer - STOP condition interrupt enable"]
pub type UCSTPIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCSTPIE_A, O>;
impl<'a, const O: u8> UCSTPIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucstpie_0(self) -> &'a mut W {
        self.variant(UCSTPIE_A::UCSTPIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucstpie_1(self) -> &'a mut W {
        self.variant(UCSTPIE_A::UCSTPIE_1)
    }
}
#[doc = "Arbitration lost interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCALIE_A {
    #[doc = "0: Interrupt disabled"]
    UCALIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCALIE_1 = 1,
}
impl From<UCALIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCALIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCALIE` reader - Arbitration lost interrupt enable"]
pub type UCALIE_R = crate::BitReader<UCALIE_A>;
impl UCALIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCALIE_A {
        match self.bits {
            false => UCALIE_A::UCALIE_0,
            true => UCALIE_A::UCALIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCALIE_0`"]
    #[inline(always)]
    pub fn is_ucalie_0(&self) -> bool {
        *self == UCALIE_A::UCALIE_0
    }
    #[doc = "Checks if the value of the field is `UCALIE_1`"]
    #[inline(always)]
    pub fn is_ucalie_1(&self) -> bool {
        *self == UCALIE_A::UCALIE_1
    }
}
#[doc = "Field `UCALIE` writer - Arbitration lost interrupt enable"]
pub type UCALIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCALIE_A, O>;
impl<'a, const O: u8> UCALIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucalie_0(self) -> &'a mut W {
        self.variant(UCALIE_A::UCALIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucalie_1(self) -> &'a mut W {
        self.variant(UCALIE_A::UCALIE_1)
    }
}
#[doc = "Not-acknowledge interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCNACKIE_A {
    #[doc = "0: Interrupt disabled"]
    UCNACKIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCNACKIE_1 = 1,
}
impl From<UCNACKIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCNACKIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCNACKIE` reader - Not-acknowledge interrupt enable"]
pub type UCNACKIE_R = crate::BitReader<UCNACKIE_A>;
impl UCNACKIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCNACKIE_A {
        match self.bits {
            false => UCNACKIE_A::UCNACKIE_0,
            true => UCNACKIE_A::UCNACKIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCNACKIE_0`"]
    #[inline(always)]
    pub fn is_ucnackie_0(&self) -> bool {
        *self == UCNACKIE_A::UCNACKIE_0
    }
    #[doc = "Checks if the value of the field is `UCNACKIE_1`"]
    #[inline(always)]
    pub fn is_ucnackie_1(&self) -> bool {
        *self == UCNACKIE_A::UCNACKIE_1
    }
}
#[doc = "Field `UCNACKIE` writer - Not-acknowledge interrupt enable"]
pub type UCNACKIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCNACKIE_A, O>;
impl<'a, const O: u8> UCNACKIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucnackie_0(self) -> &'a mut W {
        self.variant(UCNACKIE_A::UCNACKIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucnackie_1(self) -> &'a mut W {
        self.variant(UCNACKIE_A::UCNACKIE_1)
    }
}
#[doc = "Byte counter interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCBCNTIE_A {
    #[doc = "0: Interrupt disabled"]
    UCBCNTIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCBCNTIE_1 = 1,
}
impl From<UCBCNTIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCBCNTIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCBCNTIE` reader - Byte counter interrupt enable"]
pub type UCBCNTIE_R = crate::BitReader<UCBCNTIE_A>;
impl UCBCNTIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCBCNTIE_A {
        match self.bits {
            false => UCBCNTIE_A::UCBCNTIE_0,
            true => UCBCNTIE_A::UCBCNTIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCBCNTIE_0`"]
    #[inline(always)]
    pub fn is_ucbcntie_0(&self) -> bool {
        *self == UCBCNTIE_A::UCBCNTIE_0
    }
    #[doc = "Checks if the value of the field is `UCBCNTIE_1`"]
    #[inline(always)]
    pub fn is_ucbcntie_1(&self) -> bool {
        *self == UCBCNTIE_A::UCBCNTIE_1
    }
}
#[doc = "Field `UCBCNTIE` writer - Byte counter interrupt enable"]
pub type UCBCNTIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCBCNTIE_A, O>;
impl<'a, const O: u8> UCBCNTIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucbcntie_0(self) -> &'a mut W {
        self.variant(UCBCNTIE_A::UCBCNTIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucbcntie_1(self) -> &'a mut W {
        self.variant(UCBCNTIE_A::UCBCNTIE_1)
    }
}
#[doc = "Clock low timeout interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCCLTOIE_A {
    #[doc = "0: Interrupt disabled"]
    UCCLTOIE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCCLTOIE_1 = 1,
}
impl From<UCCLTOIE_A> for bool {
    #[inline(always)]
    fn from(variant: UCCLTOIE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCCLTOIE` reader - Clock low timeout interrupt enable"]
pub type UCCLTOIE_R = crate::BitReader<UCCLTOIE_A>;
impl UCCLTOIE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCCLTOIE_A {
        match self.bits {
            false => UCCLTOIE_A::UCCLTOIE_0,
            true => UCCLTOIE_A::UCCLTOIE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCCLTOIE_0`"]
    #[inline(always)]
    pub fn is_uccltoie_0(&self) -> bool {
        *self == UCCLTOIE_A::UCCLTOIE_0
    }
    #[doc = "Checks if the value of the field is `UCCLTOIE_1`"]
    #[inline(always)]
    pub fn is_uccltoie_1(&self) -> bool {
        *self == UCCLTOIE_A::UCCLTOIE_1
    }
}
#[doc = "Field `UCCLTOIE` writer - Clock low timeout interrupt enable"]
pub type UCCLTOIE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCCLTOIE_A, O>;
impl<'a, const O: u8> UCCLTOIE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn uccltoie_0(self) -> &'a mut W {
        self.variant(UCCLTOIE_A::UCCLTOIE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn uccltoie_1(self) -> &'a mut W {
        self.variant(UCCLTOIE_A::UCCLTOIE_1)
    }
}
#[doc = "Receive interrupt enable 1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCRXIE1_A {
    #[doc = "0: Interrupt disabled"]
    UCRXIE1_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCRXIE1_1 = 1,
}
impl From<UCRXIE1_A> for bool {
    #[inline(always)]
    fn from(variant: UCRXIE1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCRXIE1` reader - Receive interrupt enable 1"]
pub type UCRXIE1_R = crate::BitReader<UCRXIE1_A>;
impl UCRXIE1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCRXIE1_A {
        match self.bits {
            false => UCRXIE1_A::UCRXIE1_0,
            true => UCRXIE1_A::UCRXIE1_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCRXIE1_0`"]
    #[inline(always)]
    pub fn is_ucrxie1_0(&self) -> bool {
        *self == UCRXIE1_A::UCRXIE1_0
    }
    #[doc = "Checks if the value of the field is `UCRXIE1_1`"]
    #[inline(always)]
    pub fn is_ucrxie1_1(&self) -> bool {
        *self == UCRXIE1_A::UCRXIE1_1
    }
}
#[doc = "Field `UCRXIE1` writer - Receive interrupt enable 1"]
pub type UCRXIE1_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCRXIE1_A, O>;
impl<'a, const O: u8> UCRXIE1_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucrxie1_0(self) -> &'a mut W {
        self.variant(UCRXIE1_A::UCRXIE1_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucrxie1_1(self) -> &'a mut W {
        self.variant(UCRXIE1_A::UCRXIE1_1)
    }
}
#[doc = "Transmit interrupt enable 1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCTXIE1_A {
    #[doc = "0: Interrupt disabled"]
    UCTXIE1_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCTXIE1_1 = 1,
}
impl From<UCTXIE1_A> for bool {
    #[inline(always)]
    fn from(variant: UCTXIE1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCTXIE1` reader - Transmit interrupt enable 1"]
pub type UCTXIE1_R = crate::BitReader<UCTXIE1_A>;
impl UCTXIE1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCTXIE1_A {
        match self.bits {
            false => UCTXIE1_A::UCTXIE1_0,
            true => UCTXIE1_A::UCTXIE1_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCTXIE1_0`"]
    #[inline(always)]
    pub fn is_uctxie1_0(&self) -> bool {
        *self == UCTXIE1_A::UCTXIE1_0
    }
    #[doc = "Checks if the value of the field is `UCTXIE1_1`"]
    #[inline(always)]
    pub fn is_uctxie1_1(&self) -> bool {
        *self == UCTXIE1_A::UCTXIE1_1
    }
}
#[doc = "Field `UCTXIE1` writer - Transmit interrupt enable 1"]
pub type UCTXIE1_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCTXIE1_A, O>;
impl<'a, const O: u8> UCTXIE1_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn uctxie1_0(self) -> &'a mut W {
        self.variant(UCTXIE1_A::UCTXIE1_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn uctxie1_1(self) -> &'a mut W {
        self.variant(UCTXIE1_A::UCTXIE1_1)
    }
}
#[doc = "Receive interrupt enable 2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCRXIE2_A {
    #[doc = "0: Interrupt disabled"]
    UCRXIE2_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCRXIE2_1 = 1,
}
impl From<UCRXIE2_A> for bool {
    #[inline(always)]
    fn from(variant: UCRXIE2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCRXIE2` reader - Receive interrupt enable 2"]
pub type UCRXIE2_R = crate::BitReader<UCRXIE2_A>;
impl UCRXIE2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCRXIE2_A {
        match self.bits {
            false => UCRXIE2_A::UCRXIE2_0,
            true => UCRXIE2_A::UCRXIE2_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCRXIE2_0`"]
    #[inline(always)]
    pub fn is_ucrxie2_0(&self) -> bool {
        *self == UCRXIE2_A::UCRXIE2_0
    }
    #[doc = "Checks if the value of the field is `UCRXIE2_1`"]
    #[inline(always)]
    pub fn is_ucrxie2_1(&self) -> bool {
        *self == UCRXIE2_A::UCRXIE2_1
    }
}
#[doc = "Field `UCRXIE2` writer - Receive interrupt enable 2"]
pub type UCRXIE2_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCRXIE2_A, O>;
impl<'a, const O: u8> UCRXIE2_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucrxie2_0(self) -> &'a mut W {
        self.variant(UCRXIE2_A::UCRXIE2_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucrxie2_1(self) -> &'a mut W {
        self.variant(UCRXIE2_A::UCRXIE2_1)
    }
}
#[doc = "Transmit interrupt enable 2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCTXIE2_A {
    #[doc = "0: Interrupt disabled"]
    UCTXIE2_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCTXIE2_1 = 1,
}
impl From<UCTXIE2_A> for bool {
    #[inline(always)]
    fn from(variant: UCTXIE2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCTXIE2` reader - Transmit interrupt enable 2"]
pub type UCTXIE2_R = crate::BitReader<UCTXIE2_A>;
impl UCTXIE2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCTXIE2_A {
        match self.bits {
            false => UCTXIE2_A::UCTXIE2_0,
            true => UCTXIE2_A::UCTXIE2_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCTXIE2_0`"]
    #[inline(always)]
    pub fn is_uctxie2_0(&self) -> bool {
        *self == UCTXIE2_A::UCTXIE2_0
    }
    #[doc = "Checks if the value of the field is `UCTXIE2_1`"]
    #[inline(always)]
    pub fn is_uctxie2_1(&self) -> bool {
        *self == UCTXIE2_A::UCTXIE2_1
    }
}
#[doc = "Field `UCTXIE2` writer - Transmit interrupt enable 2"]
pub type UCTXIE2_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCTXIE2_A, O>;
impl<'a, const O: u8> UCTXIE2_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn uctxie2_0(self) -> &'a mut W {
        self.variant(UCTXIE2_A::UCTXIE2_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn uctxie2_1(self) -> &'a mut W {
        self.variant(UCTXIE2_A::UCTXIE2_1)
    }
}
#[doc = "Receive interrupt enable 3\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCRXIE3_A {
    #[doc = "0: Interrupt disabled"]
    UCRXIE3_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCRXIE3_1 = 1,
}
impl From<UCRXIE3_A> for bool {
    #[inline(always)]
    fn from(variant: UCRXIE3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCRXIE3` reader - Receive interrupt enable 3"]
pub type UCRXIE3_R = crate::BitReader<UCRXIE3_A>;
impl UCRXIE3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCRXIE3_A {
        match self.bits {
            false => UCRXIE3_A::UCRXIE3_0,
            true => UCRXIE3_A::UCRXIE3_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCRXIE3_0`"]
    #[inline(always)]
    pub fn is_ucrxie3_0(&self) -> bool {
        *self == UCRXIE3_A::UCRXIE3_0
    }
    #[doc = "Checks if the value of the field is `UCRXIE3_1`"]
    #[inline(always)]
    pub fn is_ucrxie3_1(&self) -> bool {
        *self == UCRXIE3_A::UCRXIE3_1
    }
}
#[doc = "Field `UCRXIE3` writer - Receive interrupt enable 3"]
pub type UCRXIE3_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCRXIE3_A, O>;
impl<'a, const O: u8> UCRXIE3_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucrxie3_0(self) -> &'a mut W {
        self.variant(UCRXIE3_A::UCRXIE3_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucrxie3_1(self) -> &'a mut W {
        self.variant(UCRXIE3_A::UCRXIE3_1)
    }
}
#[doc = "Transmit interrupt enable 3\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCTXIE3_A {
    #[doc = "0: Interrupt disabled"]
    UCTXIE3_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCTXIE3_1 = 1,
}
impl From<UCTXIE3_A> for bool {
    #[inline(always)]
    fn from(variant: UCTXIE3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCTXIE3` reader - Transmit interrupt enable 3"]
pub type UCTXIE3_R = crate::BitReader<UCTXIE3_A>;
impl UCTXIE3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCTXIE3_A {
        match self.bits {
            false => UCTXIE3_A::UCTXIE3_0,
            true => UCTXIE3_A::UCTXIE3_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCTXIE3_0`"]
    #[inline(always)]
    pub fn is_uctxie3_0(&self) -> bool {
        *self == UCTXIE3_A::UCTXIE3_0
    }
    #[doc = "Checks if the value of the field is `UCTXIE3_1`"]
    #[inline(always)]
    pub fn is_uctxie3_1(&self) -> bool {
        *self == UCTXIE3_A::UCTXIE3_1
    }
}
#[doc = "Field `UCTXIE3` writer - Transmit interrupt enable 3"]
pub type UCTXIE3_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCTXIE3_A, O>;
impl<'a, const O: u8> UCTXIE3_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn uctxie3_0(self) -> &'a mut W {
        self.variant(UCTXIE3_A::UCTXIE3_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn uctxie3_1(self) -> &'a mut W {
        self.variant(UCTXIE3_A::UCTXIE3_1)
    }
}
#[doc = "Bit position 9 interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UCBIT9IE_A {
    #[doc = "0: Interrupt disabled"]
    UCBIT9IE_0 = 0,
    #[doc = "1: Interrupt enabled"]
    UCBIT9IE_1 = 1,
}
impl From<UCBIT9IE_A> for bool {
    #[inline(always)]
    fn from(variant: UCBIT9IE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `UCBIT9IE` reader - Bit position 9 interrupt enable"]
pub type UCBIT9IE_R = crate::BitReader<UCBIT9IE_A>;
impl UCBIT9IE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> UCBIT9IE_A {
        match self.bits {
            false => UCBIT9IE_A::UCBIT9IE_0,
            true => UCBIT9IE_A::UCBIT9IE_1,
        }
    }
    #[doc = "Checks if the value of the field is `UCBIT9IE_0`"]
    #[inline(always)]
    pub fn is_ucbit9ie_0(&self) -> bool {
        *self == UCBIT9IE_A::UCBIT9IE_0
    }
    #[doc = "Checks if the value of the field is `UCBIT9IE_1`"]
    #[inline(always)]
    pub fn is_ucbit9ie_1(&self) -> bool {
        *self == UCBIT9IE_A::UCBIT9IE_1
    }
}
#[doc = "Field `UCBIT9IE` writer - Bit position 9 interrupt enable"]
pub type UCBIT9IE_W<'a, const O: u8> = crate::BitWriter<'a, u16, UCBXIE_SPEC, UCBIT9IE_A, O>;
impl<'a, const O: u8> UCBIT9IE_W<'a, O> {
    #[doc = "Interrupt disabled"]
    #[inline(always)]
    pub fn ucbit9ie_0(self) -> &'a mut W {
        self.variant(UCBIT9IE_A::UCBIT9IE_0)
    }
    #[doc = "Interrupt enabled"]
    #[inline(always)]
    pub fn ucbit9ie_1(self) -> &'a mut W {
        self.variant(UCBIT9IE_A::UCBIT9IE_1)
    }
}
impl R {
    #[doc = "Bit 0 - Receive interrupt enable 0"]
    #[inline(always)]
    pub fn ucrxie0(&self) -> UCRXIE0_R {
        UCRXIE0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Transmit interrupt enable 0"]
    #[inline(always)]
    pub fn uctxie0(&self) -> UCTXIE0_R {
        UCTXIE0_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - START condition interrupt enable"]
    #[inline(always)]
    pub fn ucsttie(&self) -> UCSTTIE_R {
        UCSTTIE_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - STOP condition interrupt enable"]
    #[inline(always)]
    pub fn ucstpie(&self) -> UCSTPIE_R {
        UCSTPIE_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Arbitration lost interrupt enable"]
    #[inline(always)]
    pub fn ucalie(&self) -> UCALIE_R {
        UCALIE_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Not-acknowledge interrupt enable"]
    #[inline(always)]
    pub fn ucnackie(&self) -> UCNACKIE_R {
        UCNACKIE_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Byte counter interrupt enable"]
    #[inline(always)]
    pub fn ucbcntie(&self) -> UCBCNTIE_R {
        UCBCNTIE_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Clock low timeout interrupt enable"]
    #[inline(always)]
    pub fn uccltoie(&self) -> UCCLTOIE_R {
        UCCLTOIE_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Receive interrupt enable 1"]
    #[inline(always)]
    pub fn ucrxie1(&self) -> UCRXIE1_R {
        UCRXIE1_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Transmit interrupt enable 1"]
    #[inline(always)]
    pub fn uctxie1(&self) -> UCTXIE1_R {
        UCTXIE1_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Receive interrupt enable 2"]
    #[inline(always)]
    pub fn ucrxie2(&self) -> UCRXIE2_R {
        UCRXIE2_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Transmit interrupt enable 2"]
    #[inline(always)]
    pub fn uctxie2(&self) -> UCTXIE2_R {
        UCTXIE2_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Receive interrupt enable 3"]
    #[inline(always)]
    pub fn ucrxie3(&self) -> UCRXIE3_R {
        UCRXIE3_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Transmit interrupt enable 3"]
    #[inline(always)]
    pub fn uctxie3(&self) -> UCTXIE3_R {
        UCTXIE3_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Bit position 9 interrupt enable"]
    #[inline(always)]
    pub fn ucbit9ie(&self) -> UCBIT9IE_R {
        UCBIT9IE_R::new(((self.bits >> 14) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Receive interrupt enable 0"]
    #[inline(always)]
    pub fn ucrxie0(&mut self) -> UCRXIE0_W<0> {
        UCRXIE0_W::new(self)
    }
    #[doc = "Bit 1 - Transmit interrupt enable 0"]
    #[inline(always)]
    pub fn uctxie0(&mut self) -> UCTXIE0_W<1> {
        UCTXIE0_W::new(self)
    }
    #[doc = "Bit 2 - START condition interrupt enable"]
    #[inline(always)]
    pub fn ucsttie(&mut self) -> UCSTTIE_W<2> {
        UCSTTIE_W::new(self)
    }
    #[doc = "Bit 3 - STOP condition interrupt enable"]
    #[inline(always)]
    pub fn ucstpie(&mut self) -> UCSTPIE_W<3> {
        UCSTPIE_W::new(self)
    }
    #[doc = "Bit 4 - Arbitration lost interrupt enable"]
    #[inline(always)]
    pub fn ucalie(&mut self) -> UCALIE_W<4> {
        UCALIE_W::new(self)
    }
    #[doc = "Bit 5 - Not-acknowledge interrupt enable"]
    #[inline(always)]
    pub fn ucnackie(&mut self) -> UCNACKIE_W<5> {
        UCNACKIE_W::new(self)
    }
    #[doc = "Bit 6 - Byte counter interrupt enable"]
    #[inline(always)]
    pub fn ucbcntie(&mut self) -> UCBCNTIE_W<6> {
        UCBCNTIE_W::new(self)
    }
    #[doc = "Bit 7 - Clock low timeout interrupt enable"]
    #[inline(always)]
    pub fn uccltoie(&mut self) -> UCCLTOIE_W<7> {
        UCCLTOIE_W::new(self)
    }
    #[doc = "Bit 8 - Receive interrupt enable 1"]
    #[inline(always)]
    pub fn ucrxie1(&mut self) -> UCRXIE1_W<8> {
        UCRXIE1_W::new(self)
    }
    #[doc = "Bit 9 - Transmit interrupt enable 1"]
    #[inline(always)]
    pub fn uctxie1(&mut self) -> UCTXIE1_W<9> {
        UCTXIE1_W::new(self)
    }
    #[doc = "Bit 10 - Receive interrupt enable 2"]
    #[inline(always)]
    pub fn ucrxie2(&mut self) -> UCRXIE2_W<10> {
        UCRXIE2_W::new(self)
    }
    #[doc = "Bit 11 - Transmit interrupt enable 2"]
    #[inline(always)]
    pub fn uctxie2(&mut self) -> UCTXIE2_W<11> {
        UCTXIE2_W::new(self)
    }
    #[doc = "Bit 12 - Receive interrupt enable 3"]
    #[inline(always)]
    pub fn ucrxie3(&mut self) -> UCRXIE3_W<12> {
        UCRXIE3_W::new(self)
    }
    #[doc = "Bit 13 - Transmit interrupt enable 3"]
    #[inline(always)]
    pub fn uctxie3(&mut self) -> UCTXIE3_W<13> {
        UCTXIE3_W::new(self)
    }
    #[doc = "Bit 14 - Bit position 9 interrupt enable"]
    #[inline(always)]
    pub fn ucbit9ie(&mut self) -> UCBIT9IE_W<14> {
        UCBIT9IE_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u16) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "eUSCI_Bx Interrupt Enable 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 [ucbx_ie](index.html) module"]
pub struct UCBXIE_SPEC;
impl crate::RegisterSpec for UCBXIE_SPEC {
    type Ux = u16;
}
#[doc = "`read()` method returns [ucbx_ie::R](R) reader structure"]
impl crate::Readable for UCBXIE_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [ucbx_ie::W](W) writer structure"]
impl crate::Writable for UCBXIE_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets UCBxIE to value 0"]
impl crate::Resettable for UCBXIE_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}