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
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
#[doc = "Register `INT_STATUS_EN` reader"]
pub struct R(crate::R<INT_STATUS_EN_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<INT_STATUS_EN_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<INT_STATUS_EN_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<INT_STATUS_EN_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `INT_STATUS_EN` writer"]
pub struct W(crate::W<INT_STATUS_EN_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<INT_STATUS_EN_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<INT_STATUS_EN_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<INT_STATUS_EN_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `CCSEN` reader - Command complete status enable"]
pub type CCSEN_R = crate::BitReader<CCSEN_A>;
#[doc = "Command complete status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CCSEN_A {
    #[doc = "0: Masked"]
    CCSEN_0 = 0,
    #[doc = "1: Enabled"]
    CCSEN_1 = 1,
}
impl From<CCSEN_A> for bool {
    #[inline(always)]
    fn from(variant: CCSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CCSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CCSEN_A {
        match self.bits {
            false => CCSEN_A::CCSEN_0,
            true => CCSEN_A::CCSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CCSEN_0`"]
    #[inline(always)]
    pub fn is_ccsen_0(&self) -> bool {
        *self == CCSEN_A::CCSEN_0
    }
    #[doc = "Checks if the value of the field is `CCSEN_1`"]
    #[inline(always)]
    pub fn is_ccsen_1(&self) -> bool {
        *self == CCSEN_A::CCSEN_1
    }
}
#[doc = "Field `CCSEN` writer - Command complete status enable"]
pub type CCSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CCSEN_A, O>;
impl<'a, const O: u8> CCSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn ccsen_0(self) -> &'a mut W {
        self.variant(CCSEN_A::CCSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn ccsen_1(self) -> &'a mut W {
        self.variant(CCSEN_A::CCSEN_1)
    }
}
#[doc = "Field `TCSEN` reader - Transfer complete status enable"]
pub type TCSEN_R = crate::BitReader<TCSEN_A>;
#[doc = "Transfer complete status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCSEN_A {
    #[doc = "0: Masked"]
    TCSEN_0 = 0,
    #[doc = "1: Enabled"]
    TCSEN_1 = 1,
}
impl From<TCSEN_A> for bool {
    #[inline(always)]
    fn from(variant: TCSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl TCSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCSEN_A {
        match self.bits {
            false => TCSEN_A::TCSEN_0,
            true => TCSEN_A::TCSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `TCSEN_0`"]
    #[inline(always)]
    pub fn is_tcsen_0(&self) -> bool {
        *self == TCSEN_A::TCSEN_0
    }
    #[doc = "Checks if the value of the field is `TCSEN_1`"]
    #[inline(always)]
    pub fn is_tcsen_1(&self) -> bool {
        *self == TCSEN_A::TCSEN_1
    }
}
#[doc = "Field `TCSEN` writer - Transfer complete status enable"]
pub type TCSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, TCSEN_A, O>;
impl<'a, const O: u8> TCSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn tcsen_0(self) -> &'a mut W {
        self.variant(TCSEN_A::TCSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn tcsen_1(self) -> &'a mut W {
        self.variant(TCSEN_A::TCSEN_1)
    }
}
#[doc = "Field `BGESEN` reader - Block gap event status enable"]
pub type BGESEN_R = crate::BitReader<BGESEN_A>;
#[doc = "Block gap event status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BGESEN_A {
    #[doc = "0: Masked"]
    BGESEN_0 = 0,
    #[doc = "1: Enabled"]
    BGESEN_1 = 1,
}
impl From<BGESEN_A> for bool {
    #[inline(always)]
    fn from(variant: BGESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl BGESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BGESEN_A {
        match self.bits {
            false => BGESEN_A::BGESEN_0,
            true => BGESEN_A::BGESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `BGESEN_0`"]
    #[inline(always)]
    pub fn is_bgesen_0(&self) -> bool {
        *self == BGESEN_A::BGESEN_0
    }
    #[doc = "Checks if the value of the field is `BGESEN_1`"]
    #[inline(always)]
    pub fn is_bgesen_1(&self) -> bool {
        *self == BGESEN_A::BGESEN_1
    }
}
#[doc = "Field `BGESEN` writer - Block gap event status enable"]
pub type BGESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, BGESEN_A, O>;
impl<'a, const O: u8> BGESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn bgesen_0(self) -> &'a mut W {
        self.variant(BGESEN_A::BGESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn bgesen_1(self) -> &'a mut W {
        self.variant(BGESEN_A::BGESEN_1)
    }
}
#[doc = "Field `DINTSEN` reader - DMA interrupt status enable"]
pub type DINTSEN_R = crate::BitReader<DINTSEN_A>;
#[doc = "DMA interrupt status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DINTSEN_A {
    #[doc = "0: Masked"]
    DINTSEN_0 = 0,
    #[doc = "1: Enabled"]
    DINTSEN_1 = 1,
}
impl From<DINTSEN_A> for bool {
    #[inline(always)]
    fn from(variant: DINTSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl DINTSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DINTSEN_A {
        match self.bits {
            false => DINTSEN_A::DINTSEN_0,
            true => DINTSEN_A::DINTSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `DINTSEN_0`"]
    #[inline(always)]
    pub fn is_dintsen_0(&self) -> bool {
        *self == DINTSEN_A::DINTSEN_0
    }
    #[doc = "Checks if the value of the field is `DINTSEN_1`"]
    #[inline(always)]
    pub fn is_dintsen_1(&self) -> bool {
        *self == DINTSEN_A::DINTSEN_1
    }
}
#[doc = "Field `DINTSEN` writer - DMA interrupt status enable"]
pub type DINTSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, DINTSEN_A, O>;
impl<'a, const O: u8> DINTSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn dintsen_0(self) -> &'a mut W {
        self.variant(DINTSEN_A::DINTSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn dintsen_1(self) -> &'a mut W {
        self.variant(DINTSEN_A::DINTSEN_1)
    }
}
#[doc = "Field `BWRSEN` reader - Buffer write ready status enable"]
pub type BWRSEN_R = crate::BitReader<BWRSEN_A>;
#[doc = "Buffer write ready status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BWRSEN_A {
    #[doc = "0: Masked"]
    BWRSEN_0 = 0,
    #[doc = "1: Enabled"]
    BWRSEN_1 = 1,
}
impl From<BWRSEN_A> for bool {
    #[inline(always)]
    fn from(variant: BWRSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl BWRSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BWRSEN_A {
        match self.bits {
            false => BWRSEN_A::BWRSEN_0,
            true => BWRSEN_A::BWRSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `BWRSEN_0`"]
    #[inline(always)]
    pub fn is_bwrsen_0(&self) -> bool {
        *self == BWRSEN_A::BWRSEN_0
    }
    #[doc = "Checks if the value of the field is `BWRSEN_1`"]
    #[inline(always)]
    pub fn is_bwrsen_1(&self) -> bool {
        *self == BWRSEN_A::BWRSEN_1
    }
}
#[doc = "Field `BWRSEN` writer - Buffer write ready status enable"]
pub type BWRSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, BWRSEN_A, O>;
impl<'a, const O: u8> BWRSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn bwrsen_0(self) -> &'a mut W {
        self.variant(BWRSEN_A::BWRSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn bwrsen_1(self) -> &'a mut W {
        self.variant(BWRSEN_A::BWRSEN_1)
    }
}
#[doc = "Field `BRRSEN` reader - Buffer read ready status enable"]
pub type BRRSEN_R = crate::BitReader<BRRSEN_A>;
#[doc = "Buffer read ready status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BRRSEN_A {
    #[doc = "0: Masked"]
    BRRSEN_0 = 0,
    #[doc = "1: Enabled"]
    BRRSEN_1 = 1,
}
impl From<BRRSEN_A> for bool {
    #[inline(always)]
    fn from(variant: BRRSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl BRRSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BRRSEN_A {
        match self.bits {
            false => BRRSEN_A::BRRSEN_0,
            true => BRRSEN_A::BRRSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `BRRSEN_0`"]
    #[inline(always)]
    pub fn is_brrsen_0(&self) -> bool {
        *self == BRRSEN_A::BRRSEN_0
    }
    #[doc = "Checks if the value of the field is `BRRSEN_1`"]
    #[inline(always)]
    pub fn is_brrsen_1(&self) -> bool {
        *self == BRRSEN_A::BRRSEN_1
    }
}
#[doc = "Field `BRRSEN` writer - Buffer read ready status enable"]
pub type BRRSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, BRRSEN_A, O>;
impl<'a, const O: u8> BRRSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn brrsen_0(self) -> &'a mut W {
        self.variant(BRRSEN_A::BRRSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn brrsen_1(self) -> &'a mut W {
        self.variant(BRRSEN_A::BRRSEN_1)
    }
}
#[doc = "Field `CINSSEN` reader - Card insertion status enable"]
pub type CINSSEN_R = crate::BitReader<CINSSEN_A>;
#[doc = "Card insertion status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CINSSEN_A {
    #[doc = "0: Masked"]
    CINSSEN_0 = 0,
    #[doc = "1: Enabled"]
    CINSSEN_1 = 1,
}
impl From<CINSSEN_A> for bool {
    #[inline(always)]
    fn from(variant: CINSSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CINSSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CINSSEN_A {
        match self.bits {
            false => CINSSEN_A::CINSSEN_0,
            true => CINSSEN_A::CINSSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CINSSEN_0`"]
    #[inline(always)]
    pub fn is_cinssen_0(&self) -> bool {
        *self == CINSSEN_A::CINSSEN_0
    }
    #[doc = "Checks if the value of the field is `CINSSEN_1`"]
    #[inline(always)]
    pub fn is_cinssen_1(&self) -> bool {
        *self == CINSSEN_A::CINSSEN_1
    }
}
#[doc = "Field `CINSSEN` writer - Card insertion status enable"]
pub type CINSSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CINSSEN_A, O>;
impl<'a, const O: u8> CINSSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn cinssen_0(self) -> &'a mut W {
        self.variant(CINSSEN_A::CINSSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn cinssen_1(self) -> &'a mut W {
        self.variant(CINSSEN_A::CINSSEN_1)
    }
}
#[doc = "Field `CRMSEN` reader - Card removal status enable"]
pub type CRMSEN_R = crate::BitReader<CRMSEN_A>;
#[doc = "Card removal status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CRMSEN_A {
    #[doc = "0: Masked"]
    CRMSEN_0 = 0,
    #[doc = "1: Enabled"]
    CRMSEN_1 = 1,
}
impl From<CRMSEN_A> for bool {
    #[inline(always)]
    fn from(variant: CRMSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CRMSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CRMSEN_A {
        match self.bits {
            false => CRMSEN_A::CRMSEN_0,
            true => CRMSEN_A::CRMSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CRMSEN_0`"]
    #[inline(always)]
    pub fn is_crmsen_0(&self) -> bool {
        *self == CRMSEN_A::CRMSEN_0
    }
    #[doc = "Checks if the value of the field is `CRMSEN_1`"]
    #[inline(always)]
    pub fn is_crmsen_1(&self) -> bool {
        *self == CRMSEN_A::CRMSEN_1
    }
}
#[doc = "Field `CRMSEN` writer - Card removal status enable"]
pub type CRMSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CRMSEN_A, O>;
impl<'a, const O: u8> CRMSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn crmsen_0(self) -> &'a mut W {
        self.variant(CRMSEN_A::CRMSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn crmsen_1(self) -> &'a mut W {
        self.variant(CRMSEN_A::CRMSEN_1)
    }
}
#[doc = "Field `CINTSEN` reader - Card interrupt status enable"]
pub type CINTSEN_R = crate::BitReader<CINTSEN_A>;
#[doc = "Card interrupt status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CINTSEN_A {
    #[doc = "0: Masked"]
    CINTSEN_0 = 0,
    #[doc = "1: Enabled"]
    CINTSEN_1 = 1,
}
impl From<CINTSEN_A> for bool {
    #[inline(always)]
    fn from(variant: CINTSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CINTSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CINTSEN_A {
        match self.bits {
            false => CINTSEN_A::CINTSEN_0,
            true => CINTSEN_A::CINTSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CINTSEN_0`"]
    #[inline(always)]
    pub fn is_cintsen_0(&self) -> bool {
        *self == CINTSEN_A::CINTSEN_0
    }
    #[doc = "Checks if the value of the field is `CINTSEN_1`"]
    #[inline(always)]
    pub fn is_cintsen_1(&self) -> bool {
        *self == CINTSEN_A::CINTSEN_1
    }
}
#[doc = "Field `CINTSEN` writer - Card interrupt status enable"]
pub type CINTSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CINTSEN_A, O>;
impl<'a, const O: u8> CINTSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn cintsen_0(self) -> &'a mut W {
        self.variant(CINTSEN_A::CINTSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn cintsen_1(self) -> &'a mut W {
        self.variant(CINTSEN_A::CINTSEN_1)
    }
}
#[doc = "Field `RTESEN` reader - Re-tuning event status enable"]
pub type RTESEN_R = crate::BitReader<RTESEN_A>;
#[doc = "Re-tuning event status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTESEN_A {
    #[doc = "0: Masked"]
    RTESEN_0 = 0,
    #[doc = "1: Enabled"]
    RTESEN_1 = 1,
}
impl From<RTESEN_A> for bool {
    #[inline(always)]
    fn from(variant: RTESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl RTESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> RTESEN_A {
        match self.bits {
            false => RTESEN_A::RTESEN_0,
            true => RTESEN_A::RTESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `RTESEN_0`"]
    #[inline(always)]
    pub fn is_rtesen_0(&self) -> bool {
        *self == RTESEN_A::RTESEN_0
    }
    #[doc = "Checks if the value of the field is `RTESEN_1`"]
    #[inline(always)]
    pub fn is_rtesen_1(&self) -> bool {
        *self == RTESEN_A::RTESEN_1
    }
}
#[doc = "Field `RTESEN` writer - Re-tuning event status enable"]
pub type RTESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, RTESEN_A, O>;
impl<'a, const O: u8> RTESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn rtesen_0(self) -> &'a mut W {
        self.variant(RTESEN_A::RTESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn rtesen_1(self) -> &'a mut W {
        self.variant(RTESEN_A::RTESEN_1)
    }
}
#[doc = "Field `TPSEN` reader - Tuning pass status enable"]
pub type TPSEN_R = crate::BitReader<TPSEN_A>;
#[doc = "Tuning pass status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TPSEN_A {
    #[doc = "0: Masked"]
    TPSEN_0 = 0,
    #[doc = "1: Enabled"]
    TPSEN_1 = 1,
}
impl From<TPSEN_A> for bool {
    #[inline(always)]
    fn from(variant: TPSEN_A) -> Self {
        variant as u8 != 0
    }
}
impl TPSEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TPSEN_A {
        match self.bits {
            false => TPSEN_A::TPSEN_0,
            true => TPSEN_A::TPSEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `TPSEN_0`"]
    #[inline(always)]
    pub fn is_tpsen_0(&self) -> bool {
        *self == TPSEN_A::TPSEN_0
    }
    #[doc = "Checks if the value of the field is `TPSEN_1`"]
    #[inline(always)]
    pub fn is_tpsen_1(&self) -> bool {
        *self == TPSEN_A::TPSEN_1
    }
}
#[doc = "Field `TPSEN` writer - Tuning pass status enable"]
pub type TPSEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, TPSEN_A, O>;
impl<'a, const O: u8> TPSEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn tpsen_0(self) -> &'a mut W {
        self.variant(TPSEN_A::TPSEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn tpsen_1(self) -> &'a mut W {
        self.variant(TPSEN_A::TPSEN_1)
    }
}
#[doc = "Field `CTOESEN` reader - Command timeout error status enable"]
pub type CTOESEN_R = crate::BitReader<CTOESEN_A>;
#[doc = "Command timeout error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTOESEN_A {
    #[doc = "0: Masked"]
    CTOESEN_0 = 0,
    #[doc = "1: Enabled"]
    CTOESEN_1 = 1,
}
impl From<CTOESEN_A> for bool {
    #[inline(always)]
    fn from(variant: CTOESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CTOESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CTOESEN_A {
        match self.bits {
            false => CTOESEN_A::CTOESEN_0,
            true => CTOESEN_A::CTOESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CTOESEN_0`"]
    #[inline(always)]
    pub fn is_ctoesen_0(&self) -> bool {
        *self == CTOESEN_A::CTOESEN_0
    }
    #[doc = "Checks if the value of the field is `CTOESEN_1`"]
    #[inline(always)]
    pub fn is_ctoesen_1(&self) -> bool {
        *self == CTOESEN_A::CTOESEN_1
    }
}
#[doc = "Field `CTOESEN` writer - Command timeout error status enable"]
pub type CTOESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CTOESEN_A, O>;
impl<'a, const O: u8> CTOESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn ctoesen_0(self) -> &'a mut W {
        self.variant(CTOESEN_A::CTOESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn ctoesen_1(self) -> &'a mut W {
        self.variant(CTOESEN_A::CTOESEN_1)
    }
}
#[doc = "Field `CCESEN` reader - Command CRC error status enable"]
pub type CCESEN_R = crate::BitReader<CCESEN_A>;
#[doc = "Command CRC error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CCESEN_A {
    #[doc = "0: Masked"]
    CCESEN_0 = 0,
    #[doc = "1: Enabled"]
    CCESEN_1 = 1,
}
impl From<CCESEN_A> for bool {
    #[inline(always)]
    fn from(variant: CCESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CCESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CCESEN_A {
        match self.bits {
            false => CCESEN_A::CCESEN_0,
            true => CCESEN_A::CCESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CCESEN_0`"]
    #[inline(always)]
    pub fn is_ccesen_0(&self) -> bool {
        *self == CCESEN_A::CCESEN_0
    }
    #[doc = "Checks if the value of the field is `CCESEN_1`"]
    #[inline(always)]
    pub fn is_ccesen_1(&self) -> bool {
        *self == CCESEN_A::CCESEN_1
    }
}
#[doc = "Field `CCESEN` writer - Command CRC error status enable"]
pub type CCESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CCESEN_A, O>;
impl<'a, const O: u8> CCESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn ccesen_0(self) -> &'a mut W {
        self.variant(CCESEN_A::CCESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn ccesen_1(self) -> &'a mut W {
        self.variant(CCESEN_A::CCESEN_1)
    }
}
#[doc = "Field `CEBESEN` reader - Command end bit error status enable"]
pub type CEBESEN_R = crate::BitReader<CEBESEN_A>;
#[doc = "Command end bit error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CEBESEN_A {
    #[doc = "0: Masked"]
    CEBESEN_0 = 0,
    #[doc = "1: Enabled"]
    CEBESEN_1 = 1,
}
impl From<CEBESEN_A> for bool {
    #[inline(always)]
    fn from(variant: CEBESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CEBESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CEBESEN_A {
        match self.bits {
            false => CEBESEN_A::CEBESEN_0,
            true => CEBESEN_A::CEBESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CEBESEN_0`"]
    #[inline(always)]
    pub fn is_cebesen_0(&self) -> bool {
        *self == CEBESEN_A::CEBESEN_0
    }
    #[doc = "Checks if the value of the field is `CEBESEN_1`"]
    #[inline(always)]
    pub fn is_cebesen_1(&self) -> bool {
        *self == CEBESEN_A::CEBESEN_1
    }
}
#[doc = "Field `CEBESEN` writer - Command end bit error status enable"]
pub type CEBESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CEBESEN_A, O>;
impl<'a, const O: u8> CEBESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn cebesen_0(self) -> &'a mut W {
        self.variant(CEBESEN_A::CEBESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn cebesen_1(self) -> &'a mut W {
        self.variant(CEBESEN_A::CEBESEN_1)
    }
}
#[doc = "Field `CIESEN` reader - Command index error status enable"]
pub type CIESEN_R = crate::BitReader<CIESEN_A>;
#[doc = "Command index error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CIESEN_A {
    #[doc = "0: Masked"]
    CIESEN_0 = 0,
    #[doc = "1: Enabled"]
    CIESEN_1 = 1,
}
impl From<CIESEN_A> for bool {
    #[inline(always)]
    fn from(variant: CIESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl CIESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CIESEN_A {
        match self.bits {
            false => CIESEN_A::CIESEN_0,
            true => CIESEN_A::CIESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `CIESEN_0`"]
    #[inline(always)]
    pub fn is_ciesen_0(&self) -> bool {
        *self == CIESEN_A::CIESEN_0
    }
    #[doc = "Checks if the value of the field is `CIESEN_1`"]
    #[inline(always)]
    pub fn is_ciesen_1(&self) -> bool {
        *self == CIESEN_A::CIESEN_1
    }
}
#[doc = "Field `CIESEN` writer - Command index error status enable"]
pub type CIESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, CIESEN_A, O>;
impl<'a, const O: u8> CIESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn ciesen_0(self) -> &'a mut W {
        self.variant(CIESEN_A::CIESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn ciesen_1(self) -> &'a mut W {
        self.variant(CIESEN_A::CIESEN_1)
    }
}
#[doc = "Field `DTOESEN` reader - Data timeout error status enable"]
pub type DTOESEN_R = crate::BitReader<DTOESEN_A>;
#[doc = "Data timeout error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DTOESEN_A {
    #[doc = "0: Masked"]
    DTOESEN_0 = 0,
    #[doc = "1: Enabled"]
    DTOESEN_1 = 1,
}
impl From<DTOESEN_A> for bool {
    #[inline(always)]
    fn from(variant: DTOESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl DTOESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DTOESEN_A {
        match self.bits {
            false => DTOESEN_A::DTOESEN_0,
            true => DTOESEN_A::DTOESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `DTOESEN_0`"]
    #[inline(always)]
    pub fn is_dtoesen_0(&self) -> bool {
        *self == DTOESEN_A::DTOESEN_0
    }
    #[doc = "Checks if the value of the field is `DTOESEN_1`"]
    #[inline(always)]
    pub fn is_dtoesen_1(&self) -> bool {
        *self == DTOESEN_A::DTOESEN_1
    }
}
#[doc = "Field `DTOESEN` writer - Data timeout error status enable"]
pub type DTOESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, DTOESEN_A, O>;
impl<'a, const O: u8> DTOESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn dtoesen_0(self) -> &'a mut W {
        self.variant(DTOESEN_A::DTOESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn dtoesen_1(self) -> &'a mut W {
        self.variant(DTOESEN_A::DTOESEN_1)
    }
}
#[doc = "Field `DCESEN` reader - Data CRC error status enable"]
pub type DCESEN_R = crate::BitReader<DCESEN_A>;
#[doc = "Data CRC error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DCESEN_A {
    #[doc = "0: Masked"]
    DCESEN_0 = 0,
    #[doc = "1: Enabled"]
    DCESEN_1 = 1,
}
impl From<DCESEN_A> for bool {
    #[inline(always)]
    fn from(variant: DCESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl DCESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DCESEN_A {
        match self.bits {
            false => DCESEN_A::DCESEN_0,
            true => DCESEN_A::DCESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `DCESEN_0`"]
    #[inline(always)]
    pub fn is_dcesen_0(&self) -> bool {
        *self == DCESEN_A::DCESEN_0
    }
    #[doc = "Checks if the value of the field is `DCESEN_1`"]
    #[inline(always)]
    pub fn is_dcesen_1(&self) -> bool {
        *self == DCESEN_A::DCESEN_1
    }
}
#[doc = "Field `DCESEN` writer - Data CRC error status enable"]
pub type DCESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, DCESEN_A, O>;
impl<'a, const O: u8> DCESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn dcesen_0(self) -> &'a mut W {
        self.variant(DCESEN_A::DCESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn dcesen_1(self) -> &'a mut W {
        self.variant(DCESEN_A::DCESEN_1)
    }
}
#[doc = "Field `DEBESEN` reader - Data end bit error status enable"]
pub type DEBESEN_R = crate::BitReader<DEBESEN_A>;
#[doc = "Data end bit error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DEBESEN_A {
    #[doc = "0: Masked"]
    DEBESEN_0 = 0,
    #[doc = "1: Enabled"]
    DEBESEN_1 = 1,
}
impl From<DEBESEN_A> for bool {
    #[inline(always)]
    fn from(variant: DEBESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl DEBESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DEBESEN_A {
        match self.bits {
            false => DEBESEN_A::DEBESEN_0,
            true => DEBESEN_A::DEBESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `DEBESEN_0`"]
    #[inline(always)]
    pub fn is_debesen_0(&self) -> bool {
        *self == DEBESEN_A::DEBESEN_0
    }
    #[doc = "Checks if the value of the field is `DEBESEN_1`"]
    #[inline(always)]
    pub fn is_debesen_1(&self) -> bool {
        *self == DEBESEN_A::DEBESEN_1
    }
}
#[doc = "Field `DEBESEN` writer - Data end bit error status enable"]
pub type DEBESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, DEBESEN_A, O>;
impl<'a, const O: u8> DEBESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn debesen_0(self) -> &'a mut W {
        self.variant(DEBESEN_A::DEBESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn debesen_1(self) -> &'a mut W {
        self.variant(DEBESEN_A::DEBESEN_1)
    }
}
#[doc = "Field `AC12ESEN` reader - Auto CMD12 error status enable"]
pub type AC12ESEN_R = crate::BitReader<AC12ESEN_A>;
#[doc = "Auto CMD12 error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AC12ESEN_A {
    #[doc = "0: Masked"]
    AC12ESEN_0 = 0,
    #[doc = "1: Enabled"]
    AC12ESEN_1 = 1,
}
impl From<AC12ESEN_A> for bool {
    #[inline(always)]
    fn from(variant: AC12ESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl AC12ESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> AC12ESEN_A {
        match self.bits {
            false => AC12ESEN_A::AC12ESEN_0,
            true => AC12ESEN_A::AC12ESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `AC12ESEN_0`"]
    #[inline(always)]
    pub fn is_ac12esen_0(&self) -> bool {
        *self == AC12ESEN_A::AC12ESEN_0
    }
    #[doc = "Checks if the value of the field is `AC12ESEN_1`"]
    #[inline(always)]
    pub fn is_ac12esen_1(&self) -> bool {
        *self == AC12ESEN_A::AC12ESEN_1
    }
}
#[doc = "Field `AC12ESEN` writer - Auto CMD12 error status enable"]
pub type AC12ESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, AC12ESEN_A, O>;
impl<'a, const O: u8> AC12ESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn ac12esen_0(self) -> &'a mut W {
        self.variant(AC12ESEN_A::AC12ESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn ac12esen_1(self) -> &'a mut W {
        self.variant(AC12ESEN_A::AC12ESEN_1)
    }
}
#[doc = "Field `TNESEN` reader - Tuning error status enable"]
pub type TNESEN_R = crate::BitReader<TNESEN_A>;
#[doc = "Tuning error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TNESEN_A {
    #[doc = "0: Masked"]
    TNESEN_0 = 0,
    #[doc = "1: Enabled"]
    TNESEN_1 = 1,
}
impl From<TNESEN_A> for bool {
    #[inline(always)]
    fn from(variant: TNESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl TNESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TNESEN_A {
        match self.bits {
            false => TNESEN_A::TNESEN_0,
            true => TNESEN_A::TNESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `TNESEN_0`"]
    #[inline(always)]
    pub fn is_tnesen_0(&self) -> bool {
        *self == TNESEN_A::TNESEN_0
    }
    #[doc = "Checks if the value of the field is `TNESEN_1`"]
    #[inline(always)]
    pub fn is_tnesen_1(&self) -> bool {
        *self == TNESEN_A::TNESEN_1
    }
}
#[doc = "Field `TNESEN` writer - Tuning error status enable"]
pub type TNESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, TNESEN_A, O>;
impl<'a, const O: u8> TNESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn tnesen_0(self) -> &'a mut W {
        self.variant(TNESEN_A::TNESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn tnesen_1(self) -> &'a mut W {
        self.variant(TNESEN_A::TNESEN_1)
    }
}
#[doc = "Field `DMAESEN` reader - DMA error status enable"]
pub type DMAESEN_R = crate::BitReader<DMAESEN_A>;
#[doc = "DMA error status enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DMAESEN_A {
    #[doc = "0: Masked"]
    DMAESEN_0 = 0,
    #[doc = "1: Enabled"]
    DMAESEN_1 = 1,
}
impl From<DMAESEN_A> for bool {
    #[inline(always)]
    fn from(variant: DMAESEN_A) -> Self {
        variant as u8 != 0
    }
}
impl DMAESEN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DMAESEN_A {
        match self.bits {
            false => DMAESEN_A::DMAESEN_0,
            true => DMAESEN_A::DMAESEN_1,
        }
    }
    #[doc = "Checks if the value of the field is `DMAESEN_0`"]
    #[inline(always)]
    pub fn is_dmaesen_0(&self) -> bool {
        *self == DMAESEN_A::DMAESEN_0
    }
    #[doc = "Checks if the value of the field is `DMAESEN_1`"]
    #[inline(always)]
    pub fn is_dmaesen_1(&self) -> bool {
        *self == DMAESEN_A::DMAESEN_1
    }
}
#[doc = "Field `DMAESEN` writer - DMA error status enable"]
pub type DMAESEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INT_STATUS_EN_SPEC, DMAESEN_A, O>;
impl<'a, const O: u8> DMAESEN_W<'a, O> {
    #[doc = "Masked"]
    #[inline(always)]
    pub fn dmaesen_0(self) -> &'a mut W {
        self.variant(DMAESEN_A::DMAESEN_0)
    }
    #[doc = "Enabled"]
    #[inline(always)]
    pub fn dmaesen_1(self) -> &'a mut W {
        self.variant(DMAESEN_A::DMAESEN_1)
    }
}
impl R {
    #[doc = "Bit 0 - Command complete status enable"]
    #[inline(always)]
    pub fn ccsen(&self) -> CCSEN_R {
        CCSEN_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Transfer complete status enable"]
    #[inline(always)]
    pub fn tcsen(&self) -> TCSEN_R {
        TCSEN_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Block gap event status enable"]
    #[inline(always)]
    pub fn bgesen(&self) -> BGESEN_R {
        BGESEN_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - DMA interrupt status enable"]
    #[inline(always)]
    pub fn dintsen(&self) -> DINTSEN_R {
        DINTSEN_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Buffer write ready status enable"]
    #[inline(always)]
    pub fn bwrsen(&self) -> BWRSEN_R {
        BWRSEN_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Buffer read ready status enable"]
    #[inline(always)]
    pub fn brrsen(&self) -> BRRSEN_R {
        BRRSEN_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Card insertion status enable"]
    #[inline(always)]
    pub fn cinssen(&self) -> CINSSEN_R {
        CINSSEN_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Card removal status enable"]
    #[inline(always)]
    pub fn crmsen(&self) -> CRMSEN_R {
        CRMSEN_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Card interrupt status enable"]
    #[inline(always)]
    pub fn cintsen(&self) -> CINTSEN_R {
        CINTSEN_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 12 - Re-tuning event status enable"]
    #[inline(always)]
    pub fn rtesen(&self) -> RTESEN_R {
        RTESEN_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 14 - Tuning pass status enable"]
    #[inline(always)]
    pub fn tpsen(&self) -> TPSEN_R {
        TPSEN_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 16 - Command timeout error status enable"]
    #[inline(always)]
    pub fn ctoesen(&self) -> CTOESEN_R {
        CTOESEN_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Command CRC error status enable"]
    #[inline(always)]
    pub fn ccesen(&self) -> CCESEN_R {
        CCESEN_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Command end bit error status enable"]
    #[inline(always)]
    pub fn cebesen(&self) -> CEBESEN_R {
        CEBESEN_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Command index error status enable"]
    #[inline(always)]
    pub fn ciesen(&self) -> CIESEN_R {
        CIESEN_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Data timeout error status enable"]
    #[inline(always)]
    pub fn dtoesen(&self) -> DTOESEN_R {
        DTOESEN_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Data CRC error status enable"]
    #[inline(always)]
    pub fn dcesen(&self) -> DCESEN_R {
        DCESEN_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Data end bit error status enable"]
    #[inline(always)]
    pub fn debesen(&self) -> DEBESEN_R {
        DEBESEN_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 24 - Auto CMD12 error status enable"]
    #[inline(always)]
    pub fn ac12esen(&self) -> AC12ESEN_R {
        AC12ESEN_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 26 - Tuning error status enable"]
    #[inline(always)]
    pub fn tnesen(&self) -> TNESEN_R {
        TNESEN_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 28 - DMA error status enable"]
    #[inline(always)]
    pub fn dmaesen(&self) -> DMAESEN_R {
        DMAESEN_R::new(((self.bits >> 28) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Command complete status enable"]
    #[inline(always)]
    #[must_use]
    pub fn ccsen(&mut self) -> CCSEN_W<0> {
        CCSEN_W::new(self)
    }
    #[doc = "Bit 1 - Transfer complete status enable"]
    #[inline(always)]
    #[must_use]
    pub fn tcsen(&mut self) -> TCSEN_W<1> {
        TCSEN_W::new(self)
    }
    #[doc = "Bit 2 - Block gap event status enable"]
    #[inline(always)]
    #[must_use]
    pub fn bgesen(&mut self) -> BGESEN_W<2> {
        BGESEN_W::new(self)
    }
    #[doc = "Bit 3 - DMA interrupt status enable"]
    #[inline(always)]
    #[must_use]
    pub fn dintsen(&mut self) -> DINTSEN_W<3> {
        DINTSEN_W::new(self)
    }
    #[doc = "Bit 4 - Buffer write ready status enable"]
    #[inline(always)]
    #[must_use]
    pub fn bwrsen(&mut self) -> BWRSEN_W<4> {
        BWRSEN_W::new(self)
    }
    #[doc = "Bit 5 - Buffer read ready status enable"]
    #[inline(always)]
    #[must_use]
    pub fn brrsen(&mut self) -> BRRSEN_W<5> {
        BRRSEN_W::new(self)
    }
    #[doc = "Bit 6 - Card insertion status enable"]
    #[inline(always)]
    #[must_use]
    pub fn cinssen(&mut self) -> CINSSEN_W<6> {
        CINSSEN_W::new(self)
    }
    #[doc = "Bit 7 - Card removal status enable"]
    #[inline(always)]
    #[must_use]
    pub fn crmsen(&mut self) -> CRMSEN_W<7> {
        CRMSEN_W::new(self)
    }
    #[doc = "Bit 8 - Card interrupt status enable"]
    #[inline(always)]
    #[must_use]
    pub fn cintsen(&mut self) -> CINTSEN_W<8> {
        CINTSEN_W::new(self)
    }
    #[doc = "Bit 12 - Re-tuning event status enable"]
    #[inline(always)]
    #[must_use]
    pub fn rtesen(&mut self) -> RTESEN_W<12> {
        RTESEN_W::new(self)
    }
    #[doc = "Bit 14 - Tuning pass status enable"]
    #[inline(always)]
    #[must_use]
    pub fn tpsen(&mut self) -> TPSEN_W<14> {
        TPSEN_W::new(self)
    }
    #[doc = "Bit 16 - Command timeout error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn ctoesen(&mut self) -> CTOESEN_W<16> {
        CTOESEN_W::new(self)
    }
    #[doc = "Bit 17 - Command CRC error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn ccesen(&mut self) -> CCESEN_W<17> {
        CCESEN_W::new(self)
    }
    #[doc = "Bit 18 - Command end bit error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn cebesen(&mut self) -> CEBESEN_W<18> {
        CEBESEN_W::new(self)
    }
    #[doc = "Bit 19 - Command index error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn ciesen(&mut self) -> CIESEN_W<19> {
        CIESEN_W::new(self)
    }
    #[doc = "Bit 20 - Data timeout error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn dtoesen(&mut self) -> DTOESEN_W<20> {
        DTOESEN_W::new(self)
    }
    #[doc = "Bit 21 - Data CRC error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn dcesen(&mut self) -> DCESEN_W<21> {
        DCESEN_W::new(self)
    }
    #[doc = "Bit 22 - Data end bit error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn debesen(&mut self) -> DEBESEN_W<22> {
        DEBESEN_W::new(self)
    }
    #[doc = "Bit 24 - Auto CMD12 error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn ac12esen(&mut self) -> AC12ESEN_W<24> {
        AC12ESEN_W::new(self)
    }
    #[doc = "Bit 26 - Tuning error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn tnesen(&mut self) -> TNESEN_W<26> {
        TNESEN_W::new(self)
    }
    #[doc = "Bit 28 - DMA error status enable"]
    #[inline(always)]
    #[must_use]
    pub fn dmaesen(&mut self) -> DMAESEN_W<28> {
        DMAESEN_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Interrupt Status Enable\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 [int_status_en](index.html) module"]
pub struct INT_STATUS_EN_SPEC;
impl crate::RegisterSpec for INT_STATUS_EN_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [int_status_en::R](R) reader structure"]
impl crate::Readable for INT_STATUS_EN_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [int_status_en::W](W) writer structure"]
impl crate::Writable for INT_STATUS_EN_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets INT_STATUS_EN to value 0"]
impl crate::Resettable for INT_STATUS_EN_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}