1#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"BUS Control"]
28unsafe impl ::core::marker::Send for super::Bus {}
29unsafe impl ::core::marker::Sync for super::Bus {}
30impl super::Bus {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "Master Bus Control Register SYS"]
38 #[inline(always)]
39 pub const fn busmcntsys(
40 &self,
41 ) -> &'static crate::common::Reg<self::Busmcntsys_SPEC, crate::common::RW> {
42 unsafe {
43 crate::common::Reg::<self::Busmcntsys_SPEC, crate::common::RW>::from_ptr(
44 self._svd2pac_as_ptr().add(4104usize),
45 )
46 }
47 }
48
49 #[doc = "Master Bus Control Register DMA"]
50 #[inline(always)]
51 pub const fn busmcntdma(
52 &self,
53 ) -> &'static crate::common::Reg<self::Busmcntdma_SPEC, crate::common::RW> {
54 unsafe {
55 crate::common::Reg::<self::Busmcntdma_SPEC, crate::common::RW>::from_ptr(
56 self._svd2pac_as_ptr().add(4108usize),
57 )
58 }
59 }
60
61 #[doc = "Bus Error Address Register 3"]
62 #[inline(always)]
63 pub const fn bus3erradd(
64 &self,
65 ) -> &'static crate::common::Reg<self::Bus3Erradd_SPEC, crate::common::R> {
66 unsafe {
67 crate::common::Reg::<self::Bus3Erradd_SPEC, crate::common::R>::from_ptr(
68 self._svd2pac_as_ptr().add(6176usize),
69 )
70 }
71 }
72
73 #[doc = "BUS Error Status Register 3"]
74 #[inline(always)]
75 pub const fn bus3errstat(
76 &self,
77 ) -> &'static crate::common::Reg<self::Bus3Errstat_SPEC, crate::common::R> {
78 unsafe {
79 crate::common::Reg::<self::Bus3Errstat_SPEC, crate::common::R>::from_ptr(
80 self._svd2pac_as_ptr().add(6180usize),
81 )
82 }
83 }
84
85 #[doc = "Bus Error Address Register 4"]
86 #[inline(always)]
87 pub const fn bus4erradd(
88 &self,
89 ) -> &'static crate::common::Reg<self::Bus4Erradd_SPEC, crate::common::R> {
90 unsafe {
91 crate::common::Reg::<self::Bus4Erradd_SPEC, crate::common::R>::from_ptr(
92 self._svd2pac_as_ptr().add(6192usize),
93 )
94 }
95 }
96
97 #[doc = "BUS Error Status Register 4"]
98 #[inline(always)]
99 pub const fn bus4errstat(
100 &self,
101 ) -> &'static crate::common::Reg<self::Bus4Errstat_SPEC, crate::common::R> {
102 unsafe {
103 crate::common::Reg::<self::Bus4Errstat_SPEC, crate::common::R>::from_ptr(
104 self._svd2pac_as_ptr().add(6196usize),
105 )
106 }
107 }
108}
109#[doc(hidden)]
110#[derive(Copy, Clone, Eq, PartialEq)]
111pub struct Busmcntsys_SPEC;
112impl crate::sealed::RegSpec for Busmcntsys_SPEC {
113 type DataType = u16;
114}
115
116#[doc = "Master Bus Control Register SYS"]
117pub type Busmcntsys = crate::RegValueT<Busmcntsys_SPEC>;
118
119impl Busmcntsys {
120 #[doc = "Ignore Error Responses"]
121 #[inline(always)]
122 pub fn ieres(
123 self,
124 ) -> crate::common::RegisterField<
125 15,
126 0x1,
127 1,
128 0,
129 busmcntsys::Ieres,
130 busmcntsys::Ieres,
131 Busmcntsys_SPEC,
132 crate::common::RW,
133 > {
134 crate::common::RegisterField::<
135 15,
136 0x1,
137 1,
138 0,
139 busmcntsys::Ieres,
140 busmcntsys::Ieres,
141 Busmcntsys_SPEC,
142 crate::common::RW,
143 >::from_register(self, 0)
144 }
145}
146impl ::core::default::Default for Busmcntsys {
147 #[inline(always)]
148 fn default() -> Busmcntsys {
149 <crate::RegValueT<Busmcntsys_SPEC> as RegisterValue<_>>::new(0)
150 }
151}
152pub mod busmcntsys {
153
154 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
155 pub struct Ieres_SPEC;
156 pub type Ieres = crate::EnumBitfieldStruct<u8, Ieres_SPEC>;
157 impl Ieres {
158 #[doc = "A bus error is reported."]
159 pub const _0: Self = Self::new(0);
160
161 #[doc = "A bus error is not reported."]
162 pub const _1: Self = Self::new(1);
163 }
164}
165#[doc(hidden)]
166#[derive(Copy, Clone, Eq, PartialEq)]
167pub struct Busmcntdma_SPEC;
168impl crate::sealed::RegSpec for Busmcntdma_SPEC {
169 type DataType = u16;
170}
171
172#[doc = "Master Bus Control Register DMA"]
173pub type Busmcntdma = crate::RegValueT<Busmcntdma_SPEC>;
174
175impl Busmcntdma {
176 #[doc = "Ignore Error Responses"]
177 #[inline(always)]
178 pub fn ieres(
179 self,
180 ) -> crate::common::RegisterField<
181 15,
182 0x1,
183 1,
184 0,
185 busmcntdma::Ieres,
186 busmcntdma::Ieres,
187 Busmcntdma_SPEC,
188 crate::common::RW,
189 > {
190 crate::common::RegisterField::<
191 15,
192 0x1,
193 1,
194 0,
195 busmcntdma::Ieres,
196 busmcntdma::Ieres,
197 Busmcntdma_SPEC,
198 crate::common::RW,
199 >::from_register(self, 0)
200 }
201}
202impl ::core::default::Default for Busmcntdma {
203 #[inline(always)]
204 fn default() -> Busmcntdma {
205 <crate::RegValueT<Busmcntdma_SPEC> as RegisterValue<_>>::new(0)
206 }
207}
208pub mod busmcntdma {
209
210 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
211 pub struct Ieres_SPEC;
212 pub type Ieres = crate::EnumBitfieldStruct<u8, Ieres_SPEC>;
213 impl Ieres {
214 #[doc = "A bus error is reported."]
215 pub const _0: Self = Self::new(0);
216
217 #[doc = "A bus error is not reported."]
218 pub const _1: Self = Self::new(1);
219 }
220}
221#[doc(hidden)]
222#[derive(Copy, Clone, Eq, PartialEq)]
223pub struct Bus3Erradd_SPEC;
224impl crate::sealed::RegSpec for Bus3Erradd_SPEC {
225 type DataType = u32;
226}
227
228#[doc = "Bus Error Address Register 3"]
229pub type Bus3Erradd = crate::RegValueT<Bus3Erradd_SPEC>;
230
231impl Bus3Erradd {
232 #[doc = "Bus Error Address"]
233 #[inline(always)]
234 pub fn berad(
235 self,
236 ) -> crate::common::RegisterField<
237 0,
238 0xffffffff,
239 1,
240 0,
241 u32,
242 u32,
243 Bus3Erradd_SPEC,
244 crate::common::R,
245 > {
246 crate::common::RegisterField::<
247 0,
248 0xffffffff,
249 1,
250 0,
251 u32,
252 u32,
253 Bus3Erradd_SPEC,
254 crate::common::R,
255 >::from_register(self, 0)
256 }
257}
258impl ::core::default::Default for Bus3Erradd {
259 #[inline(always)]
260 fn default() -> Bus3Erradd {
261 <crate::RegValueT<Bus3Erradd_SPEC> as RegisterValue<_>>::new(0)
262 }
263}
264
265#[doc(hidden)]
266#[derive(Copy, Clone, Eq, PartialEq)]
267pub struct Bus3Errstat_SPEC;
268impl crate::sealed::RegSpec for Bus3Errstat_SPEC {
269 type DataType = u8;
270}
271
272#[doc = "BUS Error Status Register 3"]
273pub type Bus3Errstat = crate::RegValueT<Bus3Errstat_SPEC>;
274
275impl Bus3Errstat {
276 #[doc = "Error Access Status flag"]
277 #[inline(always)]
278 pub fn accstat(
279 self,
280 ) -> crate::common::RegisterField<
281 0,
282 0x1,
283 1,
284 0,
285 bus3errstat::Accstat,
286 bus3errstat::Accstat,
287 Bus3Errstat_SPEC,
288 crate::common::R,
289 > {
290 crate::common::RegisterField::<
291 0,
292 0x1,
293 1,
294 0,
295 bus3errstat::Accstat,
296 bus3errstat::Accstat,
297 Bus3Errstat_SPEC,
298 crate::common::R,
299 >::from_register(self, 0)
300 }
301
302 #[doc = "Bus Error Status flag"]
303 #[inline(always)]
304 pub fn errstat(
305 self,
306 ) -> crate::common::RegisterField<
307 7,
308 0x1,
309 1,
310 0,
311 bus3errstat::Errstat,
312 bus3errstat::Errstat,
313 Bus3Errstat_SPEC,
314 crate::common::R,
315 > {
316 crate::common::RegisterField::<
317 7,
318 0x1,
319 1,
320 0,
321 bus3errstat::Errstat,
322 bus3errstat::Errstat,
323 Bus3Errstat_SPEC,
324 crate::common::R,
325 >::from_register(self, 0)
326 }
327}
328impl ::core::default::Default for Bus3Errstat {
329 #[inline(always)]
330 fn default() -> Bus3Errstat {
331 <crate::RegValueT<Bus3Errstat_SPEC> as RegisterValue<_>>::new(0)
332 }
333}
334pub mod bus3errstat {
335
336 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
337 pub struct Accstat_SPEC;
338 pub type Accstat = crate::EnumBitfieldStruct<u8, Accstat_SPEC>;
339 impl Accstat {
340 #[doc = "Read access"]
341 pub const _0: Self = Self::new(0);
342
343 #[doc = "Write access"]
344 pub const _1: Self = Self::new(1);
345 }
346 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
347 pub struct Errstat_SPEC;
348 pub type Errstat = crate::EnumBitfieldStruct<u8, Errstat_SPEC>;
349 impl Errstat {
350 #[doc = "No bus error occurred."]
351 pub const _0: Self = Self::new(0);
352
353 #[doc = "Bus error occurred."]
354 pub const _1: Self = Self::new(1);
355 }
356}
357#[doc(hidden)]
358#[derive(Copy, Clone, Eq, PartialEq)]
359pub struct Bus4Erradd_SPEC;
360impl crate::sealed::RegSpec for Bus4Erradd_SPEC {
361 type DataType = u32;
362}
363
364#[doc = "Bus Error Address Register 4"]
365pub type Bus4Erradd = crate::RegValueT<Bus4Erradd_SPEC>;
366
367impl Bus4Erradd {
368 #[doc = "Bus Error Address"]
369 #[inline(always)]
370 pub fn berad(
371 self,
372 ) -> crate::common::RegisterField<
373 0,
374 0xffffffff,
375 1,
376 0,
377 u32,
378 u32,
379 Bus4Erradd_SPEC,
380 crate::common::R,
381 > {
382 crate::common::RegisterField::<
383 0,
384 0xffffffff,
385 1,
386 0,
387 u32,
388 u32,
389 Bus4Erradd_SPEC,
390 crate::common::R,
391 >::from_register(self, 0)
392 }
393}
394impl ::core::default::Default for Bus4Erradd {
395 #[inline(always)]
396 fn default() -> Bus4Erradd {
397 <crate::RegValueT<Bus4Erradd_SPEC> as RegisterValue<_>>::new(0)
398 }
399}
400
401#[doc(hidden)]
402#[derive(Copy, Clone, Eq, PartialEq)]
403pub struct Bus4Errstat_SPEC;
404impl crate::sealed::RegSpec for Bus4Errstat_SPEC {
405 type DataType = u8;
406}
407
408#[doc = "BUS Error Status Register 4"]
409pub type Bus4Errstat = crate::RegValueT<Bus4Errstat_SPEC>;
410
411impl Bus4Errstat {
412 #[doc = "Error Access Status flag"]
413 #[inline(always)]
414 pub fn accstat(
415 self,
416 ) -> crate::common::RegisterField<
417 0,
418 0x1,
419 1,
420 0,
421 bus4errstat::Accstat,
422 bus4errstat::Accstat,
423 Bus4Errstat_SPEC,
424 crate::common::R,
425 > {
426 crate::common::RegisterField::<
427 0,
428 0x1,
429 1,
430 0,
431 bus4errstat::Accstat,
432 bus4errstat::Accstat,
433 Bus4Errstat_SPEC,
434 crate::common::R,
435 >::from_register(self, 0)
436 }
437
438 #[doc = "Bus Error Status flag"]
439 #[inline(always)]
440 pub fn errstat(
441 self,
442 ) -> crate::common::RegisterField<
443 7,
444 0x1,
445 1,
446 0,
447 bus4errstat::Errstat,
448 bus4errstat::Errstat,
449 Bus4Errstat_SPEC,
450 crate::common::R,
451 > {
452 crate::common::RegisterField::<
453 7,
454 0x1,
455 1,
456 0,
457 bus4errstat::Errstat,
458 bus4errstat::Errstat,
459 Bus4Errstat_SPEC,
460 crate::common::R,
461 >::from_register(self, 0)
462 }
463}
464impl ::core::default::Default for Bus4Errstat {
465 #[inline(always)]
466 fn default() -> Bus4Errstat {
467 <crate::RegValueT<Bus4Errstat_SPEC> as RegisterValue<_>>::new(0)
468 }
469}
470pub mod bus4errstat {
471
472 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
473 pub struct Accstat_SPEC;
474 pub type Accstat = crate::EnumBitfieldStruct<u8, Accstat_SPEC>;
475 impl Accstat {
476 #[doc = "Read access"]
477 pub const _0: Self = Self::new(0);
478
479 #[doc = "Write access"]
480 pub const _1: Self = Self::new(1);
481 }
482 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
483 pub struct Errstat_SPEC;
484 pub type Errstat = crate::EnumBitfieldStruct<u8, Errstat_SPEC>;
485 impl Errstat {
486 #[doc = "No bus error occurred."]
487 pub const _0: Self = Self::new(0);
488
489 #[doc = "Bus error occurred."]
490 pub const _1: Self = Self::new(1);
491 }
492}