rp2040_pac/pio0/sm_irq/
irq_ints.rs
1#[doc = "Register `IRQ_INTS` reader"]
2pub type R = crate::R<IRQ_INTS_SPEC>;
3#[doc = "Field `SM0_RXNEMPTY` reader - "]
4pub type SM0_RXNEMPTY_R = crate::BitReader;
5#[doc = "Field `SM1_RXNEMPTY` reader - "]
6pub type SM1_RXNEMPTY_R = crate::BitReader;
7#[doc = "Field `SM2_RXNEMPTY` reader - "]
8pub type SM2_RXNEMPTY_R = crate::BitReader;
9#[doc = "Field `SM3_RXNEMPTY` reader - "]
10pub type SM3_RXNEMPTY_R = crate::BitReader;
11#[doc = "Field `SM0_TXNFULL` reader - "]
12pub type SM0_TXNFULL_R = crate::BitReader;
13#[doc = "Field `SM1_TXNFULL` reader - "]
14pub type SM1_TXNFULL_R = crate::BitReader;
15#[doc = "Field `SM2_TXNFULL` reader - "]
16pub type SM2_TXNFULL_R = crate::BitReader;
17#[doc = "Field `SM3_TXNFULL` reader - "]
18pub type SM3_TXNFULL_R = crate::BitReader;
19#[doc = "Field `SM0` reader - "]
20pub type SM0_R = crate::BitReader;
21#[doc = "Field `SM1` reader - "]
22pub type SM1_R = crate::BitReader;
23#[doc = "Field `SM2` reader - "]
24pub type SM2_R = crate::BitReader;
25#[doc = "Field `SM3` reader - "]
26pub type SM3_R = crate::BitReader;
27impl R {
28 #[doc = "Bit 0"]
29 #[inline(always)]
30 pub fn sm0_rxnempty(&self) -> SM0_RXNEMPTY_R {
31 SM0_RXNEMPTY_R::new((self.bits & 1) != 0)
32 }
33 #[doc = "Bit 1"]
34 #[inline(always)]
35 pub fn sm1_rxnempty(&self) -> SM1_RXNEMPTY_R {
36 SM1_RXNEMPTY_R::new(((self.bits >> 1) & 1) != 0)
37 }
38 #[doc = "Bit 2"]
39 #[inline(always)]
40 pub fn sm2_rxnempty(&self) -> SM2_RXNEMPTY_R {
41 SM2_RXNEMPTY_R::new(((self.bits >> 2) & 1) != 0)
42 }
43 #[doc = "Bit 3"]
44 #[inline(always)]
45 pub fn sm3_rxnempty(&self) -> SM3_RXNEMPTY_R {
46 SM3_RXNEMPTY_R::new(((self.bits >> 3) & 1) != 0)
47 }
48 #[doc = "Bit 4"]
49 #[inline(always)]
50 pub fn sm0_txnfull(&self) -> SM0_TXNFULL_R {
51 SM0_TXNFULL_R::new(((self.bits >> 4) & 1) != 0)
52 }
53 #[doc = "Bit 5"]
54 #[inline(always)]
55 pub fn sm1_txnfull(&self) -> SM1_TXNFULL_R {
56 SM1_TXNFULL_R::new(((self.bits >> 5) & 1) != 0)
57 }
58 #[doc = "Bit 6"]
59 #[inline(always)]
60 pub fn sm2_txnfull(&self) -> SM2_TXNFULL_R {
61 SM2_TXNFULL_R::new(((self.bits >> 6) & 1) != 0)
62 }
63 #[doc = "Bit 7"]
64 #[inline(always)]
65 pub fn sm3_txnfull(&self) -> SM3_TXNFULL_R {
66 SM3_TXNFULL_R::new(((self.bits >> 7) & 1) != 0)
67 }
68 #[doc = "Bit 8"]
69 #[inline(always)]
70 pub fn sm0(&self) -> SM0_R {
71 SM0_R::new(((self.bits >> 8) & 1) != 0)
72 }
73 #[doc = "Bit 9"]
74 #[inline(always)]
75 pub fn sm1(&self) -> SM1_R {
76 SM1_R::new(((self.bits >> 9) & 1) != 0)
77 }
78 #[doc = "Bit 10"]
79 #[inline(always)]
80 pub fn sm2(&self) -> SM2_R {
81 SM2_R::new(((self.bits >> 10) & 1) != 0)
82 }
83 #[doc = "Bit 11"]
84 #[inline(always)]
85 pub fn sm3(&self) -> SM3_R {
86 SM3_R::new(((self.bits >> 11) & 1) != 0)
87 }
88}
89#[doc = "Interrupt status after masking & forcing for irq0
90
91You can [`read`](crate::generic::Reg::read) this register and get [`irq_ints::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
92pub struct IRQ_INTS_SPEC;
93impl crate::RegisterSpec for IRQ_INTS_SPEC {
94 type Ux = u32;
95}
96#[doc = "`read()` method returns [`irq_ints::R`](R) reader structure"]
97impl crate::Readable for IRQ_INTS_SPEC {}
98#[doc = "`reset()` method sets IRQ_INTS to value 0"]
99impl crate::Resettable for IRQ_INTS_SPEC {
100 const RESET_VALUE: u32 = 0;
101}