stm32h7 0.16.0

Device support crates for STM32H7 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
///Register `CR2` reader
pub type R = crate::R<CR2rs>;
///Register `CR2` writer
pub type W = crate::W<CR2rs>;
/**Injected end of conversion interrupt enable Please see the explanation of JEOCF in DFSDM_FLTxISR.

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JEOCIE {
    ///0: Injected end of conversion interrupt is disabled
    Disabled = 0,
    ///1: Injected end of conversion interrupt is enabled
    Enabled = 1,
}
impl From<JEOCIE> for bool {
    #[inline(always)]
    fn from(variant: JEOCIE) -> Self {
        variant as u8 != 0
    }
}
///Field `JEOCIE` reader - Injected end of conversion interrupt enable Please see the explanation of JEOCF in DFSDM_FLTxISR.
pub type JEOCIE_R = crate::BitReader<JEOCIE>;
impl JEOCIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> JEOCIE {
        match self.bits {
            false => JEOCIE::Disabled,
            true => JEOCIE::Enabled,
        }
    }
    ///Injected end of conversion interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == JEOCIE::Disabled
    }
    ///Injected end of conversion interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == JEOCIE::Enabled
    }
}
///Field `JEOCIE` writer - Injected end of conversion interrupt enable Please see the explanation of JEOCF in DFSDM_FLTxISR.
pub type JEOCIE_W<'a, REG> = crate::BitWriter<'a, REG, JEOCIE>;
impl<'a, REG> JEOCIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Injected end of conversion interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(JEOCIE::Disabled)
    }
    ///Injected end of conversion interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(JEOCIE::Enabled)
    }
}
/**Regular end of conversion interrupt enable Please see the explanation of REOCF in DFSDM_FLTxISR.

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum REOCIE {
    ///0: Regular end of conversion interrupt is disabled
    Disabled = 0,
    ///1: Regular end of conversion interrupt is enabled
    Enabled = 1,
}
impl From<REOCIE> for bool {
    #[inline(always)]
    fn from(variant: REOCIE) -> Self {
        variant as u8 != 0
    }
}
///Field `REOCIE` reader - Regular end of conversion interrupt enable Please see the explanation of REOCF in DFSDM_FLTxISR.
pub type REOCIE_R = crate::BitReader<REOCIE>;
impl REOCIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> REOCIE {
        match self.bits {
            false => REOCIE::Disabled,
            true => REOCIE::Enabled,
        }
    }
    ///Regular end of conversion interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == REOCIE::Disabled
    }
    ///Regular end of conversion interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == REOCIE::Enabled
    }
}
///Field `REOCIE` writer - Regular end of conversion interrupt enable Please see the explanation of REOCF in DFSDM_FLTxISR.
pub type REOCIE_W<'a, REG> = crate::BitWriter<'a, REG, REOCIE>;
impl<'a, REG> REOCIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Regular end of conversion interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(REOCIE::Disabled)
    }
    ///Regular end of conversion interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(REOCIE::Enabled)
    }
}
/**Injected data overrun interrupt enable Please see the explanation of JOVRF in DFSDM_FLTxISR.

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum JOVRIE {
    ///0: Injected data overrun interrupt is disabled
    Disabled = 0,
    ///1: Injected data overrun interrupt is enabled
    Enabled = 1,
}
impl From<JOVRIE> for bool {
    #[inline(always)]
    fn from(variant: JOVRIE) -> Self {
        variant as u8 != 0
    }
}
///Field `JOVRIE` reader - Injected data overrun interrupt enable Please see the explanation of JOVRF in DFSDM_FLTxISR.
pub type JOVRIE_R = crate::BitReader<JOVRIE>;
impl JOVRIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> JOVRIE {
        match self.bits {
            false => JOVRIE::Disabled,
            true => JOVRIE::Enabled,
        }
    }
    ///Injected data overrun interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == JOVRIE::Disabled
    }
    ///Injected data overrun interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == JOVRIE::Enabled
    }
}
///Field `JOVRIE` writer - Injected data overrun interrupt enable Please see the explanation of JOVRF in DFSDM_FLTxISR.
pub type JOVRIE_W<'a, REG> = crate::BitWriter<'a, REG, JOVRIE>;
impl<'a, REG> JOVRIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Injected data overrun interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(JOVRIE::Disabled)
    }
    ///Injected data overrun interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(JOVRIE::Enabled)
    }
}
/**Regular data overrun interrupt enable Please see the explanation of ROVRF in DFSDM_FLTxISR.

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ROVRIE {
    ///0: Regular data overrun interrupt is disabled
    Disabled = 0,
    ///1: Regular data overrun interrupt is enabled
    Enabled = 1,
}
impl From<ROVRIE> for bool {
    #[inline(always)]
    fn from(variant: ROVRIE) -> Self {
        variant as u8 != 0
    }
}
///Field `ROVRIE` reader - Regular data overrun interrupt enable Please see the explanation of ROVRF in DFSDM_FLTxISR.
pub type ROVRIE_R = crate::BitReader<ROVRIE>;
impl ROVRIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> ROVRIE {
        match self.bits {
            false => ROVRIE::Disabled,
            true => ROVRIE::Enabled,
        }
    }
    ///Regular data overrun interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == ROVRIE::Disabled
    }
    ///Regular data overrun interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == ROVRIE::Enabled
    }
}
///Field `ROVRIE` writer - Regular data overrun interrupt enable Please see the explanation of ROVRF in DFSDM_FLTxISR.
pub type ROVRIE_W<'a, REG> = crate::BitWriter<'a, REG, ROVRIE>;
impl<'a, REG> ROVRIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Regular data overrun interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(ROVRIE::Disabled)
    }
    ///Regular data overrun interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(ROVRIE::Enabled)
    }
}
/**Analog watchdog interrupt enable Please see the explanation of AWDF in DFSDM_FLTxISR.

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AWDIE {
    ///0: Analog watchdog interrupt is disabled
    Disabled = 0,
    ///1: Analog watchdog interrupt is enabled
    Enabled = 1,
}
impl From<AWDIE> for bool {
    #[inline(always)]
    fn from(variant: AWDIE) -> Self {
        variant as u8 != 0
    }
}
///Field `AWDIE` reader - Analog watchdog interrupt enable Please see the explanation of AWDF in DFSDM_FLTxISR.
pub type AWDIE_R = crate::BitReader<AWDIE>;
impl AWDIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> AWDIE {
        match self.bits {
            false => AWDIE::Disabled,
            true => AWDIE::Enabled,
        }
    }
    ///Analog watchdog interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == AWDIE::Disabled
    }
    ///Analog watchdog interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == AWDIE::Enabled
    }
}
///Field `AWDIE` writer - Analog watchdog interrupt enable Please see the explanation of AWDF in DFSDM_FLTxISR.
pub type AWDIE_W<'a, REG> = crate::BitWriter<'a, REG, AWDIE>;
impl<'a, REG> AWDIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Analog watchdog interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(AWDIE::Disabled)
    }
    ///Analog watchdog interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(AWDIE::Enabled)
    }
}
/**Short-circuit detector interrupt enable Please see the explanation of SCDF\[7:0\] in DFSDM_FLTxISR. Note: SCDIE is present only in DFSDM_FLT0CR2 register (filter x=0)

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SCDIE {
    ///0: Short-circuit detector interrupt is disabled
    Disabled = 0,
    ///1: Short-circuit detector interrupt is enabled
    Enabled = 1,
}
impl From<SCDIE> for bool {
    #[inline(always)]
    fn from(variant: SCDIE) -> Self {
        variant as u8 != 0
    }
}
///Field `SCDIE` reader - Short-circuit detector interrupt enable Please see the explanation of SCDF\[7:0\] in DFSDM_FLTxISR. Note: SCDIE is present only in DFSDM_FLT0CR2 register (filter x=0)
pub type SCDIE_R = crate::BitReader<SCDIE>;
impl SCDIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> SCDIE {
        match self.bits {
            false => SCDIE::Disabled,
            true => SCDIE::Enabled,
        }
    }
    ///Short-circuit detector interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == SCDIE::Disabled
    }
    ///Short-circuit detector interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == SCDIE::Enabled
    }
}
///Field `SCDIE` writer - Short-circuit detector interrupt enable Please see the explanation of SCDF\[7:0\] in DFSDM_FLTxISR. Note: SCDIE is present only in DFSDM_FLT0CR2 register (filter x=0)
pub type SCDIE_W<'a, REG> = crate::BitWriter<'a, REG, SCDIE>;
impl<'a, REG> SCDIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Short-circuit detector interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(SCDIE::Disabled)
    }
    ///Short-circuit detector interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(SCDIE::Enabled)
    }
}
/**Clock absence interrupt enable Please see the explanation of CKABF\[7:0\] in DFSDM_FLTxISR. Note: CKABIE is present only in DFSDM_FLT0CR2 register (filter x=0)

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CKABIE {
    ///0: Detection of channel input clock absence interrupt is disabled
    Disabled = 0,
    ///1: Detection of channel input clock absence interrupt is enabled
    Enabled = 1,
}
impl From<CKABIE> for bool {
    #[inline(always)]
    fn from(variant: CKABIE) -> Self {
        variant as u8 != 0
    }
}
///Field `CKABIE` reader - Clock absence interrupt enable Please see the explanation of CKABF\[7:0\] in DFSDM_FLTxISR. Note: CKABIE is present only in DFSDM_FLT0CR2 register (filter x=0)
pub type CKABIE_R = crate::BitReader<CKABIE>;
impl CKABIE_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> CKABIE {
        match self.bits {
            false => CKABIE::Disabled,
            true => CKABIE::Enabled,
        }
    }
    ///Detection of channel input clock absence interrupt is disabled
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == CKABIE::Disabled
    }
    ///Detection of channel input clock absence interrupt is enabled
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == CKABIE::Enabled
    }
}
///Field `CKABIE` writer - Clock absence interrupt enable Please see the explanation of CKABF\[7:0\] in DFSDM_FLTxISR. Note: CKABIE is present only in DFSDM_FLT0CR2 register (filter x=0)
pub type CKABIE_W<'a, REG> = crate::BitWriter<'a, REG, CKABIE>;
impl<'a, REG> CKABIE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Detection of channel input clock absence interrupt is disabled
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(CKABIE::Disabled)
    }
    ///Detection of channel input clock absence interrupt is enabled
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(CKABIE::Enabled)
    }
}
/**Extremes detector channel selection These bits select the input channels to be taken by the Extremes detector. EXCH\[y\] = 0: Extremes detector does not accept data from channel y EXCH\[y\] = 1: Extremes detector accepts data from channel y

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EXCH {
    ///0: Extremes detector does not accept data from channel y
    Disabled = 0,
    ///1: Extremes detector accepts data from channel y
    Enabled = 1,
}
impl From<EXCH> for u8 {
    #[inline(always)]
    fn from(variant: EXCH) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for EXCH {
    type Ux = u8;
}
impl crate::IsEnum for EXCH {}
///Field `EXCH` reader - Extremes detector channel selection These bits select the input channels to be taken by the Extremes detector. EXCH\[y\] = 0: Extremes detector does not accept data from channel y EXCH\[y\] = 1: Extremes detector accepts data from channel y
pub type EXCH_R = crate::FieldReader<EXCH>;
impl EXCH_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> Option<EXCH> {
        match self.bits {
            0 => Some(EXCH::Disabled),
            1 => Some(EXCH::Enabled),
            _ => None,
        }
    }
    ///Extremes detector does not accept data from channel y
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == EXCH::Disabled
    }
    ///Extremes detector accepts data from channel y
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == EXCH::Enabled
    }
}
///Field `EXCH` writer - Extremes detector channel selection These bits select the input channels to be taken by the Extremes detector. EXCH\[y\] = 0: Extremes detector does not accept data from channel y EXCH\[y\] = 1: Extremes detector accepts data from channel y
pub type EXCH_W<'a, REG> = crate::FieldWriter<'a, REG, 8, EXCH>;
impl<'a, REG> EXCH_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    ///Extremes detector does not accept data from channel y
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(EXCH::Disabled)
    }
    ///Extremes detector accepts data from channel y
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(EXCH::Enabled)
    }
}
/**Analog watchdog channel selection These bits select the input channel to be guarded continuously by the analog watchdog. AWDCH\[y\] = 0: Analog watchdog is disabled on channel y AWDCH\[y\] = 1: Analog watchdog is enabled on channel y

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum AWDCH {
    ///0: Analog watchdog is disabled on channel y
    Disabled = 0,
    ///1: Analog watchdog is enabled on channel y
    Enabled = 1,
}
impl From<AWDCH> for u8 {
    #[inline(always)]
    fn from(variant: AWDCH) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for AWDCH {
    type Ux = u8;
}
impl crate::IsEnum for AWDCH {}
///Field `AWDCH` reader - Analog watchdog channel selection These bits select the input channel to be guarded continuously by the analog watchdog. AWDCH\[y\] = 0: Analog watchdog is disabled on channel y AWDCH\[y\] = 1: Analog watchdog is enabled on channel y
pub type AWDCH_R = crate::FieldReader<AWDCH>;
impl AWDCH_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> Option<AWDCH> {
        match self.bits {
            0 => Some(AWDCH::Disabled),
            1 => Some(AWDCH::Enabled),
            _ => None,
        }
    }
    ///Analog watchdog is disabled on channel y
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == AWDCH::Disabled
    }
    ///Analog watchdog is enabled on channel y
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == AWDCH::Enabled
    }
}
///Field `AWDCH` writer - Analog watchdog channel selection These bits select the input channel to be guarded continuously by the analog watchdog. AWDCH\[y\] = 0: Analog watchdog is disabled on channel y AWDCH\[y\] = 1: Analog watchdog is enabled on channel y
pub type AWDCH_W<'a, REG> = crate::FieldWriter<'a, REG, 8, AWDCH>;
impl<'a, REG> AWDCH_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    ///Analog watchdog is disabled on channel y
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(AWDCH::Disabled)
    }
    ///Analog watchdog is enabled on channel y
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(AWDCH::Enabled)
    }
}
impl R {
    ///Bit 0 - Injected end of conversion interrupt enable Please see the explanation of JEOCF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn jeocie(&self) -> JEOCIE_R {
        JEOCIE_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Regular end of conversion interrupt enable Please see the explanation of REOCF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn reocie(&self) -> REOCIE_R {
        REOCIE_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Injected data overrun interrupt enable Please see the explanation of JOVRF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn jovrie(&self) -> JOVRIE_R {
        JOVRIE_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Regular data overrun interrupt enable Please see the explanation of ROVRF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn rovrie(&self) -> ROVRIE_R {
        ROVRIE_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Analog watchdog interrupt enable Please see the explanation of AWDF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn awdie(&self) -> AWDIE_R {
        AWDIE_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Short-circuit detector interrupt enable Please see the explanation of SCDF\[7:0\] in DFSDM_FLTxISR. Note: SCDIE is present only in DFSDM_FLT0CR2 register (filter x=0)
    #[inline(always)]
    pub fn scdie(&self) -> SCDIE_R {
        SCDIE_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - Clock absence interrupt enable Please see the explanation of CKABF\[7:0\] in DFSDM_FLTxISR. Note: CKABIE is present only in DFSDM_FLT0CR2 register (filter x=0)
    #[inline(always)]
    pub fn ckabie(&self) -> CKABIE_R {
        CKABIE_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bits 8:15 - Extremes detector channel selection These bits select the input channels to be taken by the Extremes detector. EXCH\[y\] = 0: Extremes detector does not accept data from channel y EXCH\[y\] = 1: Extremes detector accepts data from channel y
    #[inline(always)]
    pub fn exch(&self) -> EXCH_R {
        EXCH_R::new(((self.bits >> 8) & 0xff) as u8)
    }
    ///Bits 16:23 - Analog watchdog channel selection These bits select the input channel to be guarded continuously by the analog watchdog. AWDCH\[y\] = 0: Analog watchdog is disabled on channel y AWDCH\[y\] = 1: Analog watchdog is enabled on channel y
    #[inline(always)]
    pub fn awdch(&self) -> AWDCH_R {
        AWDCH_R::new(((self.bits >> 16) & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CR2")
            .field("jeocie", &self.jeocie())
            .field("reocie", &self.reocie())
            .field("jovrie", &self.jovrie())
            .field("rovrie", &self.rovrie())
            .field("awdie", &self.awdie())
            .field("scdie", &self.scdie())
            .field("ckabie", &self.ckabie())
            .field("exch", &self.exch())
            .field("awdch", &self.awdch())
            .finish()
    }
}
impl W {
    ///Bit 0 - Injected end of conversion interrupt enable Please see the explanation of JEOCF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn jeocie(&mut self) -> JEOCIE_W<CR2rs> {
        JEOCIE_W::new(self, 0)
    }
    ///Bit 1 - Regular end of conversion interrupt enable Please see the explanation of REOCF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn reocie(&mut self) -> REOCIE_W<CR2rs> {
        REOCIE_W::new(self, 1)
    }
    ///Bit 2 - Injected data overrun interrupt enable Please see the explanation of JOVRF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn jovrie(&mut self) -> JOVRIE_W<CR2rs> {
        JOVRIE_W::new(self, 2)
    }
    ///Bit 3 - Regular data overrun interrupt enable Please see the explanation of ROVRF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn rovrie(&mut self) -> ROVRIE_W<CR2rs> {
        ROVRIE_W::new(self, 3)
    }
    ///Bit 4 - Analog watchdog interrupt enable Please see the explanation of AWDF in DFSDM_FLTxISR.
    #[inline(always)]
    pub fn awdie(&mut self) -> AWDIE_W<CR2rs> {
        AWDIE_W::new(self, 4)
    }
    ///Bit 5 - Short-circuit detector interrupt enable Please see the explanation of SCDF\[7:0\] in DFSDM_FLTxISR. Note: SCDIE is present only in DFSDM_FLT0CR2 register (filter x=0)
    #[inline(always)]
    pub fn scdie(&mut self) -> SCDIE_W<CR2rs> {
        SCDIE_W::new(self, 5)
    }
    ///Bit 6 - Clock absence interrupt enable Please see the explanation of CKABF\[7:0\] in DFSDM_FLTxISR. Note: CKABIE is present only in DFSDM_FLT0CR2 register (filter x=0)
    #[inline(always)]
    pub fn ckabie(&mut self) -> CKABIE_W<CR2rs> {
        CKABIE_W::new(self, 6)
    }
    ///Bits 8:15 - Extremes detector channel selection These bits select the input channels to be taken by the Extremes detector. EXCH\[y\] = 0: Extremes detector does not accept data from channel y EXCH\[y\] = 1: Extremes detector accepts data from channel y
    #[inline(always)]
    pub fn exch(&mut self) -> EXCH_W<CR2rs> {
        EXCH_W::new(self, 8)
    }
    ///Bits 16:23 - Analog watchdog channel selection These bits select the input channel to be guarded continuously by the analog watchdog. AWDCH\[y\] = 0: Analog watchdog is disabled on channel y AWDCH\[y\] = 1: Analog watchdog is enabled on channel y
    #[inline(always)]
    pub fn awdch(&mut self) -> AWDCH_W<CR2rs> {
        AWDCH_W::new(self, 16)
    }
}
/**

You can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct CR2rs;
impl crate::RegisterSpec for CR2rs {
    type Ux = u32;
}
///`read()` method returns [`cr2::R`](R) reader structure
impl crate::Readable for CR2rs {}
///`write(|w| ..)` method takes [`cr2::W`](W) writer structure
impl crate::Writable for CR2rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CR2 to value 0
impl crate::Resettable for CR2rs {}