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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - OTG_HS control and status register"]
    pub otg_hs_gotgctl: OTG_HS_GOTGCTL,
    #[doc = "0x04 - OTG_HS interrupt register"]
    pub otg_hs_gotgint: OTG_HS_GOTGINT,
    #[doc = "0x08 - OTG_HS AHB configuration register"]
    pub otg_hs_gahbcfg: OTG_HS_GAHBCFG,
    #[doc = "0x0c - OTG_HS USB configuration register"]
    pub otg_hs_gusbcfg: OTG_HS_GUSBCFG,
    #[doc = "0x10 - OTG_HS reset register"]
    pub otg_hs_grstctl: OTG_HS_GRSTCTL,
    #[doc = "0x14 - OTG_HS core interrupt register"]
    pub otg_hs_gintsts: OTG_HS_GINTSTS,
    #[doc = "0x18 - OTG_HS interrupt mask register"]
    pub otg_hs_gintmsk: OTG_HS_GINTMSK,
    _reserved_7_otg_hs_grxstsr: [u8; 4usize],
    _reserved_8_otg_hs_grxstsp: [u8; 4usize],
    #[doc = "0x24 - OTG_HS Receive FIFO size register"]
    pub otg_hs_grxfsiz: OTG_HS_GRXFSIZ,
    _reserved_10_otg_hs: [u8; 4usize],
    #[doc = "0x2c - OTG_HS nonperiodic transmit FIFO/queue status register"]
    pub otg_hs_gnptxsts: OTG_HS_GNPTXSTS,
    _reserved12: [u8; 8usize],
    #[doc = "0x38 - OTG_HS general core configuration register"]
    pub otg_hs_gccfg: OTG_HS_GCCFG,
    #[doc = "0x3c - OTG_HS core ID register"]
    pub otg_hs_cid: OTG_HS_CID,
    _reserved14: [u8; 192usize],
    #[doc = "0x100 - OTG_HS Host periodic transmit FIFO size register"]
    pub otg_hs_hptxfsiz: OTG_HS_HPTXFSIZ,
    #[doc = "0x104 - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf1: OTG_HS_DIEPTXF1,
    #[doc = "0x108 - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf2: OTG_HS_DIEPTXF2,
    _reserved17: [u8; 16usize],
    #[doc = "0x11c - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf3: OTG_HS_DIEPTXF3,
    #[doc = "0x120 - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf4: OTG_HS_DIEPTXF4,
    #[doc = "0x124 - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf5: OTG_HS_DIEPTXF5,
    #[doc = "0x128 - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf6: OTG_HS_DIEPTXF6,
    #[doc = "0x12c - OTG_HS device IN endpoint transmit FIFO size register"]
    pub otg_hs_dieptxf7: OTG_HS_DIEPTXF7,
}
impl RegisterBlock {
    #[doc = "0x1c - OTG_HS Receive status debug read register (peripheral mode mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsr_peripheral(&self) -> &OTG_HS_GRXSTSR_PERIPHERAL {
        unsafe {
            &*(((self as *const Self) as *const u8).add(28usize)
                as *const OTG_HS_GRXSTSR_PERIPHERAL)
        }
    }
    #[doc = "0x1c - OTG_HS Receive status debug read register (peripheral mode mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsr_peripheral_mut(&self) -> &mut OTG_HS_GRXSTSR_PERIPHERAL {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(28usize)
                as *mut OTG_HS_GRXSTSR_PERIPHERAL)
        }
    }
    #[doc = "0x1c - OTG_HS Receive status debug read register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsr_host(&self) -> &OTG_HS_GRXSTSR_HOST {
        unsafe {
            &*(((self as *const Self) as *const u8).add(28usize) as *const OTG_HS_GRXSTSR_HOST)
        }
    }
    #[doc = "0x1c - OTG_HS Receive status debug read register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsr_host_mut(&self) -> &mut OTG_HS_GRXSTSR_HOST {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(28usize) as *mut OTG_HS_GRXSTSR_HOST)
        }
    }
    #[doc = "0x20 - OTG_HS status read and pop register (peripheral mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsp_peripheral(&self) -> &OTG_HS_GRXSTSP_PERIPHERAL {
        unsafe {
            &*(((self as *const Self) as *const u8).add(32usize)
                as *const OTG_HS_GRXSTSP_PERIPHERAL)
        }
    }
    #[doc = "0x20 - OTG_HS status read and pop register (peripheral mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsp_peripheral_mut(&self) -> &mut OTG_HS_GRXSTSP_PERIPHERAL {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(32usize)
                as *mut OTG_HS_GRXSTSP_PERIPHERAL)
        }
    }
    #[doc = "0x20 - OTG_HS status read and pop register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsp_host(&self) -> &OTG_HS_GRXSTSP_HOST {
        unsafe {
            &*(((self as *const Self) as *const u8).add(32usize) as *const OTG_HS_GRXSTSP_HOST)
        }
    }
    #[doc = "0x20 - OTG_HS status read and pop register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_grxstsp_host_mut(&self) -> &mut OTG_HS_GRXSTSP_HOST {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(32usize) as *mut OTG_HS_GRXSTSP_HOST)
        }
    }
    #[doc = "0x28 - Endpoint 0 transmit FIFO size (peripheral mode)"]
    #[inline(always)]
    pub fn otg_hs_tx0fsiz_peripheral(&self) -> &OTG_HS_TX0FSIZ_PERIPHERAL {
        unsafe {
            &*(((self as *const Self) as *const u8).add(40usize)
                as *const OTG_HS_TX0FSIZ_PERIPHERAL)
        }
    }
    #[doc = "0x28 - Endpoint 0 transmit FIFO size (peripheral mode)"]
    #[inline(always)]
    pub fn otg_hs_tx0fsiz_peripheral_mut(&self) -> &mut OTG_HS_TX0FSIZ_PERIPHERAL {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(40usize)
                as *mut OTG_HS_TX0FSIZ_PERIPHERAL)
        }
    }
    #[doc = "0x28 - OTG_HS nonperiodic transmit FIFO size register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_gnptxfsiz_host(&self) -> &OTG_HS_GNPTXFSIZ_HOST {
        unsafe {
            &*(((self as *const Self) as *const u8).add(40usize) as *const OTG_HS_GNPTXFSIZ_HOST)
        }
    }
    #[doc = "0x28 - OTG_HS nonperiodic transmit FIFO size register (host mode)"]
    #[inline(always)]
    pub fn otg_hs_gnptxfsiz_host_mut(&self) -> &mut OTG_HS_GNPTXFSIZ_HOST {
        unsafe {
            &mut *(((self as *const Self) as *mut u8).add(40usize) as *mut OTG_HS_GNPTXFSIZ_HOST)
        }
    }
}
#[doc = "OTG_HS control and status register"]
pub struct OTG_HS_GOTGCTL {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS control and status register"]
pub mod otg_hs_gotgctl;
#[doc = "OTG_HS interrupt register"]
pub struct OTG_HS_GOTGINT {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS interrupt register"]
pub mod otg_hs_gotgint;
#[doc = "OTG_HS AHB configuration register"]
pub struct OTG_HS_GAHBCFG {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS AHB configuration register"]
pub mod otg_hs_gahbcfg;
#[doc = "OTG_HS USB configuration register"]
pub struct OTG_HS_GUSBCFG {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS USB configuration register"]
pub mod otg_hs_gusbcfg;
#[doc = "OTG_HS reset register"]
pub struct OTG_HS_GRSTCTL {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS reset register"]
pub mod otg_hs_grstctl;
#[doc = "OTG_HS core interrupt register"]
pub struct OTG_HS_GINTSTS {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS core interrupt register"]
pub mod otg_hs_gintsts;
#[doc = "OTG_HS interrupt mask register"]
pub struct OTG_HS_GINTMSK {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS interrupt mask register"]
pub mod otg_hs_gintmsk;
#[doc = "OTG_HS Receive status debug read register (host mode)"]
pub struct OTG_HS_GRXSTSR_HOST {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS Receive status debug read register (host mode)"]
pub mod otg_hs_grxstsr_host;
#[doc = "OTG_HS status read and pop register (host mode)"]
pub struct OTG_HS_GRXSTSP_HOST {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS status read and pop register (host mode)"]
pub mod otg_hs_grxstsp_host;
#[doc = "OTG_HS Receive FIFO size register"]
pub struct OTG_HS_GRXFSIZ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS Receive FIFO size register"]
pub mod otg_hs_grxfsiz;
#[doc = "OTG_HS nonperiodic transmit FIFO size register (host mode)"]
pub struct OTG_HS_GNPTXFSIZ_HOST {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS nonperiodic transmit FIFO size register (host mode)"]
pub mod otg_hs_gnptxfsiz_host;
#[doc = "Endpoint 0 transmit FIFO size (peripheral mode)"]
pub struct OTG_HS_TX0FSIZ_PERIPHERAL {
    register: vcell::VolatileCell<u32>,
}
#[doc = "Endpoint 0 transmit FIFO size (peripheral mode)"]
pub mod otg_hs_tx0fsiz_peripheral;
#[doc = "OTG_HS nonperiodic transmit FIFO/queue status register"]
pub struct OTG_HS_GNPTXSTS {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS nonperiodic transmit FIFO/queue status register"]
pub mod otg_hs_gnptxsts;
#[doc = "OTG_HS general core configuration register"]
pub struct OTG_HS_GCCFG {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS general core configuration register"]
pub mod otg_hs_gccfg;
#[doc = "OTG_HS core ID register"]
pub struct OTG_HS_CID {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS core ID register"]
pub mod otg_hs_cid;
#[doc = "OTG_HS Host periodic transmit FIFO size register"]
pub struct OTG_HS_HPTXFSIZ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS Host periodic transmit FIFO size register"]
pub mod otg_hs_hptxfsiz;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf1;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf2;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF3 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf3;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF4 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf4;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF5 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf5;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF6 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf6;
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub struct OTG_HS_DIEPTXF7 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS device IN endpoint transmit FIFO size register"]
pub mod otg_hs_dieptxf7;
#[doc = "OTG_HS Receive status debug read register (peripheral mode mode)"]
pub struct OTG_HS_GRXSTSR_PERIPHERAL {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS Receive status debug read register (peripheral mode mode)"]
pub mod otg_hs_grxstsr_peripheral;
#[doc = "OTG_HS status read and pop register (peripheral mode)"]
pub struct OTG_HS_GRXSTSP_PERIPHERAL {
    register: vcell::VolatileCell<u32>,
}
#[doc = "OTG_HS status read and pop register (peripheral mode)"]
pub mod otg_hs_grxstsp_peripheral;