atsam4ls4c_pac/usbc/
uecon6clr.rs

1#[doc = "Register `UECON6CLR` writer"]
2pub struct W(crate::W<UECON6CLR_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<UECON6CLR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<UECON6CLR_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<UECON6CLR_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `TXINEC` writer - TXINE Clear"]
23pub type TXINEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
24#[doc = "Field `RXOUTEC` writer - RXOUTE Clear"]
25pub type RXOUTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
26#[doc = "Field `RXSTPEC` writer - RXOUTE Clear"]
27pub type RXSTPEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
28#[doc = "Field `NAKOUTEC` writer - NAKOUTE Clear"]
29pub type NAKOUTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
30#[doc = "Field `NAKINEC` writer - NAKINE Clear"]
31pub type NAKINEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
32#[doc = "Field `STALLEDEC` writer - RXSTPE Clear"]
33pub type STALLEDEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
34#[doc = "Field `NREPLYC` writer - NREPLY Clear"]
35pub type NREPLYC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
36#[doc = "Field `RAMACEREC` writer - RAMACERE Clear"]
37pub type RAMACEREC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
38#[doc = "Field `NBUSYBKEC` writer - NBUSYBKE Clear"]
39pub type NBUSYBKEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
40#[doc = "Field `FIFOCONC` writer - FIFOCON Clear"]
41pub type FIFOCONC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
42#[doc = "Field `NYETDISC` writer - NYETDIS Clear"]
43pub type NYETDISC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
44#[doc = "Field `STALLRQC` writer - STALLEDE Clear"]
45pub type STALLRQC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
46#[doc = "Field `BUSY0C` writer - BUSY0 Clear"]
47pub type BUSY0C_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
48#[doc = "Field `BUSY1C` writer - BUSY1 Clear"]
49pub type BUSY1C_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON6CLR_SPEC, bool, O>;
50impl W {
51    #[doc = "Bit 0 - TXINE Clear"]
52    #[inline(always)]
53    #[must_use]
54    pub fn txinec(&mut self) -> TXINEC_W<0> {
55        TXINEC_W::new(self)
56    }
57    #[doc = "Bit 1 - RXOUTE Clear"]
58    #[inline(always)]
59    #[must_use]
60    pub fn rxoutec(&mut self) -> RXOUTEC_W<1> {
61        RXOUTEC_W::new(self)
62    }
63    #[doc = "Bit 2 - RXOUTE Clear"]
64    #[inline(always)]
65    #[must_use]
66    pub fn rxstpec(&mut self) -> RXSTPEC_W<2> {
67        RXSTPEC_W::new(self)
68    }
69    #[doc = "Bit 3 - NAKOUTE Clear"]
70    #[inline(always)]
71    #[must_use]
72    pub fn nakoutec(&mut self) -> NAKOUTEC_W<3> {
73        NAKOUTEC_W::new(self)
74    }
75    #[doc = "Bit 4 - NAKINE Clear"]
76    #[inline(always)]
77    #[must_use]
78    pub fn nakinec(&mut self) -> NAKINEC_W<4> {
79        NAKINEC_W::new(self)
80    }
81    #[doc = "Bit 6 - RXSTPE Clear"]
82    #[inline(always)]
83    #[must_use]
84    pub fn stalledec(&mut self) -> STALLEDEC_W<6> {
85        STALLEDEC_W::new(self)
86    }
87    #[doc = "Bit 8 - NREPLY Clear"]
88    #[inline(always)]
89    #[must_use]
90    pub fn nreplyc(&mut self) -> NREPLYC_W<8> {
91        NREPLYC_W::new(self)
92    }
93    #[doc = "Bit 11 - RAMACERE Clear"]
94    #[inline(always)]
95    #[must_use]
96    pub fn ramacerec(&mut self) -> RAMACEREC_W<11> {
97        RAMACEREC_W::new(self)
98    }
99    #[doc = "Bit 12 - NBUSYBKE Clear"]
100    #[inline(always)]
101    #[must_use]
102    pub fn nbusybkec(&mut self) -> NBUSYBKEC_W<12> {
103        NBUSYBKEC_W::new(self)
104    }
105    #[doc = "Bit 14 - FIFOCON Clear"]
106    #[inline(always)]
107    #[must_use]
108    pub fn fifoconc(&mut self) -> FIFOCONC_W<14> {
109        FIFOCONC_W::new(self)
110    }
111    #[doc = "Bit 17 - NYETDIS Clear"]
112    #[inline(always)]
113    #[must_use]
114    pub fn nyetdisc(&mut self) -> NYETDISC_W<17> {
115        NYETDISC_W::new(self)
116    }
117    #[doc = "Bit 19 - STALLEDE Clear"]
118    #[inline(always)]
119    #[must_use]
120    pub fn stallrqc(&mut self) -> STALLRQC_W<19> {
121        STALLRQC_W::new(self)
122    }
123    #[doc = "Bit 24 - BUSY0 Clear"]
124    #[inline(always)]
125    #[must_use]
126    pub fn busy0c(&mut self) -> BUSY0C_W<24> {
127        BUSY0C_W::new(self)
128    }
129    #[doc = "Bit 25 - BUSY1 Clear"]
130    #[inline(always)]
131    #[must_use]
132    pub fn busy1c(&mut self) -> BUSY1C_W<25> {
133        BUSY1C_W::new(self)
134    }
135    #[doc = "Writes raw bits to the register."]
136    #[inline(always)]
137    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
138        self.0.bits(bits);
139        self
140    }
141}
142#[doc = "TXINE Clear\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [uecon6clr](index.html) module"]
143pub struct UECON6CLR_SPEC;
144impl crate::RegisterSpec for UECON6CLR_SPEC {
145    type Ux = u32;
146}
147#[doc = "`write(|w| ..)` method takes [uecon6clr::W](W) writer structure"]
148impl crate::Writable for UECON6CLR_SPEC {
149    type Writer = W;
150    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
151    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
152}
153#[doc = "`reset()` method sets UECON6CLR to value 0"]
154impl crate::Resettable for UECON6CLR_SPEC {
155    const RESET_VALUE: Self::Ux = 0;
156}