Skip to main content

mcxa_pac/i3c0/
sintset.rs

1#[doc = "Register `SINTSET` reader"]
2pub type R = crate::R<SintsetSpec>;
3#[doc = "Register `SINTSET` writer"]
4pub type W = crate::W<SintsetSpec>;
5#[doc = "Start Interrupt Enable\n\nValue on reset: 0"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum Start {
9    #[doc = "0: Disable"]
10    Disable = 0,
11    #[doc = "1: Enable"]
12    Enable = 1,
13}
14impl From<Start> for bool {
15    #[inline(always)]
16    fn from(variant: Start) -> Self {
17        variant as u8 != 0
18    }
19}
20#[doc = "Field `START` reader - Start Interrupt Enable"]
21pub type StartR = crate::BitReader<Start>;
22impl StartR {
23    #[doc = "Get enumerated values variant"]
24    #[inline(always)]
25    pub const fn variant(&self) -> Start {
26        match self.bits {
27            false => Start::Disable,
28            true => Start::Enable,
29        }
30    }
31    #[doc = "Disable"]
32    #[inline(always)]
33    pub fn is_disable(&self) -> bool {
34        *self == Start::Disable
35    }
36    #[doc = "Enable"]
37    #[inline(always)]
38    pub fn is_enable(&self) -> bool {
39        *self == Start::Enable
40    }
41}
42#[doc = "Field `START` writer - Start Interrupt Enable"]
43pub type StartW<'a, REG> = crate::BitWriter1S<'a, REG, Start>;
44impl<'a, REG> StartW<'a, REG>
45where
46    REG: crate::Writable + crate::RegisterSpec,
47{
48    #[doc = "Disable"]
49    #[inline(always)]
50    pub fn disable(self) -> &'a mut crate::W<REG> {
51        self.variant(Start::Disable)
52    }
53    #[doc = "Enable"]
54    #[inline(always)]
55    pub fn enable(self) -> &'a mut crate::W<REG> {
56        self.variant(Start::Enable)
57    }
58}
59#[doc = "Match Interrupt Enable\n\nValue on reset: 0"]
60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum Matched {
63    #[doc = "0: Disable"]
64    Disable = 0,
65    #[doc = "1: Enable"]
66    Enable = 1,
67}
68impl From<Matched> for bool {
69    #[inline(always)]
70    fn from(variant: Matched) -> Self {
71        variant as u8 != 0
72    }
73}
74#[doc = "Field `MATCHED` reader - Match Interrupt Enable"]
75pub type MatchedR = crate::BitReader<Matched>;
76impl MatchedR {
77    #[doc = "Get enumerated values variant"]
78    #[inline(always)]
79    pub const fn variant(&self) -> Matched {
80        match self.bits {
81            false => Matched::Disable,
82            true => Matched::Enable,
83        }
84    }
85    #[doc = "Disable"]
86    #[inline(always)]
87    pub fn is_disable(&self) -> bool {
88        *self == Matched::Disable
89    }
90    #[doc = "Enable"]
91    #[inline(always)]
92    pub fn is_enable(&self) -> bool {
93        *self == Matched::Enable
94    }
95}
96#[doc = "Field `MATCHED` writer - Match Interrupt Enable"]
97pub type MatchedW<'a, REG> = crate::BitWriter1S<'a, REG, Matched>;
98impl<'a, REG> MatchedW<'a, REG>
99where
100    REG: crate::Writable + crate::RegisterSpec,
101{
102    #[doc = "Disable"]
103    #[inline(always)]
104    pub fn disable(self) -> &'a mut crate::W<REG> {
105        self.variant(Matched::Disable)
106    }
107    #[doc = "Enable"]
108    #[inline(always)]
109    pub fn enable(self) -> &'a mut crate::W<REG> {
110        self.variant(Matched::Enable)
111    }
112}
113#[doc = "Stop Interrupt Enable\n\nValue on reset: 0"]
114#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum Stop {
117    #[doc = "0: Disable"]
118    Disable = 0,
119    #[doc = "1: Enable"]
120    Enable = 1,
121}
122impl From<Stop> for bool {
123    #[inline(always)]
124    fn from(variant: Stop) -> Self {
125        variant as u8 != 0
126    }
127}
128#[doc = "Field `STOP` reader - Stop Interrupt Enable"]
129pub type StopR = crate::BitReader<Stop>;
130impl StopR {
131    #[doc = "Get enumerated values variant"]
132    #[inline(always)]
133    pub const fn variant(&self) -> Stop {
134        match self.bits {
135            false => Stop::Disable,
136            true => Stop::Enable,
137        }
138    }
139    #[doc = "Disable"]
140    #[inline(always)]
141    pub fn is_disable(&self) -> bool {
142        *self == Stop::Disable
143    }
144    #[doc = "Enable"]
145    #[inline(always)]
146    pub fn is_enable(&self) -> bool {
147        *self == Stop::Enable
148    }
149}
150#[doc = "Field `STOP` writer - Stop Interrupt Enable"]
151pub type StopW<'a, REG> = crate::BitWriter1S<'a, REG, Stop>;
152impl<'a, REG> StopW<'a, REG>
153where
154    REG: crate::Writable + crate::RegisterSpec,
155{
156    #[doc = "Disable"]
157    #[inline(always)]
158    pub fn disable(self) -> &'a mut crate::W<REG> {
159        self.variant(Stop::Disable)
160    }
161    #[doc = "Enable"]
162    #[inline(always)]
163    pub fn enable(self) -> &'a mut crate::W<REG> {
164        self.variant(Stop::Enable)
165    }
166}
167#[doc = "Receive Interrupt Enable\n\nValue on reset: 0"]
168#[cfg_attr(feature = "defmt", derive(defmt::Format))]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum Rxpend {
171    #[doc = "0: Disable"]
172    Disable = 0,
173    #[doc = "1: Enable"]
174    Enable = 1,
175}
176impl From<Rxpend> for bool {
177    #[inline(always)]
178    fn from(variant: Rxpend) -> Self {
179        variant as u8 != 0
180    }
181}
182#[doc = "Field `RXPEND` reader - Receive Interrupt Enable"]
183pub type RxpendR = crate::BitReader<Rxpend>;
184impl RxpendR {
185    #[doc = "Get enumerated values variant"]
186    #[inline(always)]
187    pub const fn variant(&self) -> Rxpend {
188        match self.bits {
189            false => Rxpend::Disable,
190            true => Rxpend::Enable,
191        }
192    }
193    #[doc = "Disable"]
194    #[inline(always)]
195    pub fn is_disable(&self) -> bool {
196        *self == Rxpend::Disable
197    }
198    #[doc = "Enable"]
199    #[inline(always)]
200    pub fn is_enable(&self) -> bool {
201        *self == Rxpend::Enable
202    }
203}
204#[doc = "Field `RXPEND` writer - Receive Interrupt Enable"]
205pub type RxpendW<'a, REG> = crate::BitWriter1S<'a, REG, Rxpend>;
206impl<'a, REG> RxpendW<'a, REG>
207where
208    REG: crate::Writable + crate::RegisterSpec,
209{
210    #[doc = "Disable"]
211    #[inline(always)]
212    pub fn disable(self) -> &'a mut crate::W<REG> {
213        self.variant(Rxpend::Disable)
214    }
215    #[doc = "Enable"]
216    #[inline(always)]
217    pub fn enable(self) -> &'a mut crate::W<REG> {
218        self.variant(Rxpend::Enable)
219    }
220}
221#[doc = "Transmit Interrupt Enable\n\nValue on reset: 0"]
222#[cfg_attr(feature = "defmt", derive(defmt::Format))]
223#[derive(Clone, Copy, Debug, PartialEq, Eq)]
224pub enum Txsend {
225    #[doc = "0: Disable"]
226    Disable = 0,
227    #[doc = "1: Enable"]
228    Enable = 1,
229}
230impl From<Txsend> for bool {
231    #[inline(always)]
232    fn from(variant: Txsend) -> Self {
233        variant as u8 != 0
234    }
235}
236#[doc = "Field `TXSEND` reader - Transmit Interrupt Enable"]
237pub type TxsendR = crate::BitReader<Txsend>;
238impl TxsendR {
239    #[doc = "Get enumerated values variant"]
240    #[inline(always)]
241    pub const fn variant(&self) -> Txsend {
242        match self.bits {
243            false => Txsend::Disable,
244            true => Txsend::Enable,
245        }
246    }
247    #[doc = "Disable"]
248    #[inline(always)]
249    pub fn is_disable(&self) -> bool {
250        *self == Txsend::Disable
251    }
252    #[doc = "Enable"]
253    #[inline(always)]
254    pub fn is_enable(&self) -> bool {
255        *self == Txsend::Enable
256    }
257}
258#[doc = "Field `TXSEND` writer - Transmit Interrupt Enable"]
259pub type TxsendW<'a, REG> = crate::BitWriter1S<'a, REG, Txsend>;
260impl<'a, REG> TxsendW<'a, REG>
261where
262    REG: crate::Writable + crate::RegisterSpec,
263{
264    #[doc = "Disable"]
265    #[inline(always)]
266    pub fn disable(self) -> &'a mut crate::W<REG> {
267        self.variant(Txsend::Disable)
268    }
269    #[doc = "Enable"]
270    #[inline(always)]
271    pub fn enable(self) -> &'a mut crate::W<REG> {
272        self.variant(Txsend::Enable)
273    }
274}
275#[doc = "Dynamic Address Change Interrupt Enable\n\nValue on reset: 0"]
276#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum Dachg {
279    #[doc = "0: Disable"]
280    Disable = 0,
281    #[doc = "1: Enable"]
282    Enable = 1,
283}
284impl From<Dachg> for bool {
285    #[inline(always)]
286    fn from(variant: Dachg) -> Self {
287        variant as u8 != 0
288    }
289}
290#[doc = "Field `DACHG` reader - Dynamic Address Change Interrupt Enable"]
291pub type DachgR = crate::BitReader<Dachg>;
292impl DachgR {
293    #[doc = "Get enumerated values variant"]
294    #[inline(always)]
295    pub const fn variant(&self) -> Dachg {
296        match self.bits {
297            false => Dachg::Disable,
298            true => Dachg::Enable,
299        }
300    }
301    #[doc = "Disable"]
302    #[inline(always)]
303    pub fn is_disable(&self) -> bool {
304        *self == Dachg::Disable
305    }
306    #[doc = "Enable"]
307    #[inline(always)]
308    pub fn is_enable(&self) -> bool {
309        *self == Dachg::Enable
310    }
311}
312#[doc = "Field `DACHG` writer - Dynamic Address Change Interrupt Enable"]
313pub type DachgW<'a, REG> = crate::BitWriter1S<'a, REG, Dachg>;
314impl<'a, REG> DachgW<'a, REG>
315where
316    REG: crate::Writable + crate::RegisterSpec,
317{
318    #[doc = "Disable"]
319    #[inline(always)]
320    pub fn disable(self) -> &'a mut crate::W<REG> {
321        self.variant(Dachg::Disable)
322    }
323    #[doc = "Enable"]
324    #[inline(always)]
325    pub fn enable(self) -> &'a mut crate::W<REG> {
326        self.variant(Dachg::Enable)
327    }
328}
329#[doc = "Common Command Code (CCC) Interrupt Enable\n\nValue on reset: 0"]
330#[cfg_attr(feature = "defmt", derive(defmt::Format))]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum Ccc {
333    #[doc = "0: Disable"]
334    Disable = 0,
335    #[doc = "1: Enable"]
336    Enable = 1,
337}
338impl From<Ccc> for bool {
339    #[inline(always)]
340    fn from(variant: Ccc) -> Self {
341        variant as u8 != 0
342    }
343}
344#[doc = "Field `CCC` reader - Common Command Code (CCC) Interrupt Enable"]
345pub type CccR = crate::BitReader<Ccc>;
346impl CccR {
347    #[doc = "Get enumerated values variant"]
348    #[inline(always)]
349    pub const fn variant(&self) -> Ccc {
350        match self.bits {
351            false => Ccc::Disable,
352            true => Ccc::Enable,
353        }
354    }
355    #[doc = "Disable"]
356    #[inline(always)]
357    pub fn is_disable(&self) -> bool {
358        *self == Ccc::Disable
359    }
360    #[doc = "Enable"]
361    #[inline(always)]
362    pub fn is_enable(&self) -> bool {
363        *self == Ccc::Enable
364    }
365}
366#[doc = "Field `CCC` writer - Common Command Code (CCC) Interrupt Enable"]
367pub type CccW<'a, REG> = crate::BitWriter1S<'a, REG, Ccc>;
368impl<'a, REG> CccW<'a, REG>
369where
370    REG: crate::Writable + crate::RegisterSpec,
371{
372    #[doc = "Disable"]
373    #[inline(always)]
374    pub fn disable(self) -> &'a mut crate::W<REG> {
375        self.variant(Ccc::Disable)
376    }
377    #[doc = "Enable"]
378    #[inline(always)]
379    pub fn enable(self) -> &'a mut crate::W<REG> {
380        self.variant(Ccc::Enable)
381    }
382}
383#[doc = "Error or Warning Interrupt Enable\n\nValue on reset: 0"]
384#[cfg_attr(feature = "defmt", derive(defmt::Format))]
385#[derive(Clone, Copy, Debug, PartialEq, Eq)]
386pub enum Errwarn {
387    #[doc = "0: Disable"]
388    Disable = 0,
389    #[doc = "1: Enable"]
390    Enable = 1,
391}
392impl From<Errwarn> for bool {
393    #[inline(always)]
394    fn from(variant: Errwarn) -> Self {
395        variant as u8 != 0
396    }
397}
398#[doc = "Field `ERRWARN` reader - Error or Warning Interrupt Enable"]
399pub type ErrwarnR = crate::BitReader<Errwarn>;
400impl ErrwarnR {
401    #[doc = "Get enumerated values variant"]
402    #[inline(always)]
403    pub const fn variant(&self) -> Errwarn {
404        match self.bits {
405            false => Errwarn::Disable,
406            true => Errwarn::Enable,
407        }
408    }
409    #[doc = "Disable"]
410    #[inline(always)]
411    pub fn is_disable(&self) -> bool {
412        *self == Errwarn::Disable
413    }
414    #[doc = "Enable"]
415    #[inline(always)]
416    pub fn is_enable(&self) -> bool {
417        *self == Errwarn::Enable
418    }
419}
420#[doc = "Field `ERRWARN` writer - Error or Warning Interrupt Enable"]
421pub type ErrwarnW<'a, REG> = crate::BitWriter1S<'a, REG, Errwarn>;
422impl<'a, REG> ErrwarnW<'a, REG>
423where
424    REG: crate::Writable + crate::RegisterSpec,
425{
426    #[doc = "Disable"]
427    #[inline(always)]
428    pub fn disable(self) -> &'a mut crate::W<REG> {
429        self.variant(Errwarn::Disable)
430    }
431    #[doc = "Enable"]
432    #[inline(always)]
433    pub fn enable(self) -> &'a mut crate::W<REG> {
434        self.variant(Errwarn::Enable)
435    }
436}
437#[doc = "Double Data Rate Interrupt Enable\n\nValue on reset: 0"]
438#[cfg_attr(feature = "defmt", derive(defmt::Format))]
439#[derive(Clone, Copy, Debug, PartialEq, Eq)]
440pub enum Ddrmatched {
441    #[doc = "0: Disable"]
442    Disable = 0,
443    #[doc = "1: Enable"]
444    Enable = 1,
445}
446impl From<Ddrmatched> for bool {
447    #[inline(always)]
448    fn from(variant: Ddrmatched) -> Self {
449        variant as u8 != 0
450    }
451}
452#[doc = "Field `DDRMATCHED` reader - Double Data Rate Interrupt Enable"]
453pub type DdrmatchedR = crate::BitReader<Ddrmatched>;
454impl DdrmatchedR {
455    #[doc = "Get enumerated values variant"]
456    #[inline(always)]
457    pub const fn variant(&self) -> Ddrmatched {
458        match self.bits {
459            false => Ddrmatched::Disable,
460            true => Ddrmatched::Enable,
461        }
462    }
463    #[doc = "Disable"]
464    #[inline(always)]
465    pub fn is_disable(&self) -> bool {
466        *self == Ddrmatched::Disable
467    }
468    #[doc = "Enable"]
469    #[inline(always)]
470    pub fn is_enable(&self) -> bool {
471        *self == Ddrmatched::Enable
472    }
473}
474#[doc = "Field `DDRMATCHED` writer - Double Data Rate Interrupt Enable"]
475pub type DdrmatchedW<'a, REG> = crate::BitWriter1S<'a, REG, Ddrmatched>;
476impl<'a, REG> DdrmatchedW<'a, REG>
477where
478    REG: crate::Writable + crate::RegisterSpec,
479{
480    #[doc = "Disable"]
481    #[inline(always)]
482    pub fn disable(self) -> &'a mut crate::W<REG> {
483        self.variant(Ddrmatched::Disable)
484    }
485    #[doc = "Enable"]
486    #[inline(always)]
487    pub fn enable(self) -> &'a mut crate::W<REG> {
488        self.variant(Ddrmatched::Enable)
489    }
490}
491#[doc = "Common Command Code (CCC) Interrupt Enable\n\nValue on reset: 0"]
492#[cfg_attr(feature = "defmt", derive(defmt::Format))]
493#[derive(Clone, Copy, Debug, PartialEq, Eq)]
494pub enum Chandled {
495    #[doc = "0: Disable"]
496    Disable = 0,
497    #[doc = "1: Enable"]
498    Enable = 1,
499}
500impl From<Chandled> for bool {
501    #[inline(always)]
502    fn from(variant: Chandled) -> Self {
503        variant as u8 != 0
504    }
505}
506#[doc = "Field `CHANDLED` reader - Common Command Code (CCC) Interrupt Enable"]
507pub type ChandledR = crate::BitReader<Chandled>;
508impl ChandledR {
509    #[doc = "Get enumerated values variant"]
510    #[inline(always)]
511    pub const fn variant(&self) -> Chandled {
512        match self.bits {
513            false => Chandled::Disable,
514            true => Chandled::Enable,
515        }
516    }
517    #[doc = "Disable"]
518    #[inline(always)]
519    pub fn is_disable(&self) -> bool {
520        *self == Chandled::Disable
521    }
522    #[doc = "Enable"]
523    #[inline(always)]
524    pub fn is_enable(&self) -> bool {
525        *self == Chandled::Enable
526    }
527}
528#[doc = "Field `CHANDLED` writer - Common Command Code (CCC) Interrupt Enable"]
529pub type ChandledW<'a, REG> = crate::BitWriter1S<'a, REG, Chandled>;
530impl<'a, REG> ChandledW<'a, REG>
531where
532    REG: crate::Writable + crate::RegisterSpec,
533{
534    #[doc = "Disable"]
535    #[inline(always)]
536    pub fn disable(self) -> &'a mut crate::W<REG> {
537        self.variant(Chandled::Disable)
538    }
539    #[doc = "Enable"]
540    #[inline(always)]
541    pub fn enable(self) -> &'a mut crate::W<REG> {
542        self.variant(Chandled::Enable)
543    }
544}
545#[doc = "Event Interrupt Enable\n\nValue on reset: 0"]
546#[cfg_attr(feature = "defmt", derive(defmt::Format))]
547#[derive(Clone, Copy, Debug, PartialEq, Eq)]
548pub enum Event {
549    #[doc = "0: Disable"]
550    Disable = 0,
551    #[doc = "1: Enable"]
552    Enable = 1,
553}
554impl From<Event> for bool {
555    #[inline(always)]
556    fn from(variant: Event) -> Self {
557        variant as u8 != 0
558    }
559}
560#[doc = "Field `EVENT` reader - Event Interrupt Enable"]
561pub type EventR = crate::BitReader<Event>;
562impl EventR {
563    #[doc = "Get enumerated values variant"]
564    #[inline(always)]
565    pub const fn variant(&self) -> Event {
566        match self.bits {
567            false => Event::Disable,
568            true => Event::Enable,
569        }
570    }
571    #[doc = "Disable"]
572    #[inline(always)]
573    pub fn is_disable(&self) -> bool {
574        *self == Event::Disable
575    }
576    #[doc = "Enable"]
577    #[inline(always)]
578    pub fn is_enable(&self) -> bool {
579        *self == Event::Enable
580    }
581}
582#[doc = "Field `EVENT` writer - Event Interrupt Enable"]
583pub type EventW<'a, REG> = crate::BitWriter1S<'a, REG, Event>;
584impl<'a, REG> EventW<'a, REG>
585where
586    REG: crate::Writable + crate::RegisterSpec,
587{
588    #[doc = "Disable"]
589    #[inline(always)]
590    pub fn disable(self) -> &'a mut crate::W<REG> {
591        self.variant(Event::Disable)
592    }
593    #[doc = "Enable"]
594    #[inline(always)]
595    pub fn enable(self) -> &'a mut crate::W<REG> {
596        self.variant(Event::Enable)
597    }
598}
599impl R {
600    #[doc = "Bit 8 - Start Interrupt Enable"]
601    #[inline(always)]
602    pub fn start(&self) -> StartR {
603        StartR::new(((self.bits >> 8) & 1) != 0)
604    }
605    #[doc = "Bit 9 - Match Interrupt Enable"]
606    #[inline(always)]
607    pub fn matched(&self) -> MatchedR {
608        MatchedR::new(((self.bits >> 9) & 1) != 0)
609    }
610    #[doc = "Bit 10 - Stop Interrupt Enable"]
611    #[inline(always)]
612    pub fn stop(&self) -> StopR {
613        StopR::new(((self.bits >> 10) & 1) != 0)
614    }
615    #[doc = "Bit 11 - Receive Interrupt Enable"]
616    #[inline(always)]
617    pub fn rxpend(&self) -> RxpendR {
618        RxpendR::new(((self.bits >> 11) & 1) != 0)
619    }
620    #[doc = "Bit 12 - Transmit Interrupt Enable"]
621    #[inline(always)]
622    pub fn txsend(&self) -> TxsendR {
623        TxsendR::new(((self.bits >> 12) & 1) != 0)
624    }
625    #[doc = "Bit 13 - Dynamic Address Change Interrupt Enable"]
626    #[inline(always)]
627    pub fn dachg(&self) -> DachgR {
628        DachgR::new(((self.bits >> 13) & 1) != 0)
629    }
630    #[doc = "Bit 14 - Common Command Code (CCC) Interrupt Enable"]
631    #[inline(always)]
632    pub fn ccc(&self) -> CccR {
633        CccR::new(((self.bits >> 14) & 1) != 0)
634    }
635    #[doc = "Bit 15 - Error or Warning Interrupt Enable"]
636    #[inline(always)]
637    pub fn errwarn(&self) -> ErrwarnR {
638        ErrwarnR::new(((self.bits >> 15) & 1) != 0)
639    }
640    #[doc = "Bit 16 - Double Data Rate Interrupt Enable"]
641    #[inline(always)]
642    pub fn ddrmatched(&self) -> DdrmatchedR {
643        DdrmatchedR::new(((self.bits >> 16) & 1) != 0)
644    }
645    #[doc = "Bit 17 - Common Command Code (CCC) Interrupt Enable"]
646    #[inline(always)]
647    pub fn chandled(&self) -> ChandledR {
648        ChandledR::new(((self.bits >> 17) & 1) != 0)
649    }
650    #[doc = "Bit 18 - Event Interrupt Enable"]
651    #[inline(always)]
652    pub fn event(&self) -> EventR {
653        EventR::new(((self.bits >> 18) & 1) != 0)
654    }
655}
656#[cfg(feature = "debug")]
657impl core::fmt::Debug for R {
658    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
659        f.debug_struct("SINTSET")
660            .field("start", &self.start())
661            .field("matched", &self.matched())
662            .field("stop", &self.stop())
663            .field("rxpend", &self.rxpend())
664            .field("txsend", &self.txsend())
665            .field("dachg", &self.dachg())
666            .field("ccc", &self.ccc())
667            .field("errwarn", &self.errwarn())
668            .field("ddrmatched", &self.ddrmatched())
669            .field("chandled", &self.chandled())
670            .field("event", &self.event())
671            .finish()
672    }
673}
674impl W {
675    #[doc = "Bit 8 - Start Interrupt Enable"]
676    #[inline(always)]
677    pub fn start(&mut self) -> StartW<'_, SintsetSpec> {
678        StartW::new(self, 8)
679    }
680    #[doc = "Bit 9 - Match Interrupt Enable"]
681    #[inline(always)]
682    pub fn matched(&mut self) -> MatchedW<'_, SintsetSpec> {
683        MatchedW::new(self, 9)
684    }
685    #[doc = "Bit 10 - Stop Interrupt Enable"]
686    #[inline(always)]
687    pub fn stop(&mut self) -> StopW<'_, SintsetSpec> {
688        StopW::new(self, 10)
689    }
690    #[doc = "Bit 11 - Receive Interrupt Enable"]
691    #[inline(always)]
692    pub fn rxpend(&mut self) -> RxpendW<'_, SintsetSpec> {
693        RxpendW::new(self, 11)
694    }
695    #[doc = "Bit 12 - Transmit Interrupt Enable"]
696    #[inline(always)]
697    pub fn txsend(&mut self) -> TxsendW<'_, SintsetSpec> {
698        TxsendW::new(self, 12)
699    }
700    #[doc = "Bit 13 - Dynamic Address Change Interrupt Enable"]
701    #[inline(always)]
702    pub fn dachg(&mut self) -> DachgW<'_, SintsetSpec> {
703        DachgW::new(self, 13)
704    }
705    #[doc = "Bit 14 - Common Command Code (CCC) Interrupt Enable"]
706    #[inline(always)]
707    pub fn ccc(&mut self) -> CccW<'_, SintsetSpec> {
708        CccW::new(self, 14)
709    }
710    #[doc = "Bit 15 - Error or Warning Interrupt Enable"]
711    #[inline(always)]
712    pub fn errwarn(&mut self) -> ErrwarnW<'_, SintsetSpec> {
713        ErrwarnW::new(self, 15)
714    }
715    #[doc = "Bit 16 - Double Data Rate Interrupt Enable"]
716    #[inline(always)]
717    pub fn ddrmatched(&mut self) -> DdrmatchedW<'_, SintsetSpec> {
718        DdrmatchedW::new(self, 16)
719    }
720    #[doc = "Bit 17 - Common Command Code (CCC) Interrupt Enable"]
721    #[inline(always)]
722    pub fn chandled(&mut self) -> ChandledW<'_, SintsetSpec> {
723        ChandledW::new(self, 17)
724    }
725    #[doc = "Bit 18 - Event Interrupt Enable"]
726    #[inline(always)]
727    pub fn event(&mut self) -> EventW<'_, SintsetSpec> {
728        EventW::new(self, 18)
729    }
730}
731#[doc = "Target Interrupt Set\n\nYou can [`read`](crate::Reg::read) this register and get [`sintset::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sintset::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
732pub struct SintsetSpec;
733impl crate::RegisterSpec for SintsetSpec {
734    type Ux = u32;
735}
736#[doc = "`read()` method returns [`sintset::R`](R) reader structure"]
737impl crate::Readable for SintsetSpec {}
738#[doc = "`write(|w| ..)` method takes [`sintset::W`](W) writer structure"]
739impl crate::Writable for SintsetSpec {
740    type Safety = crate::Unsafe;
741    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x0007_ff00;
742}
743#[doc = "`reset()` method sets SINTSET to value 0"]
744impl crate::Resettable for SintsetSpec {}