efm32gg12b410_pac/emu/
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 `VMONAVDDFALL` reader - VMON AVDD Channel Fall"]
17pub type VMONAVDDFALL_R = crate::BitReader<bool>;
18#[doc = "Field `VMONAVDDRISE` reader - VMON AVDD Channel Rise"]
19pub type VMONAVDDRISE_R = crate::BitReader<bool>;
20#[doc = "Field `VMONALTAVDDFALL` reader - Alternate VMON AVDD Channel Fall"]
21pub type VMONALTAVDDFALL_R = crate::BitReader<bool>;
22#[doc = "Field `VMONALTAVDDRISE` reader - Alternate VMON AVDD Channel Rise"]
23pub type VMONALTAVDDRISE_R = crate::BitReader<bool>;
24#[doc = "Field `VMONDVDDFALL` reader - VMON DVDD Channel Fall"]
25pub type VMONDVDDFALL_R = crate::BitReader<bool>;
26#[doc = "Field `VMONDVDDRISE` reader - VMON DVDD Channel Rise"]
27pub type VMONDVDDRISE_R = crate::BitReader<bool>;
28#[doc = "Field `VMONIO0FALL` reader - VMON IOVDD0 Channel Fall"]
29pub type VMONIO0FALL_R = crate::BitReader<bool>;
30#[doc = "Field `VMONIO0RISE` reader - VMON IOVDD0 Channel Rise"]
31pub type VMONIO0RISE_R = crate::BitReader<bool>;
32#[doc = "Field `VMONIO1FALL` reader - VMON IOVDD1 Channel Fall"]
33pub type VMONIO1FALL_R = crate::BitReader<bool>;
34#[doc = "Field `VMONIO1RISE` reader - VMON IOVDD1 Channel Rise"]
35pub type VMONIO1RISE_R = crate::BitReader<bool>;
36#[doc = "Field `R5VREADY` reader - 5V Regulator is Ready to Use"]
37pub type R5VREADY_R = crate::BitReader<bool>;
38#[doc = "Field `VMONBUVDDFALL` reader - VMON BACKUP Channel Fall"]
39pub type VMONBUVDDFALL_R = crate::BitReader<bool>;
40#[doc = "Field `VMONBUVDDRISE` reader - VMON BUVDD Channel Rise"]
41pub type VMONBUVDDRISE_R = crate::BitReader<bool>;
42#[doc = "Field `PFETOVERCURRENTLIMIT` reader - PFET Current Limit Hit"]
43pub type PFETOVERCURRENTLIMIT_R = crate::BitReader<bool>;
44#[doc = "Field `NFETOVERCURRENTLIMIT` reader - NFET Current Limit Hit"]
45pub type NFETOVERCURRENTLIMIT_R = crate::BitReader<bool>;
46#[doc = "Field `DCDCLPRUNNING` reader - LP Mode is Running"]
47pub type DCDCLPRUNNING_R = crate::BitReader<bool>;
48#[doc = "Field `DCDCLNRUNNING` reader - LN Mode is Running"]
49pub type DCDCLNRUNNING_R = crate::BitReader<bool>;
50#[doc = "Field `DCDCINBYPASS` reader - DCDC is in Bypass"]
51pub type DCDCINBYPASS_R = crate::BitReader<bool>;
52#[doc = "Field `BURDY` reader - Backup Functionality Ready Interrupt Flag"]
53pub type BURDY_R = crate::BitReader<bool>;
54#[doc = "Field `R5VVSINT` reader - 5V Regulator Voltage Update Done"]
55pub type R5VVSINT_R = crate::BitReader<bool>;
56#[doc = "Field `EM23WAKEUP` reader - Wakeup IRQ From EM2 and EM3"]
57pub type EM23WAKEUP_R = crate::BitReader<bool>;
58#[doc = "Field `VSCALEDONE` reader - Voltage Scale Steps Done IRQ"]
59pub type VSCALEDONE_R = crate::BitReader<bool>;
60#[doc = "Field `TEMP` reader - New Temperature Measurement Valid"]
61pub type TEMP_R = crate::BitReader<bool>;
62#[doc = "Field `TEMPLOW` reader - Temperature Low Limit Reached"]
63pub type TEMPLOW_R = crate::BitReader<bool>;
64#[doc = "Field `TEMPHIGH` reader - Temperature High Limit Reached"]
65pub type TEMPHIGH_R = crate::BitReader<bool>;
66impl R {
67 #[doc = "Bit 0 - VMON AVDD Channel Fall"]
68 #[inline(always)]
69 pub fn vmonavddfall(&self) -> VMONAVDDFALL_R {
70 VMONAVDDFALL_R::new((self.bits & 1) != 0)
71 }
72 #[doc = "Bit 1 - VMON AVDD Channel Rise"]
73 #[inline(always)]
74 pub fn vmonavddrise(&self) -> VMONAVDDRISE_R {
75 VMONAVDDRISE_R::new(((self.bits >> 1) & 1) != 0)
76 }
77 #[doc = "Bit 2 - Alternate VMON AVDD Channel Fall"]
78 #[inline(always)]
79 pub fn vmonaltavddfall(&self) -> VMONALTAVDDFALL_R {
80 VMONALTAVDDFALL_R::new(((self.bits >> 2) & 1) != 0)
81 }
82 #[doc = "Bit 3 - Alternate VMON AVDD Channel Rise"]
83 #[inline(always)]
84 pub fn vmonaltavddrise(&self) -> VMONALTAVDDRISE_R {
85 VMONALTAVDDRISE_R::new(((self.bits >> 3) & 1) != 0)
86 }
87 #[doc = "Bit 4 - VMON DVDD Channel Fall"]
88 #[inline(always)]
89 pub fn vmondvddfall(&self) -> VMONDVDDFALL_R {
90 VMONDVDDFALL_R::new(((self.bits >> 4) & 1) != 0)
91 }
92 #[doc = "Bit 5 - VMON DVDD Channel Rise"]
93 #[inline(always)]
94 pub fn vmondvddrise(&self) -> VMONDVDDRISE_R {
95 VMONDVDDRISE_R::new(((self.bits >> 5) & 1) != 0)
96 }
97 #[doc = "Bit 6 - VMON IOVDD0 Channel Fall"]
98 #[inline(always)]
99 pub fn vmonio0fall(&self) -> VMONIO0FALL_R {
100 VMONIO0FALL_R::new(((self.bits >> 6) & 1) != 0)
101 }
102 #[doc = "Bit 7 - VMON IOVDD0 Channel Rise"]
103 #[inline(always)]
104 pub fn vmonio0rise(&self) -> VMONIO0RISE_R {
105 VMONIO0RISE_R::new(((self.bits >> 7) & 1) != 0)
106 }
107 #[doc = "Bit 8 - VMON IOVDD1 Channel Fall"]
108 #[inline(always)]
109 pub fn vmonio1fall(&self) -> VMONIO1FALL_R {
110 VMONIO1FALL_R::new(((self.bits >> 8) & 1) != 0)
111 }
112 #[doc = "Bit 9 - VMON IOVDD1 Channel Rise"]
113 #[inline(always)]
114 pub fn vmonio1rise(&self) -> VMONIO1RISE_R {
115 VMONIO1RISE_R::new(((self.bits >> 9) & 1) != 0)
116 }
117 #[doc = "Bit 10 - 5V Regulator is Ready to Use"]
118 #[inline(always)]
119 pub fn r5vready(&self) -> R5VREADY_R {
120 R5VREADY_R::new(((self.bits >> 10) & 1) != 0)
121 }
122 #[doc = "Bit 12 - VMON BACKUP Channel Fall"]
123 #[inline(always)]
124 pub fn vmonbuvddfall(&self) -> VMONBUVDDFALL_R {
125 VMONBUVDDFALL_R::new(((self.bits >> 12) & 1) != 0)
126 }
127 #[doc = "Bit 13 - VMON BUVDD Channel Rise"]
128 #[inline(always)]
129 pub fn vmonbuvddrise(&self) -> VMONBUVDDRISE_R {
130 VMONBUVDDRISE_R::new(((self.bits >> 13) & 1) != 0)
131 }
132 #[doc = "Bit 16 - PFET Current Limit Hit"]
133 #[inline(always)]
134 pub fn pfetovercurrentlimit(&self) -> PFETOVERCURRENTLIMIT_R {
135 PFETOVERCURRENTLIMIT_R::new(((self.bits >> 16) & 1) != 0)
136 }
137 #[doc = "Bit 17 - NFET Current Limit Hit"]
138 #[inline(always)]
139 pub fn nfetovercurrentlimit(&self) -> NFETOVERCURRENTLIMIT_R {
140 NFETOVERCURRENTLIMIT_R::new(((self.bits >> 17) & 1) != 0)
141 }
142 #[doc = "Bit 18 - LP Mode is Running"]
143 #[inline(always)]
144 pub fn dcdclprunning(&self) -> DCDCLPRUNNING_R {
145 DCDCLPRUNNING_R::new(((self.bits >> 18) & 1) != 0)
146 }
147 #[doc = "Bit 19 - LN Mode is Running"]
148 #[inline(always)]
149 pub fn dcdclnrunning(&self) -> DCDCLNRUNNING_R {
150 DCDCLNRUNNING_R::new(((self.bits >> 19) & 1) != 0)
151 }
152 #[doc = "Bit 20 - DCDC is in Bypass"]
153 #[inline(always)]
154 pub fn dcdcinbypass(&self) -> DCDCINBYPASS_R {
155 DCDCINBYPASS_R::new(((self.bits >> 20) & 1) != 0)
156 }
157 #[doc = "Bit 22 - Backup Functionality Ready Interrupt Flag"]
158 #[inline(always)]
159 pub fn burdy(&self) -> BURDY_R {
160 BURDY_R::new(((self.bits >> 22) & 1) != 0)
161 }
162 #[doc = "Bit 23 - 5V Regulator Voltage Update Done"]
163 #[inline(always)]
164 pub fn r5vvsint(&self) -> R5VVSINT_R {
165 R5VVSINT_R::new(((self.bits >> 23) & 1) != 0)
166 }
167 #[doc = "Bit 24 - Wakeup IRQ From EM2 and EM3"]
168 #[inline(always)]
169 pub fn em23wakeup(&self) -> EM23WAKEUP_R {
170 EM23WAKEUP_R::new(((self.bits >> 24) & 1) != 0)
171 }
172 #[doc = "Bit 25 - Voltage Scale Steps Done IRQ"]
173 #[inline(always)]
174 pub fn vscaledone(&self) -> VSCALEDONE_R {
175 VSCALEDONE_R::new(((self.bits >> 25) & 1) != 0)
176 }
177 #[doc = "Bit 29 - New Temperature Measurement Valid"]
178 #[inline(always)]
179 pub fn temp(&self) -> TEMP_R {
180 TEMP_R::new(((self.bits >> 29) & 1) != 0)
181 }
182 #[doc = "Bit 30 - Temperature Low Limit Reached"]
183 #[inline(always)]
184 pub fn templow(&self) -> TEMPLOW_R {
185 TEMPLOW_R::new(((self.bits >> 30) & 1) != 0)
186 }
187 #[doc = "Bit 31 - Temperature High Limit Reached"]
188 #[inline(always)]
189 pub fn temphigh(&self) -> TEMPHIGH_R {
190 TEMPHIGH_R::new(((self.bits >> 31) & 1) != 0)
191 }
192}
193#[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"]
194pub struct IF_SPEC;
195impl crate::RegisterSpec for IF_SPEC {
196 type Ux = u32;
197}
198#[doc = "`read()` method returns [if_::R](R) reader structure"]
199impl crate::Readable for IF_SPEC {
200 type Reader = R;
201}
202#[doc = "`reset()` method sets IF to value 0"]
203impl crate::Resettable for IF_SPEC {
204 #[inline(always)]
205 fn reset_value() -> Self::Ux {
206 0
207 }
208}