1#[doc = "Register `SCAPABILITIES` reader"]
2pub type R = crate::R<ScapabilitiesSpec>;
3#[doc = "ID 48b Handler\n\nValue on reset: 0"]
4#[cfg_attr(feature = "defmt", derive(defmt::Format))]
5#[derive(Clone, Copy, Debug, PartialEq, Eq)]
6#[repr(u8)]
7pub enum Idena {
8 #[doc = "0: Application"]
9 Application = 0,
10 #[doc = "1: Hardware"]
11 Hw = 1,
12 #[doc = "2: Hardware, but the I3C module instance handles ID 48b"]
13 HwBut = 2,
14 #[doc = "3: A part number register (PARTNO)"]
15 Partno = 3,
16}
17impl From<Idena> for u8 {
18 #[inline(always)]
19 fn from(variant: Idena) -> Self {
20 variant as _
21 }
22}
23impl crate::FieldSpec for Idena {
24 type Ux = u8;
25}
26impl crate::IsEnum for Idena {}
27#[doc = "Field `IDENA` reader - ID 48b Handler"]
28pub type IdenaR = crate::FieldReader<Idena>;
29impl IdenaR {
30 #[doc = "Get enumerated values variant"]
31 #[inline(always)]
32 pub const fn variant(&self) -> Idena {
33 match self.bits {
34 0 => Idena::Application,
35 1 => Idena::Hw,
36 2 => Idena::HwBut,
37 3 => Idena::Partno,
38 _ => unreachable!(),
39 }
40 }
41 #[doc = "Application"]
42 #[inline(always)]
43 pub fn is_application(&self) -> bool {
44 *self == Idena::Application
45 }
46 #[doc = "Hardware"]
47 #[inline(always)]
48 pub fn is_hw(&self) -> bool {
49 *self == Idena::Hw
50 }
51 #[doc = "Hardware, but the I3C module instance handles ID 48b"]
52 #[inline(always)]
53 pub fn is_hw_but(&self) -> bool {
54 *self == Idena::HwBut
55 }
56 #[doc = "A part number register (PARTNO)"]
57 #[inline(always)]
58 pub fn is_partno(&self) -> bool {
59 *self == Idena::Partno
60 }
61}
62#[doc = "ID Register\n\nValue on reset: 12"]
63#[cfg_attr(feature = "defmt", derive(defmt::Format))]
64#[derive(Clone, Copy, Debug, PartialEq, Eq)]
65#[repr(u8)]
66pub enum Idreg {
67 #[doc = "0: All ID register features disabled"]
68 AllDisabled = 0,
69 #[doc = "1: ID Instance is a register; used if there is no PARTNO register"]
70 IdInstance = 1,
71}
72impl From<Idreg> for u8 {
73 #[inline(always)]
74 fn from(variant: Idreg) -> Self {
75 variant as _
76 }
77}
78impl crate::FieldSpec for Idreg {
79 type Ux = u8;
80}
81impl crate::IsEnum for Idreg {}
82#[doc = "Field `IDREG` reader - ID Register"]
83pub type IdregR = crate::FieldReader<Idreg>;
84impl IdregR {
85 #[doc = "Get enumerated values variant"]
86 #[inline(always)]
87 pub const fn variant(&self) -> Option<Idreg> {
88 match self.bits {
89 0 => Some(Idreg::AllDisabled),
90 1 => Some(Idreg::IdInstance),
91 _ => None,
92 }
93 }
94 #[doc = "All ID register features disabled"]
95 #[inline(always)]
96 pub fn is_all_disabled(&self) -> bool {
97 *self == Idreg::AllDisabled
98 }
99 #[doc = "ID Instance is a register; used if there is no PARTNO register"]
100 #[inline(always)]
101 pub fn is_id_instance(&self) -> bool {
102 *self == Idreg::IdInstance
103 }
104}
105#[doc = "High Data Rate Support\n\nValue on reset: 1"]
106#[cfg_attr(feature = "defmt", derive(defmt::Format))]
107#[derive(Clone, Copy, Debug, PartialEq, Eq)]
108#[repr(u8)]
109pub enum Hdrsupp {
110 #[doc = "0: No HDR modes supported"]
111 NoHdr = 0,
112 #[doc = "1: DDR mode supported"]
113 Ddr = 1,
114}
115impl From<Hdrsupp> for u8 {
116 #[inline(always)]
117 fn from(variant: Hdrsupp) -> Self {
118 variant as _
119 }
120}
121impl crate::FieldSpec for Hdrsupp {
122 type Ux = u8;
123}
124impl crate::IsEnum for Hdrsupp {}
125#[doc = "Field `HDRSUPP` reader - High Data Rate Support"]
126pub type HdrsuppR = crate::FieldReader<Hdrsupp>;
127impl HdrsuppR {
128 #[doc = "Get enumerated values variant"]
129 #[inline(always)]
130 pub const fn variant(&self) -> Option<Hdrsupp> {
131 match self.bits {
132 0 => Some(Hdrsupp::NoHdr),
133 1 => Some(Hdrsupp::Ddr),
134 _ => None,
135 }
136 }
137 #[doc = "No HDR modes supported"]
138 #[inline(always)]
139 pub fn is_no_hdr(&self) -> bool {
140 *self == Hdrsupp::NoHdr
141 }
142 #[doc = "DDR mode supported"]
143 #[inline(always)]
144 pub fn is_ddr(&self) -> bool {
145 *self == Hdrsupp::Ddr
146 }
147}
148#[doc = "Controller\n\nValue on reset: 1"]
149#[cfg_attr(feature = "defmt", derive(defmt::Format))]
150#[derive(Clone, Copy, Debug, PartialEq, Eq)]
151pub enum Master {
152 #[doc = "0: Not supported"]
153 Masternotsupported = 0,
154 #[doc = "1: Supported"]
155 Mastersupported = 1,
156}
157impl From<Master> for bool {
158 #[inline(always)]
159 fn from(variant: Master) -> Self {
160 variant as u8 != 0
161 }
162}
163#[doc = "Field `MASTER` reader - Controller"]
164pub type MasterR = crate::BitReader<Master>;
165impl MasterR {
166 #[doc = "Get enumerated values variant"]
167 #[inline(always)]
168 pub const fn variant(&self) -> Master {
169 match self.bits {
170 false => Master::Masternotsupported,
171 true => Master::Mastersupported,
172 }
173 }
174 #[doc = "Not supported"]
175 #[inline(always)]
176 pub fn is_masternotsupported(&self) -> bool {
177 *self == Master::Masternotsupported
178 }
179 #[doc = "Supported"]
180 #[inline(always)]
181 pub fn is_mastersupported(&self) -> bool {
182 *self == Master::Mastersupported
183 }
184}
185#[doc = "Static Address\n\nValue on reset: 3"]
186#[cfg_attr(feature = "defmt", derive(defmt::Format))]
187#[derive(Clone, Copy, Debug, PartialEq, Eq)]
188#[repr(u8)]
189pub enum Saddr {
190 #[doc = "0: No static address"]
191 NoStatic = 0,
192 #[doc = "1: Static address is fixed in hardware"]
193 Static = 1,
194 #[doc = "2: Hardware controls the static address dynamically (for example, from the pin strap)"]
195 HwControl = 2,
196 #[doc = "3: SCONFIG register supplies the static address"]
197 Config = 3,
198}
199impl From<Saddr> for u8 {
200 #[inline(always)]
201 fn from(variant: Saddr) -> Self {
202 variant as _
203 }
204}
205impl crate::FieldSpec for Saddr {
206 type Ux = u8;
207}
208impl crate::IsEnum for Saddr {}
209#[doc = "Field `SADDR` reader - Static Address"]
210pub type SaddrR = crate::FieldReader<Saddr>;
211impl SaddrR {
212 #[doc = "Get enumerated values variant"]
213 #[inline(always)]
214 pub const fn variant(&self) -> Saddr {
215 match self.bits {
216 0 => Saddr::NoStatic,
217 1 => Saddr::Static,
218 2 => Saddr::HwControl,
219 3 => Saddr::Config,
220 _ => unreachable!(),
221 }
222 }
223 #[doc = "No static address"]
224 #[inline(always)]
225 pub fn is_no_static(&self) -> bool {
226 *self == Saddr::NoStatic
227 }
228 #[doc = "Static address is fixed in hardware"]
229 #[inline(always)]
230 pub fn is_static(&self) -> bool {
231 *self == Saddr::Static
232 }
233 #[doc = "Hardware controls the static address dynamically (for example, from the pin strap)"]
234 #[inline(always)]
235 pub fn is_hw_control(&self) -> bool {
236 *self == Saddr::HwControl
237 }
238 #[doc = "SCONFIG register supplies the static address"]
239 #[inline(always)]
240 pub fn is_config(&self) -> bool {
241 *self == Saddr::Config
242 }
243}
244#[doc = "Common Command Codes Handling\n\nValue on reset: 15"]
245#[cfg_attr(feature = "defmt", derive(defmt::Format))]
246#[derive(Clone, Copy, Debug, PartialEq, Eq)]
247#[repr(u8)]
248pub enum Ccchandle {
249 #[doc = "0: All handling features disabled"]
250 AllDisabled = 0,
251 #[doc = "1: The I3C module manages events, activities, status, HDR, and if enabled for it, ID and static-address-related items"]
252 BlockHandle = 1,
253}
254impl From<Ccchandle> for u8 {
255 #[inline(always)]
256 fn from(variant: Ccchandle) -> Self {
257 variant as _
258 }
259}
260impl crate::FieldSpec for Ccchandle {
261 type Ux = u8;
262}
263impl crate::IsEnum for Ccchandle {}
264#[doc = "Field `CCCHANDLE` reader - Common Command Codes Handling"]
265pub type CcchandleR = crate::FieldReader<Ccchandle>;
266impl CcchandleR {
267 #[doc = "Get enumerated values variant"]
268 #[inline(always)]
269 pub const fn variant(&self) -> Option<Ccchandle> {
270 match self.bits {
271 0 => Some(Ccchandle::AllDisabled),
272 1 => Some(Ccchandle::BlockHandle),
273 _ => None,
274 }
275 }
276 #[doc = "All handling features disabled"]
277 #[inline(always)]
278 pub fn is_all_disabled(&self) -> bool {
279 *self == Ccchandle::AllDisabled
280 }
281 #[doc = "The I3C module manages events, activities, status, HDR, and if enabled for it, ID and static-address-related items"]
282 #[inline(always)]
283 pub fn is_block_handle(&self) -> bool {
284 *self == Ccchandle::BlockHandle
285 }
286}
287#[doc = "In-Band Interrupts, Controller Requests, Hot-Join Events\n\nValue on reset: 31"]
288#[cfg_attr(feature = "defmt", derive(defmt::Format))]
289#[derive(Clone, Copy, Debug, PartialEq, Eq)]
290#[repr(u8)]
291pub enum IbiMrHj {
292 #[doc = "0: Application cannot generate IBI, CR, or HJ"]
293 AllDisabled = 0,
294 #[doc = "1: Application can generate an IBI"]
295 Ibi = 1,
296}
297impl From<IbiMrHj> for u8 {
298 #[inline(always)]
299 fn from(variant: IbiMrHj) -> Self {
300 variant as _
301 }
302}
303impl crate::FieldSpec for IbiMrHj {
304 type Ux = u8;
305}
306impl crate::IsEnum for IbiMrHj {}
307#[doc = "Field `IBI_MR_HJ` reader - In-Band Interrupts, Controller Requests, Hot-Join Events"]
308pub type IbiMrHjR = crate::FieldReader<IbiMrHj>;
309impl IbiMrHjR {
310 #[doc = "Get enumerated values variant"]
311 #[inline(always)]
312 pub const fn variant(&self) -> Option<IbiMrHj> {
313 match self.bits {
314 0 => Some(IbiMrHj::AllDisabled),
315 1 => Some(IbiMrHj::Ibi),
316 _ => None,
317 }
318 }
319 #[doc = "Application cannot generate IBI, CR, or HJ"]
320 #[inline(always)]
321 pub fn is_all_disabled(&self) -> bool {
322 *self == IbiMrHj::AllDisabled
323 }
324 #[doc = "Application can generate an IBI"]
325 #[inline(always)]
326 pub fn is_ibi(&self) -> bool {
327 *self == IbiMrHj::Ibi
328 }
329}
330#[doc = "Time Control\n\nValue on reset: 1"]
331#[cfg_attr(feature = "defmt", derive(defmt::Format))]
332#[derive(Clone, Copy, Debug, PartialEq, Eq)]
333pub enum Timectrl {
334 #[doc = "0: No time control supported"]
335 NoTimeControlType = 0,
336 #[doc = "1: At least one time-control type supported"]
337 Atleast1TimeControl = 1,
338}
339impl From<Timectrl> for bool {
340 #[inline(always)]
341 fn from(variant: Timectrl) -> Self {
342 variant as u8 != 0
343 }
344}
345#[doc = "Field `TIMECTRL` reader - Time Control"]
346pub type TimectrlR = crate::BitReader<Timectrl>;
347impl TimectrlR {
348 #[doc = "Get enumerated values variant"]
349 #[inline(always)]
350 pub const fn variant(&self) -> Timectrl {
351 match self.bits {
352 false => Timectrl::NoTimeControlType,
353 true => Timectrl::Atleast1TimeControl,
354 }
355 }
356 #[doc = "No time control supported"]
357 #[inline(always)]
358 pub fn is_no_time_control_type(&self) -> bool {
359 *self == Timectrl::NoTimeControlType
360 }
361 #[doc = "At least one time-control type supported"]
362 #[inline(always)]
363 pub fn is_atleast1_time_control(&self) -> bool {
364 *self == Timectrl::Atleast1TimeControl
365 }
366}
367#[doc = "External FIFO\n\nValue on reset: 0"]
368#[cfg_attr(feature = "defmt", derive(defmt::Format))]
369#[derive(Clone, Copy, Debug, PartialEq, Eq)]
370#[repr(u8)]
371pub enum Extfifo {
372 #[doc = "0: No external FIFO available"]
373 NoExtFifo = 0,
374 #[doc = "1: Standard available or free external FIFO"]
375 StdExtFifo = 1,
376 #[doc = "2: Request track external FIFO"]
377 RequestExtFifo = 2,
378}
379impl From<Extfifo> for u8 {
380 #[inline(always)]
381 fn from(variant: Extfifo) -> Self {
382 variant as _
383 }
384}
385impl crate::FieldSpec for Extfifo {
386 type Ux = u8;
387}
388impl crate::IsEnum for Extfifo {}
389#[doc = "Field `EXTFIFO` reader - External FIFO"]
390pub type ExtfifoR = crate::FieldReader<Extfifo>;
391impl ExtfifoR {
392 #[doc = "Get enumerated values variant"]
393 #[inline(always)]
394 pub const fn variant(&self) -> Option<Extfifo> {
395 match self.bits {
396 0 => Some(Extfifo::NoExtFifo),
397 1 => Some(Extfifo::StdExtFifo),
398 2 => Some(Extfifo::RequestExtFifo),
399 _ => None,
400 }
401 }
402 #[doc = "No external FIFO available"]
403 #[inline(always)]
404 pub fn is_no_ext_fifo(&self) -> bool {
405 *self == Extfifo::NoExtFifo
406 }
407 #[doc = "Standard available or free external FIFO"]
408 #[inline(always)]
409 pub fn is_std_ext_fifo(&self) -> bool {
410 *self == Extfifo::StdExtFifo
411 }
412 #[doc = "Request track external FIFO"]
413 #[inline(always)]
414 pub fn is_request_ext_fifo(&self) -> bool {
415 *self == Extfifo::RequestExtFifo
416 }
417}
418#[doc = "FIFO Transmit\n\nValue on reset: 2"]
419#[cfg_attr(feature = "defmt", derive(defmt::Format))]
420#[derive(Clone, Copy, Debug, PartialEq, Eq)]
421#[repr(u8)]
422pub enum Fifotx {
423 #[doc = "0: Two"]
424 Fifo2byte = 0,
425 #[doc = "1: Four"]
426 Fifo4byte = 1,
427 #[doc = "2: Eight"]
428 Fifo8byte = 2,
429 #[doc = "3: 16 or larger"]
430 Fifo16byte = 3,
431}
432impl From<Fifotx> for u8 {
433 #[inline(always)]
434 fn from(variant: Fifotx) -> Self {
435 variant as _
436 }
437}
438impl crate::FieldSpec for Fifotx {
439 type Ux = u8;
440}
441impl crate::IsEnum for Fifotx {}
442#[doc = "Field `FIFOTX` reader - FIFO Transmit"]
443pub type FifotxR = crate::FieldReader<Fifotx>;
444impl FifotxR {
445 #[doc = "Get enumerated values variant"]
446 #[inline(always)]
447 pub const fn variant(&self) -> Fifotx {
448 match self.bits {
449 0 => Fifotx::Fifo2byte,
450 1 => Fifotx::Fifo4byte,
451 2 => Fifotx::Fifo8byte,
452 3 => Fifotx::Fifo16byte,
453 _ => unreachable!(),
454 }
455 }
456 #[doc = "Two"]
457 #[inline(always)]
458 pub fn is_fifo_2byte(&self) -> bool {
459 *self == Fifotx::Fifo2byte
460 }
461 #[doc = "Four"]
462 #[inline(always)]
463 pub fn is_fifo_4byte(&self) -> bool {
464 *self == Fifotx::Fifo4byte
465 }
466 #[doc = "Eight"]
467 #[inline(always)]
468 pub fn is_fifo_8byte(&self) -> bool {
469 *self == Fifotx::Fifo8byte
470 }
471 #[doc = "16 or larger"]
472 #[inline(always)]
473 pub fn is_fifo_16byte(&self) -> bool {
474 *self == Fifotx::Fifo16byte
475 }
476}
477#[doc = "FIFO Receive\n\nValue on reset: 2"]
478#[cfg_attr(feature = "defmt", derive(defmt::Format))]
479#[derive(Clone, Copy, Debug, PartialEq, Eq)]
480#[repr(u8)]
481pub enum Fiforx {
482 #[doc = "0: Two or three"]
483 Fifo2byte = 0,
484 #[doc = "1: Four"]
485 Fifo4byte = 1,
486 #[doc = "2: Eight"]
487 Fifo8byte = 2,
488 #[doc = "3: 16 or larger"]
489 Fifo16byte = 3,
490}
491impl From<Fiforx> for u8 {
492 #[inline(always)]
493 fn from(variant: Fiforx) -> Self {
494 variant as _
495 }
496}
497impl crate::FieldSpec for Fiforx {
498 type Ux = u8;
499}
500impl crate::IsEnum for Fiforx {}
501#[doc = "Field `FIFORX` reader - FIFO Receive"]
502pub type FiforxR = crate::FieldReader<Fiforx>;
503impl FiforxR {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub const fn variant(&self) -> Fiforx {
507 match self.bits {
508 0 => Fiforx::Fifo2byte,
509 1 => Fiforx::Fifo4byte,
510 2 => Fiforx::Fifo8byte,
511 3 => Fiforx::Fifo16byte,
512 _ => unreachable!(),
513 }
514 }
515 #[doc = "Two or three"]
516 #[inline(always)]
517 pub fn is_fifo_2byte(&self) -> bool {
518 *self == Fiforx::Fifo2byte
519 }
520 #[doc = "Four"]
521 #[inline(always)]
522 pub fn is_fifo_4byte(&self) -> bool {
523 *self == Fiforx::Fifo4byte
524 }
525 #[doc = "Eight"]
526 #[inline(always)]
527 pub fn is_fifo_8byte(&self) -> bool {
528 *self == Fiforx::Fifo8byte
529 }
530 #[doc = "16 or larger"]
531 #[inline(always)]
532 pub fn is_fifo_16byte(&self) -> bool {
533 *self == Fiforx::Fifo16byte
534 }
535}
536#[doc = "Interrupts\n\nValue on reset: 1"]
537#[cfg_attr(feature = "defmt", derive(defmt::Format))]
538#[derive(Clone, Copy, Debug, PartialEq, Eq)]
539pub enum Int {
540 #[doc = "0: Not supported"]
541 Interruptsno = 0,
542 #[doc = "1: Supported"]
543 Interruptsyes = 1,
544}
545impl From<Int> for bool {
546 #[inline(always)]
547 fn from(variant: Int) -> Self {
548 variant as u8 != 0
549 }
550}
551#[doc = "Field `INT` reader - Interrupts"]
552pub type IntR = crate::BitReader<Int>;
553impl IntR {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub const fn variant(&self) -> Int {
557 match self.bits {
558 false => Int::Interruptsno,
559 true => Int::Interruptsyes,
560 }
561 }
562 #[doc = "Not supported"]
563 #[inline(always)]
564 pub fn is_interruptsno(&self) -> bool {
565 *self == Int::Interruptsno
566 }
567 #[doc = "Supported"]
568 #[inline(always)]
569 pub fn is_interruptsyes(&self) -> bool {
570 *self == Int::Interruptsyes
571 }
572}
573#[doc = "Direct Memory Access\n\nValue on reset: 1"]
574#[cfg_attr(feature = "defmt", derive(defmt::Format))]
575#[derive(Clone, Copy, Debug, PartialEq, Eq)]
576pub enum Dma {
577 #[doc = "0: Not supported"]
578 Dmano = 0,
579 #[doc = "1: Supported"]
580 Dmayes = 1,
581}
582impl From<Dma> for bool {
583 #[inline(always)]
584 fn from(variant: Dma) -> Self {
585 variant as u8 != 0
586 }
587}
588#[doc = "Field `DMA` reader - Direct Memory Access"]
589pub type DmaR = crate::BitReader<Dma>;
590impl DmaR {
591 #[doc = "Get enumerated values variant"]
592 #[inline(always)]
593 pub const fn variant(&self) -> Dma {
594 match self.bits {
595 false => Dma::Dmano,
596 true => Dma::Dmayes,
597 }
598 }
599 #[doc = "Not supported"]
600 #[inline(always)]
601 pub fn is_dmano(&self) -> bool {
602 *self == Dma::Dmano
603 }
604 #[doc = "Supported"]
605 #[inline(always)]
606 pub fn is_dmayes(&self) -> bool {
607 *self == Dma::Dmayes
608 }
609}
610impl R {
611 #[doc = "Bits 0:1 - ID 48b Handler"]
612 #[inline(always)]
613 pub fn idena(&self) -> IdenaR {
614 IdenaR::new((self.bits & 3) as u8)
615 }
616 #[doc = "Bits 2:5 - ID Register"]
617 #[inline(always)]
618 pub fn idreg(&self) -> IdregR {
619 IdregR::new(((self.bits >> 2) & 0x0f) as u8)
620 }
621 #[doc = "Bits 6:7 - High Data Rate Support"]
622 #[inline(always)]
623 pub fn hdrsupp(&self) -> HdrsuppR {
624 HdrsuppR::new(((self.bits >> 6) & 3) as u8)
625 }
626 #[doc = "Bit 9 - Controller"]
627 #[inline(always)]
628 pub fn master(&self) -> MasterR {
629 MasterR::new(((self.bits >> 9) & 1) != 0)
630 }
631 #[doc = "Bits 10:11 - Static Address"]
632 #[inline(always)]
633 pub fn saddr(&self) -> SaddrR {
634 SaddrR::new(((self.bits >> 10) & 3) as u8)
635 }
636 #[doc = "Bits 12:15 - Common Command Codes Handling"]
637 #[inline(always)]
638 pub fn ccchandle(&self) -> CcchandleR {
639 CcchandleR::new(((self.bits >> 12) & 0x0f) as u8)
640 }
641 #[doc = "Bits 16:20 - In-Band Interrupts, Controller Requests, Hot-Join Events"]
642 #[inline(always)]
643 pub fn ibi_mr_hj(&self) -> IbiMrHjR {
644 IbiMrHjR::new(((self.bits >> 16) & 0x1f) as u8)
645 }
646 #[doc = "Bit 21 - Time Control"]
647 #[inline(always)]
648 pub fn timectrl(&self) -> TimectrlR {
649 TimectrlR::new(((self.bits >> 21) & 1) != 0)
650 }
651 #[doc = "Bits 23:25 - External FIFO"]
652 #[inline(always)]
653 pub fn extfifo(&self) -> ExtfifoR {
654 ExtfifoR::new(((self.bits >> 23) & 7) as u8)
655 }
656 #[doc = "Bits 26:27 - FIFO Transmit"]
657 #[inline(always)]
658 pub fn fifotx(&self) -> FifotxR {
659 FifotxR::new(((self.bits >> 26) & 3) as u8)
660 }
661 #[doc = "Bits 28:29 - FIFO Receive"]
662 #[inline(always)]
663 pub fn fiforx(&self) -> FiforxR {
664 FiforxR::new(((self.bits >> 28) & 3) as u8)
665 }
666 #[doc = "Bit 30 - Interrupts"]
667 #[inline(always)]
668 pub fn int(&self) -> IntR {
669 IntR::new(((self.bits >> 30) & 1) != 0)
670 }
671 #[doc = "Bit 31 - Direct Memory Access"]
672 #[inline(always)]
673 pub fn dma(&self) -> DmaR {
674 DmaR::new(((self.bits >> 31) & 1) != 0)
675 }
676}
677#[cfg(feature = "debug")]
678impl core::fmt::Debug for R {
679 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
680 f.debug_struct("SCAPABILITIES")
681 .field("idena", &self.idena())
682 .field("idreg", &self.idreg())
683 .field("hdrsupp", &self.hdrsupp())
684 .field("master", &self.master())
685 .field("saddr", &self.saddr())
686 .field("ccchandle", &self.ccchandle())
687 .field("ibi_mr_hj", &self.ibi_mr_hj())
688 .field("timectrl", &self.timectrl())
689 .field("extfifo", &self.extfifo())
690 .field("fifotx", &self.fifotx())
691 .field("fiforx", &self.fiforx())
692 .field("int", &self.int())
693 .field("dma", &self.dma())
694 .finish()
695 }
696}
697#[doc = "Target Capabilities\n\nYou can [`read`](crate::Reg::read) this register and get [`scapabilities::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
698pub struct ScapabilitiesSpec;
699impl crate::RegisterSpec for ScapabilitiesSpec {
700 type Ux = u32;
701}
702#[doc = "`read()` method returns [`scapabilities::R`](R) reader structure"]
703impl crate::Readable for ScapabilitiesSpec {}
704#[doc = "`reset()` method sets SCAPABILITIES to value 0xe83f_fe70"]
705impl crate::Resettable for ScapabilitiesSpec {
706 const RESET_VALUE: u32 = 0xe83f_fe70;
707}