efm32gg11b110_pac/emu/
ifs.rs

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