1#[doc = "Register `EPOUTEN` reader"]
2pub struct R(crate::R<EPOUTEN_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<EPOUTEN_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<EPOUTEN_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<EPOUTEN_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `EPOUTEN` writer"]
17pub struct W(crate::W<EPOUTEN_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<EPOUTEN_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<EPOUTEN_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<EPOUTEN_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `OUT0` reader - Enable OUT endpoint 0"]
38pub type OUT0_R = crate::BitReader<OUT0_A>;
39#[doc = "Enable OUT endpoint 0\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum OUT0_A {
42 #[doc = "0: Disable endpoint OUT 0 (no response to OUT tokens)"]
43 DISABLE = 0,
44 #[doc = "1: Enable endpoint OUT 0 (response to OUT tokens)"]
45 ENABLE = 1,
46}
47impl From<OUT0_A> for bool {
48 #[inline(always)]
49 fn from(variant: OUT0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl OUT0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> OUT0_A {
57 match self.bits {
58 false => OUT0_A::DISABLE,
59 true => OUT0_A::ENABLE,
60 }
61 }
62 #[doc = "Checks if the value of the field is `DISABLE`"]
63 #[inline(always)]
64 pub fn is_disable(&self) -> bool {
65 *self == OUT0_A::DISABLE
66 }
67 #[doc = "Checks if the value of the field is `ENABLE`"]
68 #[inline(always)]
69 pub fn is_enable(&self) -> bool {
70 *self == OUT0_A::ENABLE
71 }
72}
73#[doc = "Field `OUT0` writer - Enable OUT endpoint 0"]
74pub type OUT0_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT0_A, O>;
75impl<'a, const O: u8> OUT0_W<'a, O> {
76 #[doc = "Disable endpoint OUT 0 (no response to OUT tokens)"]
77 #[inline(always)]
78 pub fn disable(self) -> &'a mut W {
79 self.variant(OUT0_A::DISABLE)
80 }
81 #[doc = "Enable endpoint OUT 0 (response to OUT tokens)"]
82 #[inline(always)]
83 pub fn enable(self) -> &'a mut W {
84 self.variant(OUT0_A::ENABLE)
85 }
86}
87#[doc = "Field `OUT1` reader - Enable OUT endpoint 1"]
88pub type OUT1_R = crate::BitReader<OUT1_A>;
89#[doc = "Enable OUT endpoint 1\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum OUT1_A {
92 #[doc = "0: Disable endpoint OUT 1 (no response to OUT tokens)"]
93 DISABLE = 0,
94 #[doc = "1: Enable endpoint OUT 1 (response to OUT tokens)"]
95 ENABLE = 1,
96}
97impl From<OUT1_A> for bool {
98 #[inline(always)]
99 fn from(variant: OUT1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl OUT1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> OUT1_A {
107 match self.bits {
108 false => OUT1_A::DISABLE,
109 true => OUT1_A::ENABLE,
110 }
111 }
112 #[doc = "Checks if the value of the field is `DISABLE`"]
113 #[inline(always)]
114 pub fn is_disable(&self) -> bool {
115 *self == OUT1_A::DISABLE
116 }
117 #[doc = "Checks if the value of the field is `ENABLE`"]
118 #[inline(always)]
119 pub fn is_enable(&self) -> bool {
120 *self == OUT1_A::ENABLE
121 }
122}
123#[doc = "Field `OUT1` writer - Enable OUT endpoint 1"]
124pub type OUT1_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT1_A, O>;
125impl<'a, const O: u8> OUT1_W<'a, O> {
126 #[doc = "Disable endpoint OUT 1 (no response to OUT tokens)"]
127 #[inline(always)]
128 pub fn disable(self) -> &'a mut W {
129 self.variant(OUT1_A::DISABLE)
130 }
131 #[doc = "Enable endpoint OUT 1 (response to OUT tokens)"]
132 #[inline(always)]
133 pub fn enable(self) -> &'a mut W {
134 self.variant(OUT1_A::ENABLE)
135 }
136}
137#[doc = "Field `OUT2` reader - Enable OUT endpoint 2"]
138pub type OUT2_R = crate::BitReader<OUT2_A>;
139#[doc = "Enable OUT endpoint 2\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum OUT2_A {
142 #[doc = "0: Disable endpoint OUT 2 (no response to OUT tokens)"]
143 DISABLE = 0,
144 #[doc = "1: Enable endpoint OUT 2 (response to OUT tokens)"]
145 ENABLE = 1,
146}
147impl From<OUT2_A> for bool {
148 #[inline(always)]
149 fn from(variant: OUT2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl OUT2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> OUT2_A {
157 match self.bits {
158 false => OUT2_A::DISABLE,
159 true => OUT2_A::ENABLE,
160 }
161 }
162 #[doc = "Checks if the value of the field is `DISABLE`"]
163 #[inline(always)]
164 pub fn is_disable(&self) -> bool {
165 *self == OUT2_A::DISABLE
166 }
167 #[doc = "Checks if the value of the field is `ENABLE`"]
168 #[inline(always)]
169 pub fn is_enable(&self) -> bool {
170 *self == OUT2_A::ENABLE
171 }
172}
173#[doc = "Field `OUT2` writer - Enable OUT endpoint 2"]
174pub type OUT2_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT2_A, O>;
175impl<'a, const O: u8> OUT2_W<'a, O> {
176 #[doc = "Disable endpoint OUT 2 (no response to OUT tokens)"]
177 #[inline(always)]
178 pub fn disable(self) -> &'a mut W {
179 self.variant(OUT2_A::DISABLE)
180 }
181 #[doc = "Enable endpoint OUT 2 (response to OUT tokens)"]
182 #[inline(always)]
183 pub fn enable(self) -> &'a mut W {
184 self.variant(OUT2_A::ENABLE)
185 }
186}
187#[doc = "Field `OUT3` reader - Enable OUT endpoint 3"]
188pub type OUT3_R = crate::BitReader<OUT3_A>;
189#[doc = "Enable OUT endpoint 3\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum OUT3_A {
192 #[doc = "0: Disable endpoint OUT 3 (no response to OUT tokens)"]
193 DISABLE = 0,
194 #[doc = "1: Enable endpoint OUT 3 (response to OUT tokens)"]
195 ENABLE = 1,
196}
197impl From<OUT3_A> for bool {
198 #[inline(always)]
199 fn from(variant: OUT3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl OUT3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> OUT3_A {
207 match self.bits {
208 false => OUT3_A::DISABLE,
209 true => OUT3_A::ENABLE,
210 }
211 }
212 #[doc = "Checks if the value of the field is `DISABLE`"]
213 #[inline(always)]
214 pub fn is_disable(&self) -> bool {
215 *self == OUT3_A::DISABLE
216 }
217 #[doc = "Checks if the value of the field is `ENABLE`"]
218 #[inline(always)]
219 pub fn is_enable(&self) -> bool {
220 *self == OUT3_A::ENABLE
221 }
222}
223#[doc = "Field `OUT3` writer - Enable OUT endpoint 3"]
224pub type OUT3_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT3_A, O>;
225impl<'a, const O: u8> OUT3_W<'a, O> {
226 #[doc = "Disable endpoint OUT 3 (no response to OUT tokens)"]
227 #[inline(always)]
228 pub fn disable(self) -> &'a mut W {
229 self.variant(OUT3_A::DISABLE)
230 }
231 #[doc = "Enable endpoint OUT 3 (response to OUT tokens)"]
232 #[inline(always)]
233 pub fn enable(self) -> &'a mut W {
234 self.variant(OUT3_A::ENABLE)
235 }
236}
237#[doc = "Field `OUT4` reader - Enable OUT endpoint 4"]
238pub type OUT4_R = crate::BitReader<OUT4_A>;
239#[doc = "Enable OUT endpoint 4\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum OUT4_A {
242 #[doc = "0: Disable endpoint OUT 4 (no response to OUT tokens)"]
243 DISABLE = 0,
244 #[doc = "1: Enable endpoint OUT 4 (response to OUT tokens)"]
245 ENABLE = 1,
246}
247impl From<OUT4_A> for bool {
248 #[inline(always)]
249 fn from(variant: OUT4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl OUT4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> OUT4_A {
257 match self.bits {
258 false => OUT4_A::DISABLE,
259 true => OUT4_A::ENABLE,
260 }
261 }
262 #[doc = "Checks if the value of the field is `DISABLE`"]
263 #[inline(always)]
264 pub fn is_disable(&self) -> bool {
265 *self == OUT4_A::DISABLE
266 }
267 #[doc = "Checks if the value of the field is `ENABLE`"]
268 #[inline(always)]
269 pub fn is_enable(&self) -> bool {
270 *self == OUT4_A::ENABLE
271 }
272}
273#[doc = "Field `OUT4` writer - Enable OUT endpoint 4"]
274pub type OUT4_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT4_A, O>;
275impl<'a, const O: u8> OUT4_W<'a, O> {
276 #[doc = "Disable endpoint OUT 4 (no response to OUT tokens)"]
277 #[inline(always)]
278 pub fn disable(self) -> &'a mut W {
279 self.variant(OUT4_A::DISABLE)
280 }
281 #[doc = "Enable endpoint OUT 4 (response to OUT tokens)"]
282 #[inline(always)]
283 pub fn enable(self) -> &'a mut W {
284 self.variant(OUT4_A::ENABLE)
285 }
286}
287#[doc = "Field `OUT5` reader - Enable OUT endpoint 5"]
288pub type OUT5_R = crate::BitReader<OUT5_A>;
289#[doc = "Enable OUT endpoint 5\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum OUT5_A {
292 #[doc = "0: Disable endpoint OUT 5 (no response to OUT tokens)"]
293 DISABLE = 0,
294 #[doc = "1: Enable endpoint OUT 5 (response to OUT tokens)"]
295 ENABLE = 1,
296}
297impl From<OUT5_A> for bool {
298 #[inline(always)]
299 fn from(variant: OUT5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl OUT5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> OUT5_A {
307 match self.bits {
308 false => OUT5_A::DISABLE,
309 true => OUT5_A::ENABLE,
310 }
311 }
312 #[doc = "Checks if the value of the field is `DISABLE`"]
313 #[inline(always)]
314 pub fn is_disable(&self) -> bool {
315 *self == OUT5_A::DISABLE
316 }
317 #[doc = "Checks if the value of the field is `ENABLE`"]
318 #[inline(always)]
319 pub fn is_enable(&self) -> bool {
320 *self == OUT5_A::ENABLE
321 }
322}
323#[doc = "Field `OUT5` writer - Enable OUT endpoint 5"]
324pub type OUT5_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT5_A, O>;
325impl<'a, const O: u8> OUT5_W<'a, O> {
326 #[doc = "Disable endpoint OUT 5 (no response to OUT tokens)"]
327 #[inline(always)]
328 pub fn disable(self) -> &'a mut W {
329 self.variant(OUT5_A::DISABLE)
330 }
331 #[doc = "Enable endpoint OUT 5 (response to OUT tokens)"]
332 #[inline(always)]
333 pub fn enable(self) -> &'a mut W {
334 self.variant(OUT5_A::ENABLE)
335 }
336}
337#[doc = "Field `OUT6` reader - Enable OUT endpoint 6"]
338pub type OUT6_R = crate::BitReader<OUT6_A>;
339#[doc = "Enable OUT endpoint 6\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum OUT6_A {
342 #[doc = "0: Disable endpoint OUT 6 (no response to OUT tokens)"]
343 DISABLE = 0,
344 #[doc = "1: Enable endpoint OUT 6 (response to OUT tokens)"]
345 ENABLE = 1,
346}
347impl From<OUT6_A> for bool {
348 #[inline(always)]
349 fn from(variant: OUT6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl OUT6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> OUT6_A {
357 match self.bits {
358 false => OUT6_A::DISABLE,
359 true => OUT6_A::ENABLE,
360 }
361 }
362 #[doc = "Checks if the value of the field is `DISABLE`"]
363 #[inline(always)]
364 pub fn is_disable(&self) -> bool {
365 *self == OUT6_A::DISABLE
366 }
367 #[doc = "Checks if the value of the field is `ENABLE`"]
368 #[inline(always)]
369 pub fn is_enable(&self) -> bool {
370 *self == OUT6_A::ENABLE
371 }
372}
373#[doc = "Field `OUT6` writer - Enable OUT endpoint 6"]
374pub type OUT6_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT6_A, O>;
375impl<'a, const O: u8> OUT6_W<'a, O> {
376 #[doc = "Disable endpoint OUT 6 (no response to OUT tokens)"]
377 #[inline(always)]
378 pub fn disable(self) -> &'a mut W {
379 self.variant(OUT6_A::DISABLE)
380 }
381 #[doc = "Enable endpoint OUT 6 (response to OUT tokens)"]
382 #[inline(always)]
383 pub fn enable(self) -> &'a mut W {
384 self.variant(OUT6_A::ENABLE)
385 }
386}
387#[doc = "Field `OUT7` reader - Enable OUT endpoint 7"]
388pub type OUT7_R = crate::BitReader<OUT7_A>;
389#[doc = "Enable OUT endpoint 7\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum OUT7_A {
392 #[doc = "0: Disable endpoint OUT 7 (no response to OUT tokens)"]
393 DISABLE = 0,
394 #[doc = "1: Enable endpoint OUT 7 (response to OUT tokens)"]
395 ENABLE = 1,
396}
397impl From<OUT7_A> for bool {
398 #[inline(always)]
399 fn from(variant: OUT7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl OUT7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> OUT7_A {
407 match self.bits {
408 false => OUT7_A::DISABLE,
409 true => OUT7_A::ENABLE,
410 }
411 }
412 #[doc = "Checks if the value of the field is `DISABLE`"]
413 #[inline(always)]
414 pub fn is_disable(&self) -> bool {
415 *self == OUT7_A::DISABLE
416 }
417 #[doc = "Checks if the value of the field is `ENABLE`"]
418 #[inline(always)]
419 pub fn is_enable(&self) -> bool {
420 *self == OUT7_A::ENABLE
421 }
422}
423#[doc = "Field `OUT7` writer - Enable OUT endpoint 7"]
424pub type OUT7_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, OUT7_A, O>;
425impl<'a, const O: u8> OUT7_W<'a, O> {
426 #[doc = "Disable endpoint OUT 7 (no response to OUT tokens)"]
427 #[inline(always)]
428 pub fn disable(self) -> &'a mut W {
429 self.variant(OUT7_A::DISABLE)
430 }
431 #[doc = "Enable endpoint OUT 7 (response to OUT tokens)"]
432 #[inline(always)]
433 pub fn enable(self) -> &'a mut W {
434 self.variant(OUT7_A::ENABLE)
435 }
436}
437#[doc = "Field `ISOOUT` reader - Enable ISO OUT endpoint 8"]
438pub type ISOOUT_R = crate::BitReader<ISOOUT_A>;
439#[doc = "Enable ISO OUT endpoint 8\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum ISOOUT_A {
442 #[doc = "0: Disable ISO OUT endpoint 8"]
443 DISABLE = 0,
444 #[doc = "1: Enable ISO OUT endpoint 8"]
445 ENABLE = 1,
446}
447impl From<ISOOUT_A> for bool {
448 #[inline(always)]
449 fn from(variant: ISOOUT_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl ISOOUT_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> ISOOUT_A {
457 match self.bits {
458 false => ISOOUT_A::DISABLE,
459 true => ISOOUT_A::ENABLE,
460 }
461 }
462 #[doc = "Checks if the value of the field is `DISABLE`"]
463 #[inline(always)]
464 pub fn is_disable(&self) -> bool {
465 *self == ISOOUT_A::DISABLE
466 }
467 #[doc = "Checks if the value of the field is `ENABLE`"]
468 #[inline(always)]
469 pub fn is_enable(&self) -> bool {
470 *self == ISOOUT_A::ENABLE
471 }
472}
473#[doc = "Field `ISOOUT` writer - Enable ISO OUT endpoint 8"]
474pub type ISOOUT_W<'a, const O: u8> = crate::BitWriter<'a, u32, EPOUTEN_SPEC, ISOOUT_A, O>;
475impl<'a, const O: u8> ISOOUT_W<'a, O> {
476 #[doc = "Disable ISO OUT endpoint 8"]
477 #[inline(always)]
478 pub fn disable(self) -> &'a mut W {
479 self.variant(ISOOUT_A::DISABLE)
480 }
481 #[doc = "Enable ISO OUT endpoint 8"]
482 #[inline(always)]
483 pub fn enable(self) -> &'a mut W {
484 self.variant(ISOOUT_A::ENABLE)
485 }
486}
487impl R {
488 #[doc = "Bit 0 - Enable OUT endpoint 0"]
489 #[inline(always)]
490 pub fn out0(&self) -> OUT0_R {
491 OUT0_R::new((self.bits & 1) != 0)
492 }
493 #[doc = "Bit 1 - Enable OUT endpoint 1"]
494 #[inline(always)]
495 pub fn out1(&self) -> OUT1_R {
496 OUT1_R::new(((self.bits >> 1) & 1) != 0)
497 }
498 #[doc = "Bit 2 - Enable OUT endpoint 2"]
499 #[inline(always)]
500 pub fn out2(&self) -> OUT2_R {
501 OUT2_R::new(((self.bits >> 2) & 1) != 0)
502 }
503 #[doc = "Bit 3 - Enable OUT endpoint 3"]
504 #[inline(always)]
505 pub fn out3(&self) -> OUT3_R {
506 OUT3_R::new(((self.bits >> 3) & 1) != 0)
507 }
508 #[doc = "Bit 4 - Enable OUT endpoint 4"]
509 #[inline(always)]
510 pub fn out4(&self) -> OUT4_R {
511 OUT4_R::new(((self.bits >> 4) & 1) != 0)
512 }
513 #[doc = "Bit 5 - Enable OUT endpoint 5"]
514 #[inline(always)]
515 pub fn out5(&self) -> OUT5_R {
516 OUT5_R::new(((self.bits >> 5) & 1) != 0)
517 }
518 #[doc = "Bit 6 - Enable OUT endpoint 6"]
519 #[inline(always)]
520 pub fn out6(&self) -> OUT6_R {
521 OUT6_R::new(((self.bits >> 6) & 1) != 0)
522 }
523 #[doc = "Bit 7 - Enable OUT endpoint 7"]
524 #[inline(always)]
525 pub fn out7(&self) -> OUT7_R {
526 OUT7_R::new(((self.bits >> 7) & 1) != 0)
527 }
528 #[doc = "Bit 8 - Enable ISO OUT endpoint 8"]
529 #[inline(always)]
530 pub fn isoout(&self) -> ISOOUT_R {
531 ISOOUT_R::new(((self.bits >> 8) & 1) != 0)
532 }
533}
534impl W {
535 #[doc = "Bit 0 - Enable OUT endpoint 0"]
536 #[inline(always)]
537 pub fn out0(&mut self) -> OUT0_W<0> {
538 OUT0_W::new(self)
539 }
540 #[doc = "Bit 1 - Enable OUT endpoint 1"]
541 #[inline(always)]
542 pub fn out1(&mut self) -> OUT1_W<1> {
543 OUT1_W::new(self)
544 }
545 #[doc = "Bit 2 - Enable OUT endpoint 2"]
546 #[inline(always)]
547 pub fn out2(&mut self) -> OUT2_W<2> {
548 OUT2_W::new(self)
549 }
550 #[doc = "Bit 3 - Enable OUT endpoint 3"]
551 #[inline(always)]
552 pub fn out3(&mut self) -> OUT3_W<3> {
553 OUT3_W::new(self)
554 }
555 #[doc = "Bit 4 - Enable OUT endpoint 4"]
556 #[inline(always)]
557 pub fn out4(&mut self) -> OUT4_W<4> {
558 OUT4_W::new(self)
559 }
560 #[doc = "Bit 5 - Enable OUT endpoint 5"]
561 #[inline(always)]
562 pub fn out5(&mut self) -> OUT5_W<5> {
563 OUT5_W::new(self)
564 }
565 #[doc = "Bit 6 - Enable OUT endpoint 6"]
566 #[inline(always)]
567 pub fn out6(&mut self) -> OUT6_W<6> {
568 OUT6_W::new(self)
569 }
570 #[doc = "Bit 7 - Enable OUT endpoint 7"]
571 #[inline(always)]
572 pub fn out7(&mut self) -> OUT7_W<7> {
573 OUT7_W::new(self)
574 }
575 #[doc = "Bit 8 - Enable ISO OUT endpoint 8"]
576 #[inline(always)]
577 pub fn isoout(&mut self) -> ISOOUT_W<8> {
578 ISOOUT_W::new(self)
579 }
580 #[doc = "Writes raw bits to the register."]
581 #[inline(always)]
582 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
583 self.0.bits(bits);
584 self
585 }
586}
587#[doc = "Endpoint OUT enable\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [epouten](index.html) module"]
588pub struct EPOUTEN_SPEC;
589impl crate::RegisterSpec for EPOUTEN_SPEC {
590 type Ux = u32;
591}
592#[doc = "`read()` method returns [epouten::R](R) reader structure"]
593impl crate::Readable for EPOUTEN_SPEC {
594 type Reader = R;
595}
596#[doc = "`write(|w| ..)` method takes [epouten::W](W) writer structure"]
597impl crate::Writable for EPOUTEN_SPEC {
598 type Writer = W;
599}
600#[doc = "`reset()` method sets EPOUTEN to value 0x01"]
601impl crate::Resettable for EPOUTEN_SPEC {
602 #[inline(always)]
603 fn reset_value() -> Self::Ux {
604 0x01
605 }
606}