efm32tg11b_pac/efm32tg11b120/emu/
ifs.rs1#[doc = "Register `IFS` writer"]
2pub struct W(crate::W<IFS_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<IFS_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFS_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `VMONAVDDFALL` writer - Set VMONAVDDFALL Interrupt Flag"]
23pub type VMONAVDDFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
24#[doc = "Field `VMONAVDDRISE` writer - Set VMONAVDDRISE Interrupt Flag"]
25pub type VMONAVDDRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
26#[doc = "Field `VMONALTAVDDFALL` writer - Set VMONALTAVDDFALL Interrupt Flag"]
27pub type VMONALTAVDDFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
28#[doc = "Field `VMONALTAVDDRISE` writer - Set VMONALTAVDDRISE Interrupt Flag"]
29pub type VMONALTAVDDRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
30#[doc = "Field `VMONDVDDFALL` writer - Set VMONDVDDFALL Interrupt Flag"]
31pub type VMONDVDDFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
32#[doc = "Field `VMONDVDDRISE` writer - Set VMONDVDDRISE Interrupt Flag"]
33pub type VMONDVDDRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
34#[doc = "Field `VMONIO0FALL` writer - Set VMONIO0FALL Interrupt Flag"]
35pub type VMONIO0FALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
36#[doc = "Field `VMONIO0RISE` writer - Set VMONIO0RISE Interrupt Flag"]
37pub type VMONIO0RISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
38#[doc = "Field `VMONBUVDDFALL` writer - Set VMONBUVDDFALL Interrupt Flag"]
39pub type VMONBUVDDFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
40#[doc = "Field `VMONBUVDDRISE` writer - Set VMONBUVDDRISE Interrupt Flag"]
41pub type VMONBUVDDRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
42#[doc = "Field `VMONFVDDFALL` writer - Set VMONFVDDFALL Interrupt Flag"]
43pub type VMONFVDDFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
44#[doc = "Field `VMONFVDDRISE` writer - Set VMONFVDDRISE Interrupt Flag"]
45pub type VMONFVDDRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
46#[doc = "Field `PFETOVERCURRENTLIMIT` writer - Set PFETOVERCURRENTLIMIT Interrupt Flag"]
47pub type PFETOVERCURRENTLIMIT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
48#[doc = "Field `NFETOVERCURRENTLIMIT` writer - Set NFETOVERCURRENTLIMIT Interrupt Flag"]
49pub type NFETOVERCURRENTLIMIT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
50#[doc = "Field `DCDCLPRUNNING` writer - Set DCDCLPRUNNING Interrupt Flag"]
51pub type DCDCLPRUNNING_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
52#[doc = "Field `DCDCLNRUNNING` writer - Set DCDCLNRUNNING Interrupt Flag"]
53pub type DCDCLNRUNNING_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
54#[doc = "Field `DCDCINBYPASS` writer - Set DCDCINBYPASS Interrupt Flag"]
55pub type DCDCINBYPASS_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
56#[doc = "Field `BURDY` writer - Set BURDY Interrupt Flag"]
57pub type BURDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
58#[doc = "Field `EM23WAKEUP` writer - Set EM23WAKEUP Interrupt Flag"]
59pub type EM23WAKEUP_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
60#[doc = "Field `VSCALEDONE` writer - Set VSCALEDONE Interrupt Flag"]
61pub type VSCALEDONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
62#[doc = "Field `TEMP` writer - Set TEMP Interrupt Flag"]
63pub type TEMP_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
64#[doc = "Field `TEMPLOW` writer - Set TEMPLOW Interrupt Flag"]
65pub type TEMPLOW_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
66#[doc = "Field `TEMPHIGH` writer - Set TEMPHIGH Interrupt Flag"]
67pub type TEMPHIGH_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
68impl W {
69 #[doc = "Bit 0 - Set VMONAVDDFALL Interrupt Flag"]
70 #[inline(always)]
71 #[must_use]
72 pub fn vmonavddfall(&mut self) -> VMONAVDDFALL_W<0> {
73 VMONAVDDFALL_W::new(self)
74 }
75 #[doc = "Bit 1 - Set VMONAVDDRISE Interrupt Flag"]
76 #[inline(always)]
77 #[must_use]
78 pub fn vmonavddrise(&mut self) -> VMONAVDDRISE_W<1> {
79 VMONAVDDRISE_W::new(self)
80 }
81 #[doc = "Bit 2 - Set VMONALTAVDDFALL Interrupt Flag"]
82 #[inline(always)]
83 #[must_use]
84 pub fn vmonaltavddfall(&mut self) -> VMONALTAVDDFALL_W<2> {
85 VMONALTAVDDFALL_W::new(self)
86 }
87 #[doc = "Bit 3 - Set VMONALTAVDDRISE Interrupt Flag"]
88 #[inline(always)]
89 #[must_use]
90 pub fn vmonaltavddrise(&mut self) -> VMONALTAVDDRISE_W<3> {
91 VMONALTAVDDRISE_W::new(self)
92 }
93 #[doc = "Bit 4 - Set VMONDVDDFALL Interrupt Flag"]
94 #[inline(always)]
95 #[must_use]
96 pub fn vmondvddfall(&mut self) -> VMONDVDDFALL_W<4> {
97 VMONDVDDFALL_W::new(self)
98 }
99 #[doc = "Bit 5 - Set VMONDVDDRISE Interrupt Flag"]
100 #[inline(always)]
101 #[must_use]
102 pub fn vmondvddrise(&mut self) -> VMONDVDDRISE_W<5> {
103 VMONDVDDRISE_W::new(self)
104 }
105 #[doc = "Bit 6 - Set VMONIO0FALL Interrupt Flag"]
106 #[inline(always)]
107 #[must_use]
108 pub fn vmonio0fall(&mut self) -> VMONIO0FALL_W<6> {
109 VMONIO0FALL_W::new(self)
110 }
111 #[doc = "Bit 7 - Set VMONIO0RISE Interrupt Flag"]
112 #[inline(always)]
113 #[must_use]
114 pub fn vmonio0rise(&mut self) -> VMONIO0RISE_W<7> {
115 VMONIO0RISE_W::new(self)
116 }
117 #[doc = "Bit 12 - Set VMONBUVDDFALL Interrupt Flag"]
118 #[inline(always)]
119 #[must_use]
120 pub fn vmonbuvddfall(&mut self) -> VMONBUVDDFALL_W<12> {
121 VMONBUVDDFALL_W::new(self)
122 }
123 #[doc = "Bit 13 - Set VMONBUVDDRISE Interrupt Flag"]
124 #[inline(always)]
125 #[must_use]
126 pub fn vmonbuvddrise(&mut self) -> VMONBUVDDRISE_W<13> {
127 VMONBUVDDRISE_W::new(self)
128 }
129 #[doc = "Bit 14 - Set VMONFVDDFALL Interrupt Flag"]
130 #[inline(always)]
131 #[must_use]
132 pub fn vmonfvddfall(&mut self) -> VMONFVDDFALL_W<14> {
133 VMONFVDDFALL_W::new(self)
134 }
135 #[doc = "Bit 15 - Set VMONFVDDRISE Interrupt Flag"]
136 #[inline(always)]
137 #[must_use]
138 pub fn vmonfvddrise(&mut self) -> VMONFVDDRISE_W<15> {
139 VMONFVDDRISE_W::new(self)
140 }
141 #[doc = "Bit 16 - Set PFETOVERCURRENTLIMIT Interrupt Flag"]
142 #[inline(always)]
143 #[must_use]
144 pub fn pfetovercurrentlimit(&mut self) -> PFETOVERCURRENTLIMIT_W<16> {
145 PFETOVERCURRENTLIMIT_W::new(self)
146 }
147 #[doc = "Bit 17 - Set NFETOVERCURRENTLIMIT Interrupt Flag"]
148 #[inline(always)]
149 #[must_use]
150 pub fn nfetovercurrentlimit(&mut self) -> NFETOVERCURRENTLIMIT_W<17> {
151 NFETOVERCURRENTLIMIT_W::new(self)
152 }
153 #[doc = "Bit 18 - Set DCDCLPRUNNING Interrupt Flag"]
154 #[inline(always)]
155 #[must_use]
156 pub fn dcdclprunning(&mut self) -> DCDCLPRUNNING_W<18> {
157 DCDCLPRUNNING_W::new(self)
158 }
159 #[doc = "Bit 19 - Set DCDCLNRUNNING Interrupt Flag"]
160 #[inline(always)]
161 #[must_use]
162 pub fn dcdclnrunning(&mut self) -> DCDCLNRUNNING_W<19> {
163 DCDCLNRUNNING_W::new(self)
164 }
165 #[doc = "Bit 20 - Set DCDCINBYPASS Interrupt Flag"]
166 #[inline(always)]
167 #[must_use]
168 pub fn dcdcinbypass(&mut self) -> DCDCINBYPASS_W<20> {
169 DCDCINBYPASS_W::new(self)
170 }
171 #[doc = "Bit 22 - Set BURDY Interrupt Flag"]
172 #[inline(always)]
173 #[must_use]
174 pub fn burdy(&mut self) -> BURDY_W<22> {
175 BURDY_W::new(self)
176 }
177 #[doc = "Bit 24 - Set EM23WAKEUP Interrupt Flag"]
178 #[inline(always)]
179 #[must_use]
180 pub fn em23wakeup(&mut self) -> EM23WAKEUP_W<24> {
181 EM23WAKEUP_W::new(self)
182 }
183 #[doc = "Bit 25 - Set VSCALEDONE Interrupt Flag"]
184 #[inline(always)]
185 #[must_use]
186 pub fn vscaledone(&mut self) -> VSCALEDONE_W<25> {
187 VSCALEDONE_W::new(self)
188 }
189 #[doc = "Bit 29 - Set TEMP Interrupt Flag"]
190 #[inline(always)]
191 #[must_use]
192 pub fn temp(&mut self) -> TEMP_W<29> {
193 TEMP_W::new(self)
194 }
195 #[doc = "Bit 30 - Set TEMPLOW Interrupt Flag"]
196 #[inline(always)]
197 #[must_use]
198 pub fn templow(&mut self) -> TEMPLOW_W<30> {
199 TEMPLOW_W::new(self)
200 }
201 #[doc = "Bit 31 - Set TEMPHIGH Interrupt Flag"]
202 #[inline(always)]
203 #[must_use]
204 pub fn temphigh(&mut self) -> TEMPHIGH_W<31> {
205 TEMPHIGH_W::new(self)
206 }
207 #[doc = "Writes raw bits to the register."]
208 #[inline(always)]
209 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
210 self.0.bits(bits);
211 self
212 }
213}
214#[doc = "Interrupt Flag Set Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](index.html) module"]
215pub struct IFS_SPEC;
216impl crate::RegisterSpec for IFS_SPEC {
217 type Ux = u32;
218}
219#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
220impl crate::Writable for IFS_SPEC {
221 type Writer = W;
222 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
223 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
224}
225#[doc = "`reset()` method sets IFS to value 0"]
226impl crate::Resettable for IFS_SPEC {
227 const RESET_VALUE: Self::Ux = 0;
228}