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
#[doc = "Register `BFL` reader"]
pub type R = crate::R<BFL_SPEC>;
#[doc = "Register `BFL` writer"]
pub type W = crate::W<BFL_SPEC>;
#[doc = "Boundary Flag 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFL0_A {
    #[doc = "0: Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    VALUE1 = 0,
    #[doc = "1: Active state: result has crossed the activation boundary"]
    VALUE2 = 1,
}
impl From<BFL0_A> for bool {
    #[inline(always)]
    fn from(variant: BFL0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFL0` reader - Boundary Flag 0"]
pub type BFL0_R = crate::BitReader<BFL0_A>;
impl BFL0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFL0_A {
        match self.bits {
            false => BFL0_A::VALUE1,
            true => BFL0_A::VALUE2,
        }
    }
    #[doc = "Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFL0_A::VALUE1
    }
    #[doc = "Active state: result has crossed the activation boundary"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFL0_A::VALUE2
    }
}
#[doc = "Boundary Flag 1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFL1_A {
    #[doc = "0: Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    VALUE1 = 0,
    #[doc = "1: Active state: result has crossed the activation boundary"]
    VALUE2 = 1,
}
impl From<BFL1_A> for bool {
    #[inline(always)]
    fn from(variant: BFL1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFL1` reader - Boundary Flag 1"]
pub type BFL1_R = crate::BitReader<BFL1_A>;
impl BFL1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFL1_A {
        match self.bits {
            false => BFL1_A::VALUE1,
            true => BFL1_A::VALUE2,
        }
    }
    #[doc = "Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFL1_A::VALUE1
    }
    #[doc = "Active state: result has crossed the activation boundary"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFL1_A::VALUE2
    }
}
#[doc = "Boundary Flag 2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFL2_A {
    #[doc = "0: Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    VALUE1 = 0,
    #[doc = "1: Active state: result has crossed the activation boundary"]
    VALUE2 = 1,
}
impl From<BFL2_A> for bool {
    #[inline(always)]
    fn from(variant: BFL2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFL2` reader - Boundary Flag 2"]
pub type BFL2_R = crate::BitReader<BFL2_A>;
impl BFL2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFL2_A {
        match self.bits {
            false => BFL2_A::VALUE1,
            true => BFL2_A::VALUE2,
        }
    }
    #[doc = "Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFL2_A::VALUE1
    }
    #[doc = "Active state: result has crossed the activation boundary"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFL2_A::VALUE2
    }
}
#[doc = "Boundary Flag 3\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFL3_A {
    #[doc = "0: Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    VALUE1 = 0,
    #[doc = "1: Active state: result has crossed the activation boundary"]
    VALUE2 = 1,
}
impl From<BFL3_A> for bool {
    #[inline(always)]
    fn from(variant: BFL3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFL3` reader - Boundary Flag 3"]
pub type BFL3_R = crate::BitReader<BFL3_A>;
impl BFL3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFL3_A {
        match self.bits {
            false => BFL3_A::VALUE1,
            true => BFL3_A::VALUE2,
        }
    }
    #[doc = "Passive state: result has not yet crossed the activation boundary (see bitfield BFAy), or selected gate signal is inactive, or this boundary flag is disabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFL3_A::VALUE1
    }
    #[doc = "Active state: result has crossed the activation boundary"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFL3_A::VALUE2
    }
}
#[doc = "Boundary Flag 0 Activation Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFA0_A {
    #[doc = "0: Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    VALUE1 = 0,
    #[doc = "1: Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    VALUE2 = 1,
}
impl From<BFA0_A> for bool {
    #[inline(always)]
    fn from(variant: BFA0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFA0` reader - Boundary Flag 0 Activation Select"]
pub type BFA0_R = crate::BitReader<BFA0_A>;
impl BFA0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFA0_A {
        match self.bits {
            false => BFA0_A::VALUE1,
            true => BFA0_A::VALUE2,
        }
    }
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFA0_A::VALUE1
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFA0_A::VALUE2
    }
}
#[doc = "Field `BFA0` writer - Boundary Flag 0 Activation Select"]
pub type BFA0_W<'a, REG> = crate::BitWriter<'a, REG, BFA0_A>;
impl<'a, REG> BFA0_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFA0_A::VALUE1)
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFA0_A::VALUE2)
    }
}
#[doc = "Boundary Flag 1 Activation Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFA1_A {
    #[doc = "0: Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    VALUE1 = 0,
    #[doc = "1: Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    VALUE2 = 1,
}
impl From<BFA1_A> for bool {
    #[inline(always)]
    fn from(variant: BFA1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFA1` reader - Boundary Flag 1 Activation Select"]
pub type BFA1_R = crate::BitReader<BFA1_A>;
impl BFA1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFA1_A {
        match self.bits {
            false => BFA1_A::VALUE1,
            true => BFA1_A::VALUE2,
        }
    }
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFA1_A::VALUE1
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFA1_A::VALUE2
    }
}
#[doc = "Field `BFA1` writer - Boundary Flag 1 Activation Select"]
pub type BFA1_W<'a, REG> = crate::BitWriter<'a, REG, BFA1_A>;
impl<'a, REG> BFA1_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFA1_A::VALUE1)
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFA1_A::VALUE2)
    }
}
#[doc = "Boundary Flag 2 Activation Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFA2_A {
    #[doc = "0: Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    VALUE1 = 0,
    #[doc = "1: Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    VALUE2 = 1,
}
impl From<BFA2_A> for bool {
    #[inline(always)]
    fn from(variant: BFA2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFA2` reader - Boundary Flag 2 Activation Select"]
pub type BFA2_R = crate::BitReader<BFA2_A>;
impl BFA2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFA2_A {
        match self.bits {
            false => BFA2_A::VALUE1,
            true => BFA2_A::VALUE2,
        }
    }
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFA2_A::VALUE1
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFA2_A::VALUE2
    }
}
#[doc = "Field `BFA2` writer - Boundary Flag 2 Activation Select"]
pub type BFA2_W<'a, REG> = crate::BitWriter<'a, REG, BFA2_A>;
impl<'a, REG> BFA2_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFA2_A::VALUE1)
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFA2_A::VALUE2)
    }
}
#[doc = "Boundary Flag 3 Activation Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFA3_A {
    #[doc = "0: Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    VALUE1 = 0,
    #[doc = "1: Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    VALUE2 = 1,
}
impl From<BFA3_A> for bool {
    #[inline(always)]
    fn from(variant: BFA3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFA3` reader - Boundary Flag 3 Activation Select"]
pub type BFA3_R = crate::BitReader<BFA3_A>;
impl BFA3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFA3_A {
        match self.bits {
            false => BFA3_A::VALUE1,
            true => BFA3_A::VALUE2,
        }
    }
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFA3_A::VALUE1
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFA3_A::VALUE2
    }
}
#[doc = "Field `BFA3` writer - Boundary Flag 3 Activation Select"]
pub type BFA3_W<'a, REG> = crate::BitWriter<'a, REG, BFA3_A>;
impl<'a, REG> BFA3_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Set boundary flag BFLy if result is above the defined band or compare value, clear if below"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFA3_A::VALUE1)
    }
    #[doc = "Set boundary flag BFLy if result is below the defined band or compare value, clear if above"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFA3_A::VALUE2)
    }
}
#[doc = "Boundary Flag 0 Inversion Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFI0_A {
    #[doc = "0: Use BFLy directly"]
    VALUE1 = 0,
    #[doc = "1: Invert value and use BFLy"]
    VALUE2 = 1,
}
impl From<BFI0_A> for bool {
    #[inline(always)]
    fn from(variant: BFI0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFI0` reader - Boundary Flag 0 Inversion Control"]
pub type BFI0_R = crate::BitReader<BFI0_A>;
impl BFI0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFI0_A {
        match self.bits {
            false => BFI0_A::VALUE1,
            true => BFI0_A::VALUE2,
        }
    }
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFI0_A::VALUE1
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFI0_A::VALUE2
    }
}
#[doc = "Field `BFI0` writer - Boundary Flag 0 Inversion Control"]
pub type BFI0_W<'a, REG> = crate::BitWriter<'a, REG, BFI0_A>;
impl<'a, REG> BFI0_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFI0_A::VALUE1)
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFI0_A::VALUE2)
    }
}
#[doc = "Boundary Flag 1 Inversion Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFI1_A {
    #[doc = "0: Use BFLy directly"]
    VALUE1 = 0,
    #[doc = "1: Invert value and use BFLy"]
    VALUE2 = 1,
}
impl From<BFI1_A> for bool {
    #[inline(always)]
    fn from(variant: BFI1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFI1` reader - Boundary Flag 1 Inversion Control"]
pub type BFI1_R = crate::BitReader<BFI1_A>;
impl BFI1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFI1_A {
        match self.bits {
            false => BFI1_A::VALUE1,
            true => BFI1_A::VALUE2,
        }
    }
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFI1_A::VALUE1
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFI1_A::VALUE2
    }
}
#[doc = "Field `BFI1` writer - Boundary Flag 1 Inversion Control"]
pub type BFI1_W<'a, REG> = crate::BitWriter<'a, REG, BFI1_A>;
impl<'a, REG> BFI1_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFI1_A::VALUE1)
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFI1_A::VALUE2)
    }
}
#[doc = "Boundary Flag 2 Inversion Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFI2_A {
    #[doc = "0: Use BFLy directly"]
    VALUE1 = 0,
    #[doc = "1: Invert value and use BFLy"]
    VALUE2 = 1,
}
impl From<BFI2_A> for bool {
    #[inline(always)]
    fn from(variant: BFI2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFI2` reader - Boundary Flag 2 Inversion Control"]
pub type BFI2_R = crate::BitReader<BFI2_A>;
impl BFI2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFI2_A {
        match self.bits {
            false => BFI2_A::VALUE1,
            true => BFI2_A::VALUE2,
        }
    }
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFI2_A::VALUE1
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFI2_A::VALUE2
    }
}
#[doc = "Field `BFI2` writer - Boundary Flag 2 Inversion Control"]
pub type BFI2_W<'a, REG> = crate::BitWriter<'a, REG, BFI2_A>;
impl<'a, REG> BFI2_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFI2_A::VALUE1)
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFI2_A::VALUE2)
    }
}
#[doc = "Boundary Flag 3 Inversion Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BFI3_A {
    #[doc = "0: Use BFLy directly"]
    VALUE1 = 0,
    #[doc = "1: Invert value and use BFLy"]
    VALUE2 = 1,
}
impl From<BFI3_A> for bool {
    #[inline(always)]
    fn from(variant: BFI3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BFI3` reader - Boundary Flag 3 Inversion Control"]
pub type BFI3_R = crate::BitReader<BFI3_A>;
impl BFI3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BFI3_A {
        match self.bits {
            false => BFI3_A::VALUE1,
            true => BFI3_A::VALUE2,
        }
    }
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BFI3_A::VALUE1
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BFI3_A::VALUE2
    }
}
#[doc = "Field `BFI3` writer - Boundary Flag 3 Inversion Control"]
pub type BFI3_W<'a, REG> = crate::BitWriter<'a, REG, BFI3_A>;
impl<'a, REG> BFI3_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Use BFLy directly"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(BFI3_A::VALUE1)
    }
    #[doc = "Invert value and use BFLy"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(BFI3_A::VALUE2)
    }
}
impl R {
    #[doc = "Bit 0 - Boundary Flag 0"]
    #[inline(always)]
    pub fn bfl0(&self) -> BFL0_R {
        BFL0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Boundary Flag 1"]
    #[inline(always)]
    pub fn bfl1(&self) -> BFL1_R {
        BFL1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Boundary Flag 2"]
    #[inline(always)]
    pub fn bfl2(&self) -> BFL2_R {
        BFL2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Boundary Flag 3"]
    #[inline(always)]
    pub fn bfl3(&self) -> BFL3_R {
        BFL3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 8 - Boundary Flag 0 Activation Select"]
    #[inline(always)]
    pub fn bfa0(&self) -> BFA0_R {
        BFA0_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Boundary Flag 1 Activation Select"]
    #[inline(always)]
    pub fn bfa1(&self) -> BFA1_R {
        BFA1_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Boundary Flag 2 Activation Select"]
    #[inline(always)]
    pub fn bfa2(&self) -> BFA2_R {
        BFA2_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Boundary Flag 3 Activation Select"]
    #[inline(always)]
    pub fn bfa3(&self) -> BFA3_R {
        BFA3_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 16 - Boundary Flag 0 Inversion Control"]
    #[inline(always)]
    pub fn bfi0(&self) -> BFI0_R {
        BFI0_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Boundary Flag 1 Inversion Control"]
    #[inline(always)]
    pub fn bfi1(&self) -> BFI1_R {
        BFI1_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Boundary Flag 2 Inversion Control"]
    #[inline(always)]
    pub fn bfi2(&self) -> BFI2_R {
        BFI2_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Boundary Flag 3 Inversion Control"]
    #[inline(always)]
    pub fn bfi3(&self) -> BFI3_R {
        BFI3_R::new(((self.bits >> 19) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 8 - Boundary Flag 0 Activation Select"]
    #[inline(always)]
    #[must_use]
    pub fn bfa0(&mut self) -> BFA0_W<BFL_SPEC> {
        BFA0_W::new(self, 8)
    }
    #[doc = "Bit 9 - Boundary Flag 1 Activation Select"]
    #[inline(always)]
    #[must_use]
    pub fn bfa1(&mut self) -> BFA1_W<BFL_SPEC> {
        BFA1_W::new(self, 9)
    }
    #[doc = "Bit 10 - Boundary Flag 2 Activation Select"]
    #[inline(always)]
    #[must_use]
    pub fn bfa2(&mut self) -> BFA2_W<BFL_SPEC> {
        BFA2_W::new(self, 10)
    }
    #[doc = "Bit 11 - Boundary Flag 3 Activation Select"]
    #[inline(always)]
    #[must_use]
    pub fn bfa3(&mut self) -> BFA3_W<BFL_SPEC> {
        BFA3_W::new(self, 11)
    }
    #[doc = "Bit 16 - Boundary Flag 0 Inversion Control"]
    #[inline(always)]
    #[must_use]
    pub fn bfi0(&mut self) -> BFI0_W<BFL_SPEC> {
        BFI0_W::new(self, 16)
    }
    #[doc = "Bit 17 - Boundary Flag 1 Inversion Control"]
    #[inline(always)]
    #[must_use]
    pub fn bfi1(&mut self) -> BFI1_W<BFL_SPEC> {
        BFI1_W::new(self, 17)
    }
    #[doc = "Bit 18 - Boundary Flag 2 Inversion Control"]
    #[inline(always)]
    #[must_use]
    pub fn bfi2(&mut self) -> BFI2_W<BFL_SPEC> {
        BFI2_W::new(self, 18)
    }
    #[doc = "Bit 19 - Boundary Flag 3 Inversion Control"]
    #[inline(always)]
    #[must_use]
    pub fn bfi3(&mut self) -> BFI3_W<BFL_SPEC> {
        BFI3_W::new(self, 19)
    }
}
#[doc = "Boundary Flag Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`bfl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`bfl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BFL_SPEC;
impl crate::RegisterSpec for BFL_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`bfl::R`](R) reader structure"]
impl crate::Readable for BFL_SPEC {}
#[doc = "`write(|w| ..)` method takes [`bfl::W`](W) writer structure"]
impl crate::Writable for BFL_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets BFL to value 0"]
impl crate::Resettable for BFL_SPEC {
    const RESET_VALUE: u32 = 0;
}