1#[doc = "Register `INT_FORCE_DATA_ID` reader"]
2pub type R = crate::R<INT_FORCE_DATA_ID_SPEC>;
3#[doc = "Register `INT_FORCE_DATA_ID` writer"]
4pub type W = crate::W<INT_FORCE_DATA_ID_SPEC>;
5#[doc = "Field `FORCE_ERR_ID_VC0` reader - NA"]
6pub type FORCE_ERR_ID_VC0_R = crate::BitReader;
7#[doc = "Field `FORCE_ERR_ID_VC0` writer - NA"]
8pub type FORCE_ERR_ID_VC0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_ERR_ID_VC1` reader - NA"]
10pub type FORCE_ERR_ID_VC1_R = crate::BitReader;
11#[doc = "Field `FORCE_ERR_ID_VC1` writer - NA"]
12pub type FORCE_ERR_ID_VC1_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FORCE_ERR_ID_VC2` reader - NA"]
14pub type FORCE_ERR_ID_VC2_R = crate::BitReader;
15#[doc = "Field `FORCE_ERR_ID_VC2` writer - NA"]
16pub type FORCE_ERR_ID_VC2_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `FORCE_ERR_ID_VC3` reader - NA"]
18pub type FORCE_ERR_ID_VC3_R = crate::BitReader;
19#[doc = "Field `FORCE_ERR_ID_VC3` writer - NA"]
20pub type FORCE_ERR_ID_VC3_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `FORCE_ERR_ID_VC4` reader - NA"]
22pub type FORCE_ERR_ID_VC4_R = crate::BitReader;
23#[doc = "Field `FORCE_ERR_ID_VC4` writer - NA"]
24pub type FORCE_ERR_ID_VC4_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `FORCE_ERR_ID_VC5` reader - NA"]
26pub type FORCE_ERR_ID_VC5_R = crate::BitReader;
27#[doc = "Field `FORCE_ERR_ID_VC5` writer - NA"]
28pub type FORCE_ERR_ID_VC5_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `FORCE_ERR_ID_VC6` reader - NA"]
30pub type FORCE_ERR_ID_VC6_R = crate::BitReader;
31#[doc = "Field `FORCE_ERR_ID_VC6` writer - NA"]
32pub type FORCE_ERR_ID_VC6_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `FORCE_ERR_ID_VC7` reader - NA"]
34pub type FORCE_ERR_ID_VC7_R = crate::BitReader;
35#[doc = "Field `FORCE_ERR_ID_VC7` writer - NA"]
36pub type FORCE_ERR_ID_VC7_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `FORCE_ERR_ID_VC8` reader - NA"]
38pub type FORCE_ERR_ID_VC8_R = crate::BitReader;
39#[doc = "Field `FORCE_ERR_ID_VC8` writer - NA"]
40pub type FORCE_ERR_ID_VC8_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `FORCE_ERR_ID_VC9` reader - NA"]
42pub type FORCE_ERR_ID_VC9_R = crate::BitReader;
43#[doc = "Field `FORCE_ERR_ID_VC9` writer - NA"]
44pub type FORCE_ERR_ID_VC9_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `FORCE_ERR_ID_VC10` reader - NA"]
46pub type FORCE_ERR_ID_VC10_R = crate::BitReader;
47#[doc = "Field `FORCE_ERR_ID_VC10` writer - NA"]
48pub type FORCE_ERR_ID_VC10_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `FORCE_ERR_ID_VC11` reader - NA"]
50pub type FORCE_ERR_ID_VC11_R = crate::BitReader;
51#[doc = "Field `FORCE_ERR_ID_VC11` writer - NA"]
52pub type FORCE_ERR_ID_VC11_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `FORCE_ERR_ID_VC12` reader - NA"]
54pub type FORCE_ERR_ID_VC12_R = crate::BitReader;
55#[doc = "Field `FORCE_ERR_ID_VC12` writer - NA"]
56pub type FORCE_ERR_ID_VC12_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `FORCE_ERR_ID_VC13` reader - NA"]
58pub type FORCE_ERR_ID_VC13_R = crate::BitReader;
59#[doc = "Field `FORCE_ERR_ID_VC13` writer - NA"]
60pub type FORCE_ERR_ID_VC13_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `FORCE_ERR_ID_VC14` reader - NA"]
62pub type FORCE_ERR_ID_VC14_R = crate::BitReader;
63#[doc = "Field `FORCE_ERR_ID_VC14` writer - NA"]
64pub type FORCE_ERR_ID_VC14_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `FORCE_ERR_ID_VC15` reader - NA"]
66pub type FORCE_ERR_ID_VC15_R = crate::BitReader;
67#[doc = "Field `FORCE_ERR_ID_VC15` writer - NA"]
68pub type FORCE_ERR_ID_VC15_W<'a, REG> = crate::BitWriter<'a, REG>;
69impl R {
70 #[doc = "Bit 0 - NA"]
71 #[inline(always)]
72 pub fn force_err_id_vc0(&self) -> FORCE_ERR_ID_VC0_R {
73 FORCE_ERR_ID_VC0_R::new((self.bits & 1) != 0)
74 }
75 #[doc = "Bit 1 - NA"]
76 #[inline(always)]
77 pub fn force_err_id_vc1(&self) -> FORCE_ERR_ID_VC1_R {
78 FORCE_ERR_ID_VC1_R::new(((self.bits >> 1) & 1) != 0)
79 }
80 #[doc = "Bit 2 - NA"]
81 #[inline(always)]
82 pub fn force_err_id_vc2(&self) -> FORCE_ERR_ID_VC2_R {
83 FORCE_ERR_ID_VC2_R::new(((self.bits >> 2) & 1) != 0)
84 }
85 #[doc = "Bit 3 - NA"]
86 #[inline(always)]
87 pub fn force_err_id_vc3(&self) -> FORCE_ERR_ID_VC3_R {
88 FORCE_ERR_ID_VC3_R::new(((self.bits >> 3) & 1) != 0)
89 }
90 #[doc = "Bit 4 - NA"]
91 #[inline(always)]
92 pub fn force_err_id_vc4(&self) -> FORCE_ERR_ID_VC4_R {
93 FORCE_ERR_ID_VC4_R::new(((self.bits >> 4) & 1) != 0)
94 }
95 #[doc = "Bit 5 - NA"]
96 #[inline(always)]
97 pub fn force_err_id_vc5(&self) -> FORCE_ERR_ID_VC5_R {
98 FORCE_ERR_ID_VC5_R::new(((self.bits >> 5) & 1) != 0)
99 }
100 #[doc = "Bit 6 - NA"]
101 #[inline(always)]
102 pub fn force_err_id_vc6(&self) -> FORCE_ERR_ID_VC6_R {
103 FORCE_ERR_ID_VC6_R::new(((self.bits >> 6) & 1) != 0)
104 }
105 #[doc = "Bit 7 - NA"]
106 #[inline(always)]
107 pub fn force_err_id_vc7(&self) -> FORCE_ERR_ID_VC7_R {
108 FORCE_ERR_ID_VC7_R::new(((self.bits >> 7) & 1) != 0)
109 }
110 #[doc = "Bit 8 - NA"]
111 #[inline(always)]
112 pub fn force_err_id_vc8(&self) -> FORCE_ERR_ID_VC8_R {
113 FORCE_ERR_ID_VC8_R::new(((self.bits >> 8) & 1) != 0)
114 }
115 #[doc = "Bit 9 - NA"]
116 #[inline(always)]
117 pub fn force_err_id_vc9(&self) -> FORCE_ERR_ID_VC9_R {
118 FORCE_ERR_ID_VC9_R::new(((self.bits >> 9) & 1) != 0)
119 }
120 #[doc = "Bit 10 - NA"]
121 #[inline(always)]
122 pub fn force_err_id_vc10(&self) -> FORCE_ERR_ID_VC10_R {
123 FORCE_ERR_ID_VC10_R::new(((self.bits >> 10) & 1) != 0)
124 }
125 #[doc = "Bit 11 - NA"]
126 #[inline(always)]
127 pub fn force_err_id_vc11(&self) -> FORCE_ERR_ID_VC11_R {
128 FORCE_ERR_ID_VC11_R::new(((self.bits >> 11) & 1) != 0)
129 }
130 #[doc = "Bit 12 - NA"]
131 #[inline(always)]
132 pub fn force_err_id_vc12(&self) -> FORCE_ERR_ID_VC12_R {
133 FORCE_ERR_ID_VC12_R::new(((self.bits >> 12) & 1) != 0)
134 }
135 #[doc = "Bit 13 - NA"]
136 #[inline(always)]
137 pub fn force_err_id_vc13(&self) -> FORCE_ERR_ID_VC13_R {
138 FORCE_ERR_ID_VC13_R::new(((self.bits >> 13) & 1) != 0)
139 }
140 #[doc = "Bit 14 - NA"]
141 #[inline(always)]
142 pub fn force_err_id_vc14(&self) -> FORCE_ERR_ID_VC14_R {
143 FORCE_ERR_ID_VC14_R::new(((self.bits >> 14) & 1) != 0)
144 }
145 #[doc = "Bit 15 - NA"]
146 #[inline(always)]
147 pub fn force_err_id_vc15(&self) -> FORCE_ERR_ID_VC15_R {
148 FORCE_ERR_ID_VC15_R::new(((self.bits >> 15) & 1) != 0)
149 }
150}
151#[cfg(feature = "impl-register-debug")]
152impl core::fmt::Debug for R {
153 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
154 f.debug_struct("INT_FORCE_DATA_ID")
155 .field(
156 "force_err_id_vc0",
157 &format_args!("{}", self.force_err_id_vc0().bit()),
158 )
159 .field(
160 "force_err_id_vc1",
161 &format_args!("{}", self.force_err_id_vc1().bit()),
162 )
163 .field(
164 "force_err_id_vc2",
165 &format_args!("{}", self.force_err_id_vc2().bit()),
166 )
167 .field(
168 "force_err_id_vc3",
169 &format_args!("{}", self.force_err_id_vc3().bit()),
170 )
171 .field(
172 "force_err_id_vc4",
173 &format_args!("{}", self.force_err_id_vc4().bit()),
174 )
175 .field(
176 "force_err_id_vc5",
177 &format_args!("{}", self.force_err_id_vc5().bit()),
178 )
179 .field(
180 "force_err_id_vc6",
181 &format_args!("{}", self.force_err_id_vc6().bit()),
182 )
183 .field(
184 "force_err_id_vc7",
185 &format_args!("{}", self.force_err_id_vc7().bit()),
186 )
187 .field(
188 "force_err_id_vc8",
189 &format_args!("{}", self.force_err_id_vc8().bit()),
190 )
191 .field(
192 "force_err_id_vc9",
193 &format_args!("{}", self.force_err_id_vc9().bit()),
194 )
195 .field(
196 "force_err_id_vc10",
197 &format_args!("{}", self.force_err_id_vc10().bit()),
198 )
199 .field(
200 "force_err_id_vc11",
201 &format_args!("{}", self.force_err_id_vc11().bit()),
202 )
203 .field(
204 "force_err_id_vc12",
205 &format_args!("{}", self.force_err_id_vc12().bit()),
206 )
207 .field(
208 "force_err_id_vc13",
209 &format_args!("{}", self.force_err_id_vc13().bit()),
210 )
211 .field(
212 "force_err_id_vc14",
213 &format_args!("{}", self.force_err_id_vc14().bit()),
214 )
215 .field(
216 "force_err_id_vc15",
217 &format_args!("{}", self.force_err_id_vc15().bit()),
218 )
219 .finish()
220 }
221}
222#[cfg(feature = "impl-register-debug")]
223impl core::fmt::Debug for crate::generic::Reg<INT_FORCE_DATA_ID_SPEC> {
224 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
225 core::fmt::Debug::fmt(&self.read(), f)
226 }
227}
228impl W {
229 #[doc = "Bit 0 - NA"]
230 #[inline(always)]
231 #[must_use]
232 pub fn force_err_id_vc0(&mut self) -> FORCE_ERR_ID_VC0_W<INT_FORCE_DATA_ID_SPEC> {
233 FORCE_ERR_ID_VC0_W::new(self, 0)
234 }
235 #[doc = "Bit 1 - NA"]
236 #[inline(always)]
237 #[must_use]
238 pub fn force_err_id_vc1(&mut self) -> FORCE_ERR_ID_VC1_W<INT_FORCE_DATA_ID_SPEC> {
239 FORCE_ERR_ID_VC1_W::new(self, 1)
240 }
241 #[doc = "Bit 2 - NA"]
242 #[inline(always)]
243 #[must_use]
244 pub fn force_err_id_vc2(&mut self) -> FORCE_ERR_ID_VC2_W<INT_FORCE_DATA_ID_SPEC> {
245 FORCE_ERR_ID_VC2_W::new(self, 2)
246 }
247 #[doc = "Bit 3 - NA"]
248 #[inline(always)]
249 #[must_use]
250 pub fn force_err_id_vc3(&mut self) -> FORCE_ERR_ID_VC3_W<INT_FORCE_DATA_ID_SPEC> {
251 FORCE_ERR_ID_VC3_W::new(self, 3)
252 }
253 #[doc = "Bit 4 - NA"]
254 #[inline(always)]
255 #[must_use]
256 pub fn force_err_id_vc4(&mut self) -> FORCE_ERR_ID_VC4_W<INT_FORCE_DATA_ID_SPEC> {
257 FORCE_ERR_ID_VC4_W::new(self, 4)
258 }
259 #[doc = "Bit 5 - NA"]
260 #[inline(always)]
261 #[must_use]
262 pub fn force_err_id_vc5(&mut self) -> FORCE_ERR_ID_VC5_W<INT_FORCE_DATA_ID_SPEC> {
263 FORCE_ERR_ID_VC5_W::new(self, 5)
264 }
265 #[doc = "Bit 6 - NA"]
266 #[inline(always)]
267 #[must_use]
268 pub fn force_err_id_vc6(&mut self) -> FORCE_ERR_ID_VC6_W<INT_FORCE_DATA_ID_SPEC> {
269 FORCE_ERR_ID_VC6_W::new(self, 6)
270 }
271 #[doc = "Bit 7 - NA"]
272 #[inline(always)]
273 #[must_use]
274 pub fn force_err_id_vc7(&mut self) -> FORCE_ERR_ID_VC7_W<INT_FORCE_DATA_ID_SPEC> {
275 FORCE_ERR_ID_VC7_W::new(self, 7)
276 }
277 #[doc = "Bit 8 - NA"]
278 #[inline(always)]
279 #[must_use]
280 pub fn force_err_id_vc8(&mut self) -> FORCE_ERR_ID_VC8_W<INT_FORCE_DATA_ID_SPEC> {
281 FORCE_ERR_ID_VC8_W::new(self, 8)
282 }
283 #[doc = "Bit 9 - NA"]
284 #[inline(always)]
285 #[must_use]
286 pub fn force_err_id_vc9(&mut self) -> FORCE_ERR_ID_VC9_W<INT_FORCE_DATA_ID_SPEC> {
287 FORCE_ERR_ID_VC9_W::new(self, 9)
288 }
289 #[doc = "Bit 10 - NA"]
290 #[inline(always)]
291 #[must_use]
292 pub fn force_err_id_vc10(&mut self) -> FORCE_ERR_ID_VC10_W<INT_FORCE_DATA_ID_SPEC> {
293 FORCE_ERR_ID_VC10_W::new(self, 10)
294 }
295 #[doc = "Bit 11 - NA"]
296 #[inline(always)]
297 #[must_use]
298 pub fn force_err_id_vc11(&mut self) -> FORCE_ERR_ID_VC11_W<INT_FORCE_DATA_ID_SPEC> {
299 FORCE_ERR_ID_VC11_W::new(self, 11)
300 }
301 #[doc = "Bit 12 - NA"]
302 #[inline(always)]
303 #[must_use]
304 pub fn force_err_id_vc12(&mut self) -> FORCE_ERR_ID_VC12_W<INT_FORCE_DATA_ID_SPEC> {
305 FORCE_ERR_ID_VC12_W::new(self, 12)
306 }
307 #[doc = "Bit 13 - NA"]
308 #[inline(always)]
309 #[must_use]
310 pub fn force_err_id_vc13(&mut self) -> FORCE_ERR_ID_VC13_W<INT_FORCE_DATA_ID_SPEC> {
311 FORCE_ERR_ID_VC13_W::new(self, 13)
312 }
313 #[doc = "Bit 14 - NA"]
314 #[inline(always)]
315 #[must_use]
316 pub fn force_err_id_vc14(&mut self) -> FORCE_ERR_ID_VC14_W<INT_FORCE_DATA_ID_SPEC> {
317 FORCE_ERR_ID_VC14_W::new(self, 14)
318 }
319 #[doc = "Bit 15 - NA"]
320 #[inline(always)]
321 #[must_use]
322 pub fn force_err_id_vc15(&mut self) -> FORCE_ERR_ID_VC15_W<INT_FORCE_DATA_ID_SPEC> {
323 FORCE_ERR_ID_VC15_W::new(self, 15)
324 }
325}
326#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_force_data_id::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_force_data_id::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
327pub struct INT_FORCE_DATA_ID_SPEC;
328impl crate::RegisterSpec for INT_FORCE_DATA_ID_SPEC {
329 type Ux = u32;
330}
331#[doc = "`read()` method returns [`int_force_data_id::R`](R) reader structure"]
332impl crate::Readable for INT_FORCE_DATA_ID_SPEC {}
333#[doc = "`write(|w| ..)` method takes [`int_force_data_id::W`](W) writer structure"]
334impl crate::Writable for INT_FORCE_DATA_ID_SPEC {
335 type Safety = crate::Unsafe;
336 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
337 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
338}
339#[doc = "`reset()` method sets INT_FORCE_DATA_ID to value 0"]
340impl crate::Resettable for INT_FORCE_DATA_ID_SPEC {
341 const RESET_VALUE: u32 = 0;
342}