efm32tg11b_pac/efm32tg11b540/vdac0/
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 `CH0CD` writer - Set CH0CD Interrupt Flag"]
23pub type CH0CD_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
24#[doc = "Field `CH1CD` writer - Set CH1CD Interrupt Flag"]
25pub type CH1CD_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
26#[doc = "Field `CH0OF` writer - Set CH0OF Interrupt Flag"]
27pub type CH0OF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
28#[doc = "Field `CH1OF` writer - Set CH1OF Interrupt Flag"]
29pub type CH1OF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
30#[doc = "Field `CH0UF` writer - Set CH0UF Interrupt Flag"]
31pub type CH0UF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
32#[doc = "Field `CH1UF` writer - Set CH1UF Interrupt Flag"]
33pub type CH1UF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
34#[doc = "Field `EM23ERR` writer - Set EM23ERR Interrupt Flag"]
35pub type EM23ERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
36#[doc = "Field `OPA0APORTCONFLICT` writer - Set OPA0APORTCONFLICT Interrupt Flag"]
37pub type OPA0APORTCONFLICT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
38#[doc = "Field `OPA1APORTCONFLICT` writer - Set OPA1APORTCONFLICT Interrupt Flag"]
39pub type OPA1APORTCONFLICT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
40#[doc = "Field `OPA2APORTCONFLICT` writer - Set OPA2APORTCONFLICT Interrupt Flag"]
41pub type OPA2APORTCONFLICT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
42#[doc = "Field `OPA3APORTCONFLICT` writer - Set OPA3APORTCONFLICT Interrupt Flag"]
43pub type OPA3APORTCONFLICT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
44#[doc = "Field `OPA0PRSTIMEDERR` writer - Set OPA0PRSTIMEDERR Interrupt Flag"]
45pub type OPA0PRSTIMEDERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
46#[doc = "Field `OPA1PRSTIMEDERR` writer - Set OPA1PRSTIMEDERR Interrupt Flag"]
47pub type OPA1PRSTIMEDERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
48#[doc = "Field `OPA2PRSTIMEDERR` writer - Set OPA2PRSTIMEDERR Interrupt Flag"]
49pub type OPA2PRSTIMEDERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
50#[doc = "Field `OPA3PRSTIMEDERR` writer - Set OPA3PRSTIMEDERR Interrupt Flag"]
51pub type OPA3PRSTIMEDERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
52#[doc = "Field `OPA0OUTVALID` writer - Set OPA0OUTVALID Interrupt Flag"]
53pub type OPA0OUTVALID_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
54#[doc = "Field `OPA1OUTVALID` writer - Set OPA1OUTVALID Interrupt Flag"]
55pub type OPA1OUTVALID_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
56#[doc = "Field `OPA2OUTVALID` writer - Set OPA2OUTVALID Interrupt Flag"]
57pub type OPA2OUTVALID_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
58#[doc = "Field `OPA3OUTVALID` writer - Set OPA3OUTVALID Interrupt Flag"]
59pub type OPA3OUTVALID_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
60impl W {
61 #[doc = "Bit 0 - Set CH0CD Interrupt Flag"]
62 #[inline(always)]
63 #[must_use]
64 pub fn ch0cd(&mut self) -> CH0CD_W<0> {
65 CH0CD_W::new(self)
66 }
67 #[doc = "Bit 1 - Set CH1CD Interrupt Flag"]
68 #[inline(always)]
69 #[must_use]
70 pub fn ch1cd(&mut self) -> CH1CD_W<1> {
71 CH1CD_W::new(self)
72 }
73 #[doc = "Bit 2 - Set CH0OF Interrupt Flag"]
74 #[inline(always)]
75 #[must_use]
76 pub fn ch0of(&mut self) -> CH0OF_W<2> {
77 CH0OF_W::new(self)
78 }
79 #[doc = "Bit 3 - Set CH1OF Interrupt Flag"]
80 #[inline(always)]
81 #[must_use]
82 pub fn ch1of(&mut self) -> CH1OF_W<3> {
83 CH1OF_W::new(self)
84 }
85 #[doc = "Bit 4 - Set CH0UF Interrupt Flag"]
86 #[inline(always)]
87 #[must_use]
88 pub fn ch0uf(&mut self) -> CH0UF_W<4> {
89 CH0UF_W::new(self)
90 }
91 #[doc = "Bit 5 - Set CH1UF Interrupt Flag"]
92 #[inline(always)]
93 #[must_use]
94 pub fn ch1uf(&mut self) -> CH1UF_W<5> {
95 CH1UF_W::new(self)
96 }
97 #[doc = "Bit 15 - Set EM23ERR Interrupt Flag"]
98 #[inline(always)]
99 #[must_use]
100 pub fn em23err(&mut self) -> EM23ERR_W<15> {
101 EM23ERR_W::new(self)
102 }
103 #[doc = "Bit 16 - Set OPA0APORTCONFLICT Interrupt Flag"]
104 #[inline(always)]
105 #[must_use]
106 pub fn opa0aportconflict(&mut self) -> OPA0APORTCONFLICT_W<16> {
107 OPA0APORTCONFLICT_W::new(self)
108 }
109 #[doc = "Bit 17 - Set OPA1APORTCONFLICT Interrupt Flag"]
110 #[inline(always)]
111 #[must_use]
112 pub fn opa1aportconflict(&mut self) -> OPA1APORTCONFLICT_W<17> {
113 OPA1APORTCONFLICT_W::new(self)
114 }
115 #[doc = "Bit 18 - Set OPA2APORTCONFLICT Interrupt Flag"]
116 #[inline(always)]
117 #[must_use]
118 pub fn opa2aportconflict(&mut self) -> OPA2APORTCONFLICT_W<18> {
119 OPA2APORTCONFLICT_W::new(self)
120 }
121 #[doc = "Bit 19 - Set OPA3APORTCONFLICT Interrupt Flag"]
122 #[inline(always)]
123 #[must_use]
124 pub fn opa3aportconflict(&mut self) -> OPA3APORTCONFLICT_W<19> {
125 OPA3APORTCONFLICT_W::new(self)
126 }
127 #[doc = "Bit 20 - Set OPA0PRSTIMEDERR Interrupt Flag"]
128 #[inline(always)]
129 #[must_use]
130 pub fn opa0prstimederr(&mut self) -> OPA0PRSTIMEDERR_W<20> {
131 OPA0PRSTIMEDERR_W::new(self)
132 }
133 #[doc = "Bit 21 - Set OPA1PRSTIMEDERR Interrupt Flag"]
134 #[inline(always)]
135 #[must_use]
136 pub fn opa1prstimederr(&mut self) -> OPA1PRSTIMEDERR_W<21> {
137 OPA1PRSTIMEDERR_W::new(self)
138 }
139 #[doc = "Bit 22 - Set OPA2PRSTIMEDERR Interrupt Flag"]
140 #[inline(always)]
141 #[must_use]
142 pub fn opa2prstimederr(&mut self) -> OPA2PRSTIMEDERR_W<22> {
143 OPA2PRSTIMEDERR_W::new(self)
144 }
145 #[doc = "Bit 23 - Set OPA3PRSTIMEDERR Interrupt Flag"]
146 #[inline(always)]
147 #[must_use]
148 pub fn opa3prstimederr(&mut self) -> OPA3PRSTIMEDERR_W<23> {
149 OPA3PRSTIMEDERR_W::new(self)
150 }
151 #[doc = "Bit 28 - Set OPA0OUTVALID Interrupt Flag"]
152 #[inline(always)]
153 #[must_use]
154 pub fn opa0outvalid(&mut self) -> OPA0OUTVALID_W<28> {
155 OPA0OUTVALID_W::new(self)
156 }
157 #[doc = "Bit 29 - Set OPA1OUTVALID Interrupt Flag"]
158 #[inline(always)]
159 #[must_use]
160 pub fn opa1outvalid(&mut self) -> OPA1OUTVALID_W<29> {
161 OPA1OUTVALID_W::new(self)
162 }
163 #[doc = "Bit 30 - Set OPA2OUTVALID Interrupt Flag"]
164 #[inline(always)]
165 #[must_use]
166 pub fn opa2outvalid(&mut self) -> OPA2OUTVALID_W<30> {
167 OPA2OUTVALID_W::new(self)
168 }
169 #[doc = "Bit 31 - Set OPA3OUTVALID Interrupt Flag"]
170 #[inline(always)]
171 #[must_use]
172 pub fn opa3outvalid(&mut self) -> OPA3OUTVALID_W<31> {
173 OPA3OUTVALID_W::new(self)
174 }
175 #[doc = "Writes raw bits to the register."]
176 #[inline(always)]
177 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
178 self.0.bits(bits);
179 self
180 }
181}
182#[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"]
183pub struct IFS_SPEC;
184impl crate::RegisterSpec for IFS_SPEC {
185 type Ux = u32;
186}
187#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
188impl crate::Writable for IFS_SPEC {
189 type Writer = W;
190 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
191 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
192}
193#[doc = "`reset()` method sets IFS to value 0"]
194impl crate::Resettable for IFS_SPEC {
195 const RESET_VALUE: Self::Ux = 0;
196}