efm32jg12b500_pac/emu/
ifc.rs1#[doc = "Register `IFC` writer"]
2pub struct W(crate::W<IFC_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFC_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<IFC_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFC_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `VMONAVDDFALL` writer - Clear VMONAVDDFALL Interrupt Flag"]
23pub type VMONAVDDFALL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 0>;
24#[doc = "Field `VMONAVDDRISE` writer - Clear VMONAVDDRISE Interrupt Flag"]
25pub type VMONAVDDRISE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 1>;
26#[doc = "Field `VMONALTAVDDFALL` writer - Clear VMONALTAVDDFALL Interrupt Flag"]
27pub type VMONALTAVDDFALL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 2>;
28#[doc = "Field `VMONALTAVDDRISE` writer - Clear VMONALTAVDDRISE Interrupt Flag"]
29pub type VMONALTAVDDRISE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 3>;
30#[doc = "Field `VMONDVDDFALL` writer - Clear VMONDVDDFALL Interrupt Flag"]
31pub type VMONDVDDFALL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 4>;
32#[doc = "Field `VMONDVDDRISE` writer - Clear VMONDVDDRISE Interrupt Flag"]
33pub type VMONDVDDRISE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 5>;
34#[doc = "Field `VMONIO0FALL` writer - Clear VMONIO0FALL Interrupt Flag"]
35pub type VMONIO0FALL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 6>;
36#[doc = "Field `VMONIO0RISE` writer - Clear VMONIO0RISE Interrupt Flag"]
37pub type VMONIO0RISE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 7>;
38#[doc = "Field `VMONFVDDFALL` writer - Clear VMONFVDDFALL Interrupt Flag"]
39pub type VMONFVDDFALL_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 14>;
40#[doc = "Field `VMONFVDDRISE` writer - Clear VMONFVDDRISE Interrupt Flag"]
41pub type VMONFVDDRISE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 15>;
42#[doc = "Field `PFETOVERCURRENTLIMIT` writer - Clear PFETOVERCURRENTLIMIT Interrupt Flag"]
43pub type PFETOVERCURRENTLIMIT_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 16>;
44#[doc = "Field `NFETOVERCURRENTLIMIT` writer - Clear NFETOVERCURRENTLIMIT Interrupt Flag"]
45pub type NFETOVERCURRENTLIMIT_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 17>;
46#[doc = "Field `DCDCLPRUNNING` writer - Clear DCDCLPRUNNING Interrupt Flag"]
47pub type DCDCLPRUNNING_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 18>;
48#[doc = "Field `DCDCLNRUNNING` writer - Clear DCDCLNRUNNING Interrupt Flag"]
49pub type DCDCLNRUNNING_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 19>;
50#[doc = "Field `DCDCINBYPASS` writer - Clear DCDCINBYPASS Interrupt Flag"]
51pub type DCDCINBYPASS_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 20>;
52#[doc = "Field `EM23WAKEUP` writer - Clear EM23WAKEUP Interrupt Flag"]
53pub type EM23WAKEUP_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 24>;
54#[doc = "Field `VSCALEDONE` writer - Clear VSCALEDONE Interrupt Flag"]
55pub type VSCALEDONE_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 25>;
56#[doc = "Field `TEMP` writer - Clear TEMP Interrupt Flag"]
57pub type TEMP_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 29>;
58#[doc = "Field `TEMPLOW` writer - Clear TEMPLOW Interrupt Flag"]
59pub type TEMPLOW_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 30>;
60#[doc = "Field `TEMPHIGH` writer - Clear TEMPHIGH Interrupt Flag"]
61pub type TEMPHIGH_W<'a> = crate::BitWriter<'a, u32, IFC_SPEC, bool, 31>;
62impl W {
63 #[doc = "Bit 0 - Clear VMONAVDDFALL Interrupt Flag"]
64 #[inline(always)]
65 pub fn vmonavddfall(&mut self) -> VMONAVDDFALL_W {
66 VMONAVDDFALL_W::new(self)
67 }
68 #[doc = "Bit 1 - Clear VMONAVDDRISE Interrupt Flag"]
69 #[inline(always)]
70 pub fn vmonavddrise(&mut self) -> VMONAVDDRISE_W {
71 VMONAVDDRISE_W::new(self)
72 }
73 #[doc = "Bit 2 - Clear VMONALTAVDDFALL Interrupt Flag"]
74 #[inline(always)]
75 pub fn vmonaltavddfall(&mut self) -> VMONALTAVDDFALL_W {
76 VMONALTAVDDFALL_W::new(self)
77 }
78 #[doc = "Bit 3 - Clear VMONALTAVDDRISE Interrupt Flag"]
79 #[inline(always)]
80 pub fn vmonaltavddrise(&mut self) -> VMONALTAVDDRISE_W {
81 VMONALTAVDDRISE_W::new(self)
82 }
83 #[doc = "Bit 4 - Clear VMONDVDDFALL Interrupt Flag"]
84 #[inline(always)]
85 pub fn vmondvddfall(&mut self) -> VMONDVDDFALL_W {
86 VMONDVDDFALL_W::new(self)
87 }
88 #[doc = "Bit 5 - Clear VMONDVDDRISE Interrupt Flag"]
89 #[inline(always)]
90 pub fn vmondvddrise(&mut self) -> VMONDVDDRISE_W {
91 VMONDVDDRISE_W::new(self)
92 }
93 #[doc = "Bit 6 - Clear VMONIO0FALL Interrupt Flag"]
94 #[inline(always)]
95 pub fn vmonio0fall(&mut self) -> VMONIO0FALL_W {
96 VMONIO0FALL_W::new(self)
97 }
98 #[doc = "Bit 7 - Clear VMONIO0RISE Interrupt Flag"]
99 #[inline(always)]
100 pub fn vmonio0rise(&mut self) -> VMONIO0RISE_W {
101 VMONIO0RISE_W::new(self)
102 }
103 #[doc = "Bit 14 - Clear VMONFVDDFALL Interrupt Flag"]
104 #[inline(always)]
105 pub fn vmonfvddfall(&mut self) -> VMONFVDDFALL_W {
106 VMONFVDDFALL_W::new(self)
107 }
108 #[doc = "Bit 15 - Clear VMONFVDDRISE Interrupt Flag"]
109 #[inline(always)]
110 pub fn vmonfvddrise(&mut self) -> VMONFVDDRISE_W {
111 VMONFVDDRISE_W::new(self)
112 }
113 #[doc = "Bit 16 - Clear PFETOVERCURRENTLIMIT Interrupt Flag"]
114 #[inline(always)]
115 pub fn pfetovercurrentlimit(&mut self) -> PFETOVERCURRENTLIMIT_W {
116 PFETOVERCURRENTLIMIT_W::new(self)
117 }
118 #[doc = "Bit 17 - Clear NFETOVERCURRENTLIMIT Interrupt Flag"]
119 #[inline(always)]
120 pub fn nfetovercurrentlimit(&mut self) -> NFETOVERCURRENTLIMIT_W {
121 NFETOVERCURRENTLIMIT_W::new(self)
122 }
123 #[doc = "Bit 18 - Clear DCDCLPRUNNING Interrupt Flag"]
124 #[inline(always)]
125 pub fn dcdclprunning(&mut self) -> DCDCLPRUNNING_W {
126 DCDCLPRUNNING_W::new(self)
127 }
128 #[doc = "Bit 19 - Clear DCDCLNRUNNING Interrupt Flag"]
129 #[inline(always)]
130 pub fn dcdclnrunning(&mut self) -> DCDCLNRUNNING_W {
131 DCDCLNRUNNING_W::new(self)
132 }
133 #[doc = "Bit 20 - Clear DCDCINBYPASS Interrupt Flag"]
134 #[inline(always)]
135 pub fn dcdcinbypass(&mut self) -> DCDCINBYPASS_W {
136 DCDCINBYPASS_W::new(self)
137 }
138 #[doc = "Bit 24 - Clear EM23WAKEUP Interrupt Flag"]
139 #[inline(always)]
140 pub fn em23wakeup(&mut self) -> EM23WAKEUP_W {
141 EM23WAKEUP_W::new(self)
142 }
143 #[doc = "Bit 25 - Clear VSCALEDONE Interrupt Flag"]
144 #[inline(always)]
145 pub fn vscaledone(&mut self) -> VSCALEDONE_W {
146 VSCALEDONE_W::new(self)
147 }
148 #[doc = "Bit 29 - Clear TEMP Interrupt Flag"]
149 #[inline(always)]
150 pub fn temp(&mut self) -> TEMP_W {
151 TEMP_W::new(self)
152 }
153 #[doc = "Bit 30 - Clear TEMPLOW Interrupt Flag"]
154 #[inline(always)]
155 pub fn templow(&mut self) -> TEMPLOW_W {
156 TEMPLOW_W::new(self)
157 }
158 #[doc = "Bit 31 - Clear TEMPHIGH Interrupt Flag"]
159 #[inline(always)]
160 pub fn temphigh(&mut self) -> TEMPHIGH_W {
161 TEMPHIGH_W::new(self)
162 }
163 #[doc = "Writes raw bits to the register."]
164 #[inline(always)]
165 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
166 self.0.bits(bits);
167 self
168 }
169}
170#[doc = "Interrupt Flag Clear 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 [ifc](index.html) module"]
171pub struct IFC_SPEC;
172impl crate::RegisterSpec for IFC_SPEC {
173 type Ux = u32;
174}
175#[doc = "`write(|w| ..)` method takes [ifc::W](W) writer structure"]
176impl crate::Writable for IFC_SPEC {
177 type Writer = W;
178}
179#[doc = "`reset()` method sets IFC to value 0"]
180impl crate::Resettable for IFC_SPEC {
181 #[inline(always)]
182 fn reset_value() -> Self::Ux {
183 0
184 }
185}