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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#[doc = "Register `HSTIDR` writer"]
pub struct W(crate::W<HSTIDR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<HSTIDR_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<HSTIDR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<HSTIDR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `DCONNIEC` writer - Device Connection Interrupt Disable"]
pub type DCONNIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DDISCIEC` writer - Device Disconnection Interrupt Disable"]
pub type DDISCIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `RSTIEC` writer - USB Reset Sent Interrupt Disable"]
pub type RSTIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `RSMEDIEC` writer - Downstream Resume Sent Interrupt Disable"]
pub type RSMEDIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `RXRSMIEC` writer - Upstream Resume Received Interrupt Disable"]
pub type RXRSMIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `HSOFIEC` writer - Host Start of Frame Interrupt Disable"]
pub type HSOFIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `HWUPIEC` writer - Host Wake-Up Interrupt Disable"]
pub type HWUPIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_0` writer - Pipe 0 Interrupt Disable"]
pub type PEP_0_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_1` writer - Pipe 1 Interrupt Disable"]
pub type PEP_1_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_2` writer - Pipe 2 Interrupt Disable"]
pub type PEP_2_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_3` writer - Pipe 3 Interrupt Disable"]
pub type PEP_3_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_4` writer - Pipe 4 Interrupt Disable"]
pub type PEP_4_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_5` writer - Pipe 5 Interrupt Disable"]
pub type PEP_5_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_6` writer - Pipe 6 Interrupt Disable"]
pub type PEP_6_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_7` writer - Pipe 7 Interrupt Disable"]
pub type PEP_7_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_8` writer - Pipe 8 Interrupt Disable"]
pub type PEP_8_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `PEP_9` writer - Pipe 9 Interrupt Disable"]
pub type PEP_9_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_1` writer - DMA Channel 0 Interrupt Disable"]
pub type DMA_1_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_2` writer - DMA Channel 1 Interrupt Disable"]
pub type DMA_2_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_3` writer - DMA Channel 2 Interrupt Disable"]
pub type DMA_3_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_4` writer - DMA Channel 3 Interrupt Disable"]
pub type DMA_4_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_5` writer - DMA Channel 4 Interrupt Disable"]
pub type DMA_5_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_6` writer - DMA Channel 5 Interrupt Disable"]
pub type DMA_6_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
#[doc = "Field `DMA_7` writer - DMA Channel 6 Interrupt Disable"]
pub type DMA_7_W<'a, const O: u8> = crate::BitWriter<'a, u32, HSTIDR_SPEC, bool, O>;
impl W {
    #[doc = "Bit 0 - Device Connection Interrupt Disable"]
    #[inline(always)]
    pub fn dconniec(&mut self) -> DCONNIEC_W<0> {
        DCONNIEC_W::new(self)
    }
    #[doc = "Bit 1 - Device Disconnection Interrupt Disable"]
    #[inline(always)]
    pub fn ddisciec(&mut self) -> DDISCIEC_W<1> {
        DDISCIEC_W::new(self)
    }
    #[doc = "Bit 2 - USB Reset Sent Interrupt Disable"]
    #[inline(always)]
    pub fn rstiec(&mut self) -> RSTIEC_W<2> {
        RSTIEC_W::new(self)
    }
    #[doc = "Bit 3 - Downstream Resume Sent Interrupt Disable"]
    #[inline(always)]
    pub fn rsmediec(&mut self) -> RSMEDIEC_W<3> {
        RSMEDIEC_W::new(self)
    }
    #[doc = "Bit 4 - Upstream Resume Received Interrupt Disable"]
    #[inline(always)]
    pub fn rxrsmiec(&mut self) -> RXRSMIEC_W<4> {
        RXRSMIEC_W::new(self)
    }
    #[doc = "Bit 5 - Host Start of Frame Interrupt Disable"]
    #[inline(always)]
    pub fn hsofiec(&mut self) -> HSOFIEC_W<5> {
        HSOFIEC_W::new(self)
    }
    #[doc = "Bit 6 - Host Wake-Up Interrupt Disable"]
    #[inline(always)]
    pub fn hwupiec(&mut self) -> HWUPIEC_W<6> {
        HWUPIEC_W::new(self)
    }
    #[doc = "Bit 8 - Pipe 0 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_0(&mut self) -> PEP_0_W<8> {
        PEP_0_W::new(self)
    }
    #[doc = "Bit 9 - Pipe 1 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_1(&mut self) -> PEP_1_W<9> {
        PEP_1_W::new(self)
    }
    #[doc = "Bit 10 - Pipe 2 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_2(&mut self) -> PEP_2_W<10> {
        PEP_2_W::new(self)
    }
    #[doc = "Bit 11 - Pipe 3 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_3(&mut self) -> PEP_3_W<11> {
        PEP_3_W::new(self)
    }
    #[doc = "Bit 12 - Pipe 4 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_4(&mut self) -> PEP_4_W<12> {
        PEP_4_W::new(self)
    }
    #[doc = "Bit 13 - Pipe 5 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_5(&mut self) -> PEP_5_W<13> {
        PEP_5_W::new(self)
    }
    #[doc = "Bit 14 - Pipe 6 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_6(&mut self) -> PEP_6_W<14> {
        PEP_6_W::new(self)
    }
    #[doc = "Bit 15 - Pipe 7 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_7(&mut self) -> PEP_7_W<15> {
        PEP_7_W::new(self)
    }
    #[doc = "Bit 16 - Pipe 8 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_8(&mut self) -> PEP_8_W<16> {
        PEP_8_W::new(self)
    }
    #[doc = "Bit 17 - Pipe 9 Interrupt Disable"]
    #[inline(always)]
    pub fn pep_9(&mut self) -> PEP_9_W<17> {
        PEP_9_W::new(self)
    }
    #[doc = "Bit 25 - DMA Channel 0 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_1(&mut self) -> DMA_1_W<25> {
        DMA_1_W::new(self)
    }
    #[doc = "Bit 26 - DMA Channel 1 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_2(&mut self) -> DMA_2_W<26> {
        DMA_2_W::new(self)
    }
    #[doc = "Bit 27 - DMA Channel 2 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_3(&mut self) -> DMA_3_W<27> {
        DMA_3_W::new(self)
    }
    #[doc = "Bit 28 - DMA Channel 3 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_4(&mut self) -> DMA_4_W<28> {
        DMA_4_W::new(self)
    }
    #[doc = "Bit 29 - DMA Channel 4 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_5(&mut self) -> DMA_5_W<29> {
        DMA_5_W::new(self)
    }
    #[doc = "Bit 30 - DMA Channel 5 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_6(&mut self) -> DMA_6_W<30> {
        DMA_6_W::new(self)
    }
    #[doc = "Bit 31 - DMA Channel 6 Interrupt Disable"]
    #[inline(always)]
    pub fn dma_7(&mut self) -> DMA_7_W<31> {
        DMA_7_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 = "Host Global Interrupt Disable 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 [hstidr](index.html) module"]
pub struct HSTIDR_SPEC;
impl crate::RegisterSpec for HSTIDR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [hstidr::W](W) writer structure"]
impl crate::Writable for HSTIDR_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets HSTIDR to value 0"]
impl crate::Resettable for HSTIDR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}