Skip to main content

rp2040/usbctrl_regs/
buff_status.rs

1#[doc = "Reader of register BUFF_STATUS"]
2pub type R = crate::R<u32, super::BUFF_STATUS>;
3#[doc = "Reader of field `EP15_OUT`"]
4pub type EP15_OUT_R = crate::R<bool, bool>;
5#[doc = "Reader of field `EP15_IN`"]
6pub type EP15_IN_R = crate::R<bool, bool>;
7#[doc = "Reader of field `EP14_OUT`"]
8pub type EP14_OUT_R = crate::R<bool, bool>;
9#[doc = "Reader of field `EP14_IN`"]
10pub type EP14_IN_R = crate::R<bool, bool>;
11#[doc = "Reader of field `EP13_OUT`"]
12pub type EP13_OUT_R = crate::R<bool, bool>;
13#[doc = "Reader of field `EP13_IN`"]
14pub type EP13_IN_R = crate::R<bool, bool>;
15#[doc = "Reader of field `EP12_OUT`"]
16pub type EP12_OUT_R = crate::R<bool, bool>;
17#[doc = "Reader of field `EP12_IN`"]
18pub type EP12_IN_R = crate::R<bool, bool>;
19#[doc = "Reader of field `EP11_OUT`"]
20pub type EP11_OUT_R = crate::R<bool, bool>;
21#[doc = "Reader of field `EP11_IN`"]
22pub type EP11_IN_R = crate::R<bool, bool>;
23#[doc = "Reader of field `EP10_OUT`"]
24pub type EP10_OUT_R = crate::R<bool, bool>;
25#[doc = "Reader of field `EP10_IN`"]
26pub type EP10_IN_R = crate::R<bool, bool>;
27#[doc = "Reader of field `EP9_OUT`"]
28pub type EP9_OUT_R = crate::R<bool, bool>;
29#[doc = "Reader of field `EP9_IN`"]
30pub type EP9_IN_R = crate::R<bool, bool>;
31#[doc = "Reader of field `EP8_OUT`"]
32pub type EP8_OUT_R = crate::R<bool, bool>;
33#[doc = "Reader of field `EP8_IN`"]
34pub type EP8_IN_R = crate::R<bool, bool>;
35#[doc = "Reader of field `EP7_OUT`"]
36pub type EP7_OUT_R = crate::R<bool, bool>;
37#[doc = "Reader of field `EP7_IN`"]
38pub type EP7_IN_R = crate::R<bool, bool>;
39#[doc = "Reader of field `EP6_OUT`"]
40pub type EP6_OUT_R = crate::R<bool, bool>;
41#[doc = "Reader of field `EP6_IN`"]
42pub type EP6_IN_R = crate::R<bool, bool>;
43#[doc = "Reader of field `EP5_OUT`"]
44pub type EP5_OUT_R = crate::R<bool, bool>;
45#[doc = "Reader of field `EP5_IN`"]
46pub type EP5_IN_R = crate::R<bool, bool>;
47#[doc = "Reader of field `EP4_OUT`"]
48pub type EP4_OUT_R = crate::R<bool, bool>;
49#[doc = "Reader of field `EP4_IN`"]
50pub type EP4_IN_R = crate::R<bool, bool>;
51#[doc = "Reader of field `EP3_OUT`"]
52pub type EP3_OUT_R = crate::R<bool, bool>;
53#[doc = "Reader of field `EP3_IN`"]
54pub type EP3_IN_R = crate::R<bool, bool>;
55#[doc = "Reader of field `EP2_OUT`"]
56pub type EP2_OUT_R = crate::R<bool, bool>;
57#[doc = "Reader of field `EP2_IN`"]
58pub type EP2_IN_R = crate::R<bool, bool>;
59#[doc = "Reader of field `EP1_OUT`"]
60pub type EP1_OUT_R = crate::R<bool, bool>;
61#[doc = "Reader of field `EP1_IN`"]
62pub type EP1_IN_R = crate::R<bool, bool>;
63#[doc = "Reader of field `EP0_OUT`"]
64pub type EP0_OUT_R = crate::R<bool, bool>;
65#[doc = "Reader of field `EP0_IN`"]
66pub type EP0_IN_R = crate::R<bool, bool>;
67impl R {
68    #[doc = "Bit 31"]
69    #[inline(always)]
70    pub fn ep15_out(&self) -> EP15_OUT_R {
71        EP15_OUT_R::new(((self.bits >> 31) & 0x01) != 0)
72    }
73    #[doc = "Bit 30"]
74    #[inline(always)]
75    pub fn ep15_in(&self) -> EP15_IN_R {
76        EP15_IN_R::new(((self.bits >> 30) & 0x01) != 0)
77    }
78    #[doc = "Bit 29"]
79    #[inline(always)]
80    pub fn ep14_out(&self) -> EP14_OUT_R {
81        EP14_OUT_R::new(((self.bits >> 29) & 0x01) != 0)
82    }
83    #[doc = "Bit 28"]
84    #[inline(always)]
85    pub fn ep14_in(&self) -> EP14_IN_R {
86        EP14_IN_R::new(((self.bits >> 28) & 0x01) != 0)
87    }
88    #[doc = "Bit 27"]
89    #[inline(always)]
90    pub fn ep13_out(&self) -> EP13_OUT_R {
91        EP13_OUT_R::new(((self.bits >> 27) & 0x01) != 0)
92    }
93    #[doc = "Bit 26"]
94    #[inline(always)]
95    pub fn ep13_in(&self) -> EP13_IN_R {
96        EP13_IN_R::new(((self.bits >> 26) & 0x01) != 0)
97    }
98    #[doc = "Bit 25"]
99    #[inline(always)]
100    pub fn ep12_out(&self) -> EP12_OUT_R {
101        EP12_OUT_R::new(((self.bits >> 25) & 0x01) != 0)
102    }
103    #[doc = "Bit 24"]
104    #[inline(always)]
105    pub fn ep12_in(&self) -> EP12_IN_R {
106        EP12_IN_R::new(((self.bits >> 24) & 0x01) != 0)
107    }
108    #[doc = "Bit 23"]
109    #[inline(always)]
110    pub fn ep11_out(&self) -> EP11_OUT_R {
111        EP11_OUT_R::new(((self.bits >> 23) & 0x01) != 0)
112    }
113    #[doc = "Bit 22"]
114    #[inline(always)]
115    pub fn ep11_in(&self) -> EP11_IN_R {
116        EP11_IN_R::new(((self.bits >> 22) & 0x01) != 0)
117    }
118    #[doc = "Bit 21"]
119    #[inline(always)]
120    pub fn ep10_out(&self) -> EP10_OUT_R {
121        EP10_OUT_R::new(((self.bits >> 21) & 0x01) != 0)
122    }
123    #[doc = "Bit 20"]
124    #[inline(always)]
125    pub fn ep10_in(&self) -> EP10_IN_R {
126        EP10_IN_R::new(((self.bits >> 20) & 0x01) != 0)
127    }
128    #[doc = "Bit 19"]
129    #[inline(always)]
130    pub fn ep9_out(&self) -> EP9_OUT_R {
131        EP9_OUT_R::new(((self.bits >> 19) & 0x01) != 0)
132    }
133    #[doc = "Bit 18"]
134    #[inline(always)]
135    pub fn ep9_in(&self) -> EP9_IN_R {
136        EP9_IN_R::new(((self.bits >> 18) & 0x01) != 0)
137    }
138    #[doc = "Bit 17"]
139    #[inline(always)]
140    pub fn ep8_out(&self) -> EP8_OUT_R {
141        EP8_OUT_R::new(((self.bits >> 17) & 0x01) != 0)
142    }
143    #[doc = "Bit 16"]
144    #[inline(always)]
145    pub fn ep8_in(&self) -> EP8_IN_R {
146        EP8_IN_R::new(((self.bits >> 16) & 0x01) != 0)
147    }
148    #[doc = "Bit 15"]
149    #[inline(always)]
150    pub fn ep7_out(&self) -> EP7_OUT_R {
151        EP7_OUT_R::new(((self.bits >> 15) & 0x01) != 0)
152    }
153    #[doc = "Bit 14"]
154    #[inline(always)]
155    pub fn ep7_in(&self) -> EP7_IN_R {
156        EP7_IN_R::new(((self.bits >> 14) & 0x01) != 0)
157    }
158    #[doc = "Bit 13"]
159    #[inline(always)]
160    pub fn ep6_out(&self) -> EP6_OUT_R {
161        EP6_OUT_R::new(((self.bits >> 13) & 0x01) != 0)
162    }
163    #[doc = "Bit 12"]
164    #[inline(always)]
165    pub fn ep6_in(&self) -> EP6_IN_R {
166        EP6_IN_R::new(((self.bits >> 12) & 0x01) != 0)
167    }
168    #[doc = "Bit 11"]
169    #[inline(always)]
170    pub fn ep5_out(&self) -> EP5_OUT_R {
171        EP5_OUT_R::new(((self.bits >> 11) & 0x01) != 0)
172    }
173    #[doc = "Bit 10"]
174    #[inline(always)]
175    pub fn ep5_in(&self) -> EP5_IN_R {
176        EP5_IN_R::new(((self.bits >> 10) & 0x01) != 0)
177    }
178    #[doc = "Bit 9"]
179    #[inline(always)]
180    pub fn ep4_out(&self) -> EP4_OUT_R {
181        EP4_OUT_R::new(((self.bits >> 9) & 0x01) != 0)
182    }
183    #[doc = "Bit 8"]
184    #[inline(always)]
185    pub fn ep4_in(&self) -> EP4_IN_R {
186        EP4_IN_R::new(((self.bits >> 8) & 0x01) != 0)
187    }
188    #[doc = "Bit 7"]
189    #[inline(always)]
190    pub fn ep3_out(&self) -> EP3_OUT_R {
191        EP3_OUT_R::new(((self.bits >> 7) & 0x01) != 0)
192    }
193    #[doc = "Bit 6"]
194    #[inline(always)]
195    pub fn ep3_in(&self) -> EP3_IN_R {
196        EP3_IN_R::new(((self.bits >> 6) & 0x01) != 0)
197    }
198    #[doc = "Bit 5"]
199    #[inline(always)]
200    pub fn ep2_out(&self) -> EP2_OUT_R {
201        EP2_OUT_R::new(((self.bits >> 5) & 0x01) != 0)
202    }
203    #[doc = "Bit 4"]
204    #[inline(always)]
205    pub fn ep2_in(&self) -> EP2_IN_R {
206        EP2_IN_R::new(((self.bits >> 4) & 0x01) != 0)
207    }
208    #[doc = "Bit 3"]
209    #[inline(always)]
210    pub fn ep1_out(&self) -> EP1_OUT_R {
211        EP1_OUT_R::new(((self.bits >> 3) & 0x01) != 0)
212    }
213    #[doc = "Bit 2"]
214    #[inline(always)]
215    pub fn ep1_in(&self) -> EP1_IN_R {
216        EP1_IN_R::new(((self.bits >> 2) & 0x01) != 0)
217    }
218    #[doc = "Bit 1"]
219    #[inline(always)]
220    pub fn ep0_out(&self) -> EP0_OUT_R {
221        EP0_OUT_R::new(((self.bits >> 1) & 0x01) != 0)
222    }
223    #[doc = "Bit 0"]
224    #[inline(always)]
225    pub fn ep0_in(&self) -> EP0_IN_R {
226        EP0_IN_R::new((self.bits & 0x01) != 0)
227    }
228}