mikroSDK Reference Manual
musb_type.h
1/******************************************************************************
2*
3* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions
7* are met:
8*
9* Redistributions of source code must retain the above copyright
10* notice, this list of conditions and the following disclaimer.
11*
12* Redistributions in binary form must reproduce the above copyright
13* notice, this list of conditions and the following disclaimer in the
14* documentation and/or other materials provided with the
15* distribution.
16*
17* Neither the name of Texas Instruments Incorporated nor the names of
18* its contributors may be used to endorse or promote products derived
19* from this software without specific prior written permission.
20*
21* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*
33*******************************************************************************/
34
35#ifndef _TUSB_MUSB_TYPE_H_
36#define _TUSB_MUSB_TYPE_H_
37
38#ifdef __cplusplus
39 extern "C" {
40#endif
41
42//*****************************************************************************
43//
44// The following are defines for the bit fields in the USB_O_FADDR register.
45//
46//*****************************************************************************
47#define USB_FADDR_M 0x0000007F // Function Address
48#define USB_FADDR_S 0
49
50//*****************************************************************************
51//
52// The following are defines for the bit fields in the USB_O_POWER register.
53//
54//*****************************************************************************
55#define USB_POWER_ISOUP 0x00000080 // Isochronous Update
56#define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
57#define USB_POWER_HSENAB 0x00000020 // High Speed Enable
58#define USB_POWER_HSMODE 0x00000010 // High Speed Enable
59#define USB_POWER_RESET 0x00000008 // RESET Signaling
60#define USB_POWER_RESUME 0x00000004 // RESUME Signaling
61#define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
62#define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
63
64//*****************************************************************************
65//
66// The following are defines for the bit fields in the USB_O_TXIS register.
67//
68//*****************************************************************************
69#define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
70#define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
71#define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
72#define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
73#define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
74#define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
75#define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
76#define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
77
78//*****************************************************************************
79//
80// The following are defines for the bit fields in the USB_O_RXIS register.
81//
82//*****************************************************************************
83#define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
84#define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
85#define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
86#define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
87#define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
88#define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
89#define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
90
91//*****************************************************************************
92//
93// The following are defines for the bit fields in the USB_O_TXIE register.
94//
95//*****************************************************************************
96#define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
97#define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
98#define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
99#define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
100#define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
101#define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
102#define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
103#define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
104 // Enable
105
106//*****************************************************************************
107//
108// The following are defines for the bit fields in the USB_O_RXIE register.
109//
110//*****************************************************************************
111#define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
112#define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
113#define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
114#define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
115#define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
116#define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
117#define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
118
119//*****************************************************************************
120//
121// The following are defines for the bit fields in the USB_O_IS register.
122//
123//*****************************************************************************
124#define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
125#define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
126#define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
127#define USB_IS_CONN 0x00000010 // Session Connect
128#define USB_IS_SOF 0x00000008 // Start of Frame
129#define USB_IS_BABBLE 0x00000004 // Babble Detected
130#define USB_IS_RESET 0x00000004 // RESET Signaling Detected
131#define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
132#define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
133
134//*****************************************************************************
135//
136// The following are defines for the bit fields in the USB_O_IE register.
137//
138//*****************************************************************************
139#define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
140 // only)
141#define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
142 // only)
143#define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
144#define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
145#define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
146#define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
147#define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
148#define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
149#define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
150
151//*****************************************************************************
152//
153// The following are defines for the bit fields in the USB_O_FRAME register.
154//
155//*****************************************************************************
156#define USB_FRAME_M 0x000007FF // Frame Number
157#define USB_FRAME_S 0
158
159//*****************************************************************************
160//
161// The following are defines for the bit fields in the USB_O_EPIDX register.
162//
163//*****************************************************************************
164#define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
165#define USB_EPIDX_EPIDX_S 0
166
167//*****************************************************************************
168//
169// The following are defines for the bit fields in the USB_O_TEST register.
170//
171//*****************************************************************************
172#define USB_TEST_FORCEH 0x00000080 // Force Host Mode
173#define USB_TEST_FIFOACC 0x00000040 // FIFO Access
174#define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
175#define USB_TEST_FORCEHS 0x00000010 // Force High-Speed Mode
176#define USB_TEST_TESTPKT 0x00000008 // Test Packet Mode Enable
177#define USB_TEST_TESTK 0x00000004 // Test_K Mode Enable
178#define USB_TEST_TESTJ 0x00000002 // Test_J Mode Enable
179#define USB_TEST_TESTSE0NAK 0x00000001 // Test_SE0_NAK Test Mode Enable
180
181//*****************************************************************************
182//
183// The following are defines for the bit fields in the USB_O_FIFO0 register.
184//
185//*****************************************************************************
186#define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
187#define USB_FIFO0_EPDATA_S 0
188
189//*****************************************************************************
190//
191// The following are defines for the bit fields in the USB_O_FIFO1 register.
192//
193//*****************************************************************************
194#define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
195#define USB_FIFO1_EPDATA_S 0
196
197//*****************************************************************************
198//
199// The following are defines for the bit fields in the USB_O_FIFO2 register.
200//
201//*****************************************************************************
202#define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
203#define USB_FIFO2_EPDATA_S 0
204
205//*****************************************************************************
206//
207// The following are defines for the bit fields in the USB_O_FIFO3 register.
208//
209//*****************************************************************************
210#define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
211#define USB_FIFO3_EPDATA_S 0
212
213//*****************************************************************************
214//
215// The following are defines for the bit fields in the USB_O_FIFO4 register.
216//
217//*****************************************************************************
218#define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
219#define USB_FIFO4_EPDATA_S 0
220
221//*****************************************************************************
222//
223// The following are defines for the bit fields in the USB_O_FIFO5 register.
224//
225//*****************************************************************************
226#define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
227#define USB_FIFO5_EPDATA_S 0
228
229//*****************************************************************************
230//
231// The following are defines for the bit fields in the USB_O_FIFO6 register.
232//
233//*****************************************************************************
234#define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
235#define USB_FIFO6_EPDATA_S 0
236
237//*****************************************************************************
238//
239// The following are defines for the bit fields in the USB_O_FIFO7 register.
240//
241//*****************************************************************************
242#define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
243#define USB_FIFO7_EPDATA_S 0
244
245//*****************************************************************************
246//
247// The following are defines for the bit fields in the USB_O_DEVCTL register.
248//
249//*****************************************************************************
250#define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
251#define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
252#define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
253#define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
254#define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
255#define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
256#define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
257#define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
258#define USB_DEVCTL_HOST 0x00000004 // Host Mode
259#define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
260#define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
261
262//*****************************************************************************
263//
264// The following are defines for the bit fields in the USB_O_CCONF register.
265//
266//*****************************************************************************
267#define USB_CCONF_TXEDMA 0x00000002 // TX Early DMA Enable
268#define USB_CCONF_RXEDMA 0x00000001 // TX Early DMA Enable
269
270//*****************************************************************************
271//
272// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
273//
274//*****************************************************************************
275#define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
276#define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
277#define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
278#define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
279#define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
280#define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
281#define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
282#define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
283#define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
284#define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
285#define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
286
287//*****************************************************************************
288//
289// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
290//
291//*****************************************************************************
292#define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
293#define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
294#define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
295#define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
296#define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
297#define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
298#define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
299#define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
300#define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
301#define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
302#define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
303
304//*****************************************************************************
305//
306// The following are defines for the bit fields in the USB_O_TXFIFOADD
307// register.
308//
309//*****************************************************************************
310#define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
311#define USB_TXFIFOADD_ADDR_S 0
312
313//*****************************************************************************
314//
315// The following are defines for the bit fields in the USB_O_RXFIFOADD
316// register.
317//
318//*****************************************************************************
319#define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
320#define USB_RXFIFOADD_ADDR_S 0
321
322//*****************************************************************************
323//
324// The following are defines for the bit fields in the USB_O_ULPIVBUSCTL
325// register.
326//
327//*****************************************************************************
328#define USB_ULPIVBUSCTL_USEEXTVBUSIND \
329 0x00000002 // Use External VBUS Indicator
330#define USB_ULPIVBUSCTL_USEEXTVBUS \
331 0x00000001 // Use External VBUS
332
333//*****************************************************************************
334//
335// The following are defines for the bit fields in the USB_O_ULPIREGDATA
336// register.
337//
338//*****************************************************************************
339#define USB_ULPIREGDATA_REGDATA_M \
340 0x000000FF // Register Data
341#define USB_ULPIREGDATA_REGDATA_S \
342 0
343
344//*****************************************************************************
345//
346// The following are defines for the bit fields in the USB_O_ULPIREGADDR
347// register.
348//
349//*****************************************************************************
350#define USB_ULPIREGADDR_ADDR_M 0x000000FF // Register Address
351#define USB_ULPIREGADDR_ADDR_S 0
352
353//*****************************************************************************
354//
355// The following are defines for the bit fields in the USB_O_ULPIREGCTL
356// register.
357//
358//*****************************************************************************
359#define USB_ULPIREGCTL_RDWR 0x00000004 // Read/Write Control
360#define USB_ULPIREGCTL_REGCMPLT 0x00000002 // Register Access Complete
361#define USB_ULPIREGCTL_REGACC 0x00000001 // Initiate Register Access
362
363//*****************************************************************************
364//
365// The following are defines for the bit fields in the USB_O_EPINFO register.
366//
367//*****************************************************************************
368#define USB_EPINFO_RXEP_M 0x000000F0 // RX Endpoints
369#define USB_EPINFO_TXEP_M 0x0000000F // TX Endpoints
370#define USB_EPINFO_RXEP_S 4
371#define USB_EPINFO_TXEP_S 0
372
373//*****************************************************************************
374//
375// The following are defines for the bit fields in the USB_O_RAMINFO register.
376//
377//*****************************************************************************
378#define USB_RAMINFO_DMACHAN_M 0x000000F0 // DMA Channels
379#define USB_RAMINFO_RAMBITS_M 0x0000000F // RAM Address Bus Width
380#define USB_RAMINFO_DMACHAN_S 4
381#define USB_RAMINFO_RAMBITS_S 0
382
383//*****************************************************************************
384//
385// The following are defines for the bit fields in the USB_O_CONTIM register.
386//
387//*****************************************************************************
388#define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
389#define USB_CONTIM_WTID_M 0x0000000F // Wait ID
390#define USB_CONTIM_WTCON_S 4
391#define USB_CONTIM_WTID_S 0
392
393//*****************************************************************************
394//
395// The following are defines for the bit fields in the USB_O_VPLEN register.
396//
397//*****************************************************************************
398#define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
399#define USB_VPLEN_VPLEN_S 0
400
401//*****************************************************************************
402//
403// The following are defines for the bit fields in the USB_O_HSEOF register.
404//
405//*****************************************************************************
406#define USB_HSEOF_HSEOFG_M 0x000000FF // HIgh-Speed End-of-Frame Gap
407#define USB_HSEOF_HSEOFG_S 0
408
409//*****************************************************************************
410//
411// The following are defines for the bit fields in the USB_O_FSEOF register.
412//
413//*****************************************************************************
414#define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
415#define USB_FSEOF_FSEOFG_S 0
416
417//*****************************************************************************
418//
419// The following are defines for the bit fields in the USB_O_LSEOF register.
420//
421//*****************************************************************************
422#define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
423#define USB_LSEOF_LSEOFG_S 0
424
425//*****************************************************************************
426//
427// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
428// register.
429//
430//*****************************************************************************
431#define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
432#define USB_TXFUNCADDR0_ADDR_S 0
433
434//*****************************************************************************
435//
436// The following are defines for the bit fields in the USB_O_TXHUBADDR0
437// register.
438//
439//*****************************************************************************
440#define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
441#define USB_TXHUBADDR0_ADDR_S 0
442
443//*****************************************************************************
444//
445// The following are defines for the bit fields in the USB_O_TXHUBPORT0
446// register.
447//
448//*****************************************************************************
449#define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
450#define USB_TXHUBPORT0_PORT_S 0
451
452//*****************************************************************************
453//
454// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
455// register.
456//
457//*****************************************************************************
458#define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
459#define USB_TXFUNCADDR1_ADDR_S 0
460
461//*****************************************************************************
462//
463// The following are defines for the bit fields in the USB_O_TXHUBADDR1
464// register.
465//
466//*****************************************************************************
467#define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
468#define USB_TXHUBADDR1_ADDR_S 0
469
470//*****************************************************************************
471//
472// The following are defines for the bit fields in the USB_O_TXHUBPORT1
473// register.
474//
475//*****************************************************************************
476#define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
477#define USB_TXHUBPORT1_PORT_S 0
478
479//*****************************************************************************
480//
481// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
482// register.
483//
484//*****************************************************************************
485#define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
486#define USB_RXFUNCADDR1_ADDR_S 0
487
488//*****************************************************************************
489//
490// The following are defines for the bit fields in the USB_O_RXHUBADDR1
491// register.
492//
493//*****************************************************************************
494#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
495#define USB_RXHUBADDR1_ADDR_S 0
496
497//*****************************************************************************
498//
499// The following are defines for the bit fields in the USB_O_RXHUBPORT1
500// register.
501//
502//*****************************************************************************
503#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
504#define USB_RXHUBPORT1_PORT_S 0
505
506//*****************************************************************************
507//
508// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
509// register.
510//
511//*****************************************************************************
512#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
513#define USB_TXFUNCADDR2_ADDR_S 0
514
515//*****************************************************************************
516//
517// The following are defines for the bit fields in the USB_O_TXHUBADDR2
518// register.
519//
520//*****************************************************************************
521#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
522#define USB_TXHUBADDR2_ADDR_S 0
523
524//*****************************************************************************
525//
526// The following are defines for the bit fields in the USB_O_TXHUBPORT2
527// register.
528//
529//*****************************************************************************
530#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
531#define USB_TXHUBPORT2_PORT_S 0
532
533//*****************************************************************************
534//
535// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
536// register.
537//
538//*****************************************************************************
539#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
540#define USB_RXFUNCADDR2_ADDR_S 0
541
542//*****************************************************************************
543//
544// The following are defines for the bit fields in the USB_O_RXHUBADDR2
545// register.
546//
547//*****************************************************************************
548#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
549#define USB_RXHUBADDR2_ADDR_S 0
550
551//*****************************************************************************
552//
553// The following are defines for the bit fields in the USB_O_RXHUBPORT2
554// register.
555//
556//*****************************************************************************
557#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
558#define USB_RXHUBPORT2_PORT_S 0
559
560//*****************************************************************************
561//
562// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
563// register.
564//
565//*****************************************************************************
566#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
567#define USB_TXFUNCADDR3_ADDR_S 0
568
569//*****************************************************************************
570//
571// The following are defines for the bit fields in the USB_O_TXHUBADDR3
572// register.
573//
574//*****************************************************************************
575#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
576#define USB_TXHUBADDR3_ADDR_S 0
577
578//*****************************************************************************
579//
580// The following are defines for the bit fields in the USB_O_TXHUBPORT3
581// register.
582//
583//*****************************************************************************
584#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
585#define USB_TXHUBPORT3_PORT_S 0
586
587//*****************************************************************************
588//
589// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
590// register.
591//
592//*****************************************************************************
593#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
594#define USB_RXFUNCADDR3_ADDR_S 0
595
596//*****************************************************************************
597//
598// The following are defines for the bit fields in the USB_O_RXHUBADDR3
599// register.
600//
601//*****************************************************************************
602#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
603#define USB_RXHUBADDR3_ADDR_S 0
604
605//*****************************************************************************
606//
607// The following are defines for the bit fields in the USB_O_RXHUBPORT3
608// register.
609//
610//*****************************************************************************
611#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
612#define USB_RXHUBPORT3_PORT_S 0
613
614//*****************************************************************************
615//
616// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
617// register.
618//
619//*****************************************************************************
620#define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
621#define USB_TXFUNCADDR4_ADDR_S 0
622
623//*****************************************************************************
624//
625// The following are defines for the bit fields in the USB_O_TXHUBADDR4
626// register.
627//
628//*****************************************************************************
629#define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
630#define USB_TXHUBADDR4_ADDR_S 0
631
632//*****************************************************************************
633//
634// The following are defines for the bit fields in the USB_O_TXHUBPORT4
635// register.
636//
637//*****************************************************************************
638#define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
639#define USB_TXHUBPORT4_PORT_S 0
640
641//*****************************************************************************
642//
643// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
644// register.
645//
646//*****************************************************************************
647#define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
648#define USB_RXFUNCADDR4_ADDR_S 0
649
650//*****************************************************************************
651//
652// The following are defines for the bit fields in the USB_O_RXHUBADDR4
653// register.
654//
655//*****************************************************************************
656#define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
657#define USB_RXHUBADDR4_ADDR_S 0
658
659//*****************************************************************************
660//
661// The following are defines for the bit fields in the USB_O_RXHUBPORT4
662// register.
663//
664//*****************************************************************************
665#define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
666#define USB_RXHUBPORT4_PORT_S 0
667
668//*****************************************************************************
669//
670// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
671// register.
672//
673//*****************************************************************************
674#define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
675#define USB_TXFUNCADDR5_ADDR_S 0
676
677//*****************************************************************************
678//
679// The following are defines for the bit fields in the USB_O_TXHUBADDR5
680// register.
681//
682//*****************************************************************************
683#define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
684#define USB_TXHUBADDR5_ADDR_S 0
685
686//*****************************************************************************
687//
688// The following are defines for the bit fields in the USB_O_TXHUBPORT5
689// register.
690//
691//*****************************************************************************
692#define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
693#define USB_TXHUBPORT5_PORT_S 0
694
695//*****************************************************************************
696//
697// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
698// register.
699//
700//*****************************************************************************
701#define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
702#define USB_RXFUNCADDR5_ADDR_S 0
703
704//*****************************************************************************
705//
706// The following are defines for the bit fields in the USB_O_RXHUBADDR5
707// register.
708//
709//*****************************************************************************
710#define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
711#define USB_RXHUBADDR5_ADDR_S 0
712
713//*****************************************************************************
714//
715// The following are defines for the bit fields in the USB_O_RXHUBPORT5
716// register.
717//
718//*****************************************************************************
719#define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
720#define USB_RXHUBPORT5_PORT_S 0
721
722//*****************************************************************************
723//
724// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
725// register.
726//
727//*****************************************************************************
728#define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
729#define USB_TXFUNCADDR6_ADDR_S 0
730
731//*****************************************************************************
732//
733// The following are defines for the bit fields in the USB_O_TXHUBADDR6
734// register.
735//
736//*****************************************************************************
737#define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
738#define USB_TXHUBADDR6_ADDR_S 0
739
740//*****************************************************************************
741//
742// The following are defines for the bit fields in the USB_O_TXHUBPORT6
743// register.
744//
745//*****************************************************************************
746#define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
747#define USB_TXHUBPORT6_PORT_S 0
748
749//*****************************************************************************
750//
751// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
752// register.
753//
754//*****************************************************************************
755#define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
756#define USB_RXFUNCADDR6_ADDR_S 0
757
758//*****************************************************************************
759//
760// The following are defines for the bit fields in the USB_O_RXHUBADDR6
761// register.
762//
763//*****************************************************************************
764#define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
765#define USB_RXHUBADDR6_ADDR_S 0
766
767//*****************************************************************************
768//
769// The following are defines for the bit fields in the USB_O_RXHUBPORT6
770// register.
771//
772//*****************************************************************************
773#define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
774#define USB_RXHUBPORT6_PORT_S 0
775
776//*****************************************************************************
777//
778// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
779// register.
780//
781//*****************************************************************************
782#define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
783#define USB_TXFUNCADDR7_ADDR_S 0
784
785//*****************************************************************************
786//
787// The following are defines for the bit fields in the USB_O_TXHUBADDR7
788// register.
789//
790//*****************************************************************************
791#define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
792#define USB_TXHUBADDR7_ADDR_S 0
793
794//*****************************************************************************
795//
796// The following are defines for the bit fields in the USB_O_TXHUBPORT7
797// register.
798//
799//*****************************************************************************
800#define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
801#define USB_TXHUBPORT7_PORT_S 0
802
803//*****************************************************************************
804//
805// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
806// register.
807//
808//*****************************************************************************
809#define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
810#define USB_RXFUNCADDR7_ADDR_S 0
811
812//*****************************************************************************
813//
814// The following are defines for the bit fields in the USB_O_RXHUBADDR7
815// register.
816//
817//*****************************************************************************
818#define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
819#define USB_RXHUBADDR7_ADDR_S 0
820
821//*****************************************************************************
822//
823// The following are defines for the bit fields in the USB_O_RXHUBPORT7
824// register.
825//
826//*****************************************************************************
827#define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
828#define USB_RXHUBPORT7_PORT_S 0
829
830//*****************************************************************************
831//
832// The following are defines for the bit fields in the USB_O_CSRL0 register.
833//
834//*****************************************************************************
835#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
836#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
837#define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
838#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
839#define USB_CSRL0_REQPKT 0x00000020 // Request Packet
840#define USB_CSRL0_STALL 0x00000020 // Send Stall
841#define USB_CSRL0_SETEND 0x00000010 // Setup End
842#define USB_CSRL0_ERROR 0x00000010 // Error
843#define USB_CSRL0_DATAEND 0x00000008 // Data End
844#define USB_CSRL0_SETUP 0x00000008 // Setup Packet
845#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
846#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
847#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
848
849//*****************************************************************************
850//
851// The following are defines for the bit fields in the USB_O_CSRH0 register.
852//
853//*****************************************************************************
854#define USB_CSRH0_DISPING 0x00000008 // PING Disable
855#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
856#define USB_CSRH0_DT 0x00000002 // Data Toggle
857#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
858
859//*****************************************************************************
860//
861// The following are defines for the bit fields in the USB_O_COUNT0 register.
862//
863//*****************************************************************************
864#define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
865#define USB_COUNT0_COUNT_S 0
866
867//*****************************************************************************
868//
869// The following are defines for the bit fields in the USB_O_TYPE0 register.
870//
871//*****************************************************************************
872#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
873#define USB_TYPE0_SPEED_HIGH 0x00000040 // High
874#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
875#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
876
877//*****************************************************************************
878//
879// The following are defines for the bit fields in the USB_O_NAKLMT register.
880//
881//*****************************************************************************
882#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
883#define USB_NAKLMT_NAKLMT_S 0
884
885//*****************************************************************************
886//
887// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
888//
889//*****************************************************************************
890#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
891#define USB_TXMAXP1_MAXLOAD_S 0
892
893//*****************************************************************************
894//
895// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
896//
897//*****************************************************************************
898#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
899#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
900#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
901#define USB_TXCSRL1_STALL 0x00000010 // Send STALL
902#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
903#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
904#define USB_TXCSRL1_ERROR 0x00000004 // Error
905#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
906#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
907#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
908
909//*****************************************************************************
910//
911// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
912//
913//*****************************************************************************
914#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
915#define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
916#define USB_TXCSRH1_MODE 0x00000020 // Mode
917#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
918#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
919#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
920#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
921#define USB_TXCSRH1_DT 0x00000001 // Data Toggle
922
923//*****************************************************************************
924//
925// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
926//
927//*****************************************************************************
928#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
929#define USB_RXMAXP1_MAXLOAD_S 0
930
931//*****************************************************************************
932//
933// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
934//
935//*****************************************************************************
936#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
937#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
938#define USB_RXCSRL1_STALL 0x00000020 // Send STALL
939#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
940#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
941#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
942#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
943#define USB_RXCSRL1_OVER 0x00000004 // Overrun
944#define USB_RXCSRL1_ERROR 0x00000004 // Error
945#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
946#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
947
948//*****************************************************************************
949//
950// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
951//
952//*****************************************************************************
953#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
954#define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
955#define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
956#define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
957#define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
958#define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
959#define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
960#define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
961#define USB_RXCSRH1_DT 0x00000002 // Data Toggle
962#define USB_RXCSRH1_INCOMPRX 0x00000001 // Incomplete RX Transmission
963 // Status
964
965//*****************************************************************************
966//
967// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
968//
969//*****************************************************************************
970#define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
971#define USB_RXCOUNT1_COUNT_S 0
972
973//*****************************************************************************
974//
975// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
976//
977//*****************************************************************************
978#define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
979#define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
980#define USB_TXTYPE1_SPEED_HIGH 0x00000040 // High
981#define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
982#define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
983#define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
984#define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
985#define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
986#define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
987#define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
988#define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
989#define USB_TXTYPE1_TEP_S 0
990
991//*****************************************************************************
992//
993// The following are defines for the bit fields in the USB_O_TXINTERVAL1
994// register.
995//
996//*****************************************************************************
997#define USB_TXINTERVAL1_NAKLMT_M \
998 0x000000FF // NAK Limit
999#define USB_TXINTERVAL1_TXPOLL_M \
1000 0x000000FF // TX Polling
1001#define USB_TXINTERVAL1_TXPOLL_S \
1002 0
1003#define USB_TXINTERVAL1_NAKLMT_S \
1004 0
1005
1006//*****************************************************************************
1007//
1008// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
1009//
1010//*****************************************************************************
1011#define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
1012#define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
1013#define USB_RXTYPE1_SPEED_HIGH 0x00000040 // High
1014#define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
1015#define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
1016#define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
1017#define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
1018#define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
1019#define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
1020#define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
1021#define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
1022#define USB_RXTYPE1_TEP_S 0
1023
1024//*****************************************************************************
1025//
1026// The following are defines for the bit fields in the USB_O_RXINTERVAL1
1027// register.
1028//
1029//*****************************************************************************
1030#define USB_RXINTERVAL1_TXPOLL_M \
1031 0x000000FF // RX Polling
1032#define USB_RXINTERVAL1_NAKLMT_M \
1033 0x000000FF // NAK Limit
1034#define USB_RXINTERVAL1_TXPOLL_S \
1035 0
1036#define USB_RXINTERVAL1_NAKLMT_S \
1037 0
1038
1039//*****************************************************************************
1040//
1041// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
1042//
1043//*****************************************************************************
1044#define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
1045#define USB_TXMAXP2_MAXLOAD_S 0
1046
1047//*****************************************************************************
1048//
1049// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
1050//
1051//*****************************************************************************
1052#define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
1053#define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
1054#define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
1055#define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
1056#define USB_TXCSRL2_STALL 0x00000010 // Send STALL
1057#define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
1058#define USB_TXCSRL2_ERROR 0x00000004 // Error
1059#define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
1060#define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
1061#define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
1062
1063//*****************************************************************************
1064//
1065// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
1066//
1067//*****************************************************************************
1068#define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
1069#define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
1070#define USB_TXCSRH2_MODE 0x00000020 // Mode
1071#define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
1072#define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
1073#define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
1074#define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
1075#define USB_TXCSRH2_DT 0x00000001 // Data Toggle
1076
1077//*****************************************************************************
1078//
1079// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
1080//
1081//*****************************************************************************
1082#define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
1083#define USB_RXMAXP2_MAXLOAD_S 0
1084
1085//*****************************************************************************
1086//
1087// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
1088//
1089//*****************************************************************************
1090#define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
1091#define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
1092#define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
1093#define USB_RXCSRL2_STALL 0x00000020 // Send STALL
1094#define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
1095#define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
1096#define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
1097#define USB_RXCSRL2_ERROR 0x00000004 // Error
1098#define USB_RXCSRL2_OVER 0x00000004 // Overrun
1099#define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
1100#define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
1101
1102//*****************************************************************************
1103//
1104// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
1105//
1106//*****************************************************************************
1107#define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
1108#define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
1109#define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
1110#define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
1111#define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
1112#define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
1113#define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
1114#define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
1115#define USB_RXCSRH2_DT 0x00000002 // Data Toggle
1116#define USB_RXCSRH2_INCOMPRX 0x00000001 // Incomplete RX Transmission
1117 // Status
1118
1119//*****************************************************************************
1120//
1121// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
1122//
1123//*****************************************************************************
1124#define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
1125#define USB_RXCOUNT2_COUNT_S 0
1126
1127//*****************************************************************************
1128//
1129// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
1130//
1131//*****************************************************************************
1132#define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
1133#define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
1134#define USB_TXTYPE2_SPEED_HIGH 0x00000040 // High
1135#define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
1136#define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
1137#define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
1138#define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
1139#define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
1140#define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
1141#define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
1142#define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
1143#define USB_TXTYPE2_TEP_S 0
1144
1145//*****************************************************************************
1146//
1147// The following are defines for the bit fields in the USB_O_TXINTERVAL2
1148// register.
1149//
1150//*****************************************************************************
1151#define USB_TXINTERVAL2_TXPOLL_M \
1152 0x000000FF // TX Polling
1153#define USB_TXINTERVAL2_NAKLMT_M \
1154 0x000000FF // NAK Limit
1155#define USB_TXINTERVAL2_NAKLMT_S \
1156 0
1157#define USB_TXINTERVAL2_TXPOLL_S \
1158 0
1159
1160//*****************************************************************************
1161//
1162// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
1163//
1164//*****************************************************************************
1165#define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
1166#define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
1167#define USB_RXTYPE2_SPEED_HIGH 0x00000040 // High
1168#define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
1169#define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
1170#define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
1171#define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
1172#define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
1173#define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
1174#define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
1175#define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
1176#define USB_RXTYPE2_TEP_S 0
1177
1178//*****************************************************************************
1179//
1180// The following are defines for the bit fields in the USB_O_RXINTERVAL2
1181// register.
1182//
1183//*****************************************************************************
1184#define USB_RXINTERVAL2_TXPOLL_M \
1185 0x000000FF // RX Polling
1186#define USB_RXINTERVAL2_NAKLMT_M \
1187 0x000000FF // NAK Limit
1188#define USB_RXINTERVAL2_TXPOLL_S \
1189 0
1190#define USB_RXINTERVAL2_NAKLMT_S \
1191 0
1192
1193//*****************************************************************************
1194//
1195// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
1196//
1197//*****************************************************************************
1198#define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
1199#define USB_TXMAXP3_MAXLOAD_S 0
1200
1201//*****************************************************************************
1202//
1203// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
1204//
1205//*****************************************************************************
1206#define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
1207#define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
1208#define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
1209#define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
1210#define USB_TXCSRL3_STALL 0x00000010 // Send STALL
1211#define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
1212#define USB_TXCSRL3_ERROR 0x00000004 // Error
1213#define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
1214#define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
1215#define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
1216
1217//*****************************************************************************
1218//
1219// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
1220//
1221//*****************************************************************************
1222#define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
1223#define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
1224#define USB_TXCSRH3_MODE 0x00000020 // Mode
1225#define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
1226#define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
1227#define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
1228#define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
1229#define USB_TXCSRH3_DT 0x00000001 // Data Toggle
1230
1231//*****************************************************************************
1232//
1233// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
1234//
1235//*****************************************************************************
1236#define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
1237#define USB_RXMAXP3_MAXLOAD_S 0
1238
1239//*****************************************************************************
1240//
1241// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
1242//
1243//*****************************************************************************
1244#define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
1245#define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
1246#define USB_RXCSRL3_STALL 0x00000020 // Send STALL
1247#define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
1248#define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
1249#define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
1250#define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
1251#define USB_RXCSRL3_ERROR 0x00000004 // Error
1252#define USB_RXCSRL3_OVER 0x00000004 // Overrun
1253#define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
1254#define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
1255
1256//*****************************************************************************
1257//
1258// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
1259//
1260//*****************************************************************************
1261#define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
1262#define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
1263#define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
1264#define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
1265#define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
1266#define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
1267#define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
1268#define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
1269#define USB_RXCSRH3_DT 0x00000002 // Data Toggle
1270#define USB_RXCSRH3_INCOMPRX 0x00000001 // Incomplete RX Transmission
1271 // Status
1272
1273//*****************************************************************************
1274//
1275// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
1276//
1277//*****************************************************************************
1278#define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
1279#define USB_RXCOUNT3_COUNT_S 0
1280
1281//*****************************************************************************
1282//
1283// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
1284//
1285//*****************************************************************************
1286#define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
1287#define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
1288#define USB_TXTYPE3_SPEED_HIGH 0x00000040 // High
1289#define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
1290#define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
1291#define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
1292#define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
1293#define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
1294#define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
1295#define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
1296#define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
1297#define USB_TXTYPE3_TEP_S 0
1298
1299//*****************************************************************************
1300//
1301// The following are defines for the bit fields in the USB_O_TXINTERVAL3
1302// register.
1303//
1304//*****************************************************************************
1305#define USB_TXINTERVAL3_TXPOLL_M \
1306 0x000000FF // TX Polling
1307#define USB_TXINTERVAL3_NAKLMT_M \
1308 0x000000FF // NAK Limit
1309#define USB_TXINTERVAL3_TXPOLL_S \
1310 0
1311#define USB_TXINTERVAL3_NAKLMT_S \
1312 0
1313
1314//*****************************************************************************
1315//
1316// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
1317//
1318//*****************************************************************************
1319#define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
1320#define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
1321#define USB_RXTYPE3_SPEED_HIGH 0x00000040 // High
1322#define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
1323#define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
1324#define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
1325#define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
1326#define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
1327#define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
1328#define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
1329#define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
1330#define USB_RXTYPE3_TEP_S 0
1331
1332//*****************************************************************************
1333//
1334// The following are defines for the bit fields in the USB_O_RXINTERVAL3
1335// register.
1336//
1337//*****************************************************************************
1338#define USB_RXINTERVAL3_TXPOLL_M \
1339 0x000000FF // RX Polling
1340#define USB_RXINTERVAL3_NAKLMT_M \
1341 0x000000FF // NAK Limit
1342#define USB_RXINTERVAL3_TXPOLL_S \
1343 0
1344#define USB_RXINTERVAL3_NAKLMT_S \
1345 0
1346
1347//*****************************************************************************
1348//
1349// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
1350//
1351//*****************************************************************************
1352#define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
1353#define USB_TXMAXP4_MAXLOAD_S 0
1354
1355//*****************************************************************************
1356//
1357// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
1358//
1359//*****************************************************************************
1360#define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
1361#define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
1362#define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
1363#define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
1364#define USB_TXCSRL4_STALL 0x00000010 // Send STALL
1365#define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
1366#define USB_TXCSRL4_ERROR 0x00000004 // Error
1367#define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
1368#define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
1369#define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
1370
1371//*****************************************************************************
1372//
1373// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
1374//
1375//*****************************************************************************
1376#define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
1377#define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
1378#define USB_TXCSRH4_MODE 0x00000020 // Mode
1379#define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
1380#define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
1381#define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
1382#define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
1383#define USB_TXCSRH4_DT 0x00000001 // Data Toggle
1384
1385//*****************************************************************************
1386//
1387// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
1388//
1389//*****************************************************************************
1390#define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
1391#define USB_RXMAXP4_MAXLOAD_S 0
1392
1393//*****************************************************************************
1394//
1395// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
1396//
1397//*****************************************************************************
1398#define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
1399#define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
1400#define USB_RXCSRL4_STALL 0x00000020 // Send STALL
1401#define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
1402#define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
1403#define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
1404#define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
1405#define USB_RXCSRL4_OVER 0x00000004 // Overrun
1406#define USB_RXCSRL4_ERROR 0x00000004 // Error
1407#define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
1408#define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
1409
1410//*****************************************************************************
1411//
1412// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
1413//
1414//*****************************************************************************
1415#define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
1416#define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
1417#define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
1418#define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
1419#define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
1420#define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
1421#define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
1422#define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
1423#define USB_RXCSRH4_DT 0x00000002 // Data Toggle
1424#define USB_RXCSRH4_INCOMPRX 0x00000001 // Incomplete RX Transmission
1425 // Status
1426
1427//*****************************************************************************
1428//
1429// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
1430//
1431//*****************************************************************************
1432#define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
1433#define USB_RXCOUNT4_COUNT_S 0
1434
1435//*****************************************************************************
1436//
1437// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
1438//
1439//*****************************************************************************
1440#define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
1441#define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
1442#define USB_TXTYPE4_SPEED_HIGH 0x00000040 // High
1443#define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
1444#define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
1445#define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
1446#define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
1447#define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
1448#define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
1449#define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
1450#define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
1451#define USB_TXTYPE4_TEP_S 0
1452
1453//*****************************************************************************
1454//
1455// The following are defines for the bit fields in the USB_O_TXINTERVAL4
1456// register.
1457//
1458//*****************************************************************************
1459#define USB_TXINTERVAL4_TXPOLL_M \
1460 0x000000FF // TX Polling
1461#define USB_TXINTERVAL4_NAKLMT_M \
1462 0x000000FF // NAK Limit
1463#define USB_TXINTERVAL4_NAKLMT_S \
1464 0
1465#define USB_TXINTERVAL4_TXPOLL_S \
1466 0
1467
1468//*****************************************************************************
1469//
1470// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
1471//
1472//*****************************************************************************
1473#define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
1474#define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
1475#define USB_RXTYPE4_SPEED_HIGH 0x00000040 // High
1476#define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
1477#define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
1478#define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
1479#define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
1480#define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
1481#define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
1482#define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
1483#define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
1484#define USB_RXTYPE4_TEP_S 0
1485
1486//*****************************************************************************
1487//
1488// The following are defines for the bit fields in the USB_O_RXINTERVAL4
1489// register.
1490//
1491//*****************************************************************************
1492#define USB_RXINTERVAL4_TXPOLL_M \
1493 0x000000FF // RX Polling
1494#define USB_RXINTERVAL4_NAKLMT_M \
1495 0x000000FF // NAK Limit
1496#define USB_RXINTERVAL4_NAKLMT_S \
1497 0
1498#define USB_RXINTERVAL4_TXPOLL_S \
1499 0
1500
1501//*****************************************************************************
1502//
1503// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
1504//
1505//*****************************************************************************
1506#define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
1507#define USB_TXMAXP5_MAXLOAD_S 0
1508
1509//*****************************************************************************
1510//
1511// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
1512//
1513//*****************************************************************************
1514#define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
1515#define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
1516#define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
1517#define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
1518#define USB_TXCSRL5_STALL 0x00000010 // Send STALL
1519#define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
1520#define USB_TXCSRL5_ERROR 0x00000004 // Error
1521#define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
1522#define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
1523#define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
1524
1525//*****************************************************************************
1526//
1527// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
1528//
1529//*****************************************************************************
1530#define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
1531#define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
1532#define USB_TXCSRH5_MODE 0x00000020 // Mode
1533#define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
1534#define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
1535#define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
1536#define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
1537#define USB_TXCSRH5_DT 0x00000001 // Data Toggle
1538
1539//*****************************************************************************
1540//
1541// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
1542//
1543//*****************************************************************************
1544#define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
1545#define USB_RXMAXP5_MAXLOAD_S 0
1546
1547//*****************************************************************************
1548//
1549// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
1550//
1551//*****************************************************************************
1552#define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
1553#define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
1554#define USB_RXCSRL5_STALL 0x00000020 // Send STALL
1555#define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
1556#define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
1557#define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
1558#define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
1559#define USB_RXCSRL5_ERROR 0x00000004 // Error
1560#define USB_RXCSRL5_OVER 0x00000004 // Overrun
1561#define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
1562#define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
1563
1564//*****************************************************************************
1565//
1566// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
1567//
1568//*****************************************************************************
1569#define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
1570#define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
1571#define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
1572#define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
1573#define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
1574#define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
1575#define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
1576#define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
1577#define USB_RXCSRH5_DT 0x00000002 // Data Toggle
1578#define USB_RXCSRH5_INCOMPRX 0x00000001 // Incomplete RX Transmission
1579 // Status
1580
1581//*****************************************************************************
1582//
1583// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
1584//
1585//*****************************************************************************
1586#define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
1587#define USB_RXCOUNT5_COUNT_S 0
1588
1589//*****************************************************************************
1590//
1591// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
1592//
1593//*****************************************************************************
1594#define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
1595#define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
1596#define USB_TXTYPE5_SPEED_HIGH 0x00000040 // High
1597#define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
1598#define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
1599#define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
1600#define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
1601#define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
1602#define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
1603#define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
1604#define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
1605#define USB_TXTYPE5_TEP_S 0
1606
1607//*****************************************************************************
1608//
1609// The following are defines for the bit fields in the USB_O_TXINTERVAL5
1610// register.
1611//
1612//*****************************************************************************
1613#define USB_TXINTERVAL5_TXPOLL_M \
1614 0x000000FF // TX Polling
1615#define USB_TXINTERVAL5_NAKLMT_M \
1616 0x000000FF // NAK Limit
1617#define USB_TXINTERVAL5_NAKLMT_S \
1618 0
1619#define USB_TXINTERVAL5_TXPOLL_S \
1620 0
1621
1622//*****************************************************************************
1623//
1624// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
1625//
1626//*****************************************************************************
1627#define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
1628#define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
1629#define USB_RXTYPE5_SPEED_HIGH 0x00000040 // High
1630#define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
1631#define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
1632#define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
1633#define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
1634#define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
1635#define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
1636#define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
1637#define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
1638#define USB_RXTYPE5_TEP_S 0
1639
1640//*****************************************************************************
1641//
1642// The following are defines for the bit fields in the USB_O_RXINTERVAL5
1643// register.
1644//
1645//*****************************************************************************
1646#define USB_RXINTERVAL5_TXPOLL_M \
1647 0x000000FF // RX Polling
1648#define USB_RXINTERVAL5_NAKLMT_M \
1649 0x000000FF // NAK Limit
1650#define USB_RXINTERVAL5_TXPOLL_S \
1651 0
1652#define USB_RXINTERVAL5_NAKLMT_S \
1653 0
1654
1655//*****************************************************************************
1656//
1657// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
1658//
1659//*****************************************************************************
1660#define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
1661#define USB_TXMAXP6_MAXLOAD_S 0
1662
1663//*****************************************************************************
1664//
1665// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
1666//
1667//*****************************************************************************
1668#define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
1669#define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
1670#define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
1671#define USB_TXCSRL6_STALL 0x00000010 // Send STALL
1672#define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
1673#define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
1674#define USB_TXCSRL6_ERROR 0x00000004 // Error
1675#define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
1676#define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
1677#define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
1678
1679//*****************************************************************************
1680//
1681// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
1682//
1683//*****************************************************************************
1684#define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
1685#define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
1686#define USB_TXCSRH6_MODE 0x00000020 // Mode
1687#define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
1688#define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
1689#define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
1690#define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
1691#define USB_TXCSRH6_DT 0x00000001 // Data Toggle
1692
1693//*****************************************************************************
1694//
1695// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
1696//
1697//*****************************************************************************
1698#define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
1699#define USB_RXMAXP6_MAXLOAD_S 0
1700
1701//*****************************************************************************
1702//
1703// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
1704//
1705//*****************************************************************************
1706#define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
1707#define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
1708#define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
1709#define USB_RXCSRL6_STALL 0x00000020 // Send STALL
1710#define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
1711#define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
1712#define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
1713#define USB_RXCSRL6_ERROR 0x00000004 // Error
1714#define USB_RXCSRL6_OVER 0x00000004 // Overrun
1715#define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
1716#define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
1717
1718//*****************************************************************************
1719//
1720// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
1721//
1722//*****************************************************************************
1723#define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
1724#define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
1725#define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
1726#define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
1727#define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
1728#define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
1729#define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
1730#define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
1731#define USB_RXCSRH6_DT 0x00000002 // Data Toggle
1732#define USB_RXCSRH6_INCOMPRX 0x00000001 // Incomplete RX Transmission
1733 // Status
1734
1735//*****************************************************************************
1736//
1737// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
1738//
1739//*****************************************************************************
1740#define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
1741#define USB_RXCOUNT6_COUNT_S 0
1742
1743//*****************************************************************************
1744//
1745// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
1746//
1747//*****************************************************************************
1748#define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
1749#define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
1750#define USB_TXTYPE6_SPEED_HIGH 0x00000040 // High
1751#define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
1752#define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
1753#define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
1754#define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
1755#define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
1756#define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
1757#define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
1758#define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
1759#define USB_TXTYPE6_TEP_S 0
1760
1761//*****************************************************************************
1762//
1763// The following are defines for the bit fields in the USB_O_TXINTERVAL6
1764// register.
1765//
1766//*****************************************************************************
1767#define USB_TXINTERVAL6_TXPOLL_M \
1768 0x000000FF // TX Polling
1769#define USB_TXINTERVAL6_NAKLMT_M \
1770 0x000000FF // NAK Limit
1771#define USB_TXINTERVAL6_TXPOLL_S \
1772 0
1773#define USB_TXINTERVAL6_NAKLMT_S \
1774 0
1775
1776//*****************************************************************************
1777//
1778// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
1779//
1780//*****************************************************************************
1781#define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
1782#define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
1783#define USB_RXTYPE6_SPEED_HIGH 0x00000040 // High
1784#define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
1785#define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
1786#define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
1787#define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
1788#define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
1789#define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
1790#define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
1791#define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
1792#define USB_RXTYPE6_TEP_S 0
1793
1794//*****************************************************************************
1795//
1796// The following are defines for the bit fields in the USB_O_RXINTERVAL6
1797// register.
1798//
1799//*****************************************************************************
1800#define USB_RXINTERVAL6_TXPOLL_M \
1801 0x000000FF // RX Polling
1802#define USB_RXINTERVAL6_NAKLMT_M \
1803 0x000000FF // NAK Limit
1804#define USB_RXINTERVAL6_NAKLMT_S \
1805 0
1806#define USB_RXINTERVAL6_TXPOLL_S \
1807 0
1808
1809//*****************************************************************************
1810//
1811// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
1812//
1813//*****************************************************************************
1814#define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
1815#define USB_TXMAXP7_MAXLOAD_S 0
1816
1817//*****************************************************************************
1818//
1819// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
1820//
1821//*****************************************************************************
1822#define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
1823#define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
1824#define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
1825#define USB_TXCSRL7_STALL 0x00000010 // Send STALL
1826#define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
1827#define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
1828#define USB_TXCSRL7_ERROR 0x00000004 // Error
1829#define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
1830#define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
1831#define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
1832
1833//*****************************************************************************
1834//
1835// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
1836//
1837//*****************************************************************************
1838#define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
1839#define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
1840#define USB_TXCSRH7_MODE 0x00000020 // Mode
1841#define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
1842#define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
1843#define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
1844#define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
1845#define USB_TXCSRH7_DT 0x00000001 // Data Toggle
1846
1847//*****************************************************************************
1848//
1849// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
1850//
1851//*****************************************************************************
1852#define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
1853#define USB_RXMAXP7_MAXLOAD_S 0
1854
1855//*****************************************************************************
1856//
1857// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
1858//
1859//*****************************************************************************
1860#define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
1861#define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
1862#define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
1863#define USB_RXCSRL7_STALL 0x00000020 // Send STALL
1864#define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
1865#define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
1866#define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
1867#define USB_RXCSRL7_ERROR 0x00000004 // Error
1868#define USB_RXCSRL7_OVER 0x00000004 // Overrun
1869#define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
1870#define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
1871
1872//*****************************************************************************
1873//
1874// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
1875//
1876//*****************************************************************************
1877#define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
1878#define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
1879#define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
1880#define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
1881#define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
1882#define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
1883#define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
1884#define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
1885#define USB_RXCSRH7_DT 0x00000002 // Data Toggle
1886#define USB_RXCSRH7_INCOMPRX 0x00000001 // Incomplete RX Transmission
1887 // Status
1888
1889//*****************************************************************************
1890//
1891// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
1892//
1893//*****************************************************************************
1894#define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
1895#define USB_RXCOUNT7_COUNT_S 0
1896
1897//*****************************************************************************
1898//
1899// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
1900//
1901//*****************************************************************************
1902#define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
1903#define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
1904#define USB_TXTYPE7_SPEED_HIGH 0x00000040 // High
1905#define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
1906#define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
1907#define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
1908#define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
1909#define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
1910#define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
1911#define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
1912#define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
1913#define USB_TXTYPE7_TEP_S 0
1914
1915//*****************************************************************************
1916//
1917// The following are defines for the bit fields in the USB_O_TXINTERVAL7
1918// register.
1919//
1920//*****************************************************************************
1921#define USB_TXINTERVAL7_TXPOLL_M \
1922 0x000000FF // TX Polling
1923#define USB_TXINTERVAL7_NAKLMT_M \
1924 0x000000FF // NAK Limit
1925#define USB_TXINTERVAL7_NAKLMT_S \
1926 0
1927#define USB_TXINTERVAL7_TXPOLL_S \
1928 0
1929
1930//*****************************************************************************
1931//
1932// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
1933//
1934//*****************************************************************************
1935#define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
1936#define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
1937#define USB_RXTYPE7_SPEED_HIGH 0x00000040 // High
1938#define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
1939#define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
1940#define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
1941#define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
1942#define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
1943#define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
1944#define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
1945#define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
1946#define USB_RXTYPE7_TEP_S 0
1947
1948//*****************************************************************************
1949//
1950// The following are defines for the bit fields in the USB_O_RXINTERVAL7
1951// register.
1952//
1953//*****************************************************************************
1954#define USB_RXINTERVAL7_TXPOLL_M \
1955 0x000000FF // RX Polling
1956#define USB_RXINTERVAL7_NAKLMT_M \
1957 0x000000FF // NAK Limit
1958#define USB_RXINTERVAL7_NAKLMT_S \
1959 0
1960#define USB_RXINTERVAL7_TXPOLL_S \
1961 0
1962
1963//*****************************************************************************
1964//
1965// The following are defines for the bit fields in the USB_O_DMAINTR register.
1966//
1967//*****************************************************************************
1968#define USB_DMAINTR_CH7 0x00000080 // Channel 7 DMA Interrupt
1969#define USB_DMAINTR_CH6 0x00000040 // Channel 6 DMA Interrupt
1970#define USB_DMAINTR_CH5 0x00000020 // Channel 5 DMA Interrupt
1971#define USB_DMAINTR_CH4 0x00000010 // Channel 4 DMA Interrupt
1972#define USB_DMAINTR_CH3 0x00000008 // Channel 3 DMA Interrupt
1973#define USB_DMAINTR_CH2 0x00000004 // Channel 2 DMA Interrupt
1974#define USB_DMAINTR_CH1 0x00000002 // Channel 1 DMA Interrupt
1975#define USB_DMAINTR_CH0 0x00000001 // Channel 0 DMA Interrupt
1976
1977//*****************************************************************************
1978//
1979// The following are defines for the bit fields in the USB_O_DMACTL0 register.
1980//
1981//*****************************************************************************
1982#define USB_DMACTL0_BRSTM_M 0x00000600 // Burst Mode
1983#define USB_DMACTL0_BRSTM_ANY 0x00000000 // Bursts of unspecified length
1984#define USB_DMACTL0_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
1985#define USB_DMACTL0_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
1986 // length
1987#define USB_DMACTL0_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
1988 // unspecified length
1989#define USB_DMACTL0_ERR 0x00000100 // Bus Error Bit
1990#define USB_DMACTL0_EP_M 0x000000F0 // Endpoint number
1991#define USB_DMACTL0_IE 0x00000008 // DMA Interrupt Enable
1992#define USB_DMACTL0_MODE 0x00000004 // DMA Transfer Mode
1993#define USB_DMACTL0_DIR 0x00000002 // DMA Direction
1994#define USB_DMACTL0_ENABLE 0x00000001 // DMA Transfer Enable
1995#define USB_DMACTL0_EP_S 4
1996
1997//*****************************************************************************
1998//
1999// The following are defines for the bit fields in the USB_O_DMAADDR0 register.
2000//
2001//*****************************************************************************
2002#define USB_DMAADDR0_ADDR_M 0xFFFFFFFC // DMA Address
2003#define USB_DMAADDR0_ADDR_S 2
2004
2005//*****************************************************************************
2006//
2007// The following are defines for the bit fields in the USB_O_DMACOUNT0
2008// register.
2009//
2010//*****************************************************************************
2011#define USB_DMACOUNT0_COUNT_M 0xFFFFFFFC // DMA Count
2012#define USB_DMACOUNT0_COUNT_S 2
2013
2014//*****************************************************************************
2015//
2016// The following are defines for the bit fields in the USB_O_DMACTL1 register.
2017//
2018//*****************************************************************************
2019#define USB_DMACTL1_BRSTM_M 0x00000600 // Burst Mode
2020#define USB_DMACTL1_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2021#define USB_DMACTL1_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2022#define USB_DMACTL1_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2023 // length
2024#define USB_DMACTL1_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2025 // unspecified length
2026#define USB_DMACTL1_ERR 0x00000100 // Bus Error Bit
2027#define USB_DMACTL1_EP_M 0x000000F0 // Endpoint number
2028#define USB_DMACTL1_IE 0x00000008 // DMA Interrupt Enable
2029#define USB_DMACTL1_MODE 0x00000004 // DMA Transfer Mode
2030#define USB_DMACTL1_DIR 0x00000002 // DMA Direction
2031#define USB_DMACTL1_ENABLE 0x00000001 // DMA Transfer Enable
2032#define USB_DMACTL1_EP_S 4
2033
2034//*****************************************************************************
2035//
2036// The following are defines for the bit fields in the USB_O_DMAADDR1 register.
2037//
2038//*****************************************************************************
2039#define USB_DMAADDR1_ADDR_M 0xFFFFFFFC // DMA Address
2040#define USB_DMAADDR1_ADDR_S 2
2041
2042//*****************************************************************************
2043//
2044// The following are defines for the bit fields in the USB_O_DMACOUNT1
2045// register.
2046//
2047//*****************************************************************************
2048#define USB_DMACOUNT1_COUNT_M 0xFFFFFFFC // DMA Count
2049#define USB_DMACOUNT1_COUNT_S 2
2050
2051//*****************************************************************************
2052//
2053// The following are defines for the bit fields in the USB_O_DMACTL2 register.
2054//
2055//*****************************************************************************
2056#define USB_DMACTL2_BRSTM_M 0x00000600 // Burst Mode
2057#define USB_DMACTL2_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2058#define USB_DMACTL2_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2059#define USB_DMACTL2_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2060 // length
2061#define USB_DMACTL2_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2062 // unspecified length
2063#define USB_DMACTL2_ERR 0x00000100 // Bus Error Bit
2064#define USB_DMACTL2_EP_M 0x000000F0 // Endpoint number
2065#define USB_DMACTL2_IE 0x00000008 // DMA Interrupt Enable
2066#define USB_DMACTL2_MODE 0x00000004 // DMA Transfer Mode
2067#define USB_DMACTL2_DIR 0x00000002 // DMA Direction
2068#define USB_DMACTL2_ENABLE 0x00000001 // DMA Transfer Enable
2069#define USB_DMACTL2_EP_S 4
2070
2071//*****************************************************************************
2072//
2073// The following are defines for the bit fields in the USB_O_DMAADDR2 register.
2074//
2075//*****************************************************************************
2076#define USB_DMAADDR2_ADDR_M 0xFFFFFFFC // DMA Address
2077#define USB_DMAADDR2_ADDR_S 2
2078
2079//*****************************************************************************
2080//
2081// The following are defines for the bit fields in the USB_O_DMACOUNT2
2082// register.
2083//
2084//*****************************************************************************
2085#define USB_DMACOUNT2_COUNT_M 0xFFFFFFFC // DMA Count
2086#define USB_DMACOUNT2_COUNT_S 2
2087
2088//*****************************************************************************
2089//
2090// The following are defines for the bit fields in the USB_O_DMACTL3 register.
2091//
2092//*****************************************************************************
2093#define USB_DMACTL3_BRSTM_M 0x00000600 // Burst Mode
2094#define USB_DMACTL3_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2095#define USB_DMACTL3_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2096#define USB_DMACTL3_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2097 // length
2098#define USB_DMACTL3_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2099 // unspecified length
2100#define USB_DMACTL3_ERR 0x00000100 // Bus Error Bit
2101#define USB_DMACTL3_EP_M 0x000000F0 // Endpoint number
2102#define USB_DMACTL3_IE 0x00000008 // DMA Interrupt Enable
2103#define USB_DMACTL3_MODE 0x00000004 // DMA Transfer Mode
2104#define USB_DMACTL3_DIR 0x00000002 // DMA Direction
2105#define USB_DMACTL3_ENABLE 0x00000001 // DMA Transfer Enable
2106#define USB_DMACTL3_EP_S 4
2107
2108//*****************************************************************************
2109//
2110// The following are defines for the bit fields in the USB_O_DMAADDR3 register.
2111//
2112//*****************************************************************************
2113#define USB_DMAADDR3_ADDR_M 0xFFFFFFFC // DMA Address
2114#define USB_DMAADDR3_ADDR_S 2
2115
2116//*****************************************************************************
2117//
2118// The following are defines for the bit fields in the USB_O_DMACOUNT3
2119// register.
2120//
2121//*****************************************************************************
2122#define USB_DMACOUNT3_COUNT_M 0xFFFFFFFC // DMA Count
2123#define USB_DMACOUNT3_COUNT_S 2
2124
2125//*****************************************************************************
2126//
2127// The following are defines for the bit fields in the USB_O_DMACTL4 register.
2128//
2129//*****************************************************************************
2130#define USB_DMACTL4_BRSTM_M 0x00000600 // Burst Mode
2131#define USB_DMACTL4_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2132#define USB_DMACTL4_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2133#define USB_DMACTL4_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2134 // length
2135#define USB_DMACTL4_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2136 // unspecified length
2137#define USB_DMACTL4_ERR 0x00000100 // Bus Error Bit
2138#define USB_DMACTL4_EP_M 0x000000F0 // Endpoint number
2139#define USB_DMACTL4_IE 0x00000008 // DMA Interrupt Enable
2140#define USB_DMACTL4_MODE 0x00000004 // DMA Transfer Mode
2141#define USB_DMACTL4_DIR 0x00000002 // DMA Direction
2142#define USB_DMACTL4_ENABLE 0x00000001 // DMA Transfer Enable
2143#define USB_DMACTL4_EP_S 4
2144
2145//*****************************************************************************
2146//
2147// The following are defines for the bit fields in the USB_O_DMAADDR4 register.
2148//
2149//*****************************************************************************
2150#define USB_DMAADDR4_ADDR_M 0xFFFFFFFC // DMA Address
2151#define USB_DMAADDR4_ADDR_S 2
2152
2153//*****************************************************************************
2154//
2155// The following are defines for the bit fields in the USB_O_DMACOUNT4
2156// register.
2157//
2158//*****************************************************************************
2159#define USB_DMACOUNT4_COUNT_M 0xFFFFFFFC // DMA Count
2160#define USB_DMACOUNT4_COUNT_S 2
2161
2162//*****************************************************************************
2163//
2164// The following are defines for the bit fields in the USB_O_DMACTL5 register.
2165//
2166//*****************************************************************************
2167#define USB_DMACTL5_BRSTM_M 0x00000600 // Burst Mode
2168#define USB_DMACTL5_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2169#define USB_DMACTL5_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2170#define USB_DMACTL5_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2171 // length
2172#define USB_DMACTL5_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2173 // unspecified length
2174#define USB_DMACTL5_ERR 0x00000100 // Bus Error Bit
2175#define USB_DMACTL5_EP_M 0x000000F0 // Endpoint number
2176#define USB_DMACTL5_IE 0x00000008 // DMA Interrupt Enable
2177#define USB_DMACTL5_MODE 0x00000004 // DMA Transfer Mode
2178#define USB_DMACTL5_DIR 0x00000002 // DMA Direction
2179#define USB_DMACTL5_ENABLE 0x00000001 // DMA Transfer Enable
2180#define USB_DMACTL5_EP_S 4
2181
2182//*****************************************************************************
2183//
2184// The following are defines for the bit fields in the USB_O_DMAADDR5 register.
2185//
2186//*****************************************************************************
2187#define USB_DMAADDR5_ADDR_M 0xFFFFFFFC // DMA Address
2188#define USB_DMAADDR5_ADDR_S 2
2189
2190//*****************************************************************************
2191//
2192// The following are defines for the bit fields in the USB_O_DMACOUNT5
2193// register.
2194//
2195//*****************************************************************************
2196#define USB_DMACOUNT5_COUNT_M 0xFFFFFFFC // DMA Count
2197#define USB_DMACOUNT5_COUNT_S 2
2198
2199//*****************************************************************************
2200//
2201// The following are defines for the bit fields in the USB_O_DMACTL6 register.
2202//
2203//*****************************************************************************
2204#define USB_DMACTL6_BRSTM_M 0x00000600 // Burst Mode
2205#define USB_DMACTL6_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2206#define USB_DMACTL6_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2207#define USB_DMACTL6_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2208 // length
2209#define USB_DMACTL6_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2210 // unspecified length
2211#define USB_DMACTL6_ERR 0x00000100 // Bus Error Bit
2212#define USB_DMACTL6_EP_M 0x000000F0 // Endpoint number
2213#define USB_DMACTL6_IE 0x00000008 // DMA Interrupt Enable
2214#define USB_DMACTL6_MODE 0x00000004 // DMA Transfer Mode
2215#define USB_DMACTL6_DIR 0x00000002 // DMA Direction
2216#define USB_DMACTL6_ENABLE 0x00000001 // DMA Transfer Enable
2217#define USB_DMACTL6_EP_S 4
2218
2219//*****************************************************************************
2220//
2221// The following are defines for the bit fields in the USB_O_DMAADDR6 register.
2222//
2223//*****************************************************************************
2224#define USB_DMAADDR6_ADDR_M 0xFFFFFFFC // DMA Address
2225#define USB_DMAADDR6_ADDR_S 2
2226
2227//*****************************************************************************
2228//
2229// The following are defines for the bit fields in the USB_O_DMACOUNT6
2230// register.
2231//
2232//*****************************************************************************
2233#define USB_DMACOUNT6_COUNT_M 0xFFFFFFFC // DMA Count
2234#define USB_DMACOUNT6_COUNT_S 2
2235
2236//*****************************************************************************
2237//
2238// The following are defines for the bit fields in the USB_O_DMACTL7 register.
2239//
2240//*****************************************************************************
2241#define USB_DMACTL7_BRSTM_M 0x00000600 // Burst Mode
2242#define USB_DMACTL7_BRSTM_ANY 0x00000000 // Bursts of unspecified length
2243#define USB_DMACTL7_BRSTM_INC4 0x00000200 // INCR4 or unspecified length
2244#define USB_DMACTL7_BRSTM_INC8 0x00000400 // INCR8, INCR4 or unspecified
2245 // length
2246#define USB_DMACTL7_BRSTM_INC16 0x00000600 // INCR16, INCR8, INCR4 or
2247 // unspecified length
2248#define USB_DMACTL7_ERR 0x00000100 // Bus Error Bit
2249#define USB_DMACTL7_EP_M 0x000000F0 // Endpoint number
2250#define USB_DMACTL7_IE 0x00000008 // DMA Interrupt Enable
2251#define USB_DMACTL7_MODE 0x00000004 // DMA Transfer Mode
2252#define USB_DMACTL7_DIR 0x00000002 // DMA Direction
2253#define USB_DMACTL7_ENABLE 0x00000001 // DMA Transfer Enable
2254#define USB_DMACTL7_EP_S 4
2255
2256//*****************************************************************************
2257//
2258// The following are defines for the bit fields in the USB_O_DMAADDR7 register.
2259//
2260//*****************************************************************************
2261#define USB_DMAADDR7_ADDR_M 0xFFFFFFFC // DMA Address
2262#define USB_DMAADDR7_ADDR_S 2
2263
2264//*****************************************************************************
2265//
2266// The following are defines for the bit fields in the USB_O_DMACOUNT7
2267// register.
2268//
2269//*****************************************************************************
2270#define USB_DMACOUNT7_COUNT_M 0xFFFFFFFC // DMA Count
2271#define USB_DMACOUNT7_COUNT_S 2
2272
2273//*****************************************************************************
2274//
2275// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
2276// register.
2277//
2278//*****************************************************************************
2279#define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
2280#define USB_RQPKTCOUNT1_S 0
2281
2282//*****************************************************************************
2283//
2284// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
2285// register.
2286//
2287//*****************************************************************************
2288#define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
2289#define USB_RQPKTCOUNT2_S 0
2290
2291//*****************************************************************************
2292//
2293// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
2294// register.
2295//
2296//*****************************************************************************
2297#define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
2298#define USB_RQPKTCOUNT3_S 0
2299
2300//*****************************************************************************
2301//
2302// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
2303// register.
2304//
2305//*****************************************************************************
2306#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
2307#define USB_RQPKTCOUNT4_COUNT_S 0
2308
2309//*****************************************************************************
2310//
2311// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
2312// register.
2313//
2314//*****************************************************************************
2315#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
2316#define USB_RQPKTCOUNT5_COUNT_S 0
2317
2318//*****************************************************************************
2319//
2320// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
2321// register.
2322//
2323//*****************************************************************************
2324#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
2325#define USB_RQPKTCOUNT6_COUNT_S 0
2326
2327//*****************************************************************************
2328//
2329// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
2330// register.
2331//
2332//*****************************************************************************
2333#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
2334#define USB_RQPKTCOUNT7_COUNT_S 0
2335
2336//*****************************************************************************
2337//
2338// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
2339// register.
2340//
2341//*****************************************************************************
2342#define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
2343 // Disable
2344#define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
2345 // Disable
2346#define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
2347 // Disable
2348#define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
2349 // Disable
2350#define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
2351 // Disable
2352#define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
2353 // Disable
2354#define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
2355 // Disable
2356
2357//*****************************************************************************
2358//
2359// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
2360// register.
2361//
2362//*****************************************************************************
2363#define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
2364 // Disable
2365#define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
2366 // Disable
2367#define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
2368 // Disable
2369#define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
2370 // Disable
2371#define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
2372 // Disable
2373#define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
2374 // Disable
2375#define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
2376 // Disable
2377
2378//*****************************************************************************
2379//
2380// The following are defines for the bit fields in the USB_O_CTO register.
2381//
2382//*****************************************************************************
2383#define USB_CTO_CCTV_M 0x0000FFFF // Configurable Chirp Timeout Value
2384#define USB_CTO_CCTV_S 0
2385
2386//*****************************************************************************
2387//
2388// The following are defines for the bit fields in the USB_O_HHSRTN register.
2389//
2390//*****************************************************************************
2391#define USB_HHSRTN_HHSRTN_M 0x0000FFFF // HIgh Speed to UTM Operating
2392 // Delay
2393#define USB_HHSRTN_HHSRTN_S 0
2394
2395//*****************************************************************************
2396//
2397// The following are defines for the bit fields in the USB_O_HSBT register.
2398//
2399//*****************************************************************************
2400#define USB_HSBT_HSBT_M 0x0000000F // High Speed Timeout Adder
2401#define USB_HSBT_HSBT_S 0
2402
2403//*****************************************************************************
2404//
2405// The following are defines for the bit fields in the USB_O_LPMATTR register.
2406//
2407//*****************************************************************************
2408#define USB_LPMATTR_ENDPT_M 0x0000F000 // Endpoint
2409#define USB_LPMATTR_RMTWAK 0x00000100 // Remote Wake
2410#define USB_LPMATTR_HIRD_M 0x000000F0 // Host Initiated Resume Duration
2411#define USB_LPMATTR_LS_M 0x0000000F // Link State
2412#define USB_LPMATTR_LS_L1 0x00000001 // Sleep State (L1)
2413#define USB_LPMATTR_ENDPT_S 12
2414#define USB_LPMATTR_HIRD_S 4
2415
2416//*****************************************************************************
2417//
2418// The following are defines for the bit fields in the USB_O_LPMCNTRL register.
2419//
2420//*****************************************************************************
2421#define USB_LPMCNTRL_NAK 0x00000010 // LPM NAK
2422#define USB_LPMCNTRL_EN_M 0x0000000C // LPM Enable
2423#define USB_LPMCNTRL_EN_NONE 0x00000000 // LPM and Extended transactions
2424 // are not supported. In this case,
2425 // the USB does not respond to LPM
2426 // transactions and LPM
2427 // transactions cause a timeout
2428#define USB_LPMCNTRL_EN_EXT 0x00000004 // LPM is not supported but
2429 // extended transactions are
2430 // supported. In this case, the USB
2431 // does respond to an LPM
2432 // transaction with a STALL
2433#define USB_LPMCNTRL_EN_LPMEXT 0x0000000C // The USB supports LPM extended
2434 // transactions. In this case, the
2435 // USB responds with a NYET or an
2436 // ACK as determined by the value
2437 // of TXLPM and other conditions
2438#define USB_LPMCNTRL_RES 0x00000002 // LPM Resume
2439#define USB_LPMCNTRL_TXLPM 0x00000001 // Transmit LPM Transaction Enable
2440
2441//*****************************************************************************
2442//
2443// The following are defines for the bit fields in the USB_O_LPMIM register.
2444//
2445//*****************************************************************************
2446#define USB_LPMIM_ERR 0x00000020 // LPM Error Interrupt Mask
2447#define USB_LPMIM_RES 0x00000010 // LPM Resume Interrupt Mask
2448#define USB_LPMIM_NC 0x00000008 // LPM NC Interrupt Mask
2449#define USB_LPMIM_ACK 0x00000004 // LPM ACK Interrupt Mask
2450#define USB_LPMIM_NY 0x00000002 // LPM NY Interrupt Mask
2451#define USB_LPMIM_STALL 0x00000001 // LPM STALL Interrupt Mask
2452
2453//*****************************************************************************
2454//
2455// The following are defines for the bit fields in the USB_O_LPMRIS register.
2456//
2457//*****************************************************************************
2458#define USB_LPMRIS_ERR 0x00000020 // LPM Interrupt Status
2459#define USB_LPMRIS_RES 0x00000010 // LPM Resume Interrupt Status
2460#define USB_LPMRIS_NC 0x00000008 // LPM NC Interrupt Status
2461#define USB_LPMRIS_ACK 0x00000004 // LPM ACK Interrupt Status
2462#define USB_LPMRIS_NY 0x00000002 // LPM NY Interrupt Status
2463#define USB_LPMRIS_LPMST 0x00000001 // LPM STALL Interrupt Status
2464
2465//*****************************************************************************
2466//
2467// The following are defines for the bit fields in the USB_O_LPMFADDR register.
2468//
2469//*****************************************************************************
2470#define USB_LPMFADDR_ADDR_M 0x0000007F // LPM Function Address
2471#define USB_LPMFADDR_ADDR_S 0
2472
2473//*****************************************************************************
2474//
2475// The following are defines for the bit fields in the USB_O_EPC register.
2476//
2477//*****************************************************************************
2478#define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
2479#define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
2480#define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
2481#define USB_EPC_PFLTACT_LOW 0x00000200 // Low
2482#define USB_EPC_PFLTACT_HIGH 0x00000300 // High
2483#define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
2484#define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
2485#define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
2486#define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
2487#define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
2488 // Configuration
2489#define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
2490#define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
2491#define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
2492 // (OTG only)
2493#define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
2494 // (OTG only)
2495
2496//*****************************************************************************
2497//
2498// The following are defines for the bit fields in the USB_O_EPCRIS register.
2499//
2500//*****************************************************************************
2501#define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
2502
2503//*****************************************************************************
2504//
2505// The following are defines for the bit fields in the USB_O_EPCIM register.
2506//
2507//*****************************************************************************
2508#define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
2509
2510//*****************************************************************************
2511//
2512// The following are defines for the bit fields in the USB_O_EPCISC register.
2513//
2514//*****************************************************************************
2515#define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
2516 // and Clear
2517
2518//*****************************************************************************
2519//
2520// The following are defines for the bit fields in the USB_O_DRRIS register.
2521//
2522//*****************************************************************************
2523#define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
2524
2525//*****************************************************************************
2526//
2527// The following are defines for the bit fields in the USB_O_DRIM register.
2528//
2529//*****************************************************************************
2530#define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
2531
2532//*****************************************************************************
2533//
2534// The following are defines for the bit fields in the USB_O_DRISC register.
2535//
2536//*****************************************************************************
2537#define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
2538 // Clear
2539
2540//*****************************************************************************
2541//
2542// The following are defines for the bit fields in the USB_O_GPCS register.
2543//
2544//*****************************************************************************
2545#define USB_GPCS_DEVMOD_M 0x00000007 // Device Mode
2546#define USB_GPCS_DEVMOD_OTG 0x00000000 // Use USB0VBUS and USB0ID pin
2547#define USB_GPCS_DEVMOD_HOST 0x00000002 // Force USB0VBUS and USB0ID low
2548#define USB_GPCS_DEVMOD_DEV 0x00000003 // Force USB0VBUS and USB0ID high
2549#define USB_GPCS_DEVMOD_HOSTVBUS \
2550 0x00000004 // Use USB0VBUS and force USB0ID
2551 // low
2552#define USB_GPCS_DEVMOD_DEVVBUS 0x00000005 // Use USB0VBUS and force USB0ID
2553 // high
2554
2555//*****************************************************************************
2556//
2557// The following are defines for the bit fields in the USB_O_VDC register.
2558//
2559//*****************************************************************************
2560#define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
2561
2562//*****************************************************************************
2563//
2564// The following are defines for the bit fields in the USB_O_VDCRIS register.
2565//
2566//*****************************************************************************
2567#define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
2568
2569//*****************************************************************************
2570//
2571// The following are defines for the bit fields in the USB_O_VDCIM register.
2572//
2573//*****************************************************************************
2574#define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
2575
2576//*****************************************************************************
2577//
2578// The following are defines for the bit fields in the USB_O_VDCISC register.
2579//
2580//*****************************************************************************
2581#define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
2582 // Clear
2583
2584//*****************************************************************************
2585//
2586// The following are defines for the bit fields in the USB_O_PP register.
2587//
2588//*****************************************************************************
2589#define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
2590#define USB_PP_USB_M 0x000000C0 // USB Capability
2591#define USB_PP_USB_DEVICE 0x00000040 // DEVICE
2592#define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
2593#define USB_PP_USB_OTG 0x000000C0 // OTG
2594#define USB_PP_ULPI 0x00000020 // ULPI Present
2595#define USB_PP_PHY 0x00000010 // PHY Present
2596#define USB_PP_TYPE_M 0x0000000F // Controller Type
2597#define USB_PP_TYPE_0 0x00000000 // The first-generation USB
2598 // controller
2599#define USB_PP_TYPE_1 0x00000001 // The second-generation USB
2600 // controller revision
2601#define USB_PP_ECNT_S 8
2602
2603//*****************************************************************************
2604//
2605// The following are defines for the bit fields in the USB_O_PC register.
2606//
2607//*****************************************************************************
2608#define USB_PC_ULPIEN 0x00010000 // ULPI Enable
2609
2610//*****************************************************************************
2611//
2612// The following are defines for the bit fields in the USB_O_CC register.
2613//
2614//*****************************************************************************
2615#define USB_CC_CLKEN 0x00000200 // USB Clock Enable
2616#define USB_CC_CSD 0x00000100 // Clock Source/Direction
2617#define USB_CC_CLKDIV_M 0x0000000F // PLL Clock Divisor
2618#define USB_CC_CLKDIV_S 0
2619
2620#ifdef __cplusplus
2621 }
2622#endif
2623
2624#endif