rp2040_pac/io_bank0/
proc0_ints.rs

1#[doc = "Register `PROC0_INTS%s` reader"]
2pub type R = crate::R<PROC0_INTS_SPEC>;
3#[doc = "Field `GPIO0_LEVEL_LOW` reader - "]
4pub type GPIO0_LEVEL_LOW_R = crate::BitReader;
5#[doc = "Field `GPIO0_LEVEL_HIGH` reader - "]
6pub type GPIO0_LEVEL_HIGH_R = crate::BitReader;
7#[doc = "Field `GPIO0_EDGE_LOW` reader - "]
8pub type GPIO0_EDGE_LOW_R = crate::BitReader;
9#[doc = "Field `GPIO0_EDGE_HIGH` reader - "]
10pub type GPIO0_EDGE_HIGH_R = crate::BitReader;
11#[doc = "Field `GPIO1_LEVEL_LOW` reader - "]
12pub type GPIO1_LEVEL_LOW_R = crate::BitReader;
13#[doc = "Field `GPIO1_LEVEL_HIGH` reader - "]
14pub type GPIO1_LEVEL_HIGH_R = crate::BitReader;
15#[doc = "Field `GPIO1_EDGE_LOW` reader - "]
16pub type GPIO1_EDGE_LOW_R = crate::BitReader;
17#[doc = "Field `GPIO1_EDGE_HIGH` reader - "]
18pub type GPIO1_EDGE_HIGH_R = crate::BitReader;
19#[doc = "Field `GPIO2_LEVEL_LOW` reader - "]
20pub type GPIO2_LEVEL_LOW_R = crate::BitReader;
21#[doc = "Field `GPIO2_LEVEL_HIGH` reader - "]
22pub type GPIO2_LEVEL_HIGH_R = crate::BitReader;
23#[doc = "Field `GPIO2_EDGE_LOW` reader - "]
24pub type GPIO2_EDGE_LOW_R = crate::BitReader;
25#[doc = "Field `GPIO2_EDGE_HIGH` reader - "]
26pub type GPIO2_EDGE_HIGH_R = crate::BitReader;
27#[doc = "Field `GPIO3_LEVEL_LOW` reader - "]
28pub type GPIO3_LEVEL_LOW_R = crate::BitReader;
29#[doc = "Field `GPIO3_LEVEL_HIGH` reader - "]
30pub type GPIO3_LEVEL_HIGH_R = crate::BitReader;
31#[doc = "Field `GPIO3_EDGE_LOW` reader - "]
32pub type GPIO3_EDGE_LOW_R = crate::BitReader;
33#[doc = "Field `GPIO3_EDGE_HIGH` reader - "]
34pub type GPIO3_EDGE_HIGH_R = crate::BitReader;
35#[doc = "Field `GPIO4_LEVEL_LOW` reader - "]
36pub type GPIO4_LEVEL_LOW_R = crate::BitReader;
37#[doc = "Field `GPIO4_LEVEL_HIGH` reader - "]
38pub type GPIO4_LEVEL_HIGH_R = crate::BitReader;
39#[doc = "Field `GPIO4_EDGE_LOW` reader - "]
40pub type GPIO4_EDGE_LOW_R = crate::BitReader;
41#[doc = "Field `GPIO4_EDGE_HIGH` reader - "]
42pub type GPIO4_EDGE_HIGH_R = crate::BitReader;
43#[doc = "Field `GPIO5_LEVEL_LOW` reader - "]
44pub type GPIO5_LEVEL_LOW_R = crate::BitReader;
45#[doc = "Field `GPIO5_LEVEL_HIGH` reader - "]
46pub type GPIO5_LEVEL_HIGH_R = crate::BitReader;
47#[doc = "Field `GPIO5_EDGE_LOW` reader - "]
48pub type GPIO5_EDGE_LOW_R = crate::BitReader;
49#[doc = "Field `GPIO5_EDGE_HIGH` reader - "]
50pub type GPIO5_EDGE_HIGH_R = crate::BitReader;
51#[doc = "Field `GPIO6_LEVEL_LOW` reader - "]
52pub type GPIO6_LEVEL_LOW_R = crate::BitReader;
53#[doc = "Field `GPIO6_LEVEL_HIGH` reader - "]
54pub type GPIO6_LEVEL_HIGH_R = crate::BitReader;
55#[doc = "Field `GPIO6_EDGE_LOW` reader - "]
56pub type GPIO6_EDGE_LOW_R = crate::BitReader;
57#[doc = "Field `GPIO6_EDGE_HIGH` reader - "]
58pub type GPIO6_EDGE_HIGH_R = crate::BitReader;
59#[doc = "Field `GPIO7_LEVEL_LOW` reader - "]
60pub type GPIO7_LEVEL_LOW_R = crate::BitReader;
61#[doc = "Field `GPIO7_LEVEL_HIGH` reader - "]
62pub type GPIO7_LEVEL_HIGH_R = crate::BitReader;
63#[doc = "Field `GPIO7_EDGE_LOW` reader - "]
64pub type GPIO7_EDGE_LOW_R = crate::BitReader;
65#[doc = "Field `GPIO7_EDGE_HIGH` reader - "]
66pub type GPIO7_EDGE_HIGH_R = crate::BitReader;
67impl R {
68    #[doc = "Bit 0"]
69    #[inline(always)]
70    pub fn gpio0_level_low(&self) -> GPIO0_LEVEL_LOW_R {
71        GPIO0_LEVEL_LOW_R::new((self.bits & 1) != 0)
72    }
73    #[doc = "Bit 1"]
74    #[inline(always)]
75    pub fn gpio0_level_high(&self) -> GPIO0_LEVEL_HIGH_R {
76        GPIO0_LEVEL_HIGH_R::new(((self.bits >> 1) & 1) != 0)
77    }
78    #[doc = "Bit 2"]
79    #[inline(always)]
80    pub fn gpio0_edge_low(&self) -> GPIO0_EDGE_LOW_R {
81        GPIO0_EDGE_LOW_R::new(((self.bits >> 2) & 1) != 0)
82    }
83    #[doc = "Bit 3"]
84    #[inline(always)]
85    pub fn gpio0_edge_high(&self) -> GPIO0_EDGE_HIGH_R {
86        GPIO0_EDGE_HIGH_R::new(((self.bits >> 3) & 1) != 0)
87    }
88    #[doc = "Bit 4"]
89    #[inline(always)]
90    pub fn gpio1_level_low(&self) -> GPIO1_LEVEL_LOW_R {
91        GPIO1_LEVEL_LOW_R::new(((self.bits >> 4) & 1) != 0)
92    }
93    #[doc = "Bit 5"]
94    #[inline(always)]
95    pub fn gpio1_level_high(&self) -> GPIO1_LEVEL_HIGH_R {
96        GPIO1_LEVEL_HIGH_R::new(((self.bits >> 5) & 1) != 0)
97    }
98    #[doc = "Bit 6"]
99    #[inline(always)]
100    pub fn gpio1_edge_low(&self) -> GPIO1_EDGE_LOW_R {
101        GPIO1_EDGE_LOW_R::new(((self.bits >> 6) & 1) != 0)
102    }
103    #[doc = "Bit 7"]
104    #[inline(always)]
105    pub fn gpio1_edge_high(&self) -> GPIO1_EDGE_HIGH_R {
106        GPIO1_EDGE_HIGH_R::new(((self.bits >> 7) & 1) != 0)
107    }
108    #[doc = "Bit 8"]
109    #[inline(always)]
110    pub fn gpio2_level_low(&self) -> GPIO2_LEVEL_LOW_R {
111        GPIO2_LEVEL_LOW_R::new(((self.bits >> 8) & 1) != 0)
112    }
113    #[doc = "Bit 9"]
114    #[inline(always)]
115    pub fn gpio2_level_high(&self) -> GPIO2_LEVEL_HIGH_R {
116        GPIO2_LEVEL_HIGH_R::new(((self.bits >> 9) & 1) != 0)
117    }
118    #[doc = "Bit 10"]
119    #[inline(always)]
120    pub fn gpio2_edge_low(&self) -> GPIO2_EDGE_LOW_R {
121        GPIO2_EDGE_LOW_R::new(((self.bits >> 10) & 1) != 0)
122    }
123    #[doc = "Bit 11"]
124    #[inline(always)]
125    pub fn gpio2_edge_high(&self) -> GPIO2_EDGE_HIGH_R {
126        GPIO2_EDGE_HIGH_R::new(((self.bits >> 11) & 1) != 0)
127    }
128    #[doc = "Bit 12"]
129    #[inline(always)]
130    pub fn gpio3_level_low(&self) -> GPIO3_LEVEL_LOW_R {
131        GPIO3_LEVEL_LOW_R::new(((self.bits >> 12) & 1) != 0)
132    }
133    #[doc = "Bit 13"]
134    #[inline(always)]
135    pub fn gpio3_level_high(&self) -> GPIO3_LEVEL_HIGH_R {
136        GPIO3_LEVEL_HIGH_R::new(((self.bits >> 13) & 1) != 0)
137    }
138    #[doc = "Bit 14"]
139    #[inline(always)]
140    pub fn gpio3_edge_low(&self) -> GPIO3_EDGE_LOW_R {
141        GPIO3_EDGE_LOW_R::new(((self.bits >> 14) & 1) != 0)
142    }
143    #[doc = "Bit 15"]
144    #[inline(always)]
145    pub fn gpio3_edge_high(&self) -> GPIO3_EDGE_HIGH_R {
146        GPIO3_EDGE_HIGH_R::new(((self.bits >> 15) & 1) != 0)
147    }
148    #[doc = "Bit 16"]
149    #[inline(always)]
150    pub fn gpio4_level_low(&self) -> GPIO4_LEVEL_LOW_R {
151        GPIO4_LEVEL_LOW_R::new(((self.bits >> 16) & 1) != 0)
152    }
153    #[doc = "Bit 17"]
154    #[inline(always)]
155    pub fn gpio4_level_high(&self) -> GPIO4_LEVEL_HIGH_R {
156        GPIO4_LEVEL_HIGH_R::new(((self.bits >> 17) & 1) != 0)
157    }
158    #[doc = "Bit 18"]
159    #[inline(always)]
160    pub fn gpio4_edge_low(&self) -> GPIO4_EDGE_LOW_R {
161        GPIO4_EDGE_LOW_R::new(((self.bits >> 18) & 1) != 0)
162    }
163    #[doc = "Bit 19"]
164    #[inline(always)]
165    pub fn gpio4_edge_high(&self) -> GPIO4_EDGE_HIGH_R {
166        GPIO4_EDGE_HIGH_R::new(((self.bits >> 19) & 1) != 0)
167    }
168    #[doc = "Bit 20"]
169    #[inline(always)]
170    pub fn gpio5_level_low(&self) -> GPIO5_LEVEL_LOW_R {
171        GPIO5_LEVEL_LOW_R::new(((self.bits >> 20) & 1) != 0)
172    }
173    #[doc = "Bit 21"]
174    #[inline(always)]
175    pub fn gpio5_level_high(&self) -> GPIO5_LEVEL_HIGH_R {
176        GPIO5_LEVEL_HIGH_R::new(((self.bits >> 21) & 1) != 0)
177    }
178    #[doc = "Bit 22"]
179    #[inline(always)]
180    pub fn gpio5_edge_low(&self) -> GPIO5_EDGE_LOW_R {
181        GPIO5_EDGE_LOW_R::new(((self.bits >> 22) & 1) != 0)
182    }
183    #[doc = "Bit 23"]
184    #[inline(always)]
185    pub fn gpio5_edge_high(&self) -> GPIO5_EDGE_HIGH_R {
186        GPIO5_EDGE_HIGH_R::new(((self.bits >> 23) & 1) != 0)
187    }
188    #[doc = "Bit 24"]
189    #[inline(always)]
190    pub fn gpio6_level_low(&self) -> GPIO6_LEVEL_LOW_R {
191        GPIO6_LEVEL_LOW_R::new(((self.bits >> 24) & 1) != 0)
192    }
193    #[doc = "Bit 25"]
194    #[inline(always)]
195    pub fn gpio6_level_high(&self) -> GPIO6_LEVEL_HIGH_R {
196        GPIO6_LEVEL_HIGH_R::new(((self.bits >> 25) & 1) != 0)
197    }
198    #[doc = "Bit 26"]
199    #[inline(always)]
200    pub fn gpio6_edge_low(&self) -> GPIO6_EDGE_LOW_R {
201        GPIO6_EDGE_LOW_R::new(((self.bits >> 26) & 1) != 0)
202    }
203    #[doc = "Bit 27"]
204    #[inline(always)]
205    pub fn gpio6_edge_high(&self) -> GPIO6_EDGE_HIGH_R {
206        GPIO6_EDGE_HIGH_R::new(((self.bits >> 27) & 1) != 0)
207    }
208    #[doc = "Bit 28"]
209    #[inline(always)]
210    pub fn gpio7_level_low(&self) -> GPIO7_LEVEL_LOW_R {
211        GPIO7_LEVEL_LOW_R::new(((self.bits >> 28) & 1) != 0)
212    }
213    #[doc = "Bit 29"]
214    #[inline(always)]
215    pub fn gpio7_level_high(&self) -> GPIO7_LEVEL_HIGH_R {
216        GPIO7_LEVEL_HIGH_R::new(((self.bits >> 29) & 1) != 0)
217    }
218    #[doc = "Bit 30"]
219    #[inline(always)]
220    pub fn gpio7_edge_low(&self) -> GPIO7_EDGE_LOW_R {
221        GPIO7_EDGE_LOW_R::new(((self.bits >> 30) & 1) != 0)
222    }
223    #[doc = "Bit 31"]
224    #[inline(always)]
225    pub fn gpio7_edge_high(&self) -> GPIO7_EDGE_HIGH_R {
226        GPIO7_EDGE_HIGH_R::new(((self.bits >> 31) & 1) != 0)
227    }
228}
229#[doc = "Interrupt status after masking &amp; forcing for proc0  
230
231You can [`read`](crate::generic::Reg::read) this register and get [`proc0_ints::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
232pub struct PROC0_INTS_SPEC;
233impl crate::RegisterSpec for PROC0_INTS_SPEC {
234    type Ux = u32;
235}
236#[doc = "`read()` method returns [`proc0_ints::R`](R) reader structure"]
237impl crate::Readable for PROC0_INTS_SPEC {}
238#[doc = "`reset()` method sets PROC0_INTS%s to value 0"]
239impl crate::Resettable for PROC0_INTS_SPEC {
240    const RESET_VALUE: u32 = 0;
241}