atsam4lc4c_pac/usbc/
uecon7set.rs

1#[doc = "Register `UECON7SET` writer"]
2pub struct W(crate::W<UECON7SET_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<UECON7SET_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<UECON7SET_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<UECON7SET_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `TXINES` writer - TXINE Set"]
23pub type TXINES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
24#[doc = "Field `RXOUTES` writer - RXOUTE Set"]
25pub type RXOUTES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
26#[doc = "Field `RXSTPES` writer - RXSTPE Set"]
27pub type RXSTPES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
28#[doc = "Field `NAKOUTES` writer - NAKOUTE Set"]
29pub type NAKOUTES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
30#[doc = "Field `NAKINES` writer - NAKINE Set"]
31pub type NAKINES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
32#[doc = "Field `STALLEDES` writer - STALLEDE Set"]
33pub type STALLEDES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
34#[doc = "Field `NREPLYS` writer - NREPLY Set"]
35pub type NREPLYS_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
36#[doc = "Field `RAMACERES` writer - RAMACERE Set"]
37pub type RAMACERES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
38#[doc = "Field `NBUSYBKES` writer - NBUSYBKE Set"]
39pub type NBUSYBKES_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
40#[doc = "Field `KILLBKS` writer - KILLBK Set"]
41pub type KILLBKS_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
42#[doc = "Field `NYETDISS` writer - NYETDIS Set"]
43pub type NYETDISS_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
44#[doc = "Field `RSTDTS` writer - RSTDT Set"]
45pub type RSTDTS_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
46#[doc = "Field `STALLRQS` writer - STALLRQ Set"]
47pub type STALLRQS_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
48#[doc = "Field `BUSY0S` writer - BUSY0 Set"]
49pub type BUSY0S_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
50#[doc = "Field `BUSY1S` writer - BUSY1 Set"]
51pub type BUSY1S_W<'a, const O: u8> = crate::BitWriter<'a, u32, UECON7SET_SPEC, bool, O>;
52impl W {
53    #[doc = "Bit 0 - TXINE Set"]
54    #[inline(always)]
55    #[must_use]
56    pub fn txines(&mut self) -> TXINES_W<0> {
57        TXINES_W::new(self)
58    }
59    #[doc = "Bit 1 - RXOUTE Set"]
60    #[inline(always)]
61    #[must_use]
62    pub fn rxoutes(&mut self) -> RXOUTES_W<1> {
63        RXOUTES_W::new(self)
64    }
65    #[doc = "Bit 2 - RXSTPE Set"]
66    #[inline(always)]
67    #[must_use]
68    pub fn rxstpes(&mut self) -> RXSTPES_W<2> {
69        RXSTPES_W::new(self)
70    }
71    #[doc = "Bit 3 - NAKOUTE Set"]
72    #[inline(always)]
73    #[must_use]
74    pub fn nakoutes(&mut self) -> NAKOUTES_W<3> {
75        NAKOUTES_W::new(self)
76    }
77    #[doc = "Bit 4 - NAKINE Set"]
78    #[inline(always)]
79    #[must_use]
80    pub fn nakines(&mut self) -> NAKINES_W<4> {
81        NAKINES_W::new(self)
82    }
83    #[doc = "Bit 6 - STALLEDE Set"]
84    #[inline(always)]
85    #[must_use]
86    pub fn stalledes(&mut self) -> STALLEDES_W<6> {
87        STALLEDES_W::new(self)
88    }
89    #[doc = "Bit 8 - NREPLY Set"]
90    #[inline(always)]
91    #[must_use]
92    pub fn nreplys(&mut self) -> NREPLYS_W<8> {
93        NREPLYS_W::new(self)
94    }
95    #[doc = "Bit 11 - RAMACERE Set"]
96    #[inline(always)]
97    #[must_use]
98    pub fn ramaceres(&mut self) -> RAMACERES_W<11> {
99        RAMACERES_W::new(self)
100    }
101    #[doc = "Bit 12 - NBUSYBKE Set"]
102    #[inline(always)]
103    #[must_use]
104    pub fn nbusybkes(&mut self) -> NBUSYBKES_W<12> {
105        NBUSYBKES_W::new(self)
106    }
107    #[doc = "Bit 13 - KILLBK Set"]
108    #[inline(always)]
109    #[must_use]
110    pub fn killbks(&mut self) -> KILLBKS_W<13> {
111        KILLBKS_W::new(self)
112    }
113    #[doc = "Bit 17 - NYETDIS Set"]
114    #[inline(always)]
115    #[must_use]
116    pub fn nyetdiss(&mut self) -> NYETDISS_W<17> {
117        NYETDISS_W::new(self)
118    }
119    #[doc = "Bit 18 - RSTDT Set"]
120    #[inline(always)]
121    #[must_use]
122    pub fn rstdts(&mut self) -> RSTDTS_W<18> {
123        RSTDTS_W::new(self)
124    }
125    #[doc = "Bit 19 - STALLRQ Set"]
126    #[inline(always)]
127    #[must_use]
128    pub fn stallrqs(&mut self) -> STALLRQS_W<19> {
129        STALLRQS_W::new(self)
130    }
131    #[doc = "Bit 24 - BUSY0 Set"]
132    #[inline(always)]
133    #[must_use]
134    pub fn busy0s(&mut self) -> BUSY0S_W<24> {
135        BUSY0S_W::new(self)
136    }
137    #[doc = "Bit 25 - BUSY1 Set"]
138    #[inline(always)]
139    #[must_use]
140    pub fn busy1s(&mut self) -> BUSY1S_W<25> {
141        BUSY1S_W::new(self)
142    }
143    #[doc = "Writes raw bits to the register."]
144    #[inline(always)]
145    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
146        self.0.bits(bits);
147        self
148    }
149}
150#[doc = "Endpoint Control Set Register\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 [uecon7set](index.html) module"]
151pub struct UECON7SET_SPEC;
152impl crate::RegisterSpec for UECON7SET_SPEC {
153    type Ux = u32;
154}
155#[doc = "`write(|w| ..)` method takes [uecon7set::W](W) writer structure"]
156impl crate::Writable for UECON7SET_SPEC {
157    type Writer = W;
158    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
159    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
160}
161#[doc = "`reset()` method sets UECON7SET to value 0"]
162impl crate::Resettable for UECON7SET_SPEC {
163    const RESET_VALUE: Self::Ux = 0;
164}