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