mcxa-pac 0.3.0

Peripheral Access Crate for MCXA256 devices
Documentation
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
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
#[doc = "Register `SR` reader"]
pub type R = crate::R<SrSpec>;
#[doc = "Register `SR` writer"]
pub type W = crate::W<SrSpec>;
#[doc = "Digital Tamper Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Dtf {
    #[doc = "0: TDET tampering not detected"]
    NoDet = 0,
    #[doc = "1: TDET tampering detected"]
    Det = 1,
}
impl From<Dtf> for bool {
    #[inline(always)]
    fn from(variant: Dtf) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DTF` reader - Digital Tamper Flag"]
pub type DtfR = crate::BitReader<Dtf>;
impl DtfR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Dtf {
        match self.bits {
            false => Dtf::NoDet,
            true => Dtf::Det,
        }
    }
    #[doc = "TDET tampering not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Dtf::NoDet
    }
    #[doc = "TDET tampering detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Dtf::Det
    }
}
#[doc = "Field `DTF` writer - Digital Tamper Flag"]
pub type DtfW<'a, REG> = crate::BitWriter1C<'a, REG, Dtf>;
impl<'a, REG> DtfW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "TDET tampering not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Dtf::NoDet)
    }
    #[doc = "TDET tampering detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Dtf::Det)
    }
}
#[doc = "Tamper Acknowledge Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Taf {
    #[doc = "0: Digital Tamper Flag (SR\\[DTF\\]) is clear or chip reset has not occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    NotOccur = 0,
    #[doc = "1: Chip reset has occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    Occur = 1,
}
impl From<Taf> for bool {
    #[inline(always)]
    fn from(variant: Taf) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TAF` reader - Tamper Acknowledge Flag"]
pub type TafR = crate::BitReader<Taf>;
impl TafR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Taf {
        match self.bits {
            false => Taf::NotOccur,
            true => Taf::Occur,
        }
    }
    #[doc = "Digital Tamper Flag (SR\\[DTF\\]) is clear or chip reset has not occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    #[inline(always)]
    pub fn is_not_occur(&self) -> bool {
        *self == Taf::NotOccur
    }
    #[doc = "Chip reset has occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    #[inline(always)]
    pub fn is_occur(&self) -> bool {
        *self == Taf::Occur
    }
}
#[doc = "Field `TAF` writer - Tamper Acknowledge Flag"]
pub type TafW<'a, REG> = crate::BitWriter1C<'a, REG, Taf>;
impl<'a, REG> TafW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Digital Tamper Flag (SR\\[DTF\\]) is clear or chip reset has not occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    #[inline(always)]
    pub fn not_occur(self) -> &'a mut crate::W<REG> {
        self.variant(Taf::NotOccur)
    }
    #[doc = "Chip reset has occurred after Digital Tamper Flag (SR\\[DTF\\]) was set."]
    #[inline(always)]
    pub fn occur(self) -> &'a mut crate::W<REG> {
        self.variant(Taf::Occur)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif0 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif0> for bool {
    #[inline(always)]
    fn from(variant: Tif0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF0` reader - Tamper Input n Flag"]
pub type Tif0R = crate::BitReader<Tif0>;
impl Tif0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif0 {
        match self.bits {
            false => Tif0::NoDet,
            true => Tif0::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif0::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif0::Det
    }
}
#[doc = "Field `TIF0` writer - Tamper Input n Flag"]
pub type Tif0W<'a, REG> = crate::BitWriter1C<'a, REG, Tif0>;
impl<'a, REG> Tif0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif0::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif0::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif1 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif1> for bool {
    #[inline(always)]
    fn from(variant: Tif1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF1` reader - Tamper Input n Flag"]
pub type Tif1R = crate::BitReader<Tif1>;
impl Tif1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif1 {
        match self.bits {
            false => Tif1::NoDet,
            true => Tif1::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif1::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif1::Det
    }
}
#[doc = "Field `TIF1` writer - Tamper Input n Flag"]
pub type Tif1W<'a, REG> = crate::BitWriter1C<'a, REG, Tif1>;
impl<'a, REG> Tif1W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif1::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif1::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif2 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif2> for bool {
    #[inline(always)]
    fn from(variant: Tif2) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF2` reader - Tamper Input n Flag"]
pub type Tif2R = crate::BitReader<Tif2>;
impl Tif2R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif2 {
        match self.bits {
            false => Tif2::NoDet,
            true => Tif2::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif2::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif2::Det
    }
}
#[doc = "Field `TIF2` writer - Tamper Input n Flag"]
pub type Tif2W<'a, REG> = crate::BitWriter1C<'a, REG, Tif2>;
impl<'a, REG> Tif2W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif2::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif2::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif3 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif3> for bool {
    #[inline(always)]
    fn from(variant: Tif3) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF3` reader - Tamper Input n Flag"]
pub type Tif3R = crate::BitReader<Tif3>;
impl Tif3R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif3 {
        match self.bits {
            false => Tif3::NoDet,
            true => Tif3::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif3::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif3::Det
    }
}
#[doc = "Field `TIF3` writer - Tamper Input n Flag"]
pub type Tif3W<'a, REG> = crate::BitWriter1C<'a, REG, Tif3>;
impl<'a, REG> Tif3W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif3::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif3::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif4 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif4> for bool {
    #[inline(always)]
    fn from(variant: Tif4) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF4` reader - Tamper Input n Flag"]
pub type Tif4R = crate::BitReader<Tif4>;
impl Tif4R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif4 {
        match self.bits {
            false => Tif4::NoDet,
            true => Tif4::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif4::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif4::Det
    }
}
#[doc = "Field `TIF4` writer - Tamper Input n Flag"]
pub type Tif4W<'a, REG> = crate::BitWriter1C<'a, REG, Tif4>;
impl<'a, REG> Tif4W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif4::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif4::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif5 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif5> for bool {
    #[inline(always)]
    fn from(variant: Tif5) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF5` reader - Tamper Input n Flag"]
pub type Tif5R = crate::BitReader<Tif5>;
impl Tif5R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif5 {
        match self.bits {
            false => Tif5::NoDet,
            true => Tif5::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif5::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif5::Det
    }
}
#[doc = "Field `TIF5` writer - Tamper Input n Flag"]
pub type Tif5W<'a, REG> = crate::BitWriter1C<'a, REG, Tif5>;
impl<'a, REG> Tif5W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif5::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif5::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif6 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif6> for bool {
    #[inline(always)]
    fn from(variant: Tif6) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF6` reader - Tamper Input n Flag"]
pub type Tif6R = crate::BitReader<Tif6>;
impl Tif6R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif6 {
        match self.bits {
            false => Tif6::NoDet,
            true => Tif6::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif6::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif6::Det
    }
}
#[doc = "Field `TIF6` writer - Tamper Input n Flag"]
pub type Tif6W<'a, REG> = crate::BitWriter1C<'a, REG, Tif6>;
impl<'a, REG> Tif6W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif6::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif6::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif7 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif7> for bool {
    #[inline(always)]
    fn from(variant: Tif7) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF7` reader - Tamper Input n Flag"]
pub type Tif7R = crate::BitReader<Tif7>;
impl Tif7R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif7 {
        match self.bits {
            false => Tif7::NoDet,
            true => Tif7::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif7::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif7::Det
    }
}
#[doc = "Field `TIF7` writer - Tamper Input n Flag"]
pub type Tif7W<'a, REG> = crate::BitWriter1C<'a, REG, Tif7>;
impl<'a, REG> Tif7W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif7::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif7::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif8 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif8> for bool {
    #[inline(always)]
    fn from(variant: Tif8) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF8` reader - Tamper Input n Flag"]
pub type Tif8R = crate::BitReader<Tif8>;
impl Tif8R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif8 {
        match self.bits {
            false => Tif8::NoDet,
            true => Tif8::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif8::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif8::Det
    }
}
#[doc = "Field `TIF8` writer - Tamper Input n Flag"]
pub type Tif8W<'a, REG> = crate::BitWriter1C<'a, REG, Tif8>;
impl<'a, REG> Tif8W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif8::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif8::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif9 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif9> for bool {
    #[inline(always)]
    fn from(variant: Tif9) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF9` reader - Tamper Input n Flag"]
pub type Tif9R = crate::BitReader<Tif9>;
impl Tif9R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif9 {
        match self.bits {
            false => Tif9::NoDet,
            true => Tif9::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif9::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif9::Det
    }
}
#[doc = "Field `TIF9` writer - Tamper Input n Flag"]
pub type Tif9W<'a, REG> = crate::BitWriter1C<'a, REG, Tif9>;
impl<'a, REG> Tif9W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif9::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif9::Det)
    }
}
#[doc = "Tamper Input n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tif10 {
    #[doc = "0: On-chip tamper not detected"]
    NoDet = 0,
    #[doc = "1: On-chip tamper detected"]
    Det = 1,
}
impl From<Tif10> for bool {
    #[inline(always)]
    fn from(variant: Tif10) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIF10` reader - Tamper Input n Flag"]
pub type Tif10R = crate::BitReader<Tif10>;
impl Tif10R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tif10 {
        match self.bits {
            false => Tif10::NoDet,
            true => Tif10::Det,
        }
    }
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tif10::NoDet
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tif10::Det
    }
}
#[doc = "Field `TIF10` writer - Tamper Input n Flag"]
pub type Tif10W<'a, REG> = crate::BitWriter1C<'a, REG, Tif10>;
impl<'a, REG> Tif10W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "On-chip tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif10::NoDet)
    }
    #[doc = "On-chip tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tif10::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf0 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf0> for bool {
    #[inline(always)]
    fn from(variant: Tpf0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF0` reader - Tamper Pin n Flag"]
pub type Tpf0R = crate::BitReader<Tpf0>;
impl Tpf0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf0 {
        match self.bits {
            false => Tpf0::NoDet,
            true => Tpf0::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf0::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf0::Det
    }
}
#[doc = "Field `TPF0` writer - Tamper Pin n Flag"]
pub type Tpf0W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf0>;
impl<'a, REG> Tpf0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf0::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf0::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf1 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf1> for bool {
    #[inline(always)]
    fn from(variant: Tpf1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF1` reader - Tamper Pin n Flag"]
pub type Tpf1R = crate::BitReader<Tpf1>;
impl Tpf1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf1 {
        match self.bits {
            false => Tpf1::NoDet,
            true => Tpf1::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf1::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf1::Det
    }
}
#[doc = "Field `TPF1` writer - Tamper Pin n Flag"]
pub type Tpf1W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf1>;
impl<'a, REG> Tpf1W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf1::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf1::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf2 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf2> for bool {
    #[inline(always)]
    fn from(variant: Tpf2) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF2` reader - Tamper Pin n Flag"]
pub type Tpf2R = crate::BitReader<Tpf2>;
impl Tpf2R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf2 {
        match self.bits {
            false => Tpf2::NoDet,
            true => Tpf2::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf2::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf2::Det
    }
}
#[doc = "Field `TPF2` writer - Tamper Pin n Flag"]
pub type Tpf2W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf2>;
impl<'a, REG> Tpf2W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf2::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf2::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf3 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf3> for bool {
    #[inline(always)]
    fn from(variant: Tpf3) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF3` reader - Tamper Pin n Flag"]
pub type Tpf3R = crate::BitReader<Tpf3>;
impl Tpf3R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf3 {
        match self.bits {
            false => Tpf3::NoDet,
            true => Tpf3::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf3::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf3::Det
    }
}
#[doc = "Field `TPF3` writer - Tamper Pin n Flag"]
pub type Tpf3W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf3>;
impl<'a, REG> Tpf3W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf3::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf3::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf4 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf4> for bool {
    #[inline(always)]
    fn from(variant: Tpf4) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF4` reader - Tamper Pin n Flag"]
pub type Tpf4R = crate::BitReader<Tpf4>;
impl Tpf4R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf4 {
        match self.bits {
            false => Tpf4::NoDet,
            true => Tpf4::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf4::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf4::Det
    }
}
#[doc = "Field `TPF4` writer - Tamper Pin n Flag"]
pub type Tpf4W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf4>;
impl<'a, REG> Tpf4W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf4::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf4::Det)
    }
}
#[doc = "Tamper Pin n Flag\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tpf5 {
    #[doc = "0: Pin tamper not detected"]
    NoDet = 0,
    #[doc = "1: Pin tamper detected"]
    Det = 1,
}
impl From<Tpf5> for bool {
    #[inline(always)]
    fn from(variant: Tpf5) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TPF5` reader - Tamper Pin n Flag"]
pub type Tpf5R = crate::BitReader<Tpf5>;
impl Tpf5R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tpf5 {
        match self.bits {
            false => Tpf5::NoDet,
            true => Tpf5::Det,
        }
    }
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn is_no_det(&self) -> bool {
        *self == Tpf5::NoDet
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn is_det(&self) -> bool {
        *self == Tpf5::Det
    }
}
#[doc = "Field `TPF5` writer - Tamper Pin n Flag"]
pub type Tpf5W<'a, REG> = crate::BitWriter1C<'a, REG, Tpf5>;
impl<'a, REG> Tpf5W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pin tamper not detected"]
    #[inline(always)]
    pub fn no_det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf5::NoDet)
    }
    #[doc = "Pin tamper detected"]
    #[inline(always)]
    pub fn det(self) -> &'a mut crate::W<REG> {
        self.variant(Tpf5::Det)
    }
}
impl R {
    #[doc = "Bit 0 - Digital Tamper Flag"]
    #[inline(always)]
    pub fn dtf(&self) -> DtfR {
        DtfR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Tamper Acknowledge Flag"]
    #[inline(always)]
    pub fn taf(&self) -> TafR {
        TafR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif0(&self) -> Tif0R {
        Tif0R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif1(&self) -> Tif1R {
        Tif1R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif2(&self) -> Tif2R {
        Tif2R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif3(&self) -> Tif3R {
        Tif3R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif4(&self) -> Tif4R {
        Tif4R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif5(&self) -> Tif5R {
        Tif5R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif6(&self) -> Tif6R {
        Tif6R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif7(&self) -> Tif7R {
        Tif7R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif8(&self) -> Tif8R {
        Tif8R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif9(&self) -> Tif9R {
        Tif9R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif10(&self) -> Tif10R {
        Tif10R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 16 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf0(&self) -> Tpf0R {
        Tpf0R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf1(&self) -> Tpf1R {
        Tpf1R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf2(&self) -> Tpf2R {
        Tpf2R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf3(&self) -> Tpf3R {
        Tpf3R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf4(&self) -> Tpf4R {
        Tpf4R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf5(&self) -> Tpf5R {
        Tpf5R::new(((self.bits >> 21) & 1) != 0)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SR")
            .field("dtf", &self.dtf())
            .field("taf", &self.taf())
            .field("tif0", &self.tif0())
            .field("tif1", &self.tif1())
            .field("tif2", &self.tif2())
            .field("tif3", &self.tif3())
            .field("tif4", &self.tif4())
            .field("tif5", &self.tif5())
            .field("tif6", &self.tif6())
            .field("tif7", &self.tif7())
            .field("tif8", &self.tif8())
            .field("tif9", &self.tif9())
            .field("tif10", &self.tif10())
            .field("tpf0", &self.tpf0())
            .field("tpf1", &self.tpf1())
            .field("tpf2", &self.tpf2())
            .field("tpf3", &self.tpf3())
            .field("tpf4", &self.tpf4())
            .field("tpf5", &self.tpf5())
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - Digital Tamper Flag"]
    #[inline(always)]
    pub fn dtf(&mut self) -> DtfW<'_, SrSpec> {
        DtfW::new(self, 0)
    }
    #[doc = "Bit 1 - Tamper Acknowledge Flag"]
    #[inline(always)]
    pub fn taf(&mut self) -> TafW<'_, SrSpec> {
        TafW::new(self, 1)
    }
    #[doc = "Bit 2 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif0(&mut self) -> Tif0W<'_, SrSpec> {
        Tif0W::new(self, 2)
    }
    #[doc = "Bit 3 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif1(&mut self) -> Tif1W<'_, SrSpec> {
        Tif1W::new(self, 3)
    }
    #[doc = "Bit 4 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif2(&mut self) -> Tif2W<'_, SrSpec> {
        Tif2W::new(self, 4)
    }
    #[doc = "Bit 5 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif3(&mut self) -> Tif3W<'_, SrSpec> {
        Tif3W::new(self, 5)
    }
    #[doc = "Bit 6 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif4(&mut self) -> Tif4W<'_, SrSpec> {
        Tif4W::new(self, 6)
    }
    #[doc = "Bit 7 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif5(&mut self) -> Tif5W<'_, SrSpec> {
        Tif5W::new(self, 7)
    }
    #[doc = "Bit 8 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif6(&mut self) -> Tif6W<'_, SrSpec> {
        Tif6W::new(self, 8)
    }
    #[doc = "Bit 9 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif7(&mut self) -> Tif7W<'_, SrSpec> {
        Tif7W::new(self, 9)
    }
    #[doc = "Bit 10 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif8(&mut self) -> Tif8W<'_, SrSpec> {
        Tif8W::new(self, 10)
    }
    #[doc = "Bit 11 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif9(&mut self) -> Tif9W<'_, SrSpec> {
        Tif9W::new(self, 11)
    }
    #[doc = "Bit 12 - Tamper Input n Flag"]
    #[inline(always)]
    pub fn tif10(&mut self) -> Tif10W<'_, SrSpec> {
        Tif10W::new(self, 12)
    }
    #[doc = "Bit 16 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf0(&mut self) -> Tpf0W<'_, SrSpec> {
        Tpf0W::new(self, 16)
    }
    #[doc = "Bit 17 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf1(&mut self) -> Tpf1W<'_, SrSpec> {
        Tpf1W::new(self, 17)
    }
    #[doc = "Bit 18 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf2(&mut self) -> Tpf2W<'_, SrSpec> {
        Tpf2W::new(self, 18)
    }
    #[doc = "Bit 19 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf3(&mut self) -> Tpf3W<'_, SrSpec> {
        Tpf3W::new(self, 19)
    }
    #[doc = "Bit 20 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf4(&mut self) -> Tpf4W<'_, SrSpec> {
        Tpf4W::new(self, 20)
    }
    #[doc = "Bit 21 - Tamper Pin n Flag"]
    #[inline(always)]
    pub fn tpf5(&mut self) -> Tpf5W<'_, SrSpec> {
        Tpf5W::new(self, 21)
    }
}
#[doc = "Status\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SrSpec;
impl crate::RegisterSpec for SrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`sr::R`](R) reader structure"]
impl crate::Readable for SrSpec {}
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"]
impl crate::Writable for SrSpec {
    type Safety = crate::Unsafe;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x003f_1fff;
}
#[doc = "`reset()` method sets SR to value 0"]
impl crate::Resettable for SrSpec {}