efm32tg11b340_pac/emu/
ifc.rs

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