nrf52840_pac/usbd/
epdatastatus.rs

1#[doc = "Register `EPDATASTATUS` reader"]
2pub struct R(crate::R<EPDATASTATUS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<EPDATASTATUS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<EPDATASTATUS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<EPDATASTATUS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `EPDATASTATUS` writer"]
17pub struct W(crate::W<EPDATASTATUS_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<EPDATASTATUS_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<EPDATASTATUS_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<EPDATASTATUS_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `EPIN1` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
38pub type EPIN1_R = crate::BitReader<EPIN1_A>;
39#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum EPIN1_A {
42    #[doc = "0: No acknowledged data transfer on this endpoint"]
43    NOT_DONE = 0,
44    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
45    DATA_DONE = 1,
46}
47impl From<EPIN1_A> for bool {
48    #[inline(always)]
49    fn from(variant: EPIN1_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl EPIN1_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> EPIN1_A {
57        match self.bits {
58            false => EPIN1_A::NOT_DONE,
59            true => EPIN1_A::DATA_DONE,
60        }
61    }
62    #[doc = "Checks if the value of the field is `NOT_DONE`"]
63    #[inline(always)]
64    pub fn is_not_done(&self) -> bool {
65        *self == EPIN1_A::NOT_DONE
66    }
67    #[doc = "Checks if the value of the field is `DATA_DONE`"]
68    #[inline(always)]
69    pub fn is_data_done(&self) -> bool {
70        *self == EPIN1_A::DATA_DONE
71    }
72}
73#[doc = "Field `EPIN1` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
74pub type EPIN1_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN1_A, O>;
75impl<'a, const O: u8> EPIN1_W<'a, O> {
76    #[doc = "No acknowledged data transfer on this endpoint"]
77    #[inline(always)]
78    pub fn not_done(self) -> &'a mut W {
79        self.variant(EPIN1_A::NOT_DONE)
80    }
81    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
82    #[inline(always)]
83    pub fn data_done(self) -> &'a mut W {
84        self.variant(EPIN1_A::DATA_DONE)
85    }
86}
87#[doc = "Field `EPIN2` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
88pub type EPIN2_R = crate::BitReader<EPIN2_A>;
89#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum EPIN2_A {
92    #[doc = "0: No acknowledged data transfer on this endpoint"]
93    NOT_DONE = 0,
94    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
95    DATA_DONE = 1,
96}
97impl From<EPIN2_A> for bool {
98    #[inline(always)]
99    fn from(variant: EPIN2_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl EPIN2_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> EPIN2_A {
107        match self.bits {
108            false => EPIN2_A::NOT_DONE,
109            true => EPIN2_A::DATA_DONE,
110        }
111    }
112    #[doc = "Checks if the value of the field is `NOT_DONE`"]
113    #[inline(always)]
114    pub fn is_not_done(&self) -> bool {
115        *self == EPIN2_A::NOT_DONE
116    }
117    #[doc = "Checks if the value of the field is `DATA_DONE`"]
118    #[inline(always)]
119    pub fn is_data_done(&self) -> bool {
120        *self == EPIN2_A::DATA_DONE
121    }
122}
123#[doc = "Field `EPIN2` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
124pub type EPIN2_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN2_A, O>;
125impl<'a, const O: u8> EPIN2_W<'a, O> {
126    #[doc = "No acknowledged data transfer on this endpoint"]
127    #[inline(always)]
128    pub fn not_done(self) -> &'a mut W {
129        self.variant(EPIN2_A::NOT_DONE)
130    }
131    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
132    #[inline(always)]
133    pub fn data_done(self) -> &'a mut W {
134        self.variant(EPIN2_A::DATA_DONE)
135    }
136}
137#[doc = "Field `EPIN3` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
138pub type EPIN3_R = crate::BitReader<EPIN3_A>;
139#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum EPIN3_A {
142    #[doc = "0: No acknowledged data transfer on this endpoint"]
143    NOT_DONE = 0,
144    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
145    DATA_DONE = 1,
146}
147impl From<EPIN3_A> for bool {
148    #[inline(always)]
149    fn from(variant: EPIN3_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl EPIN3_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> EPIN3_A {
157        match self.bits {
158            false => EPIN3_A::NOT_DONE,
159            true => EPIN3_A::DATA_DONE,
160        }
161    }
162    #[doc = "Checks if the value of the field is `NOT_DONE`"]
163    #[inline(always)]
164    pub fn is_not_done(&self) -> bool {
165        *self == EPIN3_A::NOT_DONE
166    }
167    #[doc = "Checks if the value of the field is `DATA_DONE`"]
168    #[inline(always)]
169    pub fn is_data_done(&self) -> bool {
170        *self == EPIN3_A::DATA_DONE
171    }
172}
173#[doc = "Field `EPIN3` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
174pub type EPIN3_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN3_A, O>;
175impl<'a, const O: u8> EPIN3_W<'a, O> {
176    #[doc = "No acknowledged data transfer on this endpoint"]
177    #[inline(always)]
178    pub fn not_done(self) -> &'a mut W {
179        self.variant(EPIN3_A::NOT_DONE)
180    }
181    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
182    #[inline(always)]
183    pub fn data_done(self) -> &'a mut W {
184        self.variant(EPIN3_A::DATA_DONE)
185    }
186}
187#[doc = "Field `EPIN4` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
188pub type EPIN4_R = crate::BitReader<EPIN4_A>;
189#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum EPIN4_A {
192    #[doc = "0: No acknowledged data transfer on this endpoint"]
193    NOT_DONE = 0,
194    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
195    DATA_DONE = 1,
196}
197impl From<EPIN4_A> for bool {
198    #[inline(always)]
199    fn from(variant: EPIN4_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl EPIN4_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> EPIN4_A {
207        match self.bits {
208            false => EPIN4_A::NOT_DONE,
209            true => EPIN4_A::DATA_DONE,
210        }
211    }
212    #[doc = "Checks if the value of the field is `NOT_DONE`"]
213    #[inline(always)]
214    pub fn is_not_done(&self) -> bool {
215        *self == EPIN4_A::NOT_DONE
216    }
217    #[doc = "Checks if the value of the field is `DATA_DONE`"]
218    #[inline(always)]
219    pub fn is_data_done(&self) -> bool {
220        *self == EPIN4_A::DATA_DONE
221    }
222}
223#[doc = "Field `EPIN4` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
224pub type EPIN4_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN4_A, O>;
225impl<'a, const O: u8> EPIN4_W<'a, O> {
226    #[doc = "No acknowledged data transfer on this endpoint"]
227    #[inline(always)]
228    pub fn not_done(self) -> &'a mut W {
229        self.variant(EPIN4_A::NOT_DONE)
230    }
231    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
232    #[inline(always)]
233    pub fn data_done(self) -> &'a mut W {
234        self.variant(EPIN4_A::DATA_DONE)
235    }
236}
237#[doc = "Field `EPIN5` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
238pub type EPIN5_R = crate::BitReader<EPIN5_A>;
239#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum EPIN5_A {
242    #[doc = "0: No acknowledged data transfer on this endpoint"]
243    NOT_DONE = 0,
244    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
245    DATA_DONE = 1,
246}
247impl From<EPIN5_A> for bool {
248    #[inline(always)]
249    fn from(variant: EPIN5_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl EPIN5_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> EPIN5_A {
257        match self.bits {
258            false => EPIN5_A::NOT_DONE,
259            true => EPIN5_A::DATA_DONE,
260        }
261    }
262    #[doc = "Checks if the value of the field is `NOT_DONE`"]
263    #[inline(always)]
264    pub fn is_not_done(&self) -> bool {
265        *self == EPIN5_A::NOT_DONE
266    }
267    #[doc = "Checks if the value of the field is `DATA_DONE`"]
268    #[inline(always)]
269    pub fn is_data_done(&self) -> bool {
270        *self == EPIN5_A::DATA_DONE
271    }
272}
273#[doc = "Field `EPIN5` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
274pub type EPIN5_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN5_A, O>;
275impl<'a, const O: u8> EPIN5_W<'a, O> {
276    #[doc = "No acknowledged data transfer on this endpoint"]
277    #[inline(always)]
278    pub fn not_done(self) -> &'a mut W {
279        self.variant(EPIN5_A::NOT_DONE)
280    }
281    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
282    #[inline(always)]
283    pub fn data_done(self) -> &'a mut W {
284        self.variant(EPIN5_A::DATA_DONE)
285    }
286}
287#[doc = "Field `EPIN6` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
288pub type EPIN6_R = crate::BitReader<EPIN6_A>;
289#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum EPIN6_A {
292    #[doc = "0: No acknowledged data transfer on this endpoint"]
293    NOT_DONE = 0,
294    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
295    DATA_DONE = 1,
296}
297impl From<EPIN6_A> for bool {
298    #[inline(always)]
299    fn from(variant: EPIN6_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl EPIN6_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> EPIN6_A {
307        match self.bits {
308            false => EPIN6_A::NOT_DONE,
309            true => EPIN6_A::DATA_DONE,
310        }
311    }
312    #[doc = "Checks if the value of the field is `NOT_DONE`"]
313    #[inline(always)]
314    pub fn is_not_done(&self) -> bool {
315        *self == EPIN6_A::NOT_DONE
316    }
317    #[doc = "Checks if the value of the field is `DATA_DONE`"]
318    #[inline(always)]
319    pub fn is_data_done(&self) -> bool {
320        *self == EPIN6_A::DATA_DONE
321    }
322}
323#[doc = "Field `EPIN6` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
324pub type EPIN6_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN6_A, O>;
325impl<'a, const O: u8> EPIN6_W<'a, O> {
326    #[doc = "No acknowledged data transfer on this endpoint"]
327    #[inline(always)]
328    pub fn not_done(self) -> &'a mut W {
329        self.variant(EPIN6_A::NOT_DONE)
330    }
331    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
332    #[inline(always)]
333    pub fn data_done(self) -> &'a mut W {
334        self.variant(EPIN6_A::DATA_DONE)
335    }
336}
337#[doc = "Field `EPIN7` reader - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
338pub type EPIN7_R = crate::BitReader<EPIN7_A>;
339#[doc = "Acknowledged data transfer on this IN endpoint. Write '1' to clear.\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum EPIN7_A {
342    #[doc = "0: No acknowledged data transfer on this endpoint"]
343    NOT_DONE = 0,
344    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
345    DATA_DONE = 1,
346}
347impl From<EPIN7_A> for bool {
348    #[inline(always)]
349    fn from(variant: EPIN7_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl EPIN7_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> EPIN7_A {
357        match self.bits {
358            false => EPIN7_A::NOT_DONE,
359            true => EPIN7_A::DATA_DONE,
360        }
361    }
362    #[doc = "Checks if the value of the field is `NOT_DONE`"]
363    #[inline(always)]
364    pub fn is_not_done(&self) -> bool {
365        *self == EPIN7_A::NOT_DONE
366    }
367    #[doc = "Checks if the value of the field is `DATA_DONE`"]
368    #[inline(always)]
369    pub fn is_data_done(&self) -> bool {
370        *self == EPIN7_A::DATA_DONE
371    }
372}
373#[doc = "Field `EPIN7` writer - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
374pub type EPIN7_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPIN7_A, O>;
375impl<'a, const O: u8> EPIN7_W<'a, O> {
376    #[doc = "No acknowledged data transfer on this endpoint"]
377    #[inline(always)]
378    pub fn not_done(self) -> &'a mut W {
379        self.variant(EPIN7_A::NOT_DONE)
380    }
381    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
382    #[inline(always)]
383    pub fn data_done(self) -> &'a mut W {
384        self.variant(EPIN7_A::DATA_DONE)
385    }
386}
387#[doc = "Field `EPOUT1` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
388pub type EPOUT1_R = crate::BitReader<EPOUT1_A>;
389#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum EPOUT1_A {
392    #[doc = "0: No acknowledged data transfer on this endpoint"]
393    NOT_STARTED = 0,
394    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
395    STARTED = 1,
396}
397impl From<EPOUT1_A> for bool {
398    #[inline(always)]
399    fn from(variant: EPOUT1_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl EPOUT1_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> EPOUT1_A {
407        match self.bits {
408            false => EPOUT1_A::NOT_STARTED,
409            true => EPOUT1_A::STARTED,
410        }
411    }
412    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
413    #[inline(always)]
414    pub fn is_not_started(&self) -> bool {
415        *self == EPOUT1_A::NOT_STARTED
416    }
417    #[doc = "Checks if the value of the field is `STARTED`"]
418    #[inline(always)]
419    pub fn is_started(&self) -> bool {
420        *self == EPOUT1_A::STARTED
421    }
422}
423#[doc = "Field `EPOUT1` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
424pub type EPOUT1_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT1_A, O>;
425impl<'a, const O: u8> EPOUT1_W<'a, O> {
426    #[doc = "No acknowledged data transfer on this endpoint"]
427    #[inline(always)]
428    pub fn not_started(self) -> &'a mut W {
429        self.variant(EPOUT1_A::NOT_STARTED)
430    }
431    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
432    #[inline(always)]
433    pub fn started(self) -> &'a mut W {
434        self.variant(EPOUT1_A::STARTED)
435    }
436}
437#[doc = "Field `EPOUT2` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
438pub type EPOUT2_R = crate::BitReader<EPOUT2_A>;
439#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum EPOUT2_A {
442    #[doc = "0: No acknowledged data transfer on this endpoint"]
443    NOT_STARTED = 0,
444    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
445    STARTED = 1,
446}
447impl From<EPOUT2_A> for bool {
448    #[inline(always)]
449    fn from(variant: EPOUT2_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl EPOUT2_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> EPOUT2_A {
457        match self.bits {
458            false => EPOUT2_A::NOT_STARTED,
459            true => EPOUT2_A::STARTED,
460        }
461    }
462    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
463    #[inline(always)]
464    pub fn is_not_started(&self) -> bool {
465        *self == EPOUT2_A::NOT_STARTED
466    }
467    #[doc = "Checks if the value of the field is `STARTED`"]
468    #[inline(always)]
469    pub fn is_started(&self) -> bool {
470        *self == EPOUT2_A::STARTED
471    }
472}
473#[doc = "Field `EPOUT2` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
474pub type EPOUT2_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT2_A, O>;
475impl<'a, const O: u8> EPOUT2_W<'a, O> {
476    #[doc = "No acknowledged data transfer on this endpoint"]
477    #[inline(always)]
478    pub fn not_started(self) -> &'a mut W {
479        self.variant(EPOUT2_A::NOT_STARTED)
480    }
481    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
482    #[inline(always)]
483    pub fn started(self) -> &'a mut W {
484        self.variant(EPOUT2_A::STARTED)
485    }
486}
487#[doc = "Field `EPOUT3` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
488pub type EPOUT3_R = crate::BitReader<EPOUT3_A>;
489#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum EPOUT3_A {
492    #[doc = "0: No acknowledged data transfer on this endpoint"]
493    NOT_STARTED = 0,
494    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
495    STARTED = 1,
496}
497impl From<EPOUT3_A> for bool {
498    #[inline(always)]
499    fn from(variant: EPOUT3_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl EPOUT3_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> EPOUT3_A {
507        match self.bits {
508            false => EPOUT3_A::NOT_STARTED,
509            true => EPOUT3_A::STARTED,
510        }
511    }
512    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
513    #[inline(always)]
514    pub fn is_not_started(&self) -> bool {
515        *self == EPOUT3_A::NOT_STARTED
516    }
517    #[doc = "Checks if the value of the field is `STARTED`"]
518    #[inline(always)]
519    pub fn is_started(&self) -> bool {
520        *self == EPOUT3_A::STARTED
521    }
522}
523#[doc = "Field `EPOUT3` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
524pub type EPOUT3_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT3_A, O>;
525impl<'a, const O: u8> EPOUT3_W<'a, O> {
526    #[doc = "No acknowledged data transfer on this endpoint"]
527    #[inline(always)]
528    pub fn not_started(self) -> &'a mut W {
529        self.variant(EPOUT3_A::NOT_STARTED)
530    }
531    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
532    #[inline(always)]
533    pub fn started(self) -> &'a mut W {
534        self.variant(EPOUT3_A::STARTED)
535    }
536}
537#[doc = "Field `EPOUT4` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
538pub type EPOUT4_R = crate::BitReader<EPOUT4_A>;
539#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum EPOUT4_A {
542    #[doc = "0: No acknowledged data transfer on this endpoint"]
543    NOT_STARTED = 0,
544    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
545    STARTED = 1,
546}
547impl From<EPOUT4_A> for bool {
548    #[inline(always)]
549    fn from(variant: EPOUT4_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl EPOUT4_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> EPOUT4_A {
557        match self.bits {
558            false => EPOUT4_A::NOT_STARTED,
559            true => EPOUT4_A::STARTED,
560        }
561    }
562    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
563    #[inline(always)]
564    pub fn is_not_started(&self) -> bool {
565        *self == EPOUT4_A::NOT_STARTED
566    }
567    #[doc = "Checks if the value of the field is `STARTED`"]
568    #[inline(always)]
569    pub fn is_started(&self) -> bool {
570        *self == EPOUT4_A::STARTED
571    }
572}
573#[doc = "Field `EPOUT4` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
574pub type EPOUT4_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT4_A, O>;
575impl<'a, const O: u8> EPOUT4_W<'a, O> {
576    #[doc = "No acknowledged data transfer on this endpoint"]
577    #[inline(always)]
578    pub fn not_started(self) -> &'a mut W {
579        self.variant(EPOUT4_A::NOT_STARTED)
580    }
581    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
582    #[inline(always)]
583    pub fn started(self) -> &'a mut W {
584        self.variant(EPOUT4_A::STARTED)
585    }
586}
587#[doc = "Field `EPOUT5` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
588pub type EPOUT5_R = crate::BitReader<EPOUT5_A>;
589#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum EPOUT5_A {
592    #[doc = "0: No acknowledged data transfer on this endpoint"]
593    NOT_STARTED = 0,
594    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
595    STARTED = 1,
596}
597impl From<EPOUT5_A> for bool {
598    #[inline(always)]
599    fn from(variant: EPOUT5_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl EPOUT5_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> EPOUT5_A {
607        match self.bits {
608            false => EPOUT5_A::NOT_STARTED,
609            true => EPOUT5_A::STARTED,
610        }
611    }
612    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
613    #[inline(always)]
614    pub fn is_not_started(&self) -> bool {
615        *self == EPOUT5_A::NOT_STARTED
616    }
617    #[doc = "Checks if the value of the field is `STARTED`"]
618    #[inline(always)]
619    pub fn is_started(&self) -> bool {
620        *self == EPOUT5_A::STARTED
621    }
622}
623#[doc = "Field `EPOUT5` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
624pub type EPOUT5_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT5_A, O>;
625impl<'a, const O: u8> EPOUT5_W<'a, O> {
626    #[doc = "No acknowledged data transfer on this endpoint"]
627    #[inline(always)]
628    pub fn not_started(self) -> &'a mut W {
629        self.variant(EPOUT5_A::NOT_STARTED)
630    }
631    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
632    #[inline(always)]
633    pub fn started(self) -> &'a mut W {
634        self.variant(EPOUT5_A::STARTED)
635    }
636}
637#[doc = "Field `EPOUT6` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
638pub type EPOUT6_R = crate::BitReader<EPOUT6_A>;
639#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum EPOUT6_A {
642    #[doc = "0: No acknowledged data transfer on this endpoint"]
643    NOT_STARTED = 0,
644    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
645    STARTED = 1,
646}
647impl From<EPOUT6_A> for bool {
648    #[inline(always)]
649    fn from(variant: EPOUT6_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl EPOUT6_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> EPOUT6_A {
657        match self.bits {
658            false => EPOUT6_A::NOT_STARTED,
659            true => EPOUT6_A::STARTED,
660        }
661    }
662    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
663    #[inline(always)]
664    pub fn is_not_started(&self) -> bool {
665        *self == EPOUT6_A::NOT_STARTED
666    }
667    #[doc = "Checks if the value of the field is `STARTED`"]
668    #[inline(always)]
669    pub fn is_started(&self) -> bool {
670        *self == EPOUT6_A::STARTED
671    }
672}
673#[doc = "Field `EPOUT6` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
674pub type EPOUT6_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT6_A, O>;
675impl<'a, const O: u8> EPOUT6_W<'a, O> {
676    #[doc = "No acknowledged data transfer on this endpoint"]
677    #[inline(always)]
678    pub fn not_started(self) -> &'a mut W {
679        self.variant(EPOUT6_A::NOT_STARTED)
680    }
681    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
682    #[inline(always)]
683    pub fn started(self) -> &'a mut W {
684        self.variant(EPOUT6_A::STARTED)
685    }
686}
687#[doc = "Field `EPOUT7` reader - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
688pub type EPOUT7_R = crate::BitReader<EPOUT7_A>;
689#[doc = "Acknowledged data transfer on this OUT endpoint. Write '1' to clear.\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum EPOUT7_A {
692    #[doc = "0: No acknowledged data transfer on this endpoint"]
693    NOT_STARTED = 0,
694    #[doc = "1: Acknowledged data transfer on this endpoint has occurred"]
695    STARTED = 1,
696}
697impl From<EPOUT7_A> for bool {
698    #[inline(always)]
699    fn from(variant: EPOUT7_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl EPOUT7_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> EPOUT7_A {
707        match self.bits {
708            false => EPOUT7_A::NOT_STARTED,
709            true => EPOUT7_A::STARTED,
710        }
711    }
712    #[doc = "Checks if the value of the field is `NOT_STARTED`"]
713    #[inline(always)]
714    pub fn is_not_started(&self) -> bool {
715        *self == EPOUT7_A::NOT_STARTED
716    }
717    #[doc = "Checks if the value of the field is `STARTED`"]
718    #[inline(always)]
719    pub fn is_started(&self) -> bool {
720        *self == EPOUT7_A::STARTED
721    }
722}
723#[doc = "Field `EPOUT7` writer - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
724pub type EPOUT7_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, EPDATASTATUS_SPEC, EPOUT7_A, O>;
725impl<'a, const O: u8> EPOUT7_W<'a, O> {
726    #[doc = "No acknowledged data transfer on this endpoint"]
727    #[inline(always)]
728    pub fn not_started(self) -> &'a mut W {
729        self.variant(EPOUT7_A::NOT_STARTED)
730    }
731    #[doc = "Acknowledged data transfer on this endpoint has occurred"]
732    #[inline(always)]
733    pub fn started(self) -> &'a mut W {
734        self.variant(EPOUT7_A::STARTED)
735    }
736}
737impl R {
738    #[doc = "Bit 1 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
739    #[inline(always)]
740    pub fn epin1(&self) -> EPIN1_R {
741        EPIN1_R::new(((self.bits >> 1) & 1) != 0)
742    }
743    #[doc = "Bit 2 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
744    #[inline(always)]
745    pub fn epin2(&self) -> EPIN2_R {
746        EPIN2_R::new(((self.bits >> 2) & 1) != 0)
747    }
748    #[doc = "Bit 3 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
749    #[inline(always)]
750    pub fn epin3(&self) -> EPIN3_R {
751        EPIN3_R::new(((self.bits >> 3) & 1) != 0)
752    }
753    #[doc = "Bit 4 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
754    #[inline(always)]
755    pub fn epin4(&self) -> EPIN4_R {
756        EPIN4_R::new(((self.bits >> 4) & 1) != 0)
757    }
758    #[doc = "Bit 5 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
759    #[inline(always)]
760    pub fn epin5(&self) -> EPIN5_R {
761        EPIN5_R::new(((self.bits >> 5) & 1) != 0)
762    }
763    #[doc = "Bit 6 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
764    #[inline(always)]
765    pub fn epin6(&self) -> EPIN6_R {
766        EPIN6_R::new(((self.bits >> 6) & 1) != 0)
767    }
768    #[doc = "Bit 7 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
769    #[inline(always)]
770    pub fn epin7(&self) -> EPIN7_R {
771        EPIN7_R::new(((self.bits >> 7) & 1) != 0)
772    }
773    #[doc = "Bit 17 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
774    #[inline(always)]
775    pub fn epout1(&self) -> EPOUT1_R {
776        EPOUT1_R::new(((self.bits >> 17) & 1) != 0)
777    }
778    #[doc = "Bit 18 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
779    #[inline(always)]
780    pub fn epout2(&self) -> EPOUT2_R {
781        EPOUT2_R::new(((self.bits >> 18) & 1) != 0)
782    }
783    #[doc = "Bit 19 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
784    #[inline(always)]
785    pub fn epout3(&self) -> EPOUT3_R {
786        EPOUT3_R::new(((self.bits >> 19) & 1) != 0)
787    }
788    #[doc = "Bit 20 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
789    #[inline(always)]
790    pub fn epout4(&self) -> EPOUT4_R {
791        EPOUT4_R::new(((self.bits >> 20) & 1) != 0)
792    }
793    #[doc = "Bit 21 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
794    #[inline(always)]
795    pub fn epout5(&self) -> EPOUT5_R {
796        EPOUT5_R::new(((self.bits >> 21) & 1) != 0)
797    }
798    #[doc = "Bit 22 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
799    #[inline(always)]
800    pub fn epout6(&self) -> EPOUT6_R {
801        EPOUT6_R::new(((self.bits >> 22) & 1) != 0)
802    }
803    #[doc = "Bit 23 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
804    #[inline(always)]
805    pub fn epout7(&self) -> EPOUT7_R {
806        EPOUT7_R::new(((self.bits >> 23) & 1) != 0)
807    }
808}
809impl W {
810    #[doc = "Bit 1 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
811    #[inline(always)]
812    pub fn epin1(&mut self) -> EPIN1_W<1> {
813        EPIN1_W::new(self)
814    }
815    #[doc = "Bit 2 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
816    #[inline(always)]
817    pub fn epin2(&mut self) -> EPIN2_W<2> {
818        EPIN2_W::new(self)
819    }
820    #[doc = "Bit 3 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
821    #[inline(always)]
822    pub fn epin3(&mut self) -> EPIN3_W<3> {
823        EPIN3_W::new(self)
824    }
825    #[doc = "Bit 4 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
826    #[inline(always)]
827    pub fn epin4(&mut self) -> EPIN4_W<4> {
828        EPIN4_W::new(self)
829    }
830    #[doc = "Bit 5 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
831    #[inline(always)]
832    pub fn epin5(&mut self) -> EPIN5_W<5> {
833        EPIN5_W::new(self)
834    }
835    #[doc = "Bit 6 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
836    #[inline(always)]
837    pub fn epin6(&mut self) -> EPIN6_W<6> {
838        EPIN6_W::new(self)
839    }
840    #[doc = "Bit 7 - Acknowledged data transfer on this IN endpoint. Write '1' to clear."]
841    #[inline(always)]
842    pub fn epin7(&mut self) -> EPIN7_W<7> {
843        EPIN7_W::new(self)
844    }
845    #[doc = "Bit 17 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
846    #[inline(always)]
847    pub fn epout1(&mut self) -> EPOUT1_W<17> {
848        EPOUT1_W::new(self)
849    }
850    #[doc = "Bit 18 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
851    #[inline(always)]
852    pub fn epout2(&mut self) -> EPOUT2_W<18> {
853        EPOUT2_W::new(self)
854    }
855    #[doc = "Bit 19 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
856    #[inline(always)]
857    pub fn epout3(&mut self) -> EPOUT3_W<19> {
858        EPOUT3_W::new(self)
859    }
860    #[doc = "Bit 20 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
861    #[inline(always)]
862    pub fn epout4(&mut self) -> EPOUT4_W<20> {
863        EPOUT4_W::new(self)
864    }
865    #[doc = "Bit 21 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
866    #[inline(always)]
867    pub fn epout5(&mut self) -> EPOUT5_W<21> {
868        EPOUT5_W::new(self)
869    }
870    #[doc = "Bit 22 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
871    #[inline(always)]
872    pub fn epout6(&mut self) -> EPOUT6_W<22> {
873        EPOUT6_W::new(self)
874    }
875    #[doc = "Bit 23 - Acknowledged data transfer on this OUT endpoint. Write '1' to clear."]
876    #[inline(always)]
877    pub fn epout7(&mut self) -> EPOUT7_W<23> {
878        EPOUT7_W::new(self)
879    }
880    #[doc = "Writes raw bits to the register."]
881    #[inline(always)]
882    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
883        self.0.bits(bits);
884        self
885    }
886}
887#[doc = "Provides information on which endpoint(s) an acknowledged data transfer has occurred (EPDATA event)\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 [epdatastatus](index.html) module"]
888pub struct EPDATASTATUS_SPEC;
889impl crate::RegisterSpec for EPDATASTATUS_SPEC {
890    type Ux = u32;
891}
892#[doc = "`read()` method returns [epdatastatus::R](R) reader structure"]
893impl crate::Readable for EPDATASTATUS_SPEC {
894    type Reader = R;
895}
896#[doc = "`write(|w| ..)` method takes [epdatastatus::W](W) writer structure"]
897impl crate::Writable for EPDATASTATUS_SPEC {
898    type Writer = W;
899}
900#[doc = "`reset()` method sets EPDATASTATUS to value 0"]
901impl crate::Resettable for EPDATASTATUS_SPEC {
902    #[inline(always)]
903    fn reset_value() -> Self::Ux {
904        0
905    }
906}