ra6m2/usbhs/
pipectr.rs

1#[doc = "Register `PIPE%sCTR` reader"]
2pub struct R(crate::R<PIPECTR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PIPECTR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PIPECTR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PIPECTR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `PIPE%sCTR` writer"]
17pub struct W(crate::W<PIPECTR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PIPECTR_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<PIPECTR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PIPECTR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `PID` reader - Response PIDThese bits specify the response type for the next transaction of the relevant pipe."]
38pub type PID_R = crate::FieldReader<u8, PID_A>;
39#[doc = "Response PIDThese bits specify the response type for the next transaction of the relevant pipe.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u8)]
42pub enum PID_A {
43    #[doc = "0: NAK response"]
44    _00 = 0,
45    #[doc = "1: BUF response (depending on buffer state)"]
46    _01 = 1,
47    #[doc = "2: STALL response"]
48    _10 = 2,
49    #[doc = "3: STALL response"]
50    _11 = 3,
51}
52impl From<PID_A> for u8 {
53    #[inline(always)]
54    fn from(variant: PID_A) -> Self {
55        variant as _
56    }
57}
58impl PID_R {
59    #[doc = "Get enumerated values variant"]
60    #[inline(always)]
61    pub fn variant(&self) -> PID_A {
62        match self.bits {
63            0 => PID_A::_00,
64            1 => PID_A::_01,
65            2 => PID_A::_10,
66            3 => PID_A::_11,
67            _ => unreachable!(),
68        }
69    }
70    #[doc = "Checks if the value of the field is `_00`"]
71    #[inline(always)]
72    pub fn is_00(&self) -> bool {
73        *self == PID_A::_00
74    }
75    #[doc = "Checks if the value of the field is `_01`"]
76    #[inline(always)]
77    pub fn is_01(&self) -> bool {
78        *self == PID_A::_01
79    }
80    #[doc = "Checks if the value of the field is `_10`"]
81    #[inline(always)]
82    pub fn is_10(&self) -> bool {
83        *self == PID_A::_10
84    }
85    #[doc = "Checks if the value of the field is `_11`"]
86    #[inline(always)]
87    pub fn is_11(&self) -> bool {
88        *self == PID_A::_11
89    }
90}
91#[doc = "Field `PID` writer - Response PIDThese bits specify the response type for the next transaction of the relevant pipe."]
92pub type PID_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u16, PIPECTR_SPEC, u8, PID_A, 2, O>;
93impl<'a, const O: u8> PID_W<'a, O> {
94    #[doc = "NAK response"]
95    #[inline(always)]
96    pub fn _00(self) -> &'a mut W {
97        self.variant(PID_A::_00)
98    }
99    #[doc = "BUF response (depending on buffer state)"]
100    #[inline(always)]
101    pub fn _01(self) -> &'a mut W {
102        self.variant(PID_A::_01)
103    }
104    #[doc = "STALL response"]
105    #[inline(always)]
106    pub fn _10(self) -> &'a mut W {
107        self.variant(PID_A::_10)
108    }
109    #[doc = "STALL response"]
110    #[inline(always)]
111    pub fn _11(self) -> &'a mut W {
112        self.variant(PID_A::_11)
113    }
114}
115#[doc = "Field `PBUSY` reader - Pipe BusyThis bit indicates whether the relevant pipe is being used for the USB bus"]
116pub type PBUSY_R = crate::BitReader<PBUSY_A>;
117#[doc = "Pipe BusyThis bit indicates whether the relevant pipe is being used for the USB bus\n\nValue on reset: 0"]
118#[derive(Clone, Copy, Debug, PartialEq, Eq)]
119pub enum PBUSY_A {
120    #[doc = "0: The relevant pipe is not used for the USB bus."]
121    _0 = 0,
122    #[doc = "1: The relevant pipe is in use for the USB bus."]
123    _1 = 1,
124}
125impl From<PBUSY_A> for bool {
126    #[inline(always)]
127    fn from(variant: PBUSY_A) -> Self {
128        variant as u8 != 0
129    }
130}
131impl PBUSY_R {
132    #[doc = "Get enumerated values variant"]
133    #[inline(always)]
134    pub fn variant(&self) -> PBUSY_A {
135        match self.bits {
136            false => PBUSY_A::_0,
137            true => PBUSY_A::_1,
138        }
139    }
140    #[doc = "Checks if the value of the field is `_0`"]
141    #[inline(always)]
142    pub fn is_0(&self) -> bool {
143        *self == PBUSY_A::_0
144    }
145    #[doc = "Checks if the value of the field is `_1`"]
146    #[inline(always)]
147    pub fn is_1(&self) -> bool {
148        *self == PBUSY_A::_1
149    }
150}
151#[doc = "Field `SQMON` reader - Toggle Bit ConfirmationThis bit indicates the expected value of the sequence toggle bit for the next transaction of the relevant pipe"]
152pub type SQMON_R = crate::BitReader<SQMON_A>;
153#[doc = "Toggle Bit ConfirmationThis bit indicates the expected value of the sequence toggle bit for the next transaction of the relevant pipe\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq, Eq)]
155pub enum SQMON_A {
156    #[doc = "0: DATA0"]
157    _0 = 0,
158    #[doc = "1: DATA1"]
159    _1 = 1,
160}
161impl From<SQMON_A> for bool {
162    #[inline(always)]
163    fn from(variant: SQMON_A) -> Self {
164        variant as u8 != 0
165    }
166}
167impl SQMON_R {
168    #[doc = "Get enumerated values variant"]
169    #[inline(always)]
170    pub fn variant(&self) -> SQMON_A {
171        match self.bits {
172            false => SQMON_A::_0,
173            true => SQMON_A::_1,
174        }
175    }
176    #[doc = "Checks if the value of the field is `_0`"]
177    #[inline(always)]
178    pub fn is_0(&self) -> bool {
179        *self == SQMON_A::_0
180    }
181    #[doc = "Checks if the value of the field is `_1`"]
182    #[inline(always)]
183    pub fn is_1(&self) -> bool {
184        *self == SQMON_A::_1
185    }
186}
187#[doc = "Field `SQSET` reader - Toggle Bit SetThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is set for DATA1"]
188pub type SQSET_R = crate::BitReader<SQSET_A>;
189#[doc = "Toggle Bit SetThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is set for DATA1\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum SQSET_A {
192    #[doc = "0: Writing is ignored."]
193    _0 = 0,
194    #[doc = "1: Specifies DATA1."]
195    _1 = 1,
196}
197impl From<SQSET_A> for bool {
198    #[inline(always)]
199    fn from(variant: SQSET_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl SQSET_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> SQSET_A {
207        match self.bits {
208            false => SQSET_A::_0,
209            true => SQSET_A::_1,
210        }
211    }
212    #[doc = "Checks if the value of the field is `_0`"]
213    #[inline(always)]
214    pub fn is_0(&self) -> bool {
215        *self == SQSET_A::_0
216    }
217    #[doc = "Checks if the value of the field is `_1`"]
218    #[inline(always)]
219    pub fn is_1(&self) -> bool {
220        *self == SQSET_A::_1
221    }
222}
223#[doc = "Field `SQSET` writer - Toggle Bit SetThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is set for DATA1"]
224pub type SQSET_W<'a, const O: u8> = crate::BitWriter<'a, u16, PIPECTR_SPEC, SQSET_A, O>;
225impl<'a, const O: u8> SQSET_W<'a, O> {
226    #[doc = "Writing is ignored."]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(SQSET_A::_0)
230    }
231    #[doc = "Specifies DATA1."]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(SQSET_A::_1)
235    }
236}
237#[doc = "Field `SQCLR` reader - Toggle Bit ClearThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is cleared to DATA0"]
238pub type SQCLR_R = crate::BitReader<SQCLR_A>;
239#[doc = "Toggle Bit ClearThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is cleared to DATA0\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum SQCLR_A {
242    #[doc = "0: Writing is ignored."]
243    _0 = 0,
244    #[doc = "1: Specifies DATA0."]
245    _1 = 1,
246}
247impl From<SQCLR_A> for bool {
248    #[inline(always)]
249    fn from(variant: SQCLR_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl SQCLR_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> SQCLR_A {
257        match self.bits {
258            false => SQCLR_A::_0,
259            true => SQCLR_A::_1,
260        }
261    }
262    #[doc = "Checks if the value of the field is `_0`"]
263    #[inline(always)]
264    pub fn is_0(&self) -> bool {
265        *self == SQCLR_A::_0
266    }
267    #[doc = "Checks if the value of the field is `_1`"]
268    #[inline(always)]
269    pub fn is_1(&self) -> bool {
270        *self == SQCLR_A::_1
271    }
272}
273#[doc = "Field `SQCLR` writer - Toggle Bit ClearThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is cleared to DATA0"]
274pub type SQCLR_W<'a, const O: u8> = crate::BitWriter<'a, u16, PIPECTR_SPEC, SQCLR_A, O>;
275impl<'a, const O: u8> SQCLR_W<'a, O> {
276    #[doc = "Writing is ignored."]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(SQCLR_A::_0)
280    }
281    #[doc = "Specifies DATA0."]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(SQCLR_A::_1)
285    }
286}
287#[doc = "Field `ACLRM` reader - Auto Buffer Clear ModeThis bit enables or disables auto buffer clear mode for the relevant pipe"]
288pub type ACLRM_R = crate::BitReader<ACLRM_A>;
289#[doc = "Auto Buffer Clear ModeThis bit enables or disables auto buffer clear mode for the relevant pipe\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum ACLRM_A {
292    #[doc = "0: Disabled"]
293    _0 = 0,
294    #[doc = "1: Enabled (all buffers are initialized)"]
295    _1 = 1,
296}
297impl From<ACLRM_A> for bool {
298    #[inline(always)]
299    fn from(variant: ACLRM_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl ACLRM_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> ACLRM_A {
307        match self.bits {
308            false => ACLRM_A::_0,
309            true => ACLRM_A::_1,
310        }
311    }
312    #[doc = "Checks if the value of the field is `_0`"]
313    #[inline(always)]
314    pub fn is_0(&self) -> bool {
315        *self == ACLRM_A::_0
316    }
317    #[doc = "Checks if the value of the field is `_1`"]
318    #[inline(always)]
319    pub fn is_1(&self) -> bool {
320        *self == ACLRM_A::_1
321    }
322}
323#[doc = "Field `ACLRM` writer - Auto Buffer Clear ModeThis bit enables or disables auto buffer clear mode for the relevant pipe"]
324pub type ACLRM_W<'a, const O: u8> = crate::BitWriter<'a, u16, PIPECTR_SPEC, ACLRM_A, O>;
325impl<'a, const O: u8> ACLRM_W<'a, O> {
326    #[doc = "Disabled"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(ACLRM_A::_0)
330    }
331    #[doc = "Enabled (all buffers are initialized)"]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(ACLRM_A::_1)
335    }
336}
337#[doc = "Field `ATREPM` reader - Auto Response ModeThis bit enables or disables auto response mode for the relevant pipe."]
338pub type ATREPM_R = crate::BitReader<ATREPM_A>;
339#[doc = "Auto Response ModeThis bit enables or disables auto response mode for the relevant pipe.\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum ATREPM_A {
342    #[doc = "0: Auto response mode is disabled."]
343    _0 = 0,
344    #[doc = "1: Auto response mode is enabled (Transmission: zero-length packet response, Reception: NAK response and NRDY interrupt)"]
345    _1 = 1,
346}
347impl From<ATREPM_A> for bool {
348    #[inline(always)]
349    fn from(variant: ATREPM_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl ATREPM_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> ATREPM_A {
357        match self.bits {
358            false => ATREPM_A::_0,
359            true => ATREPM_A::_1,
360        }
361    }
362    #[doc = "Checks if the value of the field is `_0`"]
363    #[inline(always)]
364    pub fn is_0(&self) -> bool {
365        *self == ATREPM_A::_0
366    }
367    #[doc = "Checks if the value of the field is `_1`"]
368    #[inline(always)]
369    pub fn is_1(&self) -> bool {
370        *self == ATREPM_A::_1
371    }
372}
373#[doc = "Field `ATREPM` writer - Auto Response ModeThis bit enables or disables auto response mode for the relevant pipe."]
374pub type ATREPM_W<'a, const O: u8> = crate::BitWriter<'a, u16, PIPECTR_SPEC, ATREPM_A, O>;
375impl<'a, const O: u8> ATREPM_W<'a, O> {
376    #[doc = "Auto response mode is disabled."]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(ATREPM_A::_0)
380    }
381    #[doc = "Auto response mode is enabled (Transmission: zero-length packet response, Reception: NAK response and NRDY interrupt)"]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(ATREPM_A::_1)
385    }
386}
387#[doc = "Field `CSSTS` reader - CSSTS StatusThis bit indicates the CSPLIT status of Split Transaction of the relevant pipe"]
388pub type CSSTS_R = crate::BitReader<CSSTS_A>;
389#[doc = "CSSTS StatusThis bit indicates the CSPLIT status of Split Transaction of the relevant pipe\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum CSSTS_A {
392    #[doc = "0: SSplit Transaction processing is in progress or transfer without Split Transaction is in progress."]
393    _0 = 0,
394    #[doc = "1: CSplit Transaction processing is in progress."]
395    _1 = 1,
396}
397impl From<CSSTS_A> for bool {
398    #[inline(always)]
399    fn from(variant: CSSTS_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl CSSTS_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> CSSTS_A {
407        match self.bits {
408            false => CSSTS_A::_0,
409            true => CSSTS_A::_1,
410        }
411    }
412    #[doc = "Checks if the value of the field is `_0`"]
413    #[inline(always)]
414    pub fn is_0(&self) -> bool {
415        *self == CSSTS_A::_0
416    }
417    #[doc = "Checks if the value of the field is `_1`"]
418    #[inline(always)]
419    pub fn is_1(&self) -> bool {
420        *self == CSSTS_A::_1
421    }
422}
423#[doc = "Field `CSCLR` reader - CSPLIT Status ClearSet this bit to 1 when clearing the CSSTS bit of the relevant pipe"]
424pub type CSCLR_R = crate::BitReader<CSCLR_A>;
425#[doc = "CSPLIT Status ClearSet this bit to 1 when clearing the CSSTS bit of the relevant pipe\n\nValue on reset: 0"]
426#[derive(Clone, Copy, Debug, PartialEq, Eq)]
427pub enum CSCLR_A {
428    #[doc = "0: Writing is disabled."]
429    _0 = 0,
430    #[doc = "1: The CSSTS bit is cleared."]
431    _1 = 1,
432}
433impl From<CSCLR_A> for bool {
434    #[inline(always)]
435    fn from(variant: CSCLR_A) -> Self {
436        variant as u8 != 0
437    }
438}
439impl CSCLR_R {
440    #[doc = "Get enumerated values variant"]
441    #[inline(always)]
442    pub fn variant(&self) -> CSCLR_A {
443        match self.bits {
444            false => CSCLR_A::_0,
445            true => CSCLR_A::_1,
446        }
447    }
448    #[doc = "Checks if the value of the field is `_0`"]
449    #[inline(always)]
450    pub fn is_0(&self) -> bool {
451        *self == CSCLR_A::_0
452    }
453    #[doc = "Checks if the value of the field is `_1`"]
454    #[inline(always)]
455    pub fn is_1(&self) -> bool {
456        *self == CSCLR_A::_1
457    }
458}
459#[doc = "Field `CSCLR` writer - CSPLIT Status ClearSet this bit to 1 when clearing the CSSTS bit of the relevant pipe"]
460pub type CSCLR_W<'a, const O: u8> = crate::BitWriter<'a, u16, PIPECTR_SPEC, CSCLR_A, O>;
461impl<'a, const O: u8> CSCLR_W<'a, O> {
462    #[doc = "Writing is disabled."]
463    #[inline(always)]
464    pub fn _0(self) -> &'a mut W {
465        self.variant(CSCLR_A::_0)
466    }
467    #[doc = "The CSSTS bit is cleared."]
468    #[inline(always)]
469    pub fn _1(self) -> &'a mut W {
470        self.variant(CSCLR_A::_1)
471    }
472}
473#[doc = "Field `INBUFM` reader - Transmit Buffer MonitorThis bit indicates the FIFO buffer status for the relevant pipe in the transmitting direction."]
474pub type INBUFM_R = crate::BitReader<INBUFM_A>;
475#[doc = "Transmit Buffer MonitorThis bit indicates the FIFO buffer status for the relevant pipe in the transmitting direction.\n\nValue on reset: 0"]
476#[derive(Clone, Copy, Debug, PartialEq, Eq)]
477pub enum INBUFM_A {
478    #[doc = "0: No transmittable data is present in the FIFO buffer."]
479    _0 = 0,
480    #[doc = "1: Transmittable data is present in the FIFO buffer."]
481    _1 = 1,
482}
483impl From<INBUFM_A> for bool {
484    #[inline(always)]
485    fn from(variant: INBUFM_A) -> Self {
486        variant as u8 != 0
487    }
488}
489impl INBUFM_R {
490    #[doc = "Get enumerated values variant"]
491    #[inline(always)]
492    pub fn variant(&self) -> INBUFM_A {
493        match self.bits {
494            false => INBUFM_A::_0,
495            true => INBUFM_A::_1,
496        }
497    }
498    #[doc = "Checks if the value of the field is `_0`"]
499    #[inline(always)]
500    pub fn is_0(&self) -> bool {
501        *self == INBUFM_A::_0
502    }
503    #[doc = "Checks if the value of the field is `_1`"]
504    #[inline(always)]
505    pub fn is_1(&self) -> bool {
506        *self == INBUFM_A::_1
507    }
508}
509#[doc = "Field `BSTS` reader - Buffer StatusThis bit indicates the FIFO buffer status for the relevant pipe."]
510pub type BSTS_R = crate::BitReader<BSTS_A>;
511#[doc = "Buffer StatusThis bit indicates the FIFO buffer status for the relevant pipe.\n\nValue on reset: 0"]
512#[derive(Clone, Copy, Debug, PartialEq, Eq)]
513pub enum BSTS_A {
514    #[doc = "0: Buffer access is disabled."]
515    _0 = 0,
516    #[doc = "1: Buffer access is enabled."]
517    _1 = 1,
518}
519impl From<BSTS_A> for bool {
520    #[inline(always)]
521    fn from(variant: BSTS_A) -> Self {
522        variant as u8 != 0
523    }
524}
525impl BSTS_R {
526    #[doc = "Get enumerated values variant"]
527    #[inline(always)]
528    pub fn variant(&self) -> BSTS_A {
529        match self.bits {
530            false => BSTS_A::_0,
531            true => BSTS_A::_1,
532        }
533    }
534    #[doc = "Checks if the value of the field is `_0`"]
535    #[inline(always)]
536    pub fn is_0(&self) -> bool {
537        *self == BSTS_A::_0
538    }
539    #[doc = "Checks if the value of the field is `_1`"]
540    #[inline(always)]
541    pub fn is_1(&self) -> bool {
542        *self == BSTS_A::_1
543    }
544}
545impl R {
546    #[doc = "Bits 0:1 - Response PIDThese bits specify the response type for the next transaction of the relevant pipe."]
547    #[inline(always)]
548    pub fn pid(&self) -> PID_R {
549        PID_R::new((self.bits & 3) as u8)
550    }
551    #[doc = "Bit 5 - Pipe BusyThis bit indicates whether the relevant pipe is being used for the USB bus"]
552    #[inline(always)]
553    pub fn pbusy(&self) -> PBUSY_R {
554        PBUSY_R::new(((self.bits >> 5) & 1) != 0)
555    }
556    #[doc = "Bit 6 - Toggle Bit ConfirmationThis bit indicates the expected value of the sequence toggle bit for the next transaction of the relevant pipe"]
557    #[inline(always)]
558    pub fn sqmon(&self) -> SQMON_R {
559        SQMON_R::new(((self.bits >> 6) & 1) != 0)
560    }
561    #[doc = "Bit 7 - Toggle Bit SetThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is set for DATA1"]
562    #[inline(always)]
563    pub fn sqset(&self) -> SQSET_R {
564        SQSET_R::new(((self.bits >> 7) & 1) != 0)
565    }
566    #[doc = "Bit 8 - Toggle Bit ClearThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is cleared to DATA0"]
567    #[inline(always)]
568    pub fn sqclr(&self) -> SQCLR_R {
569        SQCLR_R::new(((self.bits >> 8) & 1) != 0)
570    }
571    #[doc = "Bit 9 - Auto Buffer Clear ModeThis bit enables or disables auto buffer clear mode for the relevant pipe"]
572    #[inline(always)]
573    pub fn aclrm(&self) -> ACLRM_R {
574        ACLRM_R::new(((self.bits >> 9) & 1) != 0)
575    }
576    #[doc = "Bit 10 - Auto Response ModeThis bit enables or disables auto response mode for the relevant pipe."]
577    #[inline(always)]
578    pub fn atrepm(&self) -> ATREPM_R {
579        ATREPM_R::new(((self.bits >> 10) & 1) != 0)
580    }
581    #[doc = "Bit 12 - CSSTS StatusThis bit indicates the CSPLIT status of Split Transaction of the relevant pipe"]
582    #[inline(always)]
583    pub fn cssts(&self) -> CSSTS_R {
584        CSSTS_R::new(((self.bits >> 12) & 1) != 0)
585    }
586    #[doc = "Bit 13 - CSPLIT Status ClearSet this bit to 1 when clearing the CSSTS bit of the relevant pipe"]
587    #[inline(always)]
588    pub fn csclr(&self) -> CSCLR_R {
589        CSCLR_R::new(((self.bits >> 13) & 1) != 0)
590    }
591    #[doc = "Bit 14 - Transmit Buffer MonitorThis bit indicates the FIFO buffer status for the relevant pipe in the transmitting direction."]
592    #[inline(always)]
593    pub fn inbufm(&self) -> INBUFM_R {
594        INBUFM_R::new(((self.bits >> 14) & 1) != 0)
595    }
596    #[doc = "Bit 15 - Buffer StatusThis bit indicates the FIFO buffer status for the relevant pipe."]
597    #[inline(always)]
598    pub fn bsts(&self) -> BSTS_R {
599        BSTS_R::new(((self.bits >> 15) & 1) != 0)
600    }
601}
602impl W {
603    #[doc = "Bits 0:1 - Response PIDThese bits specify the response type for the next transaction of the relevant pipe."]
604    #[inline(always)]
605    #[must_use]
606    pub fn pid(&mut self) -> PID_W<0> {
607        PID_W::new(self)
608    }
609    #[doc = "Bit 7 - Toggle Bit SetThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is set for DATA1"]
610    #[inline(always)]
611    #[must_use]
612    pub fn sqset(&mut self) -> SQSET_W<7> {
613        SQSET_W::new(self)
614    }
615    #[doc = "Bit 8 - Toggle Bit ClearThis bit is set to 1 when the expected value of the sequence toggle bit for the next transaction of the relevant pipe is cleared to DATA0"]
616    #[inline(always)]
617    #[must_use]
618    pub fn sqclr(&mut self) -> SQCLR_W<8> {
619        SQCLR_W::new(self)
620    }
621    #[doc = "Bit 9 - Auto Buffer Clear ModeThis bit enables or disables auto buffer clear mode for the relevant pipe"]
622    #[inline(always)]
623    #[must_use]
624    pub fn aclrm(&mut self) -> ACLRM_W<9> {
625        ACLRM_W::new(self)
626    }
627    #[doc = "Bit 10 - Auto Response ModeThis bit enables or disables auto response mode for the relevant pipe."]
628    #[inline(always)]
629    #[must_use]
630    pub fn atrepm(&mut self) -> ATREPM_W<10> {
631        ATREPM_W::new(self)
632    }
633    #[doc = "Bit 13 - CSPLIT Status ClearSet this bit to 1 when clearing the CSSTS bit of the relevant pipe"]
634    #[inline(always)]
635    #[must_use]
636    pub fn csclr(&mut self) -> CSCLR_W<13> {
637        CSCLR_W::new(self)
638    }
639    #[doc = "Writes raw bits to the register."]
640    #[inline(always)]
641    pub unsafe fn bits(&mut self, bits: u16) -> &mut Self {
642        self.0.bits(bits);
643        self
644    }
645}
646#[doc = "PIPE Control Register\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 [pipectr](index.html) module"]
647pub struct PIPECTR_SPEC;
648impl crate::RegisterSpec for PIPECTR_SPEC {
649    type Ux = u16;
650}
651#[doc = "`read()` method returns [pipectr::R](R) reader structure"]
652impl crate::Readable for PIPECTR_SPEC {
653    type Reader = R;
654}
655#[doc = "`write(|w| ..)` method takes [pipectr::W](W) writer structure"]
656impl crate::Writable for PIPECTR_SPEC {
657    type Writer = W;
658    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
659    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
660}
661#[doc = "`reset()` method sets PIPE%sCTR to value 0"]
662impl crate::Resettable for PIPECTR_SPEC {
663    const RESET_VALUE: Self::Ux = 0;
664}