rp2040_pac/i2c0/
ic_intr_stat.rs

1#[doc = "Register `IC_INTR_STAT` reader"]
2pub type R = crate::R<IC_INTR_STAT_SPEC>;
3#[doc = "Field `R_RX_UNDER` reader - See IC_RAW_INTR_STAT for a detailed description of R_RX_UNDER bit.  
4
5 Reset value: 0x0"]
6pub type R_RX_UNDER_R = crate::BitReader<R_RX_UNDER_A>;
7#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RX_UNDER bit.  
8
9 Reset value: 0x0  
10
11Value on reset: 0"]
12#[derive(Clone, Copy, Debug, PartialEq, Eq)]
13pub enum R_RX_UNDER_A {
14    #[doc = "0: RX_UNDER interrupt is inactive"]
15    INACTIVE = 0,
16    #[doc = "1: RX_UNDER interrupt is active"]
17    ACTIVE = 1,
18}
19impl From<R_RX_UNDER_A> for bool {
20    #[inline(always)]
21    fn from(variant: R_RX_UNDER_A) -> Self {
22        variant as u8 != 0
23    }
24}
25impl R_RX_UNDER_R {
26    #[doc = "Get enumerated values variant"]
27    #[inline(always)]
28    pub const fn variant(&self) -> R_RX_UNDER_A {
29        match self.bits {
30            false => R_RX_UNDER_A::INACTIVE,
31            true => R_RX_UNDER_A::ACTIVE,
32        }
33    }
34    #[doc = "RX_UNDER interrupt is inactive"]
35    #[inline(always)]
36    pub fn is_inactive(&self) -> bool {
37        *self == R_RX_UNDER_A::INACTIVE
38    }
39    #[doc = "RX_UNDER interrupt is active"]
40    #[inline(always)]
41    pub fn is_active(&self) -> bool {
42        *self == R_RX_UNDER_A::ACTIVE
43    }
44}
45#[doc = "Field `R_RX_OVER` reader - See IC_RAW_INTR_STAT for a detailed description of R_RX_OVER bit.  
46
47 Reset value: 0x0"]
48pub type R_RX_OVER_R = crate::BitReader<R_RX_OVER_A>;
49#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RX_OVER bit.  
50
51 Reset value: 0x0  
52
53Value on reset: 0"]
54#[derive(Clone, Copy, Debug, PartialEq, Eq)]
55pub enum R_RX_OVER_A {
56    #[doc = "0: R_RX_OVER interrupt is inactive"]
57    INACTIVE = 0,
58    #[doc = "1: R_RX_OVER interrupt is active"]
59    ACTIVE = 1,
60}
61impl From<R_RX_OVER_A> for bool {
62    #[inline(always)]
63    fn from(variant: R_RX_OVER_A) -> Self {
64        variant as u8 != 0
65    }
66}
67impl R_RX_OVER_R {
68    #[doc = "Get enumerated values variant"]
69    #[inline(always)]
70    pub const fn variant(&self) -> R_RX_OVER_A {
71        match self.bits {
72            false => R_RX_OVER_A::INACTIVE,
73            true => R_RX_OVER_A::ACTIVE,
74        }
75    }
76    #[doc = "R_RX_OVER interrupt is inactive"]
77    #[inline(always)]
78    pub fn is_inactive(&self) -> bool {
79        *self == R_RX_OVER_A::INACTIVE
80    }
81    #[doc = "R_RX_OVER interrupt is active"]
82    #[inline(always)]
83    pub fn is_active(&self) -> bool {
84        *self == R_RX_OVER_A::ACTIVE
85    }
86}
87#[doc = "Field `R_RX_FULL` reader - See IC_RAW_INTR_STAT for a detailed description of R_RX_FULL bit.  
88
89 Reset value: 0x0"]
90pub type R_RX_FULL_R = crate::BitReader<R_RX_FULL_A>;
91#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RX_FULL bit.  
92
93 Reset value: 0x0  
94
95Value on reset: 0"]
96#[derive(Clone, Copy, Debug, PartialEq, Eq)]
97pub enum R_RX_FULL_A {
98    #[doc = "0: R_RX_FULL interrupt is inactive"]
99    INACTIVE = 0,
100    #[doc = "1: R_RX_FULL interrupt is active"]
101    ACTIVE = 1,
102}
103impl From<R_RX_FULL_A> for bool {
104    #[inline(always)]
105    fn from(variant: R_RX_FULL_A) -> Self {
106        variant as u8 != 0
107    }
108}
109impl R_RX_FULL_R {
110    #[doc = "Get enumerated values variant"]
111    #[inline(always)]
112    pub const fn variant(&self) -> R_RX_FULL_A {
113        match self.bits {
114            false => R_RX_FULL_A::INACTIVE,
115            true => R_RX_FULL_A::ACTIVE,
116        }
117    }
118    #[doc = "R_RX_FULL interrupt is inactive"]
119    #[inline(always)]
120    pub fn is_inactive(&self) -> bool {
121        *self == R_RX_FULL_A::INACTIVE
122    }
123    #[doc = "R_RX_FULL interrupt is active"]
124    #[inline(always)]
125    pub fn is_active(&self) -> bool {
126        *self == R_RX_FULL_A::ACTIVE
127    }
128}
129#[doc = "Field `R_TX_OVER` reader - See IC_RAW_INTR_STAT for a detailed description of R_TX_OVER bit.  
130
131 Reset value: 0x0"]
132pub type R_TX_OVER_R = crate::BitReader<R_TX_OVER_A>;
133#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_TX_OVER bit.  
134
135 Reset value: 0x0  
136
137Value on reset: 0"]
138#[derive(Clone, Copy, Debug, PartialEq, Eq)]
139pub enum R_TX_OVER_A {
140    #[doc = "0: R_TX_OVER interrupt is inactive"]
141    INACTIVE = 0,
142    #[doc = "1: R_TX_OVER interrupt is active"]
143    ACTIVE = 1,
144}
145impl From<R_TX_OVER_A> for bool {
146    #[inline(always)]
147    fn from(variant: R_TX_OVER_A) -> Self {
148        variant as u8 != 0
149    }
150}
151impl R_TX_OVER_R {
152    #[doc = "Get enumerated values variant"]
153    #[inline(always)]
154    pub const fn variant(&self) -> R_TX_OVER_A {
155        match self.bits {
156            false => R_TX_OVER_A::INACTIVE,
157            true => R_TX_OVER_A::ACTIVE,
158        }
159    }
160    #[doc = "R_TX_OVER interrupt is inactive"]
161    #[inline(always)]
162    pub fn is_inactive(&self) -> bool {
163        *self == R_TX_OVER_A::INACTIVE
164    }
165    #[doc = "R_TX_OVER interrupt is active"]
166    #[inline(always)]
167    pub fn is_active(&self) -> bool {
168        *self == R_TX_OVER_A::ACTIVE
169    }
170}
171#[doc = "Field `R_TX_EMPTY` reader - See IC_RAW_INTR_STAT for a detailed description of R_TX_EMPTY bit.  
172
173 Reset value: 0x0"]
174pub type R_TX_EMPTY_R = crate::BitReader<R_TX_EMPTY_A>;
175#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_TX_EMPTY bit.  
176
177 Reset value: 0x0  
178
179Value on reset: 0"]
180#[derive(Clone, Copy, Debug, PartialEq, Eq)]
181pub enum R_TX_EMPTY_A {
182    #[doc = "0: R_TX_EMPTY interrupt is inactive"]
183    INACTIVE = 0,
184    #[doc = "1: R_TX_EMPTY interrupt is active"]
185    ACTIVE = 1,
186}
187impl From<R_TX_EMPTY_A> for bool {
188    #[inline(always)]
189    fn from(variant: R_TX_EMPTY_A) -> Self {
190        variant as u8 != 0
191    }
192}
193impl R_TX_EMPTY_R {
194    #[doc = "Get enumerated values variant"]
195    #[inline(always)]
196    pub const fn variant(&self) -> R_TX_EMPTY_A {
197        match self.bits {
198            false => R_TX_EMPTY_A::INACTIVE,
199            true => R_TX_EMPTY_A::ACTIVE,
200        }
201    }
202    #[doc = "R_TX_EMPTY interrupt is inactive"]
203    #[inline(always)]
204    pub fn is_inactive(&self) -> bool {
205        *self == R_TX_EMPTY_A::INACTIVE
206    }
207    #[doc = "R_TX_EMPTY interrupt is active"]
208    #[inline(always)]
209    pub fn is_active(&self) -> bool {
210        *self == R_TX_EMPTY_A::ACTIVE
211    }
212}
213#[doc = "Field `R_RD_REQ` reader - See IC_RAW_INTR_STAT for a detailed description of R_RD_REQ bit.  
214
215 Reset value: 0x0"]
216pub type R_RD_REQ_R = crate::BitReader<R_RD_REQ_A>;
217#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RD_REQ bit.  
218
219 Reset value: 0x0  
220
221Value on reset: 0"]
222#[derive(Clone, Copy, Debug, PartialEq, Eq)]
223pub enum R_RD_REQ_A {
224    #[doc = "0: R_RD_REQ interrupt is inactive"]
225    INACTIVE = 0,
226    #[doc = "1: R_RD_REQ interrupt is active"]
227    ACTIVE = 1,
228}
229impl From<R_RD_REQ_A> for bool {
230    #[inline(always)]
231    fn from(variant: R_RD_REQ_A) -> Self {
232        variant as u8 != 0
233    }
234}
235impl R_RD_REQ_R {
236    #[doc = "Get enumerated values variant"]
237    #[inline(always)]
238    pub const fn variant(&self) -> R_RD_REQ_A {
239        match self.bits {
240            false => R_RD_REQ_A::INACTIVE,
241            true => R_RD_REQ_A::ACTIVE,
242        }
243    }
244    #[doc = "R_RD_REQ interrupt is inactive"]
245    #[inline(always)]
246    pub fn is_inactive(&self) -> bool {
247        *self == R_RD_REQ_A::INACTIVE
248    }
249    #[doc = "R_RD_REQ interrupt is active"]
250    #[inline(always)]
251    pub fn is_active(&self) -> bool {
252        *self == R_RD_REQ_A::ACTIVE
253    }
254}
255#[doc = "Field `R_TX_ABRT` reader - See IC_RAW_INTR_STAT for a detailed description of R_TX_ABRT bit.  
256
257 Reset value: 0x0"]
258pub type R_TX_ABRT_R = crate::BitReader<R_TX_ABRT_A>;
259#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_TX_ABRT bit.  
260
261 Reset value: 0x0  
262
263Value on reset: 0"]
264#[derive(Clone, Copy, Debug, PartialEq, Eq)]
265pub enum R_TX_ABRT_A {
266    #[doc = "0: R_TX_ABRT interrupt is inactive"]
267    INACTIVE = 0,
268    #[doc = "1: R_TX_ABRT interrupt is active"]
269    ACTIVE = 1,
270}
271impl From<R_TX_ABRT_A> for bool {
272    #[inline(always)]
273    fn from(variant: R_TX_ABRT_A) -> Self {
274        variant as u8 != 0
275    }
276}
277impl R_TX_ABRT_R {
278    #[doc = "Get enumerated values variant"]
279    #[inline(always)]
280    pub const fn variant(&self) -> R_TX_ABRT_A {
281        match self.bits {
282            false => R_TX_ABRT_A::INACTIVE,
283            true => R_TX_ABRT_A::ACTIVE,
284        }
285    }
286    #[doc = "R_TX_ABRT interrupt is inactive"]
287    #[inline(always)]
288    pub fn is_inactive(&self) -> bool {
289        *self == R_TX_ABRT_A::INACTIVE
290    }
291    #[doc = "R_TX_ABRT interrupt is active"]
292    #[inline(always)]
293    pub fn is_active(&self) -> bool {
294        *self == R_TX_ABRT_A::ACTIVE
295    }
296}
297#[doc = "Field `R_RX_DONE` reader - See IC_RAW_INTR_STAT for a detailed description of R_RX_DONE bit.  
298
299 Reset value: 0x0"]
300pub type R_RX_DONE_R = crate::BitReader<R_RX_DONE_A>;
301#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RX_DONE bit.  
302
303 Reset value: 0x0  
304
305Value on reset: 0"]
306#[derive(Clone, Copy, Debug, PartialEq, Eq)]
307pub enum R_RX_DONE_A {
308    #[doc = "0: R_RX_DONE interrupt is inactive"]
309    INACTIVE = 0,
310    #[doc = "1: R_RX_DONE interrupt is active"]
311    ACTIVE = 1,
312}
313impl From<R_RX_DONE_A> for bool {
314    #[inline(always)]
315    fn from(variant: R_RX_DONE_A) -> Self {
316        variant as u8 != 0
317    }
318}
319impl R_RX_DONE_R {
320    #[doc = "Get enumerated values variant"]
321    #[inline(always)]
322    pub const fn variant(&self) -> R_RX_DONE_A {
323        match self.bits {
324            false => R_RX_DONE_A::INACTIVE,
325            true => R_RX_DONE_A::ACTIVE,
326        }
327    }
328    #[doc = "R_RX_DONE interrupt is inactive"]
329    #[inline(always)]
330    pub fn is_inactive(&self) -> bool {
331        *self == R_RX_DONE_A::INACTIVE
332    }
333    #[doc = "R_RX_DONE interrupt is active"]
334    #[inline(always)]
335    pub fn is_active(&self) -> bool {
336        *self == R_RX_DONE_A::ACTIVE
337    }
338}
339#[doc = "Field `R_ACTIVITY` reader - See IC_RAW_INTR_STAT for a detailed description of R_ACTIVITY bit.  
340
341 Reset value: 0x0"]
342pub type R_ACTIVITY_R = crate::BitReader<R_ACTIVITY_A>;
343#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_ACTIVITY bit.  
344
345 Reset value: 0x0  
346
347Value on reset: 0"]
348#[derive(Clone, Copy, Debug, PartialEq, Eq)]
349pub enum R_ACTIVITY_A {
350    #[doc = "0: R_ACTIVITY interrupt is inactive"]
351    INACTIVE = 0,
352    #[doc = "1: R_ACTIVITY interrupt is active"]
353    ACTIVE = 1,
354}
355impl From<R_ACTIVITY_A> for bool {
356    #[inline(always)]
357    fn from(variant: R_ACTIVITY_A) -> Self {
358        variant as u8 != 0
359    }
360}
361impl R_ACTIVITY_R {
362    #[doc = "Get enumerated values variant"]
363    #[inline(always)]
364    pub const fn variant(&self) -> R_ACTIVITY_A {
365        match self.bits {
366            false => R_ACTIVITY_A::INACTIVE,
367            true => R_ACTIVITY_A::ACTIVE,
368        }
369    }
370    #[doc = "R_ACTIVITY interrupt is inactive"]
371    #[inline(always)]
372    pub fn is_inactive(&self) -> bool {
373        *self == R_ACTIVITY_A::INACTIVE
374    }
375    #[doc = "R_ACTIVITY interrupt is active"]
376    #[inline(always)]
377    pub fn is_active(&self) -> bool {
378        *self == R_ACTIVITY_A::ACTIVE
379    }
380}
381#[doc = "Field `R_STOP_DET` reader - See IC_RAW_INTR_STAT for a detailed description of R_STOP_DET bit.  
382
383 Reset value: 0x0"]
384pub type R_STOP_DET_R = crate::BitReader<R_STOP_DET_A>;
385#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_STOP_DET bit.  
386
387 Reset value: 0x0  
388
389Value on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum R_STOP_DET_A {
392    #[doc = "0: R_STOP_DET interrupt is inactive"]
393    INACTIVE = 0,
394    #[doc = "1: R_STOP_DET interrupt is active"]
395    ACTIVE = 1,
396}
397impl From<R_STOP_DET_A> for bool {
398    #[inline(always)]
399    fn from(variant: R_STOP_DET_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl R_STOP_DET_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub const fn variant(&self) -> R_STOP_DET_A {
407        match self.bits {
408            false => R_STOP_DET_A::INACTIVE,
409            true => R_STOP_DET_A::ACTIVE,
410        }
411    }
412    #[doc = "R_STOP_DET interrupt is inactive"]
413    #[inline(always)]
414    pub fn is_inactive(&self) -> bool {
415        *self == R_STOP_DET_A::INACTIVE
416    }
417    #[doc = "R_STOP_DET interrupt is active"]
418    #[inline(always)]
419    pub fn is_active(&self) -> bool {
420        *self == R_STOP_DET_A::ACTIVE
421    }
422}
423#[doc = "Field `R_START_DET` reader - See IC_RAW_INTR_STAT for a detailed description of R_START_DET bit.  
424
425 Reset value: 0x0"]
426pub type R_START_DET_R = crate::BitReader<R_START_DET_A>;
427#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_START_DET bit.  
428
429 Reset value: 0x0  
430
431Value on reset: 0"]
432#[derive(Clone, Copy, Debug, PartialEq, Eq)]
433pub enum R_START_DET_A {
434    #[doc = "0: R_START_DET interrupt is inactive"]
435    INACTIVE = 0,
436    #[doc = "1: R_START_DET interrupt is active"]
437    ACTIVE = 1,
438}
439impl From<R_START_DET_A> for bool {
440    #[inline(always)]
441    fn from(variant: R_START_DET_A) -> Self {
442        variant as u8 != 0
443    }
444}
445impl R_START_DET_R {
446    #[doc = "Get enumerated values variant"]
447    #[inline(always)]
448    pub const fn variant(&self) -> R_START_DET_A {
449        match self.bits {
450            false => R_START_DET_A::INACTIVE,
451            true => R_START_DET_A::ACTIVE,
452        }
453    }
454    #[doc = "R_START_DET interrupt is inactive"]
455    #[inline(always)]
456    pub fn is_inactive(&self) -> bool {
457        *self == R_START_DET_A::INACTIVE
458    }
459    #[doc = "R_START_DET interrupt is active"]
460    #[inline(always)]
461    pub fn is_active(&self) -> bool {
462        *self == R_START_DET_A::ACTIVE
463    }
464}
465#[doc = "Field `R_GEN_CALL` reader - See IC_RAW_INTR_STAT for a detailed description of R_GEN_CALL bit.  
466
467 Reset value: 0x0"]
468pub type R_GEN_CALL_R = crate::BitReader<R_GEN_CALL_A>;
469#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_GEN_CALL bit.  
470
471 Reset value: 0x0  
472
473Value on reset: 0"]
474#[derive(Clone, Copy, Debug, PartialEq, Eq)]
475pub enum R_GEN_CALL_A {
476    #[doc = "0: R_GEN_CALL interrupt is inactive"]
477    INACTIVE = 0,
478    #[doc = "1: R_GEN_CALL interrupt is active"]
479    ACTIVE = 1,
480}
481impl From<R_GEN_CALL_A> for bool {
482    #[inline(always)]
483    fn from(variant: R_GEN_CALL_A) -> Self {
484        variant as u8 != 0
485    }
486}
487impl R_GEN_CALL_R {
488    #[doc = "Get enumerated values variant"]
489    #[inline(always)]
490    pub const fn variant(&self) -> R_GEN_CALL_A {
491        match self.bits {
492            false => R_GEN_CALL_A::INACTIVE,
493            true => R_GEN_CALL_A::ACTIVE,
494        }
495    }
496    #[doc = "R_GEN_CALL interrupt is inactive"]
497    #[inline(always)]
498    pub fn is_inactive(&self) -> bool {
499        *self == R_GEN_CALL_A::INACTIVE
500    }
501    #[doc = "R_GEN_CALL interrupt is active"]
502    #[inline(always)]
503    pub fn is_active(&self) -> bool {
504        *self == R_GEN_CALL_A::ACTIVE
505    }
506}
507#[doc = "Field `R_RESTART_DET` reader - See IC_RAW_INTR_STAT for a detailed description of R_RESTART_DET bit.  
508
509 Reset value: 0x0"]
510pub type R_RESTART_DET_R = crate::BitReader<R_RESTART_DET_A>;
511#[doc = "See IC_RAW_INTR_STAT for a detailed description of R_RESTART_DET bit.  
512
513 Reset value: 0x0  
514
515Value on reset: 0"]
516#[derive(Clone, Copy, Debug, PartialEq, Eq)]
517pub enum R_RESTART_DET_A {
518    #[doc = "0: R_RESTART_DET interrupt is inactive"]
519    INACTIVE = 0,
520    #[doc = "1: R_RESTART_DET interrupt is active"]
521    ACTIVE = 1,
522}
523impl From<R_RESTART_DET_A> for bool {
524    #[inline(always)]
525    fn from(variant: R_RESTART_DET_A) -> Self {
526        variant as u8 != 0
527    }
528}
529impl R_RESTART_DET_R {
530    #[doc = "Get enumerated values variant"]
531    #[inline(always)]
532    pub const fn variant(&self) -> R_RESTART_DET_A {
533        match self.bits {
534            false => R_RESTART_DET_A::INACTIVE,
535            true => R_RESTART_DET_A::ACTIVE,
536        }
537    }
538    #[doc = "R_RESTART_DET interrupt is inactive"]
539    #[inline(always)]
540    pub fn is_inactive(&self) -> bool {
541        *self == R_RESTART_DET_A::INACTIVE
542    }
543    #[doc = "R_RESTART_DET interrupt is active"]
544    #[inline(always)]
545    pub fn is_active(&self) -> bool {
546        *self == R_RESTART_DET_A::ACTIVE
547    }
548}
549impl R {
550    #[doc = "Bit 0 - See IC_RAW_INTR_STAT for a detailed description of R_RX_UNDER bit.  
551
552 Reset value: 0x0"]
553    #[inline(always)]
554    pub fn r_rx_under(&self) -> R_RX_UNDER_R {
555        R_RX_UNDER_R::new((self.bits & 1) != 0)
556    }
557    #[doc = "Bit 1 - See IC_RAW_INTR_STAT for a detailed description of R_RX_OVER bit.  
558
559 Reset value: 0x0"]
560    #[inline(always)]
561    pub fn r_rx_over(&self) -> R_RX_OVER_R {
562        R_RX_OVER_R::new(((self.bits >> 1) & 1) != 0)
563    }
564    #[doc = "Bit 2 - See IC_RAW_INTR_STAT for a detailed description of R_RX_FULL bit.  
565
566 Reset value: 0x0"]
567    #[inline(always)]
568    pub fn r_rx_full(&self) -> R_RX_FULL_R {
569        R_RX_FULL_R::new(((self.bits >> 2) & 1) != 0)
570    }
571    #[doc = "Bit 3 - See IC_RAW_INTR_STAT for a detailed description of R_TX_OVER bit.  
572
573 Reset value: 0x0"]
574    #[inline(always)]
575    pub fn r_tx_over(&self) -> R_TX_OVER_R {
576        R_TX_OVER_R::new(((self.bits >> 3) & 1) != 0)
577    }
578    #[doc = "Bit 4 - See IC_RAW_INTR_STAT for a detailed description of R_TX_EMPTY bit.  
579
580 Reset value: 0x0"]
581    #[inline(always)]
582    pub fn r_tx_empty(&self) -> R_TX_EMPTY_R {
583        R_TX_EMPTY_R::new(((self.bits >> 4) & 1) != 0)
584    }
585    #[doc = "Bit 5 - See IC_RAW_INTR_STAT for a detailed description of R_RD_REQ bit.  
586
587 Reset value: 0x0"]
588    #[inline(always)]
589    pub fn r_rd_req(&self) -> R_RD_REQ_R {
590        R_RD_REQ_R::new(((self.bits >> 5) & 1) != 0)
591    }
592    #[doc = "Bit 6 - See IC_RAW_INTR_STAT for a detailed description of R_TX_ABRT bit.  
593
594 Reset value: 0x0"]
595    #[inline(always)]
596    pub fn r_tx_abrt(&self) -> R_TX_ABRT_R {
597        R_TX_ABRT_R::new(((self.bits >> 6) & 1) != 0)
598    }
599    #[doc = "Bit 7 - See IC_RAW_INTR_STAT for a detailed description of R_RX_DONE bit.  
600
601 Reset value: 0x0"]
602    #[inline(always)]
603    pub fn r_rx_done(&self) -> R_RX_DONE_R {
604        R_RX_DONE_R::new(((self.bits >> 7) & 1) != 0)
605    }
606    #[doc = "Bit 8 - See IC_RAW_INTR_STAT for a detailed description of R_ACTIVITY bit.  
607
608 Reset value: 0x0"]
609    #[inline(always)]
610    pub fn r_activity(&self) -> R_ACTIVITY_R {
611        R_ACTIVITY_R::new(((self.bits >> 8) & 1) != 0)
612    }
613    #[doc = "Bit 9 - See IC_RAW_INTR_STAT for a detailed description of R_STOP_DET bit.  
614
615 Reset value: 0x0"]
616    #[inline(always)]
617    pub fn r_stop_det(&self) -> R_STOP_DET_R {
618        R_STOP_DET_R::new(((self.bits >> 9) & 1) != 0)
619    }
620    #[doc = "Bit 10 - See IC_RAW_INTR_STAT for a detailed description of R_START_DET bit.  
621
622 Reset value: 0x0"]
623    #[inline(always)]
624    pub fn r_start_det(&self) -> R_START_DET_R {
625        R_START_DET_R::new(((self.bits >> 10) & 1) != 0)
626    }
627    #[doc = "Bit 11 - See IC_RAW_INTR_STAT for a detailed description of R_GEN_CALL bit.  
628
629 Reset value: 0x0"]
630    #[inline(always)]
631    pub fn r_gen_call(&self) -> R_GEN_CALL_R {
632        R_GEN_CALL_R::new(((self.bits >> 11) & 1) != 0)
633    }
634    #[doc = "Bit 12 - See IC_RAW_INTR_STAT for a detailed description of R_RESTART_DET bit.  
635
636 Reset value: 0x0"]
637    #[inline(always)]
638    pub fn r_restart_det(&self) -> R_RESTART_DET_R {
639        R_RESTART_DET_R::new(((self.bits >> 12) & 1) != 0)
640    }
641}
642#[doc = "I2C Interrupt Status Register  
643
644 Each bit in this register has a corresponding mask bit in the IC_INTR_MASK register. These bits are cleared by reading the matching interrupt clear register. The unmasked raw versions of these bits are available in the IC_RAW_INTR_STAT register.  
645
646You can [`read`](crate::generic::Reg::read) this register and get [`ic_intr_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
647pub struct IC_INTR_STAT_SPEC;
648impl crate::RegisterSpec for IC_INTR_STAT_SPEC {
649    type Ux = u32;
650}
651#[doc = "`read()` method returns [`ic_intr_stat::R`](R) reader structure"]
652impl crate::Readable for IC_INTR_STAT_SPEC {}
653#[doc = "`reset()` method sets IC_INTR_STAT to value 0"]
654impl crate::Resettable for IC_INTR_STAT_SPEC {
655    const RESET_VALUE: u32 = 0;
656}