rp2040_pac/usbctrl_regs/
buff_cpu_should_handle.rs
1#[doc = "Register `BUFF_CPU_SHOULD_HANDLE` reader"]
2pub type R = crate::R<BUFF_CPU_SHOULD_HANDLE_SPEC>;
3#[doc = "Field `EP0_IN` reader - "]
4pub type EP0_IN_R = crate::BitReader;
5#[doc = "Field `EP0_OUT` reader - "]
6pub type EP0_OUT_R = crate::BitReader;
7#[doc = "Field `EP1_IN` reader - "]
8pub type EP1_IN_R = crate::BitReader;
9#[doc = "Field `EP1_OUT` reader - "]
10pub type EP1_OUT_R = crate::BitReader;
11#[doc = "Field `EP2_IN` reader - "]
12pub type EP2_IN_R = crate::BitReader;
13#[doc = "Field `EP2_OUT` reader - "]
14pub type EP2_OUT_R = crate::BitReader;
15#[doc = "Field `EP3_IN` reader - "]
16pub type EP3_IN_R = crate::BitReader;
17#[doc = "Field `EP3_OUT` reader - "]
18pub type EP3_OUT_R = crate::BitReader;
19#[doc = "Field `EP4_IN` reader - "]
20pub type EP4_IN_R = crate::BitReader;
21#[doc = "Field `EP4_OUT` reader - "]
22pub type EP4_OUT_R = crate::BitReader;
23#[doc = "Field `EP5_IN` reader - "]
24pub type EP5_IN_R = crate::BitReader;
25#[doc = "Field `EP5_OUT` reader - "]
26pub type EP5_OUT_R = crate::BitReader;
27#[doc = "Field `EP6_IN` reader - "]
28pub type EP6_IN_R = crate::BitReader;
29#[doc = "Field `EP6_OUT` reader - "]
30pub type EP6_OUT_R = crate::BitReader;
31#[doc = "Field `EP7_IN` reader - "]
32pub type EP7_IN_R = crate::BitReader;
33#[doc = "Field `EP7_OUT` reader - "]
34pub type EP7_OUT_R = crate::BitReader;
35#[doc = "Field `EP8_IN` reader - "]
36pub type EP8_IN_R = crate::BitReader;
37#[doc = "Field `EP8_OUT` reader - "]
38pub type EP8_OUT_R = crate::BitReader;
39#[doc = "Field `EP9_IN` reader - "]
40pub type EP9_IN_R = crate::BitReader;
41#[doc = "Field `EP9_OUT` reader - "]
42pub type EP9_OUT_R = crate::BitReader;
43#[doc = "Field `EP10_IN` reader - "]
44pub type EP10_IN_R = crate::BitReader;
45#[doc = "Field `EP10_OUT` reader - "]
46pub type EP10_OUT_R = crate::BitReader;
47#[doc = "Field `EP11_IN` reader - "]
48pub type EP11_IN_R = crate::BitReader;
49#[doc = "Field `EP11_OUT` reader - "]
50pub type EP11_OUT_R = crate::BitReader;
51#[doc = "Field `EP12_IN` reader - "]
52pub type EP12_IN_R = crate::BitReader;
53#[doc = "Field `EP12_OUT` reader - "]
54pub type EP12_OUT_R = crate::BitReader;
55#[doc = "Field `EP13_IN` reader - "]
56pub type EP13_IN_R = crate::BitReader;
57#[doc = "Field `EP13_OUT` reader - "]
58pub type EP13_OUT_R = crate::BitReader;
59#[doc = "Field `EP14_IN` reader - "]
60pub type EP14_IN_R = crate::BitReader;
61#[doc = "Field `EP14_OUT` reader - "]
62pub type EP14_OUT_R = crate::BitReader;
63#[doc = "Field `EP15_IN` reader - "]
64pub type EP15_IN_R = crate::BitReader;
65#[doc = "Field `EP15_OUT` reader - "]
66pub type EP15_OUT_R = crate::BitReader;
67impl R {
68 #[doc = "Bit 0"]
69 #[inline(always)]
70 pub fn ep0_in(&self) -> EP0_IN_R {
71 EP0_IN_R::new((self.bits & 1) != 0)
72 }
73 #[doc = "Bit 1"]
74 #[inline(always)]
75 pub fn ep0_out(&self) -> EP0_OUT_R {
76 EP0_OUT_R::new(((self.bits >> 1) & 1) != 0)
77 }
78 #[doc = "Bit 2"]
79 #[inline(always)]
80 pub fn ep1_in(&self) -> EP1_IN_R {
81 EP1_IN_R::new(((self.bits >> 2) & 1) != 0)
82 }
83 #[doc = "Bit 3"]
84 #[inline(always)]
85 pub fn ep1_out(&self) -> EP1_OUT_R {
86 EP1_OUT_R::new(((self.bits >> 3) & 1) != 0)
87 }
88 #[doc = "Bit 4"]
89 #[inline(always)]
90 pub fn ep2_in(&self) -> EP2_IN_R {
91 EP2_IN_R::new(((self.bits >> 4) & 1) != 0)
92 }
93 #[doc = "Bit 5"]
94 #[inline(always)]
95 pub fn ep2_out(&self) -> EP2_OUT_R {
96 EP2_OUT_R::new(((self.bits >> 5) & 1) != 0)
97 }
98 #[doc = "Bit 6"]
99 #[inline(always)]
100 pub fn ep3_in(&self) -> EP3_IN_R {
101 EP3_IN_R::new(((self.bits >> 6) & 1) != 0)
102 }
103 #[doc = "Bit 7"]
104 #[inline(always)]
105 pub fn ep3_out(&self) -> EP3_OUT_R {
106 EP3_OUT_R::new(((self.bits >> 7) & 1) != 0)
107 }
108 #[doc = "Bit 8"]
109 #[inline(always)]
110 pub fn ep4_in(&self) -> EP4_IN_R {
111 EP4_IN_R::new(((self.bits >> 8) & 1) != 0)
112 }
113 #[doc = "Bit 9"]
114 #[inline(always)]
115 pub fn ep4_out(&self) -> EP4_OUT_R {
116 EP4_OUT_R::new(((self.bits >> 9) & 1) != 0)
117 }
118 #[doc = "Bit 10"]
119 #[inline(always)]
120 pub fn ep5_in(&self) -> EP5_IN_R {
121 EP5_IN_R::new(((self.bits >> 10) & 1) != 0)
122 }
123 #[doc = "Bit 11"]
124 #[inline(always)]
125 pub fn ep5_out(&self) -> EP5_OUT_R {
126 EP5_OUT_R::new(((self.bits >> 11) & 1) != 0)
127 }
128 #[doc = "Bit 12"]
129 #[inline(always)]
130 pub fn ep6_in(&self) -> EP6_IN_R {
131 EP6_IN_R::new(((self.bits >> 12) & 1) != 0)
132 }
133 #[doc = "Bit 13"]
134 #[inline(always)]
135 pub fn ep6_out(&self) -> EP6_OUT_R {
136 EP6_OUT_R::new(((self.bits >> 13) & 1) != 0)
137 }
138 #[doc = "Bit 14"]
139 #[inline(always)]
140 pub fn ep7_in(&self) -> EP7_IN_R {
141 EP7_IN_R::new(((self.bits >> 14) & 1) != 0)
142 }
143 #[doc = "Bit 15"]
144 #[inline(always)]
145 pub fn ep7_out(&self) -> EP7_OUT_R {
146 EP7_OUT_R::new(((self.bits >> 15) & 1) != 0)
147 }
148 #[doc = "Bit 16"]
149 #[inline(always)]
150 pub fn ep8_in(&self) -> EP8_IN_R {
151 EP8_IN_R::new(((self.bits >> 16) & 1) != 0)
152 }
153 #[doc = "Bit 17"]
154 #[inline(always)]
155 pub fn ep8_out(&self) -> EP8_OUT_R {
156 EP8_OUT_R::new(((self.bits >> 17) & 1) != 0)
157 }
158 #[doc = "Bit 18"]
159 #[inline(always)]
160 pub fn ep9_in(&self) -> EP9_IN_R {
161 EP9_IN_R::new(((self.bits >> 18) & 1) != 0)
162 }
163 #[doc = "Bit 19"]
164 #[inline(always)]
165 pub fn ep9_out(&self) -> EP9_OUT_R {
166 EP9_OUT_R::new(((self.bits >> 19) & 1) != 0)
167 }
168 #[doc = "Bit 20"]
169 #[inline(always)]
170 pub fn ep10_in(&self) -> EP10_IN_R {
171 EP10_IN_R::new(((self.bits >> 20) & 1) != 0)
172 }
173 #[doc = "Bit 21"]
174 #[inline(always)]
175 pub fn ep10_out(&self) -> EP10_OUT_R {
176 EP10_OUT_R::new(((self.bits >> 21) & 1) != 0)
177 }
178 #[doc = "Bit 22"]
179 #[inline(always)]
180 pub fn ep11_in(&self) -> EP11_IN_R {
181 EP11_IN_R::new(((self.bits >> 22) & 1) != 0)
182 }
183 #[doc = "Bit 23"]
184 #[inline(always)]
185 pub fn ep11_out(&self) -> EP11_OUT_R {
186 EP11_OUT_R::new(((self.bits >> 23) & 1) != 0)
187 }
188 #[doc = "Bit 24"]
189 #[inline(always)]
190 pub fn ep12_in(&self) -> EP12_IN_R {
191 EP12_IN_R::new(((self.bits >> 24) & 1) != 0)
192 }
193 #[doc = "Bit 25"]
194 #[inline(always)]
195 pub fn ep12_out(&self) -> EP12_OUT_R {
196 EP12_OUT_R::new(((self.bits >> 25) & 1) != 0)
197 }
198 #[doc = "Bit 26"]
199 #[inline(always)]
200 pub fn ep13_in(&self) -> EP13_IN_R {
201 EP13_IN_R::new(((self.bits >> 26) & 1) != 0)
202 }
203 #[doc = "Bit 27"]
204 #[inline(always)]
205 pub fn ep13_out(&self) -> EP13_OUT_R {
206 EP13_OUT_R::new(((self.bits >> 27) & 1) != 0)
207 }
208 #[doc = "Bit 28"]
209 #[inline(always)]
210 pub fn ep14_in(&self) -> EP14_IN_R {
211 EP14_IN_R::new(((self.bits >> 28) & 1) != 0)
212 }
213 #[doc = "Bit 29"]
214 #[inline(always)]
215 pub fn ep14_out(&self) -> EP14_OUT_R {
216 EP14_OUT_R::new(((self.bits >> 29) & 1) != 0)
217 }
218 #[doc = "Bit 30"]
219 #[inline(always)]
220 pub fn ep15_in(&self) -> EP15_IN_R {
221 EP15_IN_R::new(((self.bits >> 30) & 1) != 0)
222 }
223 #[doc = "Bit 31"]
224 #[inline(always)]
225 pub fn ep15_out(&self) -> EP15_OUT_R {
226 EP15_OUT_R::new(((self.bits >> 31) & 1) != 0)
227 }
228}
229#[doc = "Which of the double buffers should be handled. Only valid if using an interrupt per buffer (i.e. not per 2 buffers). Not valid for host interrupt endpoint polling because they are only single buffered.
230
231You can [`read`](crate::generic::Reg::read) this register and get [`buff_cpu_should_handle::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
232pub struct BUFF_CPU_SHOULD_HANDLE_SPEC;
233impl crate::RegisterSpec for BUFF_CPU_SHOULD_HANDLE_SPEC {
234 type Ux = u32;
235}
236#[doc = "`read()` method returns [`buff_cpu_should_handle::R`](R) reader structure"]
237impl crate::Readable for BUFF_CPU_SHOULD_HANDLE_SPEC {}
238#[doc = "`reset()` method sets BUFF_CPU_SHOULD_HANDLE to value 0"]
239impl crate::Resettable for BUFF_CPU_SHOULD_HANDLE_SPEC {
240 const RESET_VALUE: u32 = 0;
241}