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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - Identification Register"]
    pub id: ID,
    #[doc = "0x04 - General Hardware Parameters Register"]
    pub hwgeneral: HWGENERAL,
    #[doc = "0x08 - Host Hardware Parameters Register"]
    pub hwhost: HWHOST,
    #[doc = "0x0c - Device Hardware Parameters Register"]
    pub hwdevice: HWDEVICE,
    #[doc = "0x10 - Transmit Buffer Hardware Parameters Register"]
    pub hwtxbuf: HWTXBUF,
    #[doc = "0x14 - Receive Buffer Hardware Parameters Register"]
    pub hwrxbuf: HWRXBUF,
    _reserved0: [u8; 104usize],
    #[doc = "0x80 - General Purpose Timer n Load Register"]
    pub gptimer0ld: GPTIMERLD,
    #[doc = "0x84 - General Purpose Timer n Control Register"]
    pub gptimer0ctl: GPTIMERCTL,
    #[doc = "0x88 - General Purpose Timer n Load Register"]
    pub gptimer1ld: GPTIMERLD,
    #[doc = "0x8c - General Purpose Timer n Control Register"]
    pub gptimer1ctl: GPTIMERCTL,
    #[doc = "0x90 - System Bus Interface Configuration Register"]
    pub usb_sbuscfg: USB_SBUSCFG,
    _reserved1: [u8; 108usize],
    #[doc = "0x100 - Host Controller Interface Version and Capability Registers Length Register"]
    pub hciversion: HCIVERSION,
    #[doc = "0x104 - Host Controller Structural Parameters Register"]
    pub hcsparams: HCSPARAMS,
    #[doc = "0x108 - Host Controller Capability Parameters Register"]
    pub hccparams: HCCPARAMS,
    _reserved2: [u8; 22usize],
    #[doc = "0x122 - Device Controller Interface Version"]
    pub dciversion: DCIVERSION,
    #[doc = "0x124 - Device Controller Capability Parameters"]
    pub dccparams: DCCPARAMS,
    _reserved3: [u8; 24usize],
    #[doc = "0x140 - USB Command Register"]
    pub usbcmd: USBCMD,
    #[doc = "0x144 - USB Status Register"]
    pub usbsts: USBSTS,
    #[doc = "0x148 - USB Interrupt Enable Register"]
    pub usbintr: USBINTR,
    #[doc = "0x14c - Frame Index Register"]
    pub frindex: FRINDEX,
    _reserved4: [u8; 4usize],
    #[doc = "0x154 - Device Address Register"]
    pub deviceaddr: DEVICEADDR,
    #[doc = "0x158 - Current Asynchronous List Address Register"]
    pub asynclistaddr: ASYNCLISTADDR,
    #[doc = "0x15c - Host TT Asynchronous Buffer Control"]
    pub ttctrl: TTCTRL,
    #[doc = "0x160 - Master Interface Data Burst Size Register"]
    pub burstsize: BURSTSIZE,
    #[doc = "0x164 - Transmit FIFO Tuning Control Register"]
    pub txfilltuning: TXFILLTUNING,
    _reserved5: [u8; 16usize],
    #[doc = "0x178 - Endpoint NAK Register"]
    pub endptnak: ENDPTNAK,
    #[doc = "0x17c - Endpoint NAK Enable Register"]
    pub endptnaken: ENDPTNAKEN,
    #[doc = "0x180 - Configure Flag Register"]
    pub configflag: CONFIGFLAG,
    #[doc = "0x184 - Port Status and Control Registers"]
    pub portsc1: PORTSC1,
    _reserved6: [u8; 28usize],
    #[doc = "0x1a4 - On-the-Go Status and Control Register"]
    pub otgsc: OTGSC,
    #[doc = "0x1a8 - USB Mode Register"]
    pub usbmode: USBMODE,
    #[doc = "0x1ac - Endpoint Setup Status Register"]
    pub epsetupsr: EPSETUPSR,
    #[doc = "0x1b0 - Endpoint Initialization Register"]
    pub epprime: EPPRIME,
    #[doc = "0x1b4 - Endpoint Flush Register"]
    pub epflush: EPFLUSH,
    #[doc = "0x1b8 - Endpoint Status Register"]
    pub epsr: EPSR,
    #[doc = "0x1bc - Endpoint Complete Register"]
    pub epcomplete: EPCOMPLETE,
    #[doc = "0x1c0 - Endpoint Control Register 0"]
    pub epcr0: EPCR0,
    #[doc = "0x1c4 - Endpoint Control Register n"]
    pub epcr1: EPCR,
    #[doc = "0x1c8 - Endpoint Control Register n"]
    pub epcr2: EPCR,
    #[doc = "0x1cc - Endpoint Control Register n"]
    pub epcr3: EPCR,
    #[doc = "0x1d0 - Endpoint Control Register n"]
    pub epcr4: EPCR,
    #[doc = "0x1d4 - Endpoint Control Register n"]
    pub epcr5: EPCR,
    #[doc = "0x1d8 - Endpoint Control Register n"]
    pub epcr6: EPCR,
    #[doc = "0x1dc - Endpoint Control Register n"]
    pub epcr7: EPCR,
    _reserved7: [u8; 32usize],
    #[doc = "0x200 - USB General Control Register"]
    pub usbgenctrl: USBGENCTRL,
}
#[doc = "Identification Register"]
pub struct ID {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Identification Register"]
pub mod id;
#[doc = "General Hardware Parameters Register"]
pub struct HWGENERAL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "General Hardware Parameters Register"]
pub mod hwgeneral;
#[doc = "Host Hardware Parameters Register"]
pub struct HWHOST {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Host Hardware Parameters Register"]
pub mod hwhost;
#[doc = "Device Hardware Parameters Register"]
pub struct HWDEVICE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Device Hardware Parameters Register"]
pub mod hwdevice;
#[doc = "Transmit Buffer Hardware Parameters Register"]
pub struct HWTXBUF {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Transmit Buffer Hardware Parameters Register"]
pub mod hwtxbuf;
#[doc = "Receive Buffer Hardware Parameters Register"]
pub struct HWRXBUF {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Receive Buffer Hardware Parameters Register"]
pub mod hwrxbuf;
#[doc = "General Purpose Timer n Load Register"]
pub struct GPTIMERLD {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "General Purpose Timer n Load Register"]
pub mod gptimerld;
#[doc = "General Purpose Timer n Control Register"]
pub struct GPTIMERCTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "General Purpose Timer n Control Register"]
pub mod gptimerctl;
#[doc = "System Bus Interface Configuration Register"]
pub struct USB_SBUSCFG {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "System Bus Interface Configuration Register"]
pub mod usb_sbuscfg;
#[doc = "Host Controller Interface Version and Capability Registers Length Register"]
pub struct HCIVERSION {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Host Controller Interface Version and Capability Registers Length Register"]
pub mod hciversion;
#[doc = "Host Controller Structural Parameters Register"]
pub struct HCSPARAMS {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Host Controller Structural Parameters Register"]
pub mod hcsparams;
#[doc = "Host Controller Capability Parameters Register"]
pub struct HCCPARAMS {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Host Controller Capability Parameters Register"]
pub mod hccparams;
#[doc = "Device Controller Interface Version"]
pub struct DCIVERSION {
    register: ::vcell::VolatileCell<u16>,
}
#[doc = "Device Controller Interface Version"]
pub mod dciversion;
#[doc = "Device Controller Capability Parameters"]
pub struct DCCPARAMS {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Device Controller Capability Parameters"]
pub mod dccparams;
#[doc = "USB Command Register"]
pub struct USBCMD {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "USB Command Register"]
pub mod usbcmd;
#[doc = "USB Status Register"]
pub struct USBSTS {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "USB Status Register"]
pub mod usbsts;
#[doc = "USB Interrupt Enable Register"]
pub struct USBINTR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "USB Interrupt Enable Register"]
pub mod usbintr;
#[doc = "Frame Index Register"]
pub struct FRINDEX {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Frame Index Register"]
pub mod frindex;
#[doc = "Device Address Register"]
pub struct DEVICEADDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Device Address Register"]
pub mod deviceaddr;
#[doc = "Periodic Frame List Base Address Register"]
pub struct PERIODICLISTBASE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Periodic Frame List Base Address Register"]
pub mod periodiclistbase;
#[doc = "Current Asynchronous List Address Register"]
pub struct ASYNCLISTADDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Current Asynchronous List Address Register"]
pub mod asynclistaddr;
#[doc = "Endpoint List Address Register"]
pub struct EPLISTADDR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint List Address Register"]
pub mod eplistaddr;
#[doc = "Host TT Asynchronous Buffer Control"]
pub struct TTCTRL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Host TT Asynchronous Buffer Control"]
pub mod ttctrl;
#[doc = "Master Interface Data Burst Size Register"]
pub struct BURSTSIZE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Master Interface Data Burst Size Register"]
pub mod burstsize;
#[doc = "Transmit FIFO Tuning Control Register"]
pub struct TXFILLTUNING {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Transmit FIFO Tuning Control Register"]
pub mod txfilltuning;
#[doc = "Endpoint NAK Register"]
pub struct ENDPTNAK {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint NAK Register"]
pub mod endptnak;
#[doc = "Endpoint NAK Enable Register"]
pub struct ENDPTNAKEN {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint NAK Enable Register"]
pub mod endptnaken;
#[doc = "Configure Flag Register"]
pub struct CONFIGFLAG {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Configure Flag Register"]
pub mod configflag;
#[doc = "Port Status and Control Registers"]
pub struct PORTSC1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Port Status and Control Registers"]
pub mod portsc1;
#[doc = "On-the-Go Status and Control Register"]
pub struct OTGSC {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "On-the-Go Status and Control Register"]
pub mod otgsc;
#[doc = "USB Mode Register"]
pub struct USBMODE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "USB Mode Register"]
pub mod usbmode;
#[doc = "Endpoint Setup Status Register"]
pub struct EPSETUPSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Setup Status Register"]
pub mod epsetupsr;
#[doc = "Endpoint Initialization Register"]
pub struct EPPRIME {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Initialization Register"]
pub mod epprime;
#[doc = "Endpoint Flush Register"]
pub struct EPFLUSH {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Flush Register"]
pub mod epflush;
#[doc = "Endpoint Status Register"]
pub struct EPSR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Status Register"]
pub mod epsr;
#[doc = "Endpoint Complete Register"]
pub struct EPCOMPLETE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Complete Register"]
pub mod epcomplete;
#[doc = "Endpoint Control Register 0"]
pub struct EPCR0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Control Register 0"]
pub mod epcr0;
#[doc = "Endpoint Control Register n"]
pub struct EPCR {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Endpoint Control Register n"]
pub mod epcr;
#[doc = "USB General Control Register"]
pub struct USBGENCTRL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "USB General Control Register"]
pub mod usbgenctrl;