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