efm32pg1b200_pac/adc0/
if_.rs1#[doc = "Register `IF` reader"]
2pub struct R(crate::R<IF_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IF_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IF_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IF_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `SINGLE` reader - Single Conversion Complete Interrupt Flag"]
17pub type SINGLE_R = crate::BitReader<bool>;
18#[doc = "Field `SCAN` reader - Scan Conversion Complete Interrupt Flag"]
19pub type SCAN_R = crate::BitReader<bool>;
20#[doc = "Field `SINGLEOF` reader - Single FIFO Overflow Interrupt Flag"]
21pub type SINGLEOF_R = crate::BitReader<bool>;
22#[doc = "Field `SCANOF` reader - Scan FIFO Overflow Interrupt Flag"]
23pub type SCANOF_R = crate::BitReader<bool>;
24#[doc = "Field `SINGLEUF` reader - Single FIFO Underflow Interrupt Flag"]
25pub type SINGLEUF_R = crate::BitReader<bool>;
26#[doc = "Field `SCANUF` reader - Scan FIFO Underflow Interrupt Flag"]
27pub type SCANUF_R = crate::BitReader<bool>;
28#[doc = "Field `SINGLECMP` reader - Single Result Compare Match Interrupt Flag"]
29pub type SINGLECMP_R = crate::BitReader<bool>;
30#[doc = "Field `SCANCMP` reader - Scan Result Compare Match Interrupt Flag"]
31pub type SCANCMP_R = crate::BitReader<bool>;
32#[doc = "Field `VREFOV` reader - VREF Over Voltage Interrupt Flag"]
33pub type VREFOV_R = crate::BitReader<bool>;
34#[doc = "Field `PROGERR` reader - Programming Error Interrupt Flag"]
35pub type PROGERR_R = crate::BitReader<bool>;
36impl R {
37 #[doc = "Bit 0 - Single Conversion Complete Interrupt Flag"]
38 #[inline(always)]
39 pub fn single(&self) -> SINGLE_R {
40 SINGLE_R::new((self.bits & 1) != 0)
41 }
42 #[doc = "Bit 1 - Scan Conversion Complete Interrupt Flag"]
43 #[inline(always)]
44 pub fn scan(&self) -> SCAN_R {
45 SCAN_R::new(((self.bits >> 1) & 1) != 0)
46 }
47 #[doc = "Bit 8 - Single FIFO Overflow Interrupt Flag"]
48 #[inline(always)]
49 pub fn singleof(&self) -> SINGLEOF_R {
50 SINGLEOF_R::new(((self.bits >> 8) & 1) != 0)
51 }
52 #[doc = "Bit 9 - Scan FIFO Overflow Interrupt Flag"]
53 #[inline(always)]
54 pub fn scanof(&self) -> SCANOF_R {
55 SCANOF_R::new(((self.bits >> 9) & 1) != 0)
56 }
57 #[doc = "Bit 10 - Single FIFO Underflow Interrupt Flag"]
58 #[inline(always)]
59 pub fn singleuf(&self) -> SINGLEUF_R {
60 SINGLEUF_R::new(((self.bits >> 10) & 1) != 0)
61 }
62 #[doc = "Bit 11 - Scan FIFO Underflow Interrupt Flag"]
63 #[inline(always)]
64 pub fn scanuf(&self) -> SCANUF_R {
65 SCANUF_R::new(((self.bits >> 11) & 1) != 0)
66 }
67 #[doc = "Bit 16 - Single Result Compare Match Interrupt Flag"]
68 #[inline(always)]
69 pub fn singlecmp(&self) -> SINGLECMP_R {
70 SINGLECMP_R::new(((self.bits >> 16) & 1) != 0)
71 }
72 #[doc = "Bit 17 - Scan Result Compare Match Interrupt Flag"]
73 #[inline(always)]
74 pub fn scancmp(&self) -> SCANCMP_R {
75 SCANCMP_R::new(((self.bits >> 17) & 1) != 0)
76 }
77 #[doc = "Bit 24 - VREF Over Voltage Interrupt Flag"]
78 #[inline(always)]
79 pub fn vrefov(&self) -> VREFOV_R {
80 VREFOV_R::new(((self.bits >> 24) & 1) != 0)
81 }
82 #[doc = "Bit 25 - Programming Error Interrupt Flag"]
83 #[inline(always)]
84 pub fn progerr(&self) -> PROGERR_R {
85 PROGERR_R::new(((self.bits >> 25) & 1) != 0)
86 }
87}
88#[doc = "Interrupt Flag Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [if_](index.html) module"]
89pub struct IF_SPEC;
90impl crate::RegisterSpec for IF_SPEC {
91 type Ux = u32;
92}
93#[doc = "`read()` method returns [if_::R](R) reader structure"]
94impl crate::Readable for IF_SPEC {
95 type Reader = R;
96}
97#[doc = "`reset()` method sets IF to value 0"]
98impl crate::Resettable for IF_SPEC {
99 #[inline(always)]
100 fn reset_value() -> Self::Ux {
101 0
102 }
103}