mikroSDK Reference Manual
synopsys_common.h
Go to the documentation of this file.
1
28#include "stdint.h"
29
30#pragma once
31
32#ifdef __cplusplus
33 #define __I volatile
34#else
35 #define __I volatile const
36#endif
37#define __O volatile
38#define __IO volatile
39#define __IM volatile const
40#define __OM volatile
41#define __IOM volatile
42
47typedef struct
48{
49 __IO uint32_t GOTGCTL;
50 __IO uint32_t GOTGINT;
51 __IO uint32_t GAHBCFG;
52 __IO uint32_t GUSBCFG;
53 __IO uint32_t GRSTCTL;
54 __IO uint32_t GINTSTS;
55 __IO uint32_t GINTMSK;
56 __IO uint32_t GRXSTSR;
57 __IO uint32_t GRXSTSP;
58 __IO uint32_t GRXFSIZ;
59 __IO uint32_t DIEPTXF0_HNPTXFSIZ;
60 __IO uint32_t HNPTXSTS;
61 uint32_t Reserved30[2];
62 __IO uint32_t GCCFG;
63 __IO uint32_t CID;
64 uint32_t Reserved40[48];
65 __IO uint32_t HPTXFSIZ;
66 __IO uint32_t DIEPTXF[0x0F];
68
73typedef struct
74{
75 __IO uint32_t DCFG;
76 __IO uint32_t DCTL;
77 __IO uint32_t DSTS;
78 uint32_t Reserved0C;
79 __IO uint32_t DIEPMSK;
80 __IO uint32_t DOEPMSK;
81 __IO uint32_t DAINT;
82 __IO uint32_t DAINTMSK;
83 uint32_t Reserved20;
84 uint32_t Reserved9;
85 __IO uint32_t DVBUSDIS;
86 __IO uint32_t DVBUSPULSE;
87 __IO uint32_t DTHRCTL;
88 __IO uint32_t DIEPEMPMSK;
89 __IO uint32_t DEACHINT;
90 __IO uint32_t DEACHMSK;
91 uint32_t Reserved40;
92 __IO uint32_t DINEP1MSK;
93 uint32_t Reserved44[15];
94 __IO uint32_t DOUTEP1MSK;
96
101typedef struct
102{
103 __IO uint32_t DIEPCTL;
104 uint32_t Reserved04;
105 __IO uint32_t DIEPINT;
106 uint32_t Reserved0C;
107 __IO uint32_t DIEPTSIZ;
108 __IO uint32_t DIEPDMA;
109 __IO uint32_t DTXFSTS;
110 uint32_t Reserved18;
112
117typedef struct
118{
119 __IO uint32_t DOEPCTL;
120 uint32_t Reserved04;
121 __IO uint32_t DOEPINT;
122 uint32_t Reserved0C;
123 __IO uint32_t DOEPTSIZ;
124 __IO uint32_t DOEPDMA;
125 uint32_t Reserved18[2];
127
132typedef struct
133{
134 __IO uint32_t HCFG;
135 __IO uint32_t HFIR;
136 __IO uint32_t HFNUM;
137 uint32_t Reserved40C;
138 __IO uint32_t HPTXSTS;
139 __IO uint32_t HAINT;
140 __IO uint32_t HAINTMSK;
142
147typedef struct
148{
149 __IO uint32_t HCCHAR;
150 __IO uint32_t HCSPLT;
151 __IO uint32_t HCINT;
152 __IO uint32_t HCINTMSK;
153 __IO uint32_t HCTSIZ;
154 __IO uint32_t HCDMA;
155 uint32_t Reserved[2];
157
159#define USB_OTG_FS_PERIPH_BASE 0x50000000UL
160
161#define USB_OTG_GLOBAL_BASE 0x00000000UL
162#define USB_OTG_DEVICE_BASE 0x00000800UL
163#define USB_OTG_IN_ENDPOINT_BASE 0x00000900UL
164#define USB_OTG_OUT_ENDPOINT_BASE 0x00000B00UL
165#define USB_OTG_EP_REG_SIZE 0x00000020UL
166#define USB_OTG_HOST_BASE 0x00000400UL
167#define USB_OTG_HOST_PORT_BASE 0x00000440UL
168#define USB_OTG_HOST_CHANNEL_BASE 0x00000500UL
169#define USB_OTG_HOST_CHANNEL_SIZE 0x00000020UL
170#define USB_OTG_PCGCCTL_BASE 0x00000E00UL
171#define USB_OTG_FIFO_BASE 0x00001000UL
172#define USB_OTG_FIFO_SIZE 0x00001000UL
173
174/******************************************************************************/
175/* */
176/* USB_OTG */
177/* */
178/******************************************************************************/
179/******************** Bit definition for USB_OTG_GOTGCTL register ***********/
180#define USB_OTG_GOTGCTL_SRQSCS_Pos (0U)
181#define USB_OTG_GOTGCTL_SRQSCS_Msk (0x1UL << USB_OTG_GOTGCTL_SRQSCS_Pos)
182#define USB_OTG_GOTGCTL_SRQSCS USB_OTG_GOTGCTL_SRQSCS_Msk
183#define USB_OTG_GOTGCTL_SRQ_Pos (1U)
184#define USB_OTG_GOTGCTL_SRQ_Msk (0x1UL << USB_OTG_GOTGCTL_SRQ_Pos)
185#define USB_OTG_GOTGCTL_SRQ USB_OTG_GOTGCTL_SRQ_Msk
186#define USB_OTG_GOTGCTL_HNGSCS_Pos (8U)
187#define USB_OTG_GOTGCTL_HNGSCS_Msk (0x1UL << USB_OTG_GOTGCTL_HNGSCS_Pos)
188#define USB_OTG_GOTGCTL_HNGSCS USB_OTG_GOTGCTL_HNGSCS_Msk
189#define USB_OTG_GOTGCTL_HNPRQ_Pos (9U)
190#define USB_OTG_GOTGCTL_HNPRQ_Msk (0x1UL << USB_OTG_GOTGCTL_HNPRQ_Pos)
191#define USB_OTG_GOTGCTL_HNPRQ USB_OTG_GOTGCTL_HNPRQ_Msk
192#define USB_OTG_GOTGCTL_HSHNPEN_Pos (10U)
193#define USB_OTG_GOTGCTL_HSHNPEN_Msk (0x1UL << USB_OTG_GOTGCTL_HSHNPEN_Pos)
194#define USB_OTG_GOTGCTL_HSHNPEN USB_OTG_GOTGCTL_HSHNPEN_Msk
195#define USB_OTG_GOTGCTL_DHNPEN_Pos (11U)
196#define USB_OTG_GOTGCTL_DHNPEN_Msk (0x1UL << USB_OTG_GOTGCTL_DHNPEN_Pos)
197#define USB_OTG_GOTGCTL_DHNPEN USB_OTG_GOTGCTL_DHNPEN_Msk
198#define USB_OTG_GOTGCTL_CIDSTS_Pos (16U)
199#define USB_OTG_GOTGCTL_CIDSTS_Msk (0x1UL << USB_OTG_GOTGCTL_CIDSTS_Pos)
200#define USB_OTG_GOTGCTL_CIDSTS USB_OTG_GOTGCTL_CIDSTS_Msk
201#define USB_OTG_GOTGCTL_DBCT_Pos (17U)
202#define USB_OTG_GOTGCTL_DBCT_Msk (0x1UL << USB_OTG_GOTGCTL_DBCT_Pos)
203#define USB_OTG_GOTGCTL_DBCT USB_OTG_GOTGCTL_DBCT_Msk
204#define USB_OTG_GOTGCTL_ASVLD_Pos (18U)
205#define USB_OTG_GOTGCTL_ASVLD_Msk (0x1UL << USB_OTG_GOTGCTL_ASVLD_Pos)
206#define USB_OTG_GOTGCTL_ASVLD USB_OTG_GOTGCTL_ASVLD_Msk
207#define USB_OTG_GOTGCTL_BSVLD_Pos (19U)
208#define USB_OTG_GOTGCTL_BSVLD_Msk (0x1UL << USB_OTG_GOTGCTL_BSVLD_Pos)
209#define USB_OTG_GOTGCTL_BSVLD USB_OTG_GOTGCTL_BSVLD_Msk
211/******************** Bit definition for USB_OTG_HCFG register ********************/
212
213#define USB_OTG_HCFG_FSLSPCS_Pos (0U)
214#define USB_OTG_HCFG_FSLSPCS_Msk (0x3UL << USB_OTG_HCFG_FSLSPCS_Pos)
215#define USB_OTG_HCFG_FSLSPCS USB_OTG_HCFG_FSLSPCS_Msk
216#define USB_OTG_HCFG_FSLSPCS_0 (0x1UL << USB_OTG_HCFG_FSLSPCS_Pos)
217#define USB_OTG_HCFG_FSLSPCS_1 (0x2UL << USB_OTG_HCFG_FSLSPCS_Pos)
218#define USB_OTG_HCFG_FSLSS_Pos (2U)
219#define USB_OTG_HCFG_FSLSS_Msk (0x1UL << USB_OTG_HCFG_FSLSS_Pos)
220#define USB_OTG_HCFG_FSLSS USB_OTG_HCFG_FSLSS_Msk
222/******************** Bit definition for USB_OTG_DCFG register ********************/
223
224#define USB_OTG_DCFG_DSPD_Pos (0U)
225#define USB_OTG_DCFG_DSPD_Msk (0x3UL << USB_OTG_DCFG_DSPD_Pos)
226#define USB_OTG_DCFG_DSPD USB_OTG_DCFG_DSPD_Msk
227#define USB_OTG_DCFG_DSPD_0 (0x1UL << USB_OTG_DCFG_DSPD_Pos)
228#define USB_OTG_DCFG_DSPD_1 (0x2UL << USB_OTG_DCFG_DSPD_Pos)
229#define USB_OTG_DCFG_NZLSOHSK_Pos (2U)
230#define USB_OTG_DCFG_NZLSOHSK_Msk (0x1UL << USB_OTG_DCFG_NZLSOHSK_Pos)
231#define USB_OTG_DCFG_NZLSOHSK USB_OTG_DCFG_NZLSOHSK_Msk
233#define USB_OTG_DCFG_DAD_Pos (4U)
234#define USB_OTG_DCFG_DAD_Msk (0x7FUL << USB_OTG_DCFG_DAD_Pos)
235#define USB_OTG_DCFG_DAD USB_OTG_DCFG_DAD_Msk
236#define USB_OTG_DCFG_DAD_0 (0x01UL << USB_OTG_DCFG_DAD_Pos)
237#define USB_OTG_DCFG_DAD_1 (0x02UL << USB_OTG_DCFG_DAD_Pos)
238#define USB_OTG_DCFG_DAD_2 (0x04UL << USB_OTG_DCFG_DAD_Pos)
239#define USB_OTG_DCFG_DAD_3 (0x08UL << USB_OTG_DCFG_DAD_Pos)
240#define USB_OTG_DCFG_DAD_4 (0x10UL << USB_OTG_DCFG_DAD_Pos)
241#define USB_OTG_DCFG_DAD_5 (0x20UL << USB_OTG_DCFG_DAD_Pos)
242#define USB_OTG_DCFG_DAD_6 (0x40UL << USB_OTG_DCFG_DAD_Pos)
244#define USB_OTG_DCFG_PFIVL_Pos (11U)
245#define USB_OTG_DCFG_PFIVL_Msk (0x3UL << USB_OTG_DCFG_PFIVL_Pos)
246#define USB_OTG_DCFG_PFIVL USB_OTG_DCFG_PFIVL_Msk
247#define USB_OTG_DCFG_PFIVL_0 (0x1UL << USB_OTG_DCFG_PFIVL_Pos)
248#define USB_OTG_DCFG_PFIVL_1 (0x2UL << USB_OTG_DCFG_PFIVL_Pos)
250#define USB_OTG_DCFG_PERSCHIVL_Pos (24U)
251#define USB_OTG_DCFG_PERSCHIVL_Msk (0x3UL << USB_OTG_DCFG_PERSCHIVL_Pos)
252#define USB_OTG_DCFG_PERSCHIVL USB_OTG_DCFG_PERSCHIVL_Msk
253#define USB_OTG_DCFG_PERSCHIVL_0 (0x1UL << USB_OTG_DCFG_PERSCHIVL_Pos)
254#define USB_OTG_DCFG_PERSCHIVL_1 (0x2UL << USB_OTG_DCFG_PERSCHIVL_Pos)
256/******************** Bit definition for USB_OTG_PCGCR register ********************/
257#define USB_OTG_PCGCR_STPPCLK_Pos (0U)
258#define USB_OTG_PCGCR_STPPCLK_Msk (0x1UL << USB_OTG_PCGCR_STPPCLK_Pos)
259#define USB_OTG_PCGCR_STPPCLK USB_OTG_PCGCR_STPPCLK_Msk
260#define USB_OTG_PCGCR_GATEHCLK_Pos (1U)
261#define USB_OTG_PCGCR_GATEHCLK_Msk (0x1UL << USB_OTG_PCGCR_GATEHCLK_Pos)
262#define USB_OTG_PCGCR_GATEHCLK USB_OTG_PCGCR_GATEHCLK_Msk
263#define USB_OTG_PCGCR_PHYSUSP_Pos (4U)
264#define USB_OTG_PCGCR_PHYSUSP_Msk (0x1UL << USB_OTG_PCGCR_PHYSUSP_Pos)
265#define USB_OTG_PCGCR_PHYSUSP USB_OTG_PCGCR_PHYSUSP_Msk
267/******************** Bit definition for USB_OTG_GOTGINT register ********************/
268#define USB_OTG_GOTGINT_SEDET_Pos (2U)
269#define USB_OTG_GOTGINT_SEDET_Msk (0x1UL << USB_OTG_GOTGINT_SEDET_Pos)
270#define USB_OTG_GOTGINT_SEDET USB_OTG_GOTGINT_SEDET_Msk
271#define USB_OTG_GOTGINT_SRSSCHG_Pos (8U)
272#define USB_OTG_GOTGINT_SRSSCHG_Msk (0x1UL << USB_OTG_GOTGINT_SRSSCHG_Pos)
273#define USB_OTG_GOTGINT_SRSSCHG USB_OTG_GOTGINT_SRSSCHG_Msk
274#define USB_OTG_GOTGINT_HNSSCHG_Pos (9U)
275#define USB_OTG_GOTGINT_HNSSCHG_Msk (0x1UL << USB_OTG_GOTGINT_HNSSCHG_Pos)
276#define USB_OTG_GOTGINT_HNSSCHG USB_OTG_GOTGINT_HNSSCHG_Msk
277#define USB_OTG_GOTGINT_HNGDET_Pos (17U)
278#define USB_OTG_GOTGINT_HNGDET_Msk (0x1UL << USB_OTG_GOTGINT_HNGDET_Pos)
279#define USB_OTG_GOTGINT_HNGDET USB_OTG_GOTGINT_HNGDET_Msk
280#define USB_OTG_GOTGINT_ADTOCHG_Pos (18U)
281#define USB_OTG_GOTGINT_ADTOCHG_Msk (0x1UL << USB_OTG_GOTGINT_ADTOCHG_Pos)
282#define USB_OTG_GOTGINT_ADTOCHG USB_OTG_GOTGINT_ADTOCHG_Msk
283#define USB_OTG_GOTGINT_DBCDNE_Pos (19U)
284#define USB_OTG_GOTGINT_DBCDNE_Msk (0x1UL << USB_OTG_GOTGINT_DBCDNE_Pos)
285#define USB_OTG_GOTGINT_DBCDNE USB_OTG_GOTGINT_DBCDNE_Msk
287/******************** Bit definition for USB_OTG_DCTL register ********************/
288#define USB_OTG_DCTL_RWUSIG_Pos (0U)
289#define USB_OTG_DCTL_RWUSIG_Msk (0x1UL << USB_OTG_DCTL_RWUSIG_Pos)
290#define USB_OTG_DCTL_RWUSIG USB_OTG_DCTL_RWUSIG_Msk
291#define USB_OTG_DCTL_SDIS_Pos (1U)
292#define USB_OTG_DCTL_SDIS_Msk (0x1UL << USB_OTG_DCTL_SDIS_Pos)
293#define USB_OTG_DCTL_SDIS USB_OTG_DCTL_SDIS_Msk
294#define USB_OTG_DCTL_GINSTS_Pos (2U)
295#define USB_OTG_DCTL_GINSTS_Msk (0x1UL << USB_OTG_DCTL_GINSTS_Pos)
296#define USB_OTG_DCTL_GINSTS USB_OTG_DCTL_GINSTS_Msk
297#define USB_OTG_DCTL_GONSTS_Pos (3U)
298#define USB_OTG_DCTL_GONSTS_Msk (0x1UL << USB_OTG_DCTL_GONSTS_Pos)
299#define USB_OTG_DCTL_GONSTS USB_OTG_DCTL_GONSTS_Msk
301#define USB_OTG_DCTL_TCTL_Pos (4U)
302#define USB_OTG_DCTL_TCTL_Msk (0x7UL << USB_OTG_DCTL_TCTL_Pos)
303#define USB_OTG_DCTL_TCTL USB_OTG_DCTL_TCTL_Msk
304#define USB_OTG_DCTL_TCTL_0 (0x1UL << USB_OTG_DCTL_TCTL_Pos)
305#define USB_OTG_DCTL_TCTL_1 (0x2UL << USB_OTG_DCTL_TCTL_Pos)
306#define USB_OTG_DCTL_TCTL_2 (0x4UL << USB_OTG_DCTL_TCTL_Pos)
307#define USB_OTG_DCTL_SGINAK_Pos (7U)
308#define USB_OTG_DCTL_SGINAK_Msk (0x1UL << USB_OTG_DCTL_SGINAK_Pos)
309#define USB_OTG_DCTL_SGINAK USB_OTG_DCTL_SGINAK_Msk
310#define USB_OTG_DCTL_CGINAK_Pos (8U)
311#define USB_OTG_DCTL_CGINAK_Msk (0x1UL << USB_OTG_DCTL_CGINAK_Pos)
312#define USB_OTG_DCTL_CGINAK USB_OTG_DCTL_CGINAK_Msk
313#define USB_OTG_DCTL_SGONAK_Pos (9U)
314#define USB_OTG_DCTL_SGONAK_Msk (0x1UL << USB_OTG_DCTL_SGONAK_Pos)
315#define USB_OTG_DCTL_SGONAK USB_OTG_DCTL_SGONAK_Msk
316#define USB_OTG_DCTL_CGONAK_Pos (10U)
317#define USB_OTG_DCTL_CGONAK_Msk (0x1UL << USB_OTG_DCTL_CGONAK_Pos)
318#define USB_OTG_DCTL_CGONAK USB_OTG_DCTL_CGONAK_Msk
319#define USB_OTG_DCTL_POPRGDNE_Pos (11U)
320#define USB_OTG_DCTL_POPRGDNE_Msk (0x1UL << USB_OTG_DCTL_POPRGDNE_Pos)
321#define USB_OTG_DCTL_POPRGDNE USB_OTG_DCTL_POPRGDNE_Msk
323/******************** Bit definition for USB_OTG_HFIR register ********************/
324#define USB_OTG_HFIR_FRIVL_Pos (0U)
325#define USB_OTG_HFIR_FRIVL_Msk (0xFFFFUL << USB_OTG_HFIR_FRIVL_Pos)
326#define USB_OTG_HFIR_FRIVL USB_OTG_HFIR_FRIVL_Msk
328/******************** Bit definition for USB_OTG_HFNUM register ********************/
329#define USB_OTG_HFNUM_FRNUM_Pos (0U)
330#define USB_OTG_HFNUM_FRNUM_Msk (0xFFFFUL << USB_OTG_HFNUM_FRNUM_Pos)
331#define USB_OTG_HFNUM_FRNUM USB_OTG_HFNUM_FRNUM_Msk
332#define USB_OTG_HFNUM_FTREM_Pos (16U)
333#define USB_OTG_HFNUM_FTREM_Msk (0xFFFFUL << USB_OTG_HFNUM_FTREM_Pos)
334#define USB_OTG_HFNUM_FTREM USB_OTG_HFNUM_FTREM_Msk
336/******************** Bit definition for USB_OTG_DSTS register ********************/
337#define USB_OTG_DSTS_SUSPSTS_Pos (0U)
338#define USB_OTG_DSTS_SUSPSTS_Msk (0x1UL << USB_OTG_DSTS_SUSPSTS_Pos)
339#define USB_OTG_DSTS_SUSPSTS USB_OTG_DSTS_SUSPSTS_Msk
341#define USB_OTG_DSTS_ENUMSPD_Pos (1U)
342#define USB_OTG_DSTS_ENUMSPD_Msk (0x3UL << USB_OTG_DSTS_ENUMSPD_Pos)
343#define USB_OTG_DSTS_ENUMSPD USB_OTG_DSTS_ENUMSPD_Msk
344#define USB_OTG_DSTS_ENUMSPD_0 (0x1UL << USB_OTG_DSTS_ENUMSPD_Pos)
345#define USB_OTG_DSTS_ENUMSPD_1 (0x2UL << USB_OTG_DSTS_ENUMSPD_Pos)
346#define USB_OTG_DSTS_EERR_Pos (3U)
347#define USB_OTG_DSTS_EERR_Msk (0x1UL << USB_OTG_DSTS_EERR_Pos)
348#define USB_OTG_DSTS_EERR USB_OTG_DSTS_EERR_Msk
349#define USB_OTG_DSTS_FNSOF_Pos (8U)
350#define USB_OTG_DSTS_FNSOF_Msk (0x3FFFUL << USB_OTG_DSTS_FNSOF_Pos)
351#define USB_OTG_DSTS_FNSOF USB_OTG_DSTS_FNSOF_Msk
353/******************** Bit definition for USB_OTG_GAHBCFG register ********************/
354#define USB_OTG_GAHBCFG_GINT_Pos (0U)
355#define USB_OTG_GAHBCFG_GINT_Msk (0x1UL << USB_OTG_GAHBCFG_GINT_Pos)
356#define USB_OTG_GAHBCFG_GINT USB_OTG_GAHBCFG_GINT_Msk
357#define USB_OTG_GAHBCFG_HBSTLEN_Pos (1U)
358#define USB_OTG_GAHBCFG_HBSTLEN_Msk (0xFUL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
359#define USB_OTG_GAHBCFG_HBSTLEN USB_OTG_GAHBCFG_HBSTLEN_Msk
360#define USB_OTG_GAHBCFG_HBSTLEN_0 (0x0UL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
361#define USB_OTG_GAHBCFG_HBSTLEN_1 (0x1UL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
362#define USB_OTG_GAHBCFG_HBSTLEN_2 (0x3UL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
363#define USB_OTG_GAHBCFG_HBSTLEN_3 (0x5UL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
364#define USB_OTG_GAHBCFG_HBSTLEN_4 (0x7UL << USB_OTG_GAHBCFG_HBSTLEN_Pos)
365#define USB_OTG_GAHBCFG_DMAEN_Pos (5U)
366#define USB_OTG_GAHBCFG_DMAEN_Msk (0x1UL << USB_OTG_GAHBCFG_DMAEN_Pos)
367#define USB_OTG_GAHBCFG_DMAEN USB_OTG_GAHBCFG_DMAEN_Msk
368#define USB_OTG_GAHBCFG_TXFELVL_Pos (7U)
369#define USB_OTG_GAHBCFG_TXFELVL_Msk (0x1UL << USB_OTG_GAHBCFG_TXFELVL_Pos)
370#define USB_OTG_GAHBCFG_TXFELVL USB_OTG_GAHBCFG_TXFELVL_Msk
371#define USB_OTG_GAHBCFG_PTXFELVL_Pos (8U)
372#define USB_OTG_GAHBCFG_PTXFELVL_Msk (0x1UL << USB_OTG_GAHBCFG_PTXFELVL_Pos)
373#define USB_OTG_GAHBCFG_PTXFELVL USB_OTG_GAHBCFG_PTXFELVL_Msk
375/******************** Bit definition for USB_OTG_GUSBCFG register ********************/
376
377#define USB_OTG_GUSBCFG_TOCAL_Pos (0U)
378#define USB_OTG_GUSBCFG_TOCAL_Msk (0x7UL << USB_OTG_GUSBCFG_TOCAL_Pos)
379#define USB_OTG_GUSBCFG_TOCAL USB_OTG_GUSBCFG_TOCAL_Msk
380#define USB_OTG_GUSBCFG_TOCAL_0 (0x1UL << USB_OTG_GUSBCFG_TOCAL_Pos)
381#define USB_OTG_GUSBCFG_TOCAL_1 (0x2UL << USB_OTG_GUSBCFG_TOCAL_Pos)
382#define USB_OTG_GUSBCFG_TOCAL_2 (0x4UL << USB_OTG_GUSBCFG_TOCAL_Pos)
383#define USB_OTG_GUSBCFG_PHYSEL_Pos (6U)
384#define USB_OTG_GUSBCFG_PHYSEL_Msk (0x1UL << USB_OTG_GUSBCFG_PHYSEL_Pos)
385#define USB_OTG_GUSBCFG_PHYSEL USB_OTG_GUSBCFG_PHYSEL_Msk
386#define USB_OTG_GUSBCFG_SRPCAP_Pos (8U)
387#define USB_OTG_GUSBCFG_SRPCAP_Msk (0x1UL << USB_OTG_GUSBCFG_SRPCAP_Pos)
388#define USB_OTG_GUSBCFG_SRPCAP USB_OTG_GUSBCFG_SRPCAP_Msk
389#define USB_OTG_GUSBCFG_HNPCAP_Pos (9U)
390#define USB_OTG_GUSBCFG_HNPCAP_Msk (0x1UL << USB_OTG_GUSBCFG_HNPCAP_Pos)
391#define USB_OTG_GUSBCFG_HNPCAP USB_OTG_GUSBCFG_HNPCAP_Msk
392#define USB_OTG_GUSBCFG_TRDT_Pos (10U)
393#define USB_OTG_GUSBCFG_TRDT_Msk (0xFUL << USB_OTG_GUSBCFG_TRDT_Pos)
394#define USB_OTG_GUSBCFG_TRDT USB_OTG_GUSBCFG_TRDT_Msk
395#define USB_OTG_GUSBCFG_TRDT_0 (0x1UL << USB_OTG_GUSBCFG_TRDT_Pos)
396#define USB_OTG_GUSBCFG_TRDT_1 (0x2UL << USB_OTG_GUSBCFG_TRDT_Pos)
397#define USB_OTG_GUSBCFG_TRDT_2 (0x4UL << USB_OTG_GUSBCFG_TRDT_Pos)
398#define USB_OTG_GUSBCFG_TRDT_3 (0x8UL << USB_OTG_GUSBCFG_TRDT_Pos)
399#define USB_OTG_GUSBCFG_PHYLPCS_Pos (15U)
400#define USB_OTG_GUSBCFG_PHYLPCS_Msk (0x1UL << USB_OTG_GUSBCFG_PHYLPCS_Pos)
401#define USB_OTG_GUSBCFG_PHYLPCS USB_OTG_GUSBCFG_PHYLPCS_Msk
402#define USB_OTG_GUSBCFG_ULPIFSLS_Pos (17U)
403#define USB_OTG_GUSBCFG_ULPIFSLS_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIFSLS_Pos)
404#define USB_OTG_GUSBCFG_ULPIFSLS USB_OTG_GUSBCFG_ULPIFSLS_Msk
405#define USB_OTG_GUSBCFG_ULPIAR_Pos (18U)
406#define USB_OTG_GUSBCFG_ULPIAR_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIAR_Pos)
407#define USB_OTG_GUSBCFG_ULPIAR USB_OTG_GUSBCFG_ULPIAR_Msk
408#define USB_OTG_GUSBCFG_ULPICSM_Pos (19U)
409#define USB_OTG_GUSBCFG_ULPICSM_Msk (0x1UL << USB_OTG_GUSBCFG_ULPICSM_Pos)
410#define USB_OTG_GUSBCFG_ULPICSM USB_OTG_GUSBCFG_ULPICSM_Msk
411#define USB_OTG_GUSBCFG_ULPIEVBUSD_Pos (20U)
412#define USB_OTG_GUSBCFG_ULPIEVBUSD_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIEVBUSD_Pos)
413#define USB_OTG_GUSBCFG_ULPIEVBUSD USB_OTG_GUSBCFG_ULPIEVBUSD_Msk
414#define USB_OTG_GUSBCFG_ULPIEVBUSI_Pos (21U)
415#define USB_OTG_GUSBCFG_ULPIEVBUSI_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIEVBUSI_Pos)
416#define USB_OTG_GUSBCFG_ULPIEVBUSI USB_OTG_GUSBCFG_ULPIEVBUSI_Msk
417#define USB_OTG_GUSBCFG_TSDPS_Pos (22U)
418#define USB_OTG_GUSBCFG_TSDPS_Msk (0x1UL << USB_OTG_GUSBCFG_TSDPS_Pos)
419#define USB_OTG_GUSBCFG_TSDPS USB_OTG_GUSBCFG_TSDPS_Msk
420#define USB_OTG_GUSBCFG_PCCI_Pos (23U)
421#define USB_OTG_GUSBCFG_PCCI_Msk (0x1UL << USB_OTG_GUSBCFG_PCCI_Pos)
422#define USB_OTG_GUSBCFG_PCCI USB_OTG_GUSBCFG_PCCI_Msk
423#define USB_OTG_GUSBCFG_PTCI_Pos (24U)
424#define USB_OTG_GUSBCFG_PTCI_Msk (0x1UL << USB_OTG_GUSBCFG_PTCI_Pos)
425#define USB_OTG_GUSBCFG_PTCI USB_OTG_GUSBCFG_PTCI_Msk
426#define USB_OTG_GUSBCFG_ULPIIPD_Pos (25U)
427#define USB_OTG_GUSBCFG_ULPIIPD_Msk (0x1UL << USB_OTG_GUSBCFG_ULPIIPD_Pos)
428#define USB_OTG_GUSBCFG_ULPIIPD USB_OTG_GUSBCFG_ULPIIPD_Msk
429#define USB_OTG_GUSBCFG_FHMOD_Pos (29U)
430#define USB_OTG_GUSBCFG_FHMOD_Msk (0x1UL << USB_OTG_GUSBCFG_FHMOD_Pos)
431#define USB_OTG_GUSBCFG_FHMOD USB_OTG_GUSBCFG_FHMOD_Msk
432#define USB_OTG_GUSBCFG_FDMOD_Pos (30U)
433#define USB_OTG_GUSBCFG_FDMOD_Msk (0x1UL << USB_OTG_GUSBCFG_FDMOD_Pos)
434#define USB_OTG_GUSBCFG_FDMOD USB_OTG_GUSBCFG_FDMOD_Msk
435#define USB_OTG_GUSBCFG_CTXPKT_Pos (31U)
436#define USB_OTG_GUSBCFG_CTXPKT_Msk (0x1UL << USB_OTG_GUSBCFG_CTXPKT_Pos)
437#define USB_OTG_GUSBCFG_CTXPKT USB_OTG_GUSBCFG_CTXPKT_Msk
439/******************** Bit definition for USB_OTG_GRSTCTL register ********************/
440#define USB_OTG_GRSTCTL_CSRST_Pos (0U)
441#define USB_OTG_GRSTCTL_CSRST_Msk (0x1UL << USB_OTG_GRSTCTL_CSRST_Pos)
442#define USB_OTG_GRSTCTL_CSRST USB_OTG_GRSTCTL_CSRST_Msk
443#define USB_OTG_GRSTCTL_HSRST_Pos (1U)
444#define USB_OTG_GRSTCTL_HSRST_Msk (0x1UL << USB_OTG_GRSTCTL_HSRST_Pos)
445#define USB_OTG_GRSTCTL_HSRST USB_OTG_GRSTCTL_HSRST_Msk
446#define USB_OTG_GRSTCTL_FCRST_Pos (2U)
447#define USB_OTG_GRSTCTL_FCRST_Msk (0x1UL << USB_OTG_GRSTCTL_FCRST_Pos)
448#define USB_OTG_GRSTCTL_FCRST USB_OTG_GRSTCTL_FCRST_Msk
449#define USB_OTG_GRSTCTL_RXFFLSH_Pos (4U)
450#define USB_OTG_GRSTCTL_RXFFLSH_Msk (0x1UL << USB_OTG_GRSTCTL_RXFFLSH_Pos)
451#define USB_OTG_GRSTCTL_RXFFLSH USB_OTG_GRSTCTL_RXFFLSH_Msk
452#define USB_OTG_GRSTCTL_TXFFLSH_Pos (5U)
453#define USB_OTG_GRSTCTL_TXFFLSH_Msk (0x1UL << USB_OTG_GRSTCTL_TXFFLSH_Pos)
454#define USB_OTG_GRSTCTL_TXFFLSH USB_OTG_GRSTCTL_TXFFLSH_Msk
457#define USB_OTG_GRSTCTL_TXFNUM_Pos (6U)
458#define USB_OTG_GRSTCTL_TXFNUM_Msk (0x1FUL << USB_OTG_GRSTCTL_TXFNUM_Pos)
459#define USB_OTG_GRSTCTL_TXFNUM USB_OTG_GRSTCTL_TXFNUM_Msk
460#define USB_OTG_GRSTCTL_TXFNUM_0 (0x01UL << USB_OTG_GRSTCTL_TXFNUM_Pos)
461#define USB_OTG_GRSTCTL_TXFNUM_1 (0x02UL << USB_OTG_GRSTCTL_TXFNUM_Pos)
462#define USB_OTG_GRSTCTL_TXFNUM_2 (0x04UL << USB_OTG_GRSTCTL_TXFNUM_Pos)
463#define USB_OTG_GRSTCTL_TXFNUM_3 (0x08UL << USB_OTG_GRSTCTL_TXFNUM_Pos)
464#define USB_OTG_GRSTCTL_TXFNUM_4 (0x10UL << USB_OTG_GRSTCTL_TXFNUM_Pos)
465#define USB_OTG_GRSTCTL_DMAREQ_Pos (30U)
466#define USB_OTG_GRSTCTL_DMAREQ_Msk (0x1UL << USB_OTG_GRSTCTL_DMAREQ_Pos)
467#define USB_OTG_GRSTCTL_DMAREQ USB_OTG_GRSTCTL_DMAREQ_Msk
468#define USB_OTG_GRSTCTL_AHBIDL_Pos (31U)
469#define USB_OTG_GRSTCTL_AHBIDL_Msk (0x1UL << USB_OTG_GRSTCTL_AHBIDL_Pos)
470#define USB_OTG_GRSTCTL_AHBIDL USB_OTG_GRSTCTL_AHBIDL_Msk
472/******************** Bit definition for USB_OTG_DIEPMSK register ********************/
473#define USB_OTG_DIEPMSK_XFRCM_Pos (0U)
474#define USB_OTG_DIEPMSK_XFRCM_Msk (0x1UL << USB_OTG_DIEPMSK_XFRCM_Pos)
475#define USB_OTG_DIEPMSK_XFRCM USB_OTG_DIEPMSK_XFRCM_Msk
476#define USB_OTG_DIEPMSK_EPDM_Pos (1U)
477#define USB_OTG_DIEPMSK_EPDM_Msk (0x1UL << USB_OTG_DIEPMSK_EPDM_Pos)
478#define USB_OTG_DIEPMSK_EPDM USB_OTG_DIEPMSK_EPDM_Msk
479#define USB_OTG_DIEPMSK_TOM_Pos (3U)
480#define USB_OTG_DIEPMSK_TOM_Msk (0x1UL << USB_OTG_DIEPMSK_TOM_Pos)
481#define USB_OTG_DIEPMSK_TOM USB_OTG_DIEPMSK_TOM_Msk
482#define USB_OTG_DIEPMSK_ITTXFEMSK_Pos (4U)
483#define USB_OTG_DIEPMSK_ITTXFEMSK_Msk (0x1UL << USB_OTG_DIEPMSK_ITTXFEMSK_Pos)
484#define USB_OTG_DIEPMSK_ITTXFEMSK USB_OTG_DIEPMSK_ITTXFEMSK_Msk
485#define USB_OTG_DIEPMSK_INEPNMM_Pos (5U)
486#define USB_OTG_DIEPMSK_INEPNMM_Msk (0x1UL << USB_OTG_DIEPMSK_INEPNMM_Pos)
487#define USB_OTG_DIEPMSK_INEPNMM USB_OTG_DIEPMSK_INEPNMM_Msk
488#define USB_OTG_DIEPMSK_INEPNEM_Pos (6U)
489#define USB_OTG_DIEPMSK_INEPNEM_Msk (0x1UL << USB_OTG_DIEPMSK_INEPNEM_Pos)
490#define USB_OTG_DIEPMSK_INEPNEM USB_OTG_DIEPMSK_INEPNEM_Msk
491#define USB_OTG_DIEPMSK_TXFURM_Pos (8U)
492#define USB_OTG_DIEPMSK_TXFURM_Msk (0x1UL << USB_OTG_DIEPMSK_TXFURM_Pos)
493#define USB_OTG_DIEPMSK_TXFURM USB_OTG_DIEPMSK_TXFURM_Msk
494#define USB_OTG_DIEPMSK_BIM_Pos (9U)
495#define USB_OTG_DIEPMSK_BIM_Msk (0x1UL << USB_OTG_DIEPMSK_BIM_Pos)
496#define USB_OTG_DIEPMSK_BIM USB_OTG_DIEPMSK_BIM_Msk
498/******************** Bit definition for USB_OTG_HPTXSTS register ********************/
499#define USB_OTG_HPTXSTS_PTXFSAVL_Pos (0U)
500#define USB_OTG_HPTXSTS_PTXFSAVL_Msk (0xFFFFUL << USB_OTG_HPTXSTS_PTXFSAVL_Pos)
501#define USB_OTG_HPTXSTS_PTXFSAVL USB_OTG_HPTXSTS_PTXFSAVL_Msk
502#define USB_OTG_HPTXSTS_PTXQSAV_Pos (16U)
503#define USB_OTG_HPTXSTS_PTXQSAV_Msk (0xFFUL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
504#define USB_OTG_HPTXSTS_PTXQSAV USB_OTG_HPTXSTS_PTXQSAV_Msk
505#define USB_OTG_HPTXSTS_PTXQSAV_0 (0x01UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
506#define USB_OTG_HPTXSTS_PTXQSAV_1 (0x02UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
507#define USB_OTG_HPTXSTS_PTXQSAV_2 (0x04UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
508#define USB_OTG_HPTXSTS_PTXQSAV_3 (0x08UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
509#define USB_OTG_HPTXSTS_PTXQSAV_4 (0x10UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
510#define USB_OTG_HPTXSTS_PTXQSAV_5 (0x20UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
511#define USB_OTG_HPTXSTS_PTXQSAV_6 (0x40UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
512#define USB_OTG_HPTXSTS_PTXQSAV_7 (0x80UL << USB_OTG_HPTXSTS_PTXQSAV_Pos)
514#define USB_OTG_HPTXSTS_PTXQTOP_Pos (24U)
515#define USB_OTG_HPTXSTS_PTXQTOP_Msk (0xFFUL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
516#define USB_OTG_HPTXSTS_PTXQTOP USB_OTG_HPTXSTS_PTXQTOP_Msk
517#define USB_OTG_HPTXSTS_PTXQTOP_0 (0x01UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
518#define USB_OTG_HPTXSTS_PTXQTOP_1 (0x02UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
519#define USB_OTG_HPTXSTS_PTXQTOP_2 (0x04UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
520#define USB_OTG_HPTXSTS_PTXQTOP_3 (0x08UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
521#define USB_OTG_HPTXSTS_PTXQTOP_4 (0x10UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
522#define USB_OTG_HPTXSTS_PTXQTOP_5 (0x20UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
523#define USB_OTG_HPTXSTS_PTXQTOP_6 (0x40UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
524#define USB_OTG_HPTXSTS_PTXQTOP_7 (0x80UL << USB_OTG_HPTXSTS_PTXQTOP_Pos)
526/******************** Bit definition for USB_OTG_HAINT register ********************/
527#define USB_OTG_HAINT_HAINT_Pos (0U)
528#define USB_OTG_HAINT_HAINT_Msk (0xFFFFUL << USB_OTG_HAINT_HAINT_Pos)
529#define USB_OTG_HAINT_HAINT USB_OTG_HAINT_HAINT_Msk
531/******************** Bit definition for USB_OTG_DOEPMSK register ********************/
532#define USB_OTG_DOEPMSK_XFRCM_Pos (0U)
533#define USB_OTG_DOEPMSK_XFRCM_Msk (0x1UL << USB_OTG_DOEPMSK_XFRCM_Pos)
534#define USB_OTG_DOEPMSK_XFRCM USB_OTG_DOEPMSK_XFRCM_Msk
535#define USB_OTG_DOEPMSK_EPDM_Pos (1U)
536#define USB_OTG_DOEPMSK_EPDM_Msk (0x1UL << USB_OTG_DOEPMSK_EPDM_Pos)
537#define USB_OTG_DOEPMSK_EPDM USB_OTG_DOEPMSK_EPDM_Msk
538#define USB_OTG_DOEPMSK_AHBERRM_Pos (2U)
539#define USB_OTG_DOEPMSK_AHBERRM_Msk (0x1UL << USB_OTG_DOEPMSK_AHBERRM_Pos)
540#define USB_OTG_DOEPMSK_AHBERRM USB_OTG_DOEPMSK_AHBERRM_Msk
541#define USB_OTG_DOEPMSK_STUPM_Pos (3U)
542#define USB_OTG_DOEPMSK_STUPM_Msk (0x1UL << USB_OTG_DOEPMSK_STUPM_Pos)
543#define USB_OTG_DOEPMSK_STUPM USB_OTG_DOEPMSK_STUPM_Msk
544#define USB_OTG_DOEPMSK_OTEPDM_Pos (4U)
545#define USB_OTG_DOEPMSK_OTEPDM_Msk (0x1UL << USB_OTG_DOEPMSK_OTEPDM_Pos)
546#define USB_OTG_DOEPMSK_OTEPDM USB_OTG_DOEPMSK_OTEPDM_Msk
547#define USB_OTG_DOEPMSK_OTEPSPRM_Pos (5U)
548#define USB_OTG_DOEPMSK_OTEPSPRM_Msk (0x1UL << USB_OTG_DOEPMSK_OTEPSPRM_Pos)
549#define USB_OTG_DOEPMSK_OTEPSPRM USB_OTG_DOEPMSK_OTEPSPRM_Msk
550#define USB_OTG_DOEPMSK_B2BSTUP_Pos (6U)
551#define USB_OTG_DOEPMSK_B2BSTUP_Msk (0x1UL << USB_OTG_DOEPMSK_B2BSTUP_Pos)
552#define USB_OTG_DOEPMSK_B2BSTUP USB_OTG_DOEPMSK_B2BSTUP_Msk
553#define USB_OTG_DOEPMSK_OPEM_Pos (8U)
554#define USB_OTG_DOEPMSK_OPEM_Msk (0x1UL << USB_OTG_DOEPMSK_OPEM_Pos)
555#define USB_OTG_DOEPMSK_OPEM USB_OTG_DOEPMSK_OPEM_Msk
556#define USB_OTG_DOEPMSK_BOIM_Pos (9U)
557#define USB_OTG_DOEPMSK_BOIM_Msk (0x1UL << USB_OTG_DOEPMSK_BOIM_Pos)
558#define USB_OTG_DOEPMSK_BOIM USB_OTG_DOEPMSK_BOIM_Msk
559#define USB_OTG_DOEPMSK_BERRM_Pos (12U)
560#define USB_OTG_DOEPMSK_BERRM_Msk (0x1UL << USB_OTG_DOEPMSK_BERRM_Pos)
561#define USB_OTG_DOEPMSK_BERRM USB_OTG_DOEPMSK_BERRM_Msk
562#define USB_OTG_DOEPMSK_NAKM_Pos (13U)
563#define USB_OTG_DOEPMSK_NAKM_Msk (0x1UL << USB_OTG_DOEPMSK_NAKM_Pos)
564#define USB_OTG_DOEPMSK_NAKM USB_OTG_DOEPMSK_NAKM_Msk
565#define USB_OTG_DOEPMSK_NYETM_Pos (14U)
566#define USB_OTG_DOEPMSK_NYETM_Msk (0x1UL << USB_OTG_DOEPMSK_NYETM_Pos)
567#define USB_OTG_DOEPMSK_NYETM USB_OTG_DOEPMSK_NYETM_Msk
568/******************** Bit definition for USB_OTG_GINTSTS register ********************/
569#define USB_OTG_GINTSTS_CMOD_Pos (0U)
570#define USB_OTG_GINTSTS_CMOD_Msk (0x1UL << USB_OTG_GINTSTS_CMOD_Pos)
571#define USB_OTG_GINTSTS_CMOD USB_OTG_GINTSTS_CMOD_Msk
572#define USB_OTG_GINTSTS_MMIS_Pos (1U)
573#define USB_OTG_GINTSTS_MMIS_Msk (0x1UL << USB_OTG_GINTSTS_MMIS_Pos)
574#define USB_OTG_GINTSTS_MMIS USB_OTG_GINTSTS_MMIS_Msk
575#define USB_OTG_GINTSTS_OTGINT_Pos (2U)
576#define USB_OTG_GINTSTS_OTGINT_Msk (0x1UL << USB_OTG_GINTSTS_OTGINT_Pos)
577#define USB_OTG_GINTSTS_OTGINT USB_OTG_GINTSTS_OTGINT_Msk
578#define USB_OTG_GINTSTS_SOF_Pos (3U)
579#define USB_OTG_GINTSTS_SOF_Msk (0x1UL << USB_OTG_GINTSTS_SOF_Pos)
580#define USB_OTG_GINTSTS_SOF USB_OTG_GINTSTS_SOF_Msk
581#define USB_OTG_GINTSTS_RXFLVL_Pos (4U)
582#define USB_OTG_GINTSTS_RXFLVL_Msk (0x1UL << USB_OTG_GINTSTS_RXFLVL_Pos)
583#define USB_OTG_GINTSTS_RXFLVL USB_OTG_GINTSTS_RXFLVL_Msk
584#define USB_OTG_GINTSTS_NPTXFE_Pos (5U)
585#define USB_OTG_GINTSTS_NPTXFE_Msk (0x1UL << USB_OTG_GINTSTS_NPTXFE_Pos)
586#define USB_OTG_GINTSTS_NPTXFE USB_OTG_GINTSTS_NPTXFE_Msk
587#define USB_OTG_GINTSTS_GINAKEFF_Pos (6U)
588#define USB_OTG_GINTSTS_GINAKEFF_Msk (0x1UL << USB_OTG_GINTSTS_GINAKEFF_Pos)
589#define USB_OTG_GINTSTS_GINAKEFF USB_OTG_GINTSTS_GINAKEFF_Msk
590#define USB_OTG_GINTSTS_BOUTNAKEFF_Pos (7U)
591#define USB_OTG_GINTSTS_BOUTNAKEFF_Msk (0x1UL << USB_OTG_GINTSTS_BOUTNAKEFF_Pos)
592#define USB_OTG_GINTSTS_BOUTNAKEFF USB_OTG_GINTSTS_BOUTNAKEFF_Msk
593#define USB_OTG_GINTSTS_ESUSP_Pos (10U)
594#define USB_OTG_GINTSTS_ESUSP_Msk (0x1UL << USB_OTG_GINTSTS_ESUSP_Pos)
595#define USB_OTG_GINTSTS_ESUSP USB_OTG_GINTSTS_ESUSP_Msk
596#define USB_OTG_GINTSTS_USBSUSP_Pos (11U)
597#define USB_OTG_GINTSTS_USBSUSP_Msk (0x1UL << USB_OTG_GINTSTS_USBSUSP_Pos)
598#define USB_OTG_GINTSTS_USBSUSP USB_OTG_GINTSTS_USBSUSP_Msk
599#define USB_OTG_GINTSTS_USBRST_Pos (12U)
600#define USB_OTG_GINTSTS_USBRST_Msk (0x1UL << USB_OTG_GINTSTS_USBRST_Pos)
601#define USB_OTG_GINTSTS_USBRST USB_OTG_GINTSTS_USBRST_Msk
602#define USB_OTG_GINTSTS_ENUMDNE_Pos (13U)
603#define USB_OTG_GINTSTS_ENUMDNE_Msk (0x1UL << USB_OTG_GINTSTS_ENUMDNE_Pos)
604#define USB_OTG_GINTSTS_ENUMDNE USB_OTG_GINTSTS_ENUMDNE_Msk
605#define USB_OTG_GINTSTS_ISOODRP_Pos (14U)
606#define USB_OTG_GINTSTS_ISOODRP_Msk (0x1UL << USB_OTG_GINTSTS_ISOODRP_Pos)
607#define USB_OTG_GINTSTS_ISOODRP USB_OTG_GINTSTS_ISOODRP_Msk
608#define USB_OTG_GINTSTS_EOPF_Pos (15U)
609#define USB_OTG_GINTSTS_EOPF_Msk (0x1UL << USB_OTG_GINTSTS_EOPF_Pos)
610#define USB_OTG_GINTSTS_EOPF USB_OTG_GINTSTS_EOPF_Msk
611#define USB_OTG_GINTSTS_IEPINT_Pos (18U)
612#define USB_OTG_GINTSTS_IEPINT_Msk (0x1UL << USB_OTG_GINTSTS_IEPINT_Pos)
613#define USB_OTG_GINTSTS_IEPINT USB_OTG_GINTSTS_IEPINT_Msk
614#define USB_OTG_GINTSTS_OEPINT_Pos (19U)
615#define USB_OTG_GINTSTS_OEPINT_Msk (0x1UL << USB_OTG_GINTSTS_OEPINT_Pos)
616#define USB_OTG_GINTSTS_OEPINT USB_OTG_GINTSTS_OEPINT_Msk
617#define USB_OTG_GINTSTS_IISOIXFR_Pos (20U)
618#define USB_OTG_GINTSTS_IISOIXFR_Msk (0x1UL << USB_OTG_GINTSTS_IISOIXFR_Pos)
619#define USB_OTG_GINTSTS_IISOIXFR USB_OTG_GINTSTS_IISOIXFR_Msk
620#define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos (21U)
621#define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk (0x1UL << USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos)
622#define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk
623#define USB_OTG_GINTSTS_DATAFSUSP_Pos (22U)
624#define USB_OTG_GINTSTS_DATAFSUSP_Msk (0x1UL << USB_OTG_GINTSTS_DATAFSUSP_Pos)
625#define USB_OTG_GINTSTS_DATAFSUSP USB_OTG_GINTSTS_DATAFSUSP_Msk
626#define USB_OTG_GINTSTS_HPRTINT_Pos (24U)
627#define USB_OTG_GINTSTS_HPRTINT_Msk (0x1UL << USB_OTG_GINTSTS_HPRTINT_Pos)
628#define USB_OTG_GINTSTS_HPRTINT USB_OTG_GINTSTS_HPRTINT_Msk
629#define USB_OTG_GINTSTS_HCINT_Pos (25U)
630#define USB_OTG_GINTSTS_HCINT_Msk (0x1UL << USB_OTG_GINTSTS_HCINT_Pos)
631#define USB_OTG_GINTSTS_HCINT USB_OTG_GINTSTS_HCINT_Msk
632#define USB_OTG_GINTSTS_PTXFE_Pos (26U)
633#define USB_OTG_GINTSTS_PTXFE_Msk (0x1UL << USB_OTG_GINTSTS_PTXFE_Pos)
634#define USB_OTG_GINTSTS_PTXFE USB_OTG_GINTSTS_PTXFE_Msk
635#define USB_OTG_GINTSTS_CIDSCHG_Pos (28U)
636#define USB_OTG_GINTSTS_CIDSCHG_Msk (0x1UL << USB_OTG_GINTSTS_CIDSCHG_Pos)
637#define USB_OTG_GINTSTS_CIDSCHG USB_OTG_GINTSTS_CIDSCHG_Msk
638#define USB_OTG_GINTSTS_DISCINT_Pos (29U)
639#define USB_OTG_GINTSTS_DISCINT_Msk (0x1UL << USB_OTG_GINTSTS_DISCINT_Pos)
640#define USB_OTG_GINTSTS_DISCINT USB_OTG_GINTSTS_DISCINT_Msk
641#define USB_OTG_GINTSTS_SRQINT_Pos (30U)
642#define USB_OTG_GINTSTS_SRQINT_Msk (0x1UL << USB_OTG_GINTSTS_SRQINT_Pos)
643#define USB_OTG_GINTSTS_SRQINT USB_OTG_GINTSTS_SRQINT_Msk
644#define USB_OTG_GINTSTS_WKUINT_Pos (31U)
645#define USB_OTG_GINTSTS_WKUINT_Msk (0x1UL << USB_OTG_GINTSTS_WKUINT_Pos)
646#define USB_OTG_GINTSTS_WKUINT USB_OTG_GINTSTS_WKUINT_Msk
648/******************** Bit definition for USB_OTG_GINTMSK register ********************/
649#define USB_OTG_GINTMSK_MMISM_Pos (1U)
650#define USB_OTG_GINTMSK_MMISM_Msk (0x1UL << USB_OTG_GINTMSK_MMISM_Pos)
651#define USB_OTG_GINTMSK_MMISM USB_OTG_GINTMSK_MMISM_Msk
652#define USB_OTG_GINTMSK_OTGINT_Pos (2U)
653#define USB_OTG_GINTMSK_OTGINT_Msk (0x1UL << USB_OTG_GINTMSK_OTGINT_Pos)
654#define USB_OTG_GINTMSK_OTGINT USB_OTG_GINTMSK_OTGINT_Msk
655#define USB_OTG_GINTMSK_SOFM_Pos (3U)
656#define USB_OTG_GINTMSK_SOFM_Msk (0x1UL << USB_OTG_GINTMSK_SOFM_Pos)
657#define USB_OTG_GINTMSK_SOFM USB_OTG_GINTMSK_SOFM_Msk
658#define USB_OTG_GINTMSK_RXFLVLM_Pos (4U)
659#define USB_OTG_GINTMSK_RXFLVLM_Msk (0x1UL << USB_OTG_GINTMSK_RXFLVLM_Pos)
660#define USB_OTG_GINTMSK_RXFLVLM USB_OTG_GINTMSK_RXFLVLM_Msk
661#define USB_OTG_GINTMSK_NPTXFEM_Pos (5U)
662#define USB_OTG_GINTMSK_NPTXFEM_Msk (0x1UL << USB_OTG_GINTMSK_NPTXFEM_Pos)
663#define USB_OTG_GINTMSK_NPTXFEM USB_OTG_GINTMSK_NPTXFEM_Msk
664#define USB_OTG_GINTMSK_GINAKEFFM_Pos (6U)
665#define USB_OTG_GINTMSK_GINAKEFFM_Msk (0x1UL << USB_OTG_GINTMSK_GINAKEFFM_Pos)
666#define USB_OTG_GINTMSK_GINAKEFFM USB_OTG_GINTMSK_GINAKEFFM_Msk
667#define USB_OTG_GINTMSK_GONAKEFFM_Pos (7U)
668#define USB_OTG_GINTMSK_GONAKEFFM_Msk (0x1UL << USB_OTG_GINTMSK_GONAKEFFM_Pos)
669#define USB_OTG_GINTMSK_GONAKEFFM USB_OTG_GINTMSK_GONAKEFFM_Msk
670#define USB_OTG_GINTMSK_ESUSPM_Pos (10U)
671#define USB_OTG_GINTMSK_ESUSPM_Msk (0x1UL << USB_OTG_GINTMSK_ESUSPM_Pos)
672#define USB_OTG_GINTMSK_ESUSPM USB_OTG_GINTMSK_ESUSPM_Msk
673#define USB_OTG_GINTMSK_USBSUSPM_Pos (11U)
674#define USB_OTG_GINTMSK_USBSUSPM_Msk (0x1UL << USB_OTG_GINTMSK_USBSUSPM_Pos)
675#define USB_OTG_GINTMSK_USBSUSPM USB_OTG_GINTMSK_USBSUSPM_Msk
676#define USB_OTG_GINTMSK_USBRST_Pos (12U)
677#define USB_OTG_GINTMSK_USBRST_Msk (0x1UL << USB_OTG_GINTMSK_USBRST_Pos)
678#define USB_OTG_GINTMSK_USBRST USB_OTG_GINTMSK_USBRST_Msk
679#define USB_OTG_GINTMSK_ENUMDNEM_Pos (13U)
680#define USB_OTG_GINTMSK_ENUMDNEM_Msk (0x1UL << USB_OTG_GINTMSK_ENUMDNEM_Pos)
681#define USB_OTG_GINTMSK_ENUMDNEM USB_OTG_GINTMSK_ENUMDNEM_Msk
682#define USB_OTG_GINTMSK_ISOODRPM_Pos (14U)
683#define USB_OTG_GINTMSK_ISOODRPM_Msk (0x1UL << USB_OTG_GINTMSK_ISOODRPM_Pos)
684#define USB_OTG_GINTMSK_ISOODRPM USB_OTG_GINTMSK_ISOODRPM_Msk
685#define USB_OTG_GINTMSK_EOPFM_Pos (15U)
686#define USB_OTG_GINTMSK_EOPFM_Msk (0x1UL << USB_OTG_GINTMSK_EOPFM_Pos)
687#define USB_OTG_GINTMSK_EOPFM USB_OTG_GINTMSK_EOPFM_Msk
688#define USB_OTG_GINTMSK_EPMISM_Pos (17U)
689#define USB_OTG_GINTMSK_EPMISM_Msk (0x1UL << USB_OTG_GINTMSK_EPMISM_Pos)
690#define USB_OTG_GINTMSK_EPMISM USB_OTG_GINTMSK_EPMISM_Msk
691#define USB_OTG_GINTMSK_IEPINT_Pos (18U)
692#define USB_OTG_GINTMSK_IEPINT_Msk (0x1UL << USB_OTG_GINTMSK_IEPINT_Pos)
693#define USB_OTG_GINTMSK_IEPINT USB_OTG_GINTMSK_IEPINT_Msk
694#define USB_OTG_GINTMSK_OEPINT_Pos (19U)
695#define USB_OTG_GINTMSK_OEPINT_Msk (0x1UL << USB_OTG_GINTMSK_OEPINT_Pos)
696#define USB_OTG_GINTMSK_OEPINT USB_OTG_GINTMSK_OEPINT_Msk
697#define USB_OTG_GINTMSK_IISOIXFRM_Pos (20U)
698#define USB_OTG_GINTMSK_IISOIXFRM_Msk (0x1UL << USB_OTG_GINTMSK_IISOIXFRM_Pos)
699#define USB_OTG_GINTMSK_IISOIXFRM USB_OTG_GINTMSK_IISOIXFRM_Msk
700#define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos (21U)
701#define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk (0x1UL << USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos)
702#define USB_OTG_GINTMSK_PXFRM_IISOOXFRM USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk
703#define USB_OTG_GINTMSK_FSUSPM_Pos (22U)
704#define USB_OTG_GINTMSK_FSUSPM_Msk (0x1UL << USB_OTG_GINTMSK_FSUSPM_Pos)
705#define USB_OTG_GINTMSK_FSUSPM USB_OTG_GINTMSK_FSUSPM_Msk
706#define USB_OTG_GINTMSK_PRTIM_Pos (24U)
707#define USB_OTG_GINTMSK_PRTIM_Msk (0x1UL << USB_OTG_GINTMSK_PRTIM_Pos)
708#define USB_OTG_GINTMSK_PRTIM USB_OTG_GINTMSK_PRTIM_Msk
709#define USB_OTG_GINTMSK_HCIM_Pos (25U)
710#define USB_OTG_GINTMSK_HCIM_Msk (0x1UL << USB_OTG_GINTMSK_HCIM_Pos)
711#define USB_OTG_GINTMSK_HCIM USB_OTG_GINTMSK_HCIM_Msk
712#define USB_OTG_GINTMSK_PTXFEM_Pos (26U)
713#define USB_OTG_GINTMSK_PTXFEM_Msk (0x1UL << USB_OTG_GINTMSK_PTXFEM_Pos)
714#define USB_OTG_GINTMSK_PTXFEM USB_OTG_GINTMSK_PTXFEM_Msk
715#define USB_OTG_GINTMSK_CIDSCHGM_Pos (28U)
716#define USB_OTG_GINTMSK_CIDSCHGM_Msk (0x1UL << USB_OTG_GINTMSK_CIDSCHGM_Pos)
717#define USB_OTG_GINTMSK_CIDSCHGM USB_OTG_GINTMSK_CIDSCHGM_Msk
718#define USB_OTG_GINTMSK_DISCINT_Pos (29U)
719#define USB_OTG_GINTMSK_DISCINT_Msk (0x1UL << USB_OTG_GINTMSK_DISCINT_Pos)
720#define USB_OTG_GINTMSK_DISCINT USB_OTG_GINTMSK_DISCINT_Msk
721#define USB_OTG_GINTMSK_SRQIM_Pos (30U)
722#define USB_OTG_GINTMSK_SRQIM_Msk (0x1UL << USB_OTG_GINTMSK_SRQIM_Pos)
723#define USB_OTG_GINTMSK_SRQIM USB_OTG_GINTMSK_SRQIM_Msk
724#define USB_OTG_GINTMSK_WUIM_Pos (31U)
725#define USB_OTG_GINTMSK_WUIM_Msk (0x1UL << USB_OTG_GINTMSK_WUIM_Pos)
726#define USB_OTG_GINTMSK_WUIM USB_OTG_GINTMSK_WUIM_Msk
728/******************** Bit definition for USB_OTG_DAINT register ********************/
729#define USB_OTG_DAINT_IEPINT_Pos (0U)
730#define USB_OTG_DAINT_IEPINT_Msk (0xFFFFUL << USB_OTG_DAINT_IEPINT_Pos)
731#define USB_OTG_DAINT_IEPINT USB_OTG_DAINT_IEPINT_Msk
732#define USB_OTG_DAINT_OEPINT_Pos (16U)
733#define USB_OTG_DAINT_OEPINT_Msk (0xFFFFUL << USB_OTG_DAINT_OEPINT_Pos)
734#define USB_OTG_DAINT_OEPINT USB_OTG_DAINT_OEPINT_Msk
736/******************** Bit definition for USB_OTG_HAINTMSK register ********************/
737#define USB_OTG_HAINTMSK_HAINTM_Pos (0U)
738#define USB_OTG_HAINTMSK_HAINTM_Msk (0xFFFFUL << USB_OTG_HAINTMSK_HAINTM_Pos)
739#define USB_OTG_HAINTMSK_HAINTM USB_OTG_HAINTMSK_HAINTM_Msk
741/******************** Bit definition for USB_OTG_GRXSTSP register ********************/
742#define USB_OTG_GRXSTSP_EPNUM_Pos (0U)
743#define USB_OTG_GRXSTSP_EPNUM_Msk (0xFUL << USB_OTG_GRXSTSP_EPNUM_Pos)
744#define USB_OTG_GRXSTSP_EPNUM USB_OTG_GRXSTSP_EPNUM_Msk
745#define USB_OTG_GRXSTSP_BCNT_Pos (4U)
746#define USB_OTG_GRXSTSP_BCNT_Msk (0x7FFUL << USB_OTG_GRXSTSP_BCNT_Pos)
747#define USB_OTG_GRXSTSP_BCNT USB_OTG_GRXSTSP_BCNT_Msk
748#define USB_OTG_GRXSTSP_DPID_Pos (15U)
749#define USB_OTG_GRXSTSP_DPID_Msk (0x3UL << USB_OTG_GRXSTSP_DPID_Pos)
750#define USB_OTG_GRXSTSP_DPID USB_OTG_GRXSTSP_DPID_Msk
751#define USB_OTG_GRXSTSP_PKTSTS_Pos (17U)
752#define USB_OTG_GRXSTSP_PKTSTS_Msk (0xFUL << USB_OTG_GRXSTSP_PKTSTS_Pos)
753#define USB_OTG_GRXSTSP_PKTSTS USB_OTG_GRXSTSP_PKTSTS_Msk
755/******************** Bit definition for USB_OTG_DAINTMSK register ********************/
756#define USB_OTG_DAINTMSK_IEPM_Pos (0U)
757#define USB_OTG_DAINTMSK_IEPM_Msk (0xFFFFUL << USB_OTG_DAINTMSK_IEPM_Pos)
758#define USB_OTG_DAINTMSK_IEPM USB_OTG_DAINTMSK_IEPM_Msk
759#define USB_OTG_DAINTMSK_OEPM_Pos (16U)
760#define USB_OTG_DAINTMSK_OEPM_Msk (0xFFFFUL << USB_OTG_DAINTMSK_OEPM_Pos)
761#define USB_OTG_DAINTMSK_OEPM USB_OTG_DAINTMSK_OEPM_Msk
763/******************** Bit definition for USB_OTG_GRXFSIZ register ********************/
764#define USB_OTG_GRXFSIZ_RXFD_Pos (0U)
765#define USB_OTG_GRXFSIZ_RXFD_Msk (0xFFFFUL << USB_OTG_GRXFSIZ_RXFD_Pos)
766#define USB_OTG_GRXFSIZ_RXFD USB_OTG_GRXFSIZ_RXFD_Msk
768/******************** Bit definition for USB_OTG_DVBUSDIS register ********************/
769#define USB_OTG_DVBUSDIS_VBUSDT_Pos (0U)
770#define USB_OTG_DVBUSDIS_VBUSDT_Msk (0xFFFFUL << USB_OTG_DVBUSDIS_VBUSDT_Pos)
771#define USB_OTG_DVBUSDIS_VBUSDT USB_OTG_DVBUSDIS_VBUSDT_Msk
773/******************** Bit definition for OTG register ********************/
774#define USB_OTG_NPTXFSA_Pos (0U)
775#define USB_OTG_NPTXFSA_Msk (0xFFFFUL << USB_OTG_NPTXFSA_Pos)
776#define USB_OTG_NPTXFSA USB_OTG_NPTXFSA_Msk
777#define USB_OTG_NPTXFD_Pos (16U)
778#define USB_OTG_NPTXFD_Msk (0xFFFFUL << USB_OTG_NPTXFD_Pos)
779#define USB_OTG_NPTXFD USB_OTG_NPTXFD_Msk
780#define USB_OTG_TX0FSA_Pos (0U)
781#define USB_OTG_TX0FSA_Msk (0xFFFFUL << USB_OTG_TX0FSA_Pos)
782#define USB_OTG_TX0FSA USB_OTG_TX0FSA_Msk
783#define USB_OTG_TX0FD_Pos (16U)
784#define USB_OTG_TX0FD_Msk (0xFFFFUL << USB_OTG_TX0FD_Pos)
785#define USB_OTG_TX0FD USB_OTG_TX0FD_Msk
787/******************** Bit definition for USB_OTG_DVBUSPULSE register ********************/
788#define USB_OTG_DVBUSPULSE_DVBUSP_Pos (0U)
789#define USB_OTG_DVBUSPULSE_DVBUSP_Msk (0xFFFUL << USB_OTG_DVBUSPULSE_DVBUSP_Pos)
790#define USB_OTG_DVBUSPULSE_DVBUSP USB_OTG_DVBUSPULSE_DVBUSP_Msk
792/******************** Bit definition for USB_OTG_GNPTXSTS register ********************/
793#define USB_OTG_GNPTXSTS_NPTXFSAV_Pos (0U)
794#define USB_OTG_GNPTXSTS_NPTXFSAV_Msk (0xFFFFUL << USB_OTG_GNPTXSTS_NPTXFSAV_Pos)
795#define USB_OTG_GNPTXSTS_NPTXFSAV USB_OTG_GNPTXSTS_NPTXFSAV_Msk
797#define USB_OTG_GNPTXSTS_NPTQXSAV_Pos (16U)
798#define USB_OTG_GNPTXSTS_NPTQXSAV_Msk (0xFFUL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
799#define USB_OTG_GNPTXSTS_NPTQXSAV USB_OTG_GNPTXSTS_NPTQXSAV_Msk
800#define USB_OTG_GNPTXSTS_NPTQXSAV_0 (0x01UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
801#define USB_OTG_GNPTXSTS_NPTQXSAV_1 (0x02UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
802#define USB_OTG_GNPTXSTS_NPTQXSAV_2 (0x04UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
803#define USB_OTG_GNPTXSTS_NPTQXSAV_3 (0x08UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
804#define USB_OTG_GNPTXSTS_NPTQXSAV_4 (0x10UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
805#define USB_OTG_GNPTXSTS_NPTQXSAV_5 (0x20UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
806#define USB_OTG_GNPTXSTS_NPTQXSAV_6 (0x40UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
807#define USB_OTG_GNPTXSTS_NPTQXSAV_7 (0x80UL << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)
809#define USB_OTG_GNPTXSTS_NPTXQTOP_Pos (24U)
810#define USB_OTG_GNPTXSTS_NPTXQTOP_Msk (0x7FUL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
811#define USB_OTG_GNPTXSTS_NPTXQTOP USB_OTG_GNPTXSTS_NPTXQTOP_Msk
812#define USB_OTG_GNPTXSTS_NPTXQTOP_0 (0x01UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
813#define USB_OTG_GNPTXSTS_NPTXQTOP_1 (0x02UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
814#define USB_OTG_GNPTXSTS_NPTXQTOP_2 (0x04UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
815#define USB_OTG_GNPTXSTS_NPTXQTOP_3 (0x08UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
816#define USB_OTG_GNPTXSTS_NPTXQTOP_4 (0x10UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
817#define USB_OTG_GNPTXSTS_NPTXQTOP_5 (0x20UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
818#define USB_OTG_GNPTXSTS_NPTXQTOP_6 (0x40UL << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)
820/******************** Bit definition for USB_OTG_DTHRCTL register ********************/
821#define USB_OTG_DTHRCTL_NONISOTHREN_Pos (0U)
822#define USB_OTG_DTHRCTL_NONISOTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_NONISOTHREN_Pos)
823#define USB_OTG_DTHRCTL_NONISOTHREN USB_OTG_DTHRCTL_NONISOTHREN_Msk
824#define USB_OTG_DTHRCTL_ISOTHREN_Pos (1U)
825#define USB_OTG_DTHRCTL_ISOTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_ISOTHREN_Pos)
826#define USB_OTG_DTHRCTL_ISOTHREN USB_OTG_DTHRCTL_ISOTHREN_Msk
828#define USB_OTG_DTHRCTL_TXTHRLEN_Pos (2U)
829#define USB_OTG_DTHRCTL_TXTHRLEN_Msk (0x1FFUL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
830#define USB_OTG_DTHRCTL_TXTHRLEN USB_OTG_DTHRCTL_TXTHRLEN_Msk
831#define USB_OTG_DTHRCTL_TXTHRLEN_0 (0x001UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
832#define USB_OTG_DTHRCTL_TXTHRLEN_1 (0x002UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
833#define USB_OTG_DTHRCTL_TXTHRLEN_2 (0x004UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
834#define USB_OTG_DTHRCTL_TXTHRLEN_3 (0x008UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
835#define USB_OTG_DTHRCTL_TXTHRLEN_4 (0x010UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
836#define USB_OTG_DTHRCTL_TXTHRLEN_5 (0x020UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
837#define USB_OTG_DTHRCTL_TXTHRLEN_6 (0x040UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
838#define USB_OTG_DTHRCTL_TXTHRLEN_7 (0x080UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
839#define USB_OTG_DTHRCTL_TXTHRLEN_8 (0x100UL << USB_OTG_DTHRCTL_TXTHRLEN_Pos)
840#define USB_OTG_DTHRCTL_RXTHREN_Pos (16U)
841#define USB_OTG_DTHRCTL_RXTHREN_Msk (0x1UL << USB_OTG_DTHRCTL_RXTHREN_Pos)
842#define USB_OTG_DTHRCTL_RXTHREN USB_OTG_DTHRCTL_RXTHREN_Msk
844#define USB_OTG_DTHRCTL_RXTHRLEN_Pos (17U)
845#define USB_OTG_DTHRCTL_RXTHRLEN_Msk (0x1FFUL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
846#define USB_OTG_DTHRCTL_RXTHRLEN USB_OTG_DTHRCTL_RXTHRLEN_Msk
847#define USB_OTG_DTHRCTL_RXTHRLEN_0 (0x001UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
848#define USB_OTG_DTHRCTL_RXTHRLEN_1 (0x002UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
849#define USB_OTG_DTHRCTL_RXTHRLEN_2 (0x004UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
850#define USB_OTG_DTHRCTL_RXTHRLEN_3 (0x008UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
851#define USB_OTG_DTHRCTL_RXTHRLEN_4 (0x010UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
852#define USB_OTG_DTHRCTL_RXTHRLEN_5 (0x020UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
853#define USB_OTG_DTHRCTL_RXTHRLEN_6 (0x040UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
854#define USB_OTG_DTHRCTL_RXTHRLEN_7 (0x080UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
855#define USB_OTG_DTHRCTL_RXTHRLEN_8 (0x100UL << USB_OTG_DTHRCTL_RXTHRLEN_Pos)
856#define USB_OTG_DTHRCTL_ARPEN_Pos (27U)
857#define USB_OTG_DTHRCTL_ARPEN_Msk (0x1UL << USB_OTG_DTHRCTL_ARPEN_Pos)
858#define USB_OTG_DTHRCTL_ARPEN USB_OTG_DTHRCTL_ARPEN_Msk
860/******************** Bit definition for USB_OTG_DIEPEMPMSK register ********************/
861#define USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos (0U)
862#define USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk (0xFFFFUL << USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos)
863#define USB_OTG_DIEPEMPMSK_INEPTXFEM USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk
865/******************** Bit definition for USB_OTG_DEACHINT register ********************/
866#define USB_OTG_DEACHINT_IEP1INT_Pos (1U)
867#define USB_OTG_DEACHINT_IEP1INT_Msk (0x1UL << USB_OTG_DEACHINT_IEP1INT_Pos)
868#define USB_OTG_DEACHINT_IEP1INT USB_OTG_DEACHINT_IEP1INT_Msk
869#define USB_OTG_DEACHINT_OEP1INT_Pos (17U)
870#define USB_OTG_DEACHINT_OEP1INT_Msk (0x1UL << USB_OTG_DEACHINT_OEP1INT_Pos)
871#define USB_OTG_DEACHINT_OEP1INT USB_OTG_DEACHINT_OEP1INT_Msk
873/******************** Bit definition for USB_OTG_GCCFG register ********************/
874#define USB_OTG_GCCFG_PWRDWN_Pos (16U)
875#define USB_OTG_GCCFG_PWRDWN_Msk (0x1UL << USB_OTG_GCCFG_PWRDWN_Pos)
876#define USB_OTG_GCCFG_PWRDWN USB_OTG_GCCFG_PWRDWN_Msk
877#define USB_OTG_GCCFG_VBUSASEN_Pos (18U)
878#define USB_OTG_GCCFG_VBUSASEN_Msk (0x1UL << USB_OTG_GCCFG_VBUSASEN_Pos)
879#define USB_OTG_GCCFG_VBUSASEN USB_OTG_GCCFG_VBUSASEN_Msk
880#define USB_OTG_GCCFG_VBUSBSEN_Pos (19U)
881#define USB_OTG_GCCFG_VBUSBSEN_Msk (0x1UL << USB_OTG_GCCFG_VBUSBSEN_Pos)
882#define USB_OTG_GCCFG_VBUSBSEN USB_OTG_GCCFG_VBUSBSEN_Msk
883#define USB_OTG_GCCFG_SOFOUTEN_Pos (20U)
884#define USB_OTG_GCCFG_SOFOUTEN_Msk (0x1UL << USB_OTG_GCCFG_SOFOUTEN_Pos)
885#define USB_OTG_GCCFG_SOFOUTEN USB_OTG_GCCFG_SOFOUTEN_Msk
887/******************** Bit definition for USB_OTG_DEACHINTMSK register ********************/
888#define USB_OTG_DEACHINTMSK_IEP1INTM_Pos (1U)
889#define USB_OTG_DEACHINTMSK_IEP1INTM_Msk (0x1UL << USB_OTG_DEACHINTMSK_IEP1INTM_Pos)
890#define USB_OTG_DEACHINTMSK_IEP1INTM USB_OTG_DEACHINTMSK_IEP1INTM_Msk
891#define USB_OTG_DEACHINTMSK_OEP1INTM_Pos (17U)
892#define USB_OTG_DEACHINTMSK_OEP1INTM_Msk (0x1UL << USB_OTG_DEACHINTMSK_OEP1INTM_Pos)
893#define USB_OTG_DEACHINTMSK_OEP1INTM USB_OTG_DEACHINTMSK_OEP1INTM_Msk
895/******************** Bit definition for USB_OTG_CID register ********************/
896#define USB_OTG_CID_PRODUCT_ID_Pos (0U)
897#define USB_OTG_CID_PRODUCT_ID_Msk (0xFFFFFFFFUL << USB_OTG_CID_PRODUCT_ID_Pos)
898#define USB_OTG_CID_PRODUCT_ID USB_OTG_CID_PRODUCT_ID_Msk
900/******************** Bit definition for USB_OTG_DIEPEACHMSK1 register ********************/
901#define USB_OTG_DIEPEACHMSK1_XFRCM_Pos (0U)
902#define USB_OTG_DIEPEACHMSK1_XFRCM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_XFRCM_Pos)
903#define USB_OTG_DIEPEACHMSK1_XFRCM USB_OTG_DIEPEACHMSK1_XFRCM_Msk
904#define USB_OTG_DIEPEACHMSK1_EPDM_Pos (1U)
905#define USB_OTG_DIEPEACHMSK1_EPDM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_EPDM_Pos)
906#define USB_OTG_DIEPEACHMSK1_EPDM USB_OTG_DIEPEACHMSK1_EPDM_Msk
907#define USB_OTG_DIEPEACHMSK1_TOM_Pos (3U)
908#define USB_OTG_DIEPEACHMSK1_TOM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_TOM_Pos)
909#define USB_OTG_DIEPEACHMSK1_TOM USB_OTG_DIEPEACHMSK1_TOM_Msk
910#define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos (4U)
911#define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos)
912#define USB_OTG_DIEPEACHMSK1_ITTXFEMSK USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk
913#define USB_OTG_DIEPEACHMSK1_INEPNMM_Pos (5U)
914#define USB_OTG_DIEPEACHMSK1_INEPNMM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_INEPNMM_Pos)
915#define USB_OTG_DIEPEACHMSK1_INEPNMM USB_OTG_DIEPEACHMSK1_INEPNMM_Msk
916#define USB_OTG_DIEPEACHMSK1_INEPNEM_Pos (6U)
917#define USB_OTG_DIEPEACHMSK1_INEPNEM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_INEPNEM_Pos)
918#define USB_OTG_DIEPEACHMSK1_INEPNEM USB_OTG_DIEPEACHMSK1_INEPNEM_Msk
919#define USB_OTG_DIEPEACHMSK1_TXFURM_Pos (8U)
920#define USB_OTG_DIEPEACHMSK1_TXFURM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_TXFURM_Pos)
921#define USB_OTG_DIEPEACHMSK1_TXFURM USB_OTG_DIEPEACHMSK1_TXFURM_Msk
922#define USB_OTG_DIEPEACHMSK1_BIM_Pos (9U)
923#define USB_OTG_DIEPEACHMSK1_BIM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_BIM_Pos)
924#define USB_OTG_DIEPEACHMSK1_BIM USB_OTG_DIEPEACHMSK1_BIM_Msk
925#define USB_OTG_DIEPEACHMSK1_NAKM_Pos (13U)
926#define USB_OTG_DIEPEACHMSK1_NAKM_Msk (0x1UL << USB_OTG_DIEPEACHMSK1_NAKM_Pos)
927#define USB_OTG_DIEPEACHMSK1_NAKM USB_OTG_DIEPEACHMSK1_NAKM_Msk
929/******************** Bit definition for USB_OTG_HPRT register ********************/
930#define USB_OTG_HPRT_PCSTS_Pos (0U)
931#define USB_OTG_HPRT_PCSTS_Msk (0x1UL << USB_OTG_HPRT_PCSTS_Pos)
932#define USB_OTG_HPRT_PCSTS USB_OTG_HPRT_PCSTS_Msk
933#define USB_OTG_HPRT_PCDET_Pos (1U)
934#define USB_OTG_HPRT_PCDET_Msk (0x1UL << USB_OTG_HPRT_PCDET_Pos)
935#define USB_OTG_HPRT_PCDET USB_OTG_HPRT_PCDET_Msk
936#define USB_OTG_HPRT_PENA_Pos (2U)
937#define USB_OTG_HPRT_PENA_Msk (0x1UL << USB_OTG_HPRT_PENA_Pos)
938#define USB_OTG_HPRT_PENA USB_OTG_HPRT_PENA_Msk
939#define USB_OTG_HPRT_PENCHNG_Pos (3U)
940#define USB_OTG_HPRT_PENCHNG_Msk (0x1UL << USB_OTG_HPRT_PENCHNG_Pos)
941#define USB_OTG_HPRT_PENCHNG USB_OTG_HPRT_PENCHNG_Msk
942#define USB_OTG_HPRT_POCA_Pos (4U)
943#define USB_OTG_HPRT_POCA_Msk (0x1UL << USB_OTG_HPRT_POCA_Pos)
944#define USB_OTG_HPRT_POCA USB_OTG_HPRT_POCA_Msk
945#define USB_OTG_HPRT_POCCHNG_Pos (5U)
946#define USB_OTG_HPRT_POCCHNG_Msk (0x1UL << USB_OTG_HPRT_POCCHNG_Pos)
947#define USB_OTG_HPRT_POCCHNG USB_OTG_HPRT_POCCHNG_Msk
948#define USB_OTG_HPRT_PRES_Pos (6U)
949#define USB_OTG_HPRT_PRES_Msk (0x1UL << USB_OTG_HPRT_PRES_Pos)
950#define USB_OTG_HPRT_PRES USB_OTG_HPRT_PRES_Msk
951#define USB_OTG_HPRT_PSUSP_Pos (7U)
952#define USB_OTG_HPRT_PSUSP_Msk (0x1UL << USB_OTG_HPRT_PSUSP_Pos)
953#define USB_OTG_HPRT_PSUSP USB_OTG_HPRT_PSUSP_Msk
954#define USB_OTG_HPRT_PRST_Pos (8U)
955#define USB_OTG_HPRT_PRST_Msk (0x1UL << USB_OTG_HPRT_PRST_Pos)
956#define USB_OTG_HPRT_PRST USB_OTG_HPRT_PRST_Msk
958#define USB_OTG_HPRT_PLSTS_Pos (10U)
959#define USB_OTG_HPRT_PLSTS_Msk (0x3UL << USB_OTG_HPRT_PLSTS_Pos)
960#define USB_OTG_HPRT_PLSTS USB_OTG_HPRT_PLSTS_Msk
961#define USB_OTG_HPRT_PLSTS_0 (0x1UL << USB_OTG_HPRT_PLSTS_Pos)
962#define USB_OTG_HPRT_PLSTS_1 (0x2UL << USB_OTG_HPRT_PLSTS_Pos)
963#define USB_OTG_HPRT_PPWR_Pos (12U)
964#define USB_OTG_HPRT_PPWR_Msk (0x1UL << USB_OTG_HPRT_PPWR_Pos)
965#define USB_OTG_HPRT_PPWR USB_OTG_HPRT_PPWR_Msk
967#define USB_OTG_HPRT_PTCTL_Pos (13U)
968#define USB_OTG_HPRT_PTCTL_Msk (0xFUL << USB_OTG_HPRT_PTCTL_Pos)
969#define USB_OTG_HPRT_PTCTL USB_OTG_HPRT_PTCTL_Msk
970#define USB_OTG_HPRT_PTCTL_0 (0x1UL << USB_OTG_HPRT_PTCTL_Pos)
971#define USB_OTG_HPRT_PTCTL_1 (0x2UL << USB_OTG_HPRT_PTCTL_Pos)
972#define USB_OTG_HPRT_PTCTL_2 (0x4UL << USB_OTG_HPRT_PTCTL_Pos)
973#define USB_OTG_HPRT_PTCTL_3 (0x8UL << USB_OTG_HPRT_PTCTL_Pos)
975#define USB_OTG_HPRT_PSPD_Pos (17U)
976#define USB_OTG_HPRT_PSPD_Msk (0x3UL << USB_OTG_HPRT_PSPD_Pos)
977#define USB_OTG_HPRT_PSPD USB_OTG_HPRT_PSPD_Msk
978#define USB_OTG_HPRT_PSPD_0 (0x1UL << USB_OTG_HPRT_PSPD_Pos)
979#define USB_OTG_HPRT_PSPD_1 (0x2UL << USB_OTG_HPRT_PSPD_Pos)
981/******************** Bit definition for USB_OTG_DOEPEACHMSK1 register ********************/
982#define USB_OTG_DOEPEACHMSK1_XFRCM_Pos (0U)
983#define USB_OTG_DOEPEACHMSK1_XFRCM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_XFRCM_Pos)
984#define USB_OTG_DOEPEACHMSK1_XFRCM USB_OTG_DOEPEACHMSK1_XFRCM_Msk
985#define USB_OTG_DOEPEACHMSK1_EPDM_Pos (1U)
986#define USB_OTG_DOEPEACHMSK1_EPDM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_EPDM_Pos)
987#define USB_OTG_DOEPEACHMSK1_EPDM USB_OTG_DOEPEACHMSK1_EPDM_Msk
988#define USB_OTG_DOEPEACHMSK1_TOM_Pos (3U)
989#define USB_OTG_DOEPEACHMSK1_TOM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_TOM_Pos)
990#define USB_OTG_DOEPEACHMSK1_TOM USB_OTG_DOEPEACHMSK1_TOM_Msk
991#define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos (4U)
992#define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos)
993#define USB_OTG_DOEPEACHMSK1_ITTXFEMSK USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk
994#define USB_OTG_DOEPEACHMSK1_INEPNMM_Pos (5U)
995#define USB_OTG_DOEPEACHMSK1_INEPNMM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_INEPNMM_Pos)
996#define USB_OTG_DOEPEACHMSK1_INEPNMM USB_OTG_DOEPEACHMSK1_INEPNMM_Msk
997#define USB_OTG_DOEPEACHMSK1_INEPNEM_Pos (6U)
998#define USB_OTG_DOEPEACHMSK1_INEPNEM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_INEPNEM_Pos)
999#define USB_OTG_DOEPEACHMSK1_INEPNEM USB_OTG_DOEPEACHMSK1_INEPNEM_Msk
1000#define USB_OTG_DOEPEACHMSK1_TXFURM_Pos (8U)
1001#define USB_OTG_DOEPEACHMSK1_TXFURM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_TXFURM_Pos)
1002#define USB_OTG_DOEPEACHMSK1_TXFURM USB_OTG_DOEPEACHMSK1_TXFURM_Msk
1003#define USB_OTG_DOEPEACHMSK1_BIM_Pos (9U)
1004#define USB_OTG_DOEPEACHMSK1_BIM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_BIM_Pos)
1005#define USB_OTG_DOEPEACHMSK1_BIM USB_OTG_DOEPEACHMSK1_BIM_Msk
1006#define USB_OTG_DOEPEACHMSK1_BERRM_Pos (12U)
1007#define USB_OTG_DOEPEACHMSK1_BERRM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_BERRM_Pos)
1008#define USB_OTG_DOEPEACHMSK1_BERRM USB_OTG_DOEPEACHMSK1_BERRM_Msk
1009#define USB_OTG_DOEPEACHMSK1_NAKM_Pos (13U)
1010#define USB_OTG_DOEPEACHMSK1_NAKM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_NAKM_Pos)
1011#define USB_OTG_DOEPEACHMSK1_NAKM USB_OTG_DOEPEACHMSK1_NAKM_Msk
1012#define USB_OTG_DOEPEACHMSK1_NYETM_Pos (14U)
1013#define USB_OTG_DOEPEACHMSK1_NYETM_Msk (0x1UL << USB_OTG_DOEPEACHMSK1_NYETM_Pos)
1014#define USB_OTG_DOEPEACHMSK1_NYETM USB_OTG_DOEPEACHMSK1_NYETM_Msk
1016/******************** Bit definition for USB_OTG_HPTXFSIZ register ********************/
1017#define USB_OTG_HPTXFSIZ_PTXSA_Pos (0U)
1018#define USB_OTG_HPTXFSIZ_PTXSA_Msk (0xFFFFUL << USB_OTG_HPTXFSIZ_PTXSA_Pos)
1019#define USB_OTG_HPTXFSIZ_PTXSA USB_OTG_HPTXFSIZ_PTXSA_Msk
1020#define USB_OTG_HPTXFSIZ_PTXFD_Pos (16U)
1021#define USB_OTG_HPTXFSIZ_PTXFD_Msk (0xFFFFUL << USB_OTG_HPTXFSIZ_PTXFD_Pos)
1022#define USB_OTG_HPTXFSIZ_PTXFD USB_OTG_HPTXFSIZ_PTXFD_Msk
1024/******************** Bit definition for USB_OTG_DIEPCTL register ********************/
1025#define USB_OTG_DIEPCTL_MPSIZ_Pos (0U)
1026#define USB_OTG_DIEPCTL_MPSIZ_Msk (0x7FFUL << USB_OTG_DIEPCTL_MPSIZ_Pos)
1027#define USB_OTG_DIEPCTL_MPSIZ USB_OTG_DIEPCTL_MPSIZ_Msk
1028#define USB_OTG_DIEPCTL_USBAEP_Pos (15U)
1029#define USB_OTG_DIEPCTL_USBAEP_Msk (0x1UL << USB_OTG_DIEPCTL_USBAEP_Pos)
1030#define USB_OTG_DIEPCTL_USBAEP USB_OTG_DIEPCTL_USBAEP_Msk
1031#define USB_OTG_DIEPCTL_EONUM_DPID_Pos (16U)
1032#define USB_OTG_DIEPCTL_EONUM_DPID_Msk (0x1UL << USB_OTG_DIEPCTL_EONUM_DPID_Pos)
1033#define USB_OTG_DIEPCTL_EONUM_DPID USB_OTG_DIEPCTL_EONUM_DPID_Msk
1034#define USB_OTG_DIEPCTL_NAKSTS_Pos (17U)
1035#define USB_OTG_DIEPCTL_NAKSTS_Msk (0x1UL << USB_OTG_DIEPCTL_NAKSTS_Pos)
1036#define USB_OTG_DIEPCTL_NAKSTS USB_OTG_DIEPCTL_NAKSTS_Msk
1038#define USB_OTG_DIEPCTL_EPTYP_Pos (18U)
1039#define USB_OTG_DIEPCTL_EPTYP_Msk (0x3UL << USB_OTG_DIEPCTL_EPTYP_Pos)
1040#define USB_OTG_DIEPCTL_EPTYP USB_OTG_DIEPCTL_EPTYP_Msk
1041#define USB_OTG_DIEPCTL_EPTYP_0 (0x1UL << USB_OTG_DIEPCTL_EPTYP_Pos)
1042#define USB_OTG_DIEPCTL_EPTYP_1 (0x2UL << USB_OTG_DIEPCTL_EPTYP_Pos)
1043#define USB_OTG_DIEPCTL_STALL_Pos (21U)
1044#define USB_OTG_DIEPCTL_STALL_Msk (0x1UL << USB_OTG_DIEPCTL_STALL_Pos)
1045#define USB_OTG_DIEPCTL_STALL USB_OTG_DIEPCTL_STALL_Msk
1047#define USB_OTG_DIEPCTL_TXFNUM_Pos (22U)
1048#define USB_OTG_DIEPCTL_TXFNUM_Msk (0xFUL << USB_OTG_DIEPCTL_TXFNUM_Pos)
1049#define USB_OTG_DIEPCTL_TXFNUM USB_OTG_DIEPCTL_TXFNUM_Msk
1050#define USB_OTG_DIEPCTL_TXFNUM_0 (0x1UL << USB_OTG_DIEPCTL_TXFNUM_Pos)
1051#define USB_OTG_DIEPCTL_TXFNUM_1 (0x2UL << USB_OTG_DIEPCTL_TXFNUM_Pos)
1052#define USB_OTG_DIEPCTL_TXFNUM_2 (0x4UL << USB_OTG_DIEPCTL_TXFNUM_Pos)
1053#define USB_OTG_DIEPCTL_TXFNUM_3 (0x8UL << USB_OTG_DIEPCTL_TXFNUM_Pos)
1054#define USB_OTG_DIEPCTL_CNAK_Pos (26U)
1055#define USB_OTG_DIEPCTL_CNAK_Msk (0x1UL << USB_OTG_DIEPCTL_CNAK_Pos)
1056#define USB_OTG_DIEPCTL_CNAK USB_OTG_DIEPCTL_CNAK_Msk
1057#define USB_OTG_DIEPCTL_SNAK_Pos (27U)
1058#define USB_OTG_DIEPCTL_SNAK_Msk (0x1UL << USB_OTG_DIEPCTL_SNAK_Pos)
1059#define USB_OTG_DIEPCTL_SNAK USB_OTG_DIEPCTL_SNAK_Msk
1060#define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos (28U)
1061#define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk (0x1UL << USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos)
1062#define USB_OTG_DIEPCTL_SD0PID_SEVNFRM USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk
1063#define USB_OTG_DIEPCTL_SODDFRM_Pos (29U)
1064#define USB_OTG_DIEPCTL_SODDFRM_Msk (0x1UL << USB_OTG_DIEPCTL_SODDFRM_Pos)
1065#define USB_OTG_DIEPCTL_SODDFRM USB_OTG_DIEPCTL_SODDFRM_Msk
1066#define USB_OTG_DIEPCTL_EPDIS_Pos (30U)
1067#define USB_OTG_DIEPCTL_EPDIS_Msk (0x1UL << USB_OTG_DIEPCTL_EPDIS_Pos)
1068#define USB_OTG_DIEPCTL_EPDIS USB_OTG_DIEPCTL_EPDIS_Msk
1069#define USB_OTG_DIEPCTL_EPENA_Pos (31U)
1070#define USB_OTG_DIEPCTL_EPENA_Msk (0x1UL << USB_OTG_DIEPCTL_EPENA_Pos)
1071#define USB_OTG_DIEPCTL_EPENA USB_OTG_DIEPCTL_EPENA_Msk
1073/******************** Bit definition for USB_OTG_HCCHAR register ********************/
1074#define USB_OTG_HCCHAR_MPSIZ_Pos (0U)
1075#define USB_OTG_HCCHAR_MPSIZ_Msk (0x7FFUL << USB_OTG_HCCHAR_MPSIZ_Pos)
1076#define USB_OTG_HCCHAR_MPSIZ USB_OTG_HCCHAR_MPSIZ_Msk
1078#define USB_OTG_HCCHAR_EPNUM_Pos (11U)
1079#define USB_OTG_HCCHAR_EPNUM_Msk (0xFUL << USB_OTG_HCCHAR_EPNUM_Pos)
1080#define USB_OTG_HCCHAR_EPNUM USB_OTG_HCCHAR_EPNUM_Msk
1081#define USB_OTG_HCCHAR_EPNUM_0 (0x1UL << USB_OTG_HCCHAR_EPNUM_Pos)
1082#define USB_OTG_HCCHAR_EPNUM_1 (0x2UL << USB_OTG_HCCHAR_EPNUM_Pos)
1083#define USB_OTG_HCCHAR_EPNUM_2 (0x4UL << USB_OTG_HCCHAR_EPNUM_Pos)
1084#define USB_OTG_HCCHAR_EPNUM_3 (0x8UL << USB_OTG_HCCHAR_EPNUM_Pos)
1085#define USB_OTG_HCCHAR_EPDIR_Pos (15U)
1086#define USB_OTG_HCCHAR_EPDIR_Msk (0x1UL << USB_OTG_HCCHAR_EPDIR_Pos)
1087#define USB_OTG_HCCHAR_EPDIR USB_OTG_HCCHAR_EPDIR_Msk
1088#define USB_OTG_HCCHAR_LSDEV_Pos (17U)
1089#define USB_OTG_HCCHAR_LSDEV_Msk (0x1UL << USB_OTG_HCCHAR_LSDEV_Pos)
1090#define USB_OTG_HCCHAR_LSDEV USB_OTG_HCCHAR_LSDEV_Msk
1092#define USB_OTG_HCCHAR_EPTYP_Pos (18U)
1093#define USB_OTG_HCCHAR_EPTYP_Msk (0x3UL << USB_OTG_HCCHAR_EPTYP_Pos)
1094#define USB_OTG_HCCHAR_EPTYP USB_OTG_HCCHAR_EPTYP_Msk
1095#define USB_OTG_HCCHAR_EPTYP_0 (0x1UL << USB_OTG_HCCHAR_EPTYP_Pos)
1096#define USB_OTG_HCCHAR_EPTYP_1 (0x2UL << USB_OTG_HCCHAR_EPTYP_Pos)
1098#define USB_OTG_HCCHAR_MC_Pos (20U)
1099#define USB_OTG_HCCHAR_MC_Msk (0x3UL << USB_OTG_HCCHAR_MC_Pos)
1100#define USB_OTG_HCCHAR_MC USB_OTG_HCCHAR_MC_Msk
1101#define USB_OTG_HCCHAR_MC_0 (0x1UL << USB_OTG_HCCHAR_MC_Pos)
1102#define USB_OTG_HCCHAR_MC_1 (0x2UL << USB_OTG_HCCHAR_MC_Pos)
1104#define USB_OTG_HCCHAR_DAD_Pos (22U)
1105#define USB_OTG_HCCHAR_DAD_Msk (0x7FUL << USB_OTG_HCCHAR_DAD_Pos)
1106#define USB_OTG_HCCHAR_DAD USB_OTG_HCCHAR_DAD_Msk
1107#define USB_OTG_HCCHAR_DAD_0 (0x01UL << USB_OTG_HCCHAR_DAD_Pos)
1108#define USB_OTG_HCCHAR_DAD_1 (0x02UL << USB_OTG_HCCHAR_DAD_Pos)
1109#define USB_OTG_HCCHAR_DAD_2 (0x04UL << USB_OTG_HCCHAR_DAD_Pos)
1110#define USB_OTG_HCCHAR_DAD_3 (0x08UL << USB_OTG_HCCHAR_DAD_Pos)
1111#define USB_OTG_HCCHAR_DAD_4 (0x10UL << USB_OTG_HCCHAR_DAD_Pos)
1112#define USB_OTG_HCCHAR_DAD_5 (0x20UL << USB_OTG_HCCHAR_DAD_Pos)
1113#define USB_OTG_HCCHAR_DAD_6 (0x40UL << USB_OTG_HCCHAR_DAD_Pos)
1114#define USB_OTG_HCCHAR_ODDFRM_Pos (29U)
1115#define USB_OTG_HCCHAR_ODDFRM_Msk (0x1UL << USB_OTG_HCCHAR_ODDFRM_Pos)
1116#define USB_OTG_HCCHAR_ODDFRM USB_OTG_HCCHAR_ODDFRM_Msk
1117#define USB_OTG_HCCHAR_CHDIS_Pos (30U)
1118#define USB_OTG_HCCHAR_CHDIS_Msk (0x1UL << USB_OTG_HCCHAR_CHDIS_Pos)
1119#define USB_OTG_HCCHAR_CHDIS USB_OTG_HCCHAR_CHDIS_Msk
1120#define USB_OTG_HCCHAR_CHENA_Pos (31U)
1121#define USB_OTG_HCCHAR_CHENA_Msk (0x1UL << USB_OTG_HCCHAR_CHENA_Pos)
1122#define USB_OTG_HCCHAR_CHENA USB_OTG_HCCHAR_CHENA_Msk
1124/******************** Bit definition for USB_OTG_HCSPLT register ********************/
1125
1126#define USB_OTG_HCSPLT_PRTADDR_Pos (0U)
1127#define USB_OTG_HCSPLT_PRTADDR_Msk (0x7FUL << USB_OTG_HCSPLT_PRTADDR_Pos)
1128#define USB_OTG_HCSPLT_PRTADDR USB_OTG_HCSPLT_PRTADDR_Msk
1129#define USB_OTG_HCSPLT_PRTADDR_0 (0x01UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1130#define USB_OTG_HCSPLT_PRTADDR_1 (0x02UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1131#define USB_OTG_HCSPLT_PRTADDR_2 (0x04UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1132#define USB_OTG_HCSPLT_PRTADDR_3 (0x08UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1133#define USB_OTG_HCSPLT_PRTADDR_4 (0x10UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1134#define USB_OTG_HCSPLT_PRTADDR_5 (0x20UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1135#define USB_OTG_HCSPLT_PRTADDR_6 (0x40UL << USB_OTG_HCSPLT_PRTADDR_Pos)
1137#define USB_OTG_HCSPLT_HUBADDR_Pos (7U)
1138#define USB_OTG_HCSPLT_HUBADDR_Msk (0x7FUL << USB_OTG_HCSPLT_HUBADDR_Pos)
1139#define USB_OTG_HCSPLT_HUBADDR USB_OTG_HCSPLT_HUBADDR_Msk
1140#define USB_OTG_HCSPLT_HUBADDR_0 (0x01UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1141#define USB_OTG_HCSPLT_HUBADDR_1 (0x02UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1142#define USB_OTG_HCSPLT_HUBADDR_2 (0x04UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1143#define USB_OTG_HCSPLT_HUBADDR_3 (0x08UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1144#define USB_OTG_HCSPLT_HUBADDR_4 (0x10UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1145#define USB_OTG_HCSPLT_HUBADDR_5 (0x20UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1146#define USB_OTG_HCSPLT_HUBADDR_6 (0x40UL << USB_OTG_HCSPLT_HUBADDR_Pos)
1148#define USB_OTG_HCSPLT_XACTPOS_Pos (14U)
1149#define USB_OTG_HCSPLT_XACTPOS_Msk (0x3UL << USB_OTG_HCSPLT_XACTPOS_Pos)
1150#define USB_OTG_HCSPLT_XACTPOS USB_OTG_HCSPLT_XACTPOS_Msk
1151#define USB_OTG_HCSPLT_XACTPOS_0 (0x1UL << USB_OTG_HCSPLT_XACTPOS_Pos)
1152#define USB_OTG_HCSPLT_XACTPOS_1 (0x2UL << USB_OTG_HCSPLT_XACTPOS_Pos)
1153#define USB_OTG_HCSPLT_COMPLSPLT_Pos (16U)
1154#define USB_OTG_HCSPLT_COMPLSPLT_Msk (0x1UL << USB_OTG_HCSPLT_COMPLSPLT_Pos)
1155#define USB_OTG_HCSPLT_COMPLSPLT USB_OTG_HCSPLT_COMPLSPLT_Msk
1156#define USB_OTG_HCSPLT_SPLITEN_Pos (31U)
1157#define USB_OTG_HCSPLT_SPLITEN_Msk (0x1UL << USB_OTG_HCSPLT_SPLITEN_Pos)
1158#define USB_OTG_HCSPLT_SPLITEN USB_OTG_HCSPLT_SPLITEN_Msk
1160/******************** Bit definition for USB_OTG_HCINT register ********************/
1161#define USB_OTG_HCINT_XFRC_Pos (0U)
1162#define USB_OTG_HCINT_XFRC_Msk (0x1UL << USB_OTG_HCINT_XFRC_Pos)
1163#define USB_OTG_HCINT_XFRC USB_OTG_HCINT_XFRC_Msk
1164#define USB_OTG_HCINT_CHH_Pos (1U)
1165#define USB_OTG_HCINT_CHH_Msk (0x1UL << USB_OTG_HCINT_CHH_Pos)
1166#define USB_OTG_HCINT_CHH USB_OTG_HCINT_CHH_Msk
1167#define USB_OTG_HCINT_AHBERR_Pos (2U)
1168#define USB_OTG_HCINT_AHBERR_Msk (0x1UL << USB_OTG_HCINT_AHBERR_Pos)
1169#define USB_OTG_HCINT_AHBERR USB_OTG_HCINT_AHBERR_Msk
1170#define USB_OTG_HCINT_STALL_Pos (3U)
1171#define USB_OTG_HCINT_STALL_Msk (0x1UL << USB_OTG_HCINT_STALL_Pos)
1172#define USB_OTG_HCINT_STALL USB_OTG_HCINT_STALL_Msk
1173#define USB_OTG_HCINT_NAK_Pos (4U)
1174#define USB_OTG_HCINT_NAK_Msk (0x1UL << USB_OTG_HCINT_NAK_Pos)
1175#define USB_OTG_HCINT_NAK USB_OTG_HCINT_NAK_Msk
1176#define USB_OTG_HCINT_ACK_Pos (5U)
1177#define USB_OTG_HCINT_ACK_Msk (0x1UL << USB_OTG_HCINT_ACK_Pos)
1178#define USB_OTG_HCINT_ACK USB_OTG_HCINT_ACK_Msk
1179#define USB_OTG_HCINT_NYET_Pos (6U)
1180#define USB_OTG_HCINT_NYET_Msk (0x1UL << USB_OTG_HCINT_NYET_Pos)
1181#define USB_OTG_HCINT_NYET USB_OTG_HCINT_NYET_Msk
1182#define USB_OTG_HCINT_TXERR_Pos (7U)
1183#define USB_OTG_HCINT_TXERR_Msk (0x1UL << USB_OTG_HCINT_TXERR_Pos)
1184#define USB_OTG_HCINT_TXERR USB_OTG_HCINT_TXERR_Msk
1185#define USB_OTG_HCINT_BBERR_Pos (8U)
1186#define USB_OTG_HCINT_BBERR_Msk (0x1UL << USB_OTG_HCINT_BBERR_Pos)
1187#define USB_OTG_HCINT_BBERR USB_OTG_HCINT_BBERR_Msk
1188#define USB_OTG_HCINT_FRMOR_Pos (9U)
1189#define USB_OTG_HCINT_FRMOR_Msk (0x1UL << USB_OTG_HCINT_FRMOR_Pos)
1190#define USB_OTG_HCINT_FRMOR USB_OTG_HCINT_FRMOR_Msk
1191#define USB_OTG_HCINT_DTERR_Pos (10U)
1192#define USB_OTG_HCINT_DTERR_Msk (0x1UL << USB_OTG_HCINT_DTERR_Pos)
1193#define USB_OTG_HCINT_DTERR USB_OTG_HCINT_DTERR_Msk
1195/******************** Bit definition for USB_OTG_DIEPINT register ********************/
1196#define USB_OTG_DIEPINT_XFRC_Pos (0U)
1197#define USB_OTG_DIEPINT_XFRC_Msk (0x1UL << USB_OTG_DIEPINT_XFRC_Pos)
1198#define USB_OTG_DIEPINT_XFRC USB_OTG_DIEPINT_XFRC_Msk
1199#define USB_OTG_DIEPINT_EPDISD_Pos (1U)
1200#define USB_OTG_DIEPINT_EPDISD_Msk (0x1UL << USB_OTG_DIEPINT_EPDISD_Pos)
1201#define USB_OTG_DIEPINT_EPDISD USB_OTG_DIEPINT_EPDISD_Msk
1202#define USB_OTG_DIEPINT_AHBERR_Pos (2U)
1203#define USB_OTG_DIEPINT_AHBERR_Msk (0x1UL << USB_OTG_DIEPINT_AHBERR_Pos)
1204#define USB_OTG_DIEPINT_AHBERR USB_OTG_DIEPINT_AHBERR_Msk
1205#define USB_OTG_DIEPINT_TOC_Pos (3U)
1206#define USB_OTG_DIEPINT_TOC_Msk (0x1UL << USB_OTG_DIEPINT_TOC_Pos)
1207#define USB_OTG_DIEPINT_TOC USB_OTG_DIEPINT_TOC_Msk
1208#define USB_OTG_DIEPINT_ITTXFE_Pos (4U)
1209#define USB_OTG_DIEPINT_ITTXFE_Msk (0x1UL << USB_OTG_DIEPINT_ITTXFE_Pos)
1210#define USB_OTG_DIEPINT_ITTXFE USB_OTG_DIEPINT_ITTXFE_Msk
1211#define USB_OTG_DIEPINT_INEPNM_Pos (5U)
1212#define USB_OTG_DIEPINT_INEPNM_Msk (0x1UL << USB_OTG_DIEPINT_INEPNM_Pos)
1213#define USB_OTG_DIEPINT_INEPNM USB_OTG_DIEPINT_INEPNM_Msk
1214#define USB_OTG_DIEPINT_INEPNE_Pos (6U)
1215#define USB_OTG_DIEPINT_INEPNE_Msk (0x1UL << USB_OTG_DIEPINT_INEPNE_Pos)
1216#define USB_OTG_DIEPINT_INEPNE USB_OTG_DIEPINT_INEPNE_Msk
1217#define USB_OTG_DIEPINT_TXFE_Pos (7U)
1218#define USB_OTG_DIEPINT_TXFE_Msk (0x1UL << USB_OTG_DIEPINT_TXFE_Pos)
1219#define USB_OTG_DIEPINT_TXFE USB_OTG_DIEPINT_TXFE_Msk
1220#define USB_OTG_DIEPINT_TXFIFOUDRN_Pos (8U)
1221#define USB_OTG_DIEPINT_TXFIFOUDRN_Msk (0x1UL << USB_OTG_DIEPINT_TXFIFOUDRN_Pos)
1222#define USB_OTG_DIEPINT_TXFIFOUDRN USB_OTG_DIEPINT_TXFIFOUDRN_Msk
1223#define USB_OTG_DIEPINT_BNA_Pos (9U)
1224#define USB_OTG_DIEPINT_BNA_Msk (0x1UL << USB_OTG_DIEPINT_BNA_Pos)
1225#define USB_OTG_DIEPINT_BNA USB_OTG_DIEPINT_BNA_Msk
1226#define USB_OTG_DIEPINT_PKTDRPSTS_Pos (11U)
1227#define USB_OTG_DIEPINT_PKTDRPSTS_Msk (0x1UL << USB_OTG_DIEPINT_PKTDRPSTS_Pos)
1228#define USB_OTG_DIEPINT_PKTDRPSTS USB_OTG_DIEPINT_PKTDRPSTS_Msk
1229#define USB_OTG_DIEPINT_BERR_Pos (12U)
1230#define USB_OTG_DIEPINT_BERR_Msk (0x1UL << USB_OTG_DIEPINT_BERR_Pos)
1231#define USB_OTG_DIEPINT_BERR USB_OTG_DIEPINT_BERR_Msk
1232#define USB_OTG_DIEPINT_NAK_Pos (13U)
1233#define USB_OTG_DIEPINT_NAK_Msk (0x1UL << USB_OTG_DIEPINT_NAK_Pos)
1234#define USB_OTG_DIEPINT_NAK USB_OTG_DIEPINT_NAK_Msk
1236/******************** Bit definition for USB_OTG_HCINTMSK register ********************/
1237#define USB_OTG_HCINTMSK_XFRCM_Pos (0U)
1238#define USB_OTG_HCINTMSK_XFRCM_Msk (0x1UL << USB_OTG_HCINTMSK_XFRCM_Pos)
1239#define USB_OTG_HCINTMSK_XFRCM USB_OTG_HCINTMSK_XFRCM_Msk
1240#define USB_OTG_HCINTMSK_CHHM_Pos (1U)
1241#define USB_OTG_HCINTMSK_CHHM_Msk (0x1UL << USB_OTG_HCINTMSK_CHHM_Pos)
1242#define USB_OTG_HCINTMSK_CHHM USB_OTG_HCINTMSK_CHHM_Msk
1243#define USB_OTG_HCINTMSK_AHBERR_Pos (2U)
1244#define USB_OTG_HCINTMSK_AHBERR_Msk (0x1UL << USB_OTG_HCINTMSK_AHBERR_Pos)
1245#define USB_OTG_HCINTMSK_AHBERR USB_OTG_HCINTMSK_AHBERR_Msk
1246#define USB_OTG_HCINTMSK_STALLM_Pos (3U)
1247#define USB_OTG_HCINTMSK_STALLM_Msk (0x1UL << USB_OTG_HCINTMSK_STALLM_Pos)
1248#define USB_OTG_HCINTMSK_STALLM USB_OTG_HCINTMSK_STALLM_Msk
1249#define USB_OTG_HCINTMSK_NAKM_Pos (4U)
1250#define USB_OTG_HCINTMSK_NAKM_Msk (0x1UL << USB_OTG_HCINTMSK_NAKM_Pos)
1251#define USB_OTG_HCINTMSK_NAKM USB_OTG_HCINTMSK_NAKM_Msk
1252#define USB_OTG_HCINTMSK_ACKM_Pos (5U)
1253#define USB_OTG_HCINTMSK_ACKM_Msk (0x1UL << USB_OTG_HCINTMSK_ACKM_Pos)
1254#define USB_OTG_HCINTMSK_ACKM USB_OTG_HCINTMSK_ACKM_Msk
1255#define USB_OTG_HCINTMSK_NYET_Pos (6U)
1256#define USB_OTG_HCINTMSK_NYET_Msk (0x1UL << USB_OTG_HCINTMSK_NYET_Pos)
1257#define USB_OTG_HCINTMSK_NYET USB_OTG_HCINTMSK_NYET_Msk
1258#define USB_OTG_HCINTMSK_TXERRM_Pos (7U)
1259#define USB_OTG_HCINTMSK_TXERRM_Msk (0x1UL << USB_OTG_HCINTMSK_TXERRM_Pos)
1260#define USB_OTG_HCINTMSK_TXERRM USB_OTG_HCINTMSK_TXERRM_Msk
1261#define USB_OTG_HCINTMSK_BBERRM_Pos (8U)
1262#define USB_OTG_HCINTMSK_BBERRM_Msk (0x1UL << USB_OTG_HCINTMSK_BBERRM_Pos)
1263#define USB_OTG_HCINTMSK_BBERRM USB_OTG_HCINTMSK_BBERRM_Msk
1264#define USB_OTG_HCINTMSK_FRMORM_Pos (9U)
1265#define USB_OTG_HCINTMSK_FRMORM_Msk (0x1UL << USB_OTG_HCINTMSK_FRMORM_Pos)
1266#define USB_OTG_HCINTMSK_FRMORM USB_OTG_HCINTMSK_FRMORM_Msk
1267#define USB_OTG_HCINTMSK_DTERRM_Pos (10U)
1268#define USB_OTG_HCINTMSK_DTERRM_Msk (0x1UL << USB_OTG_HCINTMSK_DTERRM_Pos)
1269#define USB_OTG_HCINTMSK_DTERRM USB_OTG_HCINTMSK_DTERRM_Msk
1271/******************** Bit definition for USB_OTG_DIEPTSIZ register ********************/
1272
1273#define USB_OTG_DIEPTSIZ_XFRSIZ_Pos (0U)
1274#define USB_OTG_DIEPTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_DIEPTSIZ_XFRSIZ_Pos)
1275#define USB_OTG_DIEPTSIZ_XFRSIZ USB_OTG_DIEPTSIZ_XFRSIZ_Msk
1276#define USB_OTG_DIEPTSIZ_PKTCNT_Pos (19U)
1277#define USB_OTG_DIEPTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_DIEPTSIZ_PKTCNT_Pos)
1278#define USB_OTG_DIEPTSIZ_PKTCNT USB_OTG_DIEPTSIZ_PKTCNT_Msk
1279#define USB_OTG_DIEPTSIZ_MULCNT_Pos (29U)
1280#define USB_OTG_DIEPTSIZ_MULCNT_Msk (0x3UL << USB_OTG_DIEPTSIZ_MULCNT_Pos)
1281#define USB_OTG_DIEPTSIZ_MULCNT USB_OTG_DIEPTSIZ_MULCNT_Msk
1282/******************** Bit definition for USB_OTG_HCTSIZ register ********************/
1283#define USB_OTG_HCTSIZ_XFRSIZ_Pos (0U)
1284#define USB_OTG_HCTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_HCTSIZ_XFRSIZ_Pos)
1285#define USB_OTG_HCTSIZ_XFRSIZ USB_OTG_HCTSIZ_XFRSIZ_Msk
1286#define USB_OTG_HCTSIZ_PKTCNT_Pos (19U)
1287#define USB_OTG_HCTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_HCTSIZ_PKTCNT_Pos)
1288#define USB_OTG_HCTSIZ_PKTCNT USB_OTG_HCTSIZ_PKTCNT_Msk
1289#define USB_OTG_HCTSIZ_DOPING_Pos (31U)
1290#define USB_OTG_HCTSIZ_DOPING_Msk (0x1UL << USB_OTG_HCTSIZ_DOPING_Pos)
1291#define USB_OTG_HCTSIZ_DOPING USB_OTG_HCTSIZ_DOPING_Msk
1292#define USB_OTG_HCTSIZ_DPID_Pos (29U)
1293#define USB_OTG_HCTSIZ_DPID_Msk (0x3UL << USB_OTG_HCTSIZ_DPID_Pos)
1294#define USB_OTG_HCTSIZ_DPID USB_OTG_HCTSIZ_DPID_Msk
1295#define USB_OTG_HCTSIZ_DPID_0 (0x1UL << USB_OTG_HCTSIZ_DPID_Pos)
1296#define USB_OTG_HCTSIZ_DPID_1 (0x2UL << USB_OTG_HCTSIZ_DPID_Pos)
1298/******************** Bit definition for USB_OTG_DIEPDMA register ********************/
1299#define USB_OTG_DIEPDMA_DMAADDR_Pos (0U)
1300#define USB_OTG_DIEPDMA_DMAADDR_Msk (0xFFFFFFFFUL << USB_OTG_DIEPDMA_DMAADDR_Pos)
1301#define USB_OTG_DIEPDMA_DMAADDR USB_OTG_DIEPDMA_DMAADDR_Msk
1303/******************** Bit definition for USB_OTG_HCDMA register ********************/
1304#define USB_OTG_HCDMA_DMAADDR_Pos (0U)
1305#define USB_OTG_HCDMA_DMAADDR_Msk (0xFFFFFFFFUL << USB_OTG_HCDMA_DMAADDR_Pos)
1306#define USB_OTG_HCDMA_DMAADDR USB_OTG_HCDMA_DMAADDR_Msk
1308/******************** Bit definition for USB_OTG_DTXFSTS register ********************/
1309#define USB_OTG_DTXFSTS_INEPTFSAV_Pos (0U)
1310#define USB_OTG_DTXFSTS_INEPTFSAV_Msk (0xFFFFUL << USB_OTG_DTXFSTS_INEPTFSAV_Pos)
1311#define USB_OTG_DTXFSTS_INEPTFSAV USB_OTG_DTXFSTS_INEPTFSAV_Msk
1313/******************** Bit definition for USB_OTG_DIEPTXF register ********************/
1314#define USB_OTG_DIEPTXF_INEPTXSA_Pos (0U)
1315#define USB_OTG_DIEPTXF_INEPTXSA_Msk (0xFFFFUL << USB_OTG_DIEPTXF_INEPTXSA_Pos)
1316#define USB_OTG_DIEPTXF_INEPTXSA USB_OTG_DIEPTXF_INEPTXSA_Msk
1317#define USB_OTG_DIEPTXF_INEPTXFD_Pos (16U)
1318#define USB_OTG_DIEPTXF_INEPTXFD_Msk (0xFFFFUL << USB_OTG_DIEPTXF_INEPTXFD_Pos)
1319#define USB_OTG_DIEPTXF_INEPTXFD USB_OTG_DIEPTXF_INEPTXFD_Msk
1321/******************** Bit definition for USB_OTG_DOEPCTL register ********************/
1322
1323#define USB_OTG_DOEPCTL_MPSIZ_Pos (0U)
1324#define USB_OTG_DOEPCTL_MPSIZ_Msk (0x7FFUL << USB_OTG_DOEPCTL_MPSIZ_Pos)
1325#define USB_OTG_DOEPCTL_MPSIZ USB_OTG_DOEPCTL_MPSIZ_Msk
1326#define USB_OTG_DOEPCTL_USBAEP_Pos (15U)
1327#define USB_OTG_DOEPCTL_USBAEP_Msk (0x1UL << USB_OTG_DOEPCTL_USBAEP_Pos)
1328#define USB_OTG_DOEPCTL_USBAEP USB_OTG_DOEPCTL_USBAEP_Msk
1329#define USB_OTG_DOEPCTL_NAKSTS_Pos (17U)
1330#define USB_OTG_DOEPCTL_NAKSTS_Msk (0x1UL << USB_OTG_DOEPCTL_NAKSTS_Pos)
1331#define USB_OTG_DOEPCTL_NAKSTS USB_OTG_DOEPCTL_NAKSTS_Msk
1332#define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos (28U)
1333#define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk (0x1UL << USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos)
1334#define USB_OTG_DOEPCTL_SD0PID_SEVNFRM USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk
1335#define USB_OTG_DOEPCTL_SODDFRM_Pos (29U)
1336#define USB_OTG_DOEPCTL_SODDFRM_Msk (0x1UL << USB_OTG_DOEPCTL_SODDFRM_Pos)
1337#define USB_OTG_DOEPCTL_SODDFRM USB_OTG_DOEPCTL_SODDFRM_Msk
1338#define USB_OTG_DOEPCTL_EPTYP_Pos (18U)
1339#define USB_OTG_DOEPCTL_EPTYP_Msk (0x3UL << USB_OTG_DOEPCTL_EPTYP_Pos)
1340#define USB_OTG_DOEPCTL_EPTYP USB_OTG_DOEPCTL_EPTYP_Msk
1341#define USB_OTG_DOEPCTL_EPTYP_0 (0x1UL << USB_OTG_DOEPCTL_EPTYP_Pos)
1342#define USB_OTG_DOEPCTL_EPTYP_1 (0x2UL << USB_OTG_DOEPCTL_EPTYP_Pos)
1343#define USB_OTG_DOEPCTL_SNPM_Pos (20U)
1344#define USB_OTG_DOEPCTL_SNPM_Msk (0x1UL << USB_OTG_DOEPCTL_SNPM_Pos)
1345#define USB_OTG_DOEPCTL_SNPM USB_OTG_DOEPCTL_SNPM_Msk
1346#define USB_OTG_DOEPCTL_STALL_Pos (21U)
1347#define USB_OTG_DOEPCTL_STALL_Msk (0x1UL << USB_OTG_DOEPCTL_STALL_Pos)
1348#define USB_OTG_DOEPCTL_STALL USB_OTG_DOEPCTL_STALL_Msk
1349#define USB_OTG_DOEPCTL_CNAK_Pos (26U)
1350#define USB_OTG_DOEPCTL_CNAK_Msk (0x1UL << USB_OTG_DOEPCTL_CNAK_Pos)
1351#define USB_OTG_DOEPCTL_CNAK USB_OTG_DOEPCTL_CNAK_Msk
1352#define USB_OTG_DOEPCTL_SNAK_Pos (27U)
1353#define USB_OTG_DOEPCTL_SNAK_Msk (0x1UL << USB_OTG_DOEPCTL_SNAK_Pos)
1354#define USB_OTG_DOEPCTL_SNAK USB_OTG_DOEPCTL_SNAK_Msk
1355#define USB_OTG_DOEPCTL_EPDIS_Pos (30U)
1356#define USB_OTG_DOEPCTL_EPDIS_Msk (0x1UL << USB_OTG_DOEPCTL_EPDIS_Pos)
1357#define USB_OTG_DOEPCTL_EPDIS USB_OTG_DOEPCTL_EPDIS_Msk
1358#define USB_OTG_DOEPCTL_EPENA_Pos (31U)
1359#define USB_OTG_DOEPCTL_EPENA_Msk (0x1UL << USB_OTG_DOEPCTL_EPENA_Pos)
1360#define USB_OTG_DOEPCTL_EPENA USB_OTG_DOEPCTL_EPENA_Msk
1362/******************** Bit definition for USB_OTG_DOEPINT register ********************/
1363#define USB_OTG_DOEPINT_XFRC_Pos (0U)
1364#define USB_OTG_DOEPINT_XFRC_Msk (0x1UL << USB_OTG_DOEPINT_XFRC_Pos)
1365#define USB_OTG_DOEPINT_XFRC USB_OTG_DOEPINT_XFRC_Msk
1366#define USB_OTG_DOEPINT_EPDISD_Pos (1U)
1367#define USB_OTG_DOEPINT_EPDISD_Msk (0x1UL << USB_OTG_DOEPINT_EPDISD_Pos)
1368#define USB_OTG_DOEPINT_EPDISD USB_OTG_DOEPINT_EPDISD_Msk
1369#define USB_OTG_DOEPINT_AHBERR_Pos (2U)
1370#define USB_OTG_DOEPINT_AHBERR_Msk (0x1UL << USB_OTG_DOEPINT_AHBERR_Pos)
1371#define USB_OTG_DOEPINT_AHBERR USB_OTG_DOEPINT_AHBERR_Msk
1372#define USB_OTG_DOEPINT_STUP_Pos (3U)
1373#define USB_OTG_DOEPINT_STUP_Msk (0x1UL << USB_OTG_DOEPINT_STUP_Pos)
1374#define USB_OTG_DOEPINT_STUP USB_OTG_DOEPINT_STUP_Msk
1375#define USB_OTG_DOEPINT_OTEPDIS_Pos (4U)
1376#define USB_OTG_DOEPINT_OTEPDIS_Msk (0x1UL << USB_OTG_DOEPINT_OTEPDIS_Pos)
1377#define USB_OTG_DOEPINT_OTEPDIS USB_OTG_DOEPINT_OTEPDIS_Msk
1378#define USB_OTG_DOEPINT_OTEPSPR_Pos (5U)
1379#define USB_OTG_DOEPINT_OTEPSPR_Msk (0x1UL << USB_OTG_DOEPINT_OTEPSPR_Pos)
1380#define USB_OTG_DOEPINT_OTEPSPR USB_OTG_DOEPINT_OTEPSPR_Msk
1381#define USB_OTG_DOEPINT_B2BSTUP_Pos (6U)
1382#define USB_OTG_DOEPINT_B2BSTUP_Msk (0x1UL << USB_OTG_DOEPINT_B2BSTUP_Pos)
1383#define USB_OTG_DOEPINT_B2BSTUP USB_OTG_DOEPINT_B2BSTUP_Msk
1384#define USB_OTG_DOEPINT_OUTPKTERR_Pos (8U)
1385#define USB_OTG_DOEPINT_OUTPKTERR_Msk (0x1UL << USB_OTG_DOEPINT_OUTPKTERR_Pos)
1386#define USB_OTG_DOEPINT_OUTPKTERR USB_OTG_DOEPINT_OUTPKTERR_Msk
1387#define USB_OTG_DOEPINT_NAK_Pos (13U)
1388#define USB_OTG_DOEPINT_NAK_Msk (0x1UL << USB_OTG_DOEPINT_NAK_Pos)
1389#define USB_OTG_DOEPINT_NAK USB_OTG_DOEPINT_NAK_Msk
1390#define USB_OTG_DOEPINT_NYET_Pos (14U)
1391#define USB_OTG_DOEPINT_NYET_Msk (0x1UL << USB_OTG_DOEPINT_NYET_Pos)
1392#define USB_OTG_DOEPINT_NYET USB_OTG_DOEPINT_NYET_Msk
1393#define USB_OTG_DOEPINT_STPKTRX_Pos (15U)
1394#define USB_OTG_DOEPINT_STPKTRX_Msk (0x1UL << USB_OTG_DOEPINT_STPKTRX_Pos)
1395#define USB_OTG_DOEPINT_STPKTRX USB_OTG_DOEPINT_STPKTRX_Msk
1396/******************** Bit definition for USB_OTG_DOEPTSIZ register ********************/
1397
1398#define USB_OTG_DOEPTSIZ_XFRSIZ_Pos (0U)
1399#define USB_OTG_DOEPTSIZ_XFRSIZ_Msk (0x7FFFFUL << USB_OTG_DOEPTSIZ_XFRSIZ_Pos)
1400#define USB_OTG_DOEPTSIZ_XFRSIZ USB_OTG_DOEPTSIZ_XFRSIZ_Msk
1401#define USB_OTG_DOEPTSIZ_PKTCNT_Pos (19U)
1402#define USB_OTG_DOEPTSIZ_PKTCNT_Msk (0x3FFUL << USB_OTG_DOEPTSIZ_PKTCNT_Pos)
1403#define USB_OTG_DOEPTSIZ_PKTCNT USB_OTG_DOEPTSIZ_PKTCNT_Msk
1405#define USB_OTG_DOEPTSIZ_STUPCNT_Pos (29U)
1406#define USB_OTG_DOEPTSIZ_STUPCNT_Msk (0x3UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos)
1407#define USB_OTG_DOEPTSIZ_STUPCNT USB_OTG_DOEPTSIZ_STUPCNT_Msk
1408#define USB_OTG_DOEPTSIZ_STUPCNT_0 (0x1UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos)
1409#define USB_OTG_DOEPTSIZ_STUPCNT_1 (0x2UL << USB_OTG_DOEPTSIZ_STUPCNT_Pos)
1411/******************** Bit definition for PCGCCTL register ********************/
1412#define USB_OTG_PCGCCTL_STOPCLK_Pos (0U)
1413#define USB_OTG_PCGCCTL_STOPCLK_Msk (0x1UL << USB_OTG_PCGCCTL_STOPCLK_Pos)
1414#define USB_OTG_PCGCCTL_STOPCLK USB_OTG_PCGCCTL_STOPCLK_Msk
1415#define USB_OTG_PCGCCTL_GATECLK_Pos (1U)
1416#define USB_OTG_PCGCCTL_GATECLK_Msk (0x1UL << USB_OTG_PCGCCTL_GATECLK_Pos)
1417#define USB_OTG_PCGCCTL_GATECLK USB_OTG_PCGCCTL_GATECLK_Msk
1418#define USB_OTG_PCGCCTL_PHYSUSP_Pos (4U)
1419#define USB_OTG_PCGCCTL_PHYSUSP_Msk (0x1UL << USB_OTG_PCGCCTL_PHYSUSP_Pos)
1420#define USB_OTG_PCGCCTL_PHYSUSP USB_OTG_PCGCCTL_PHYSUSP_Msk
1422/* Legacy define */
1423/******************** Bit definition for OTG register ********************/
1424#define USB_OTG_CHNUM_Pos (0U)
1425#define USB_OTG_CHNUM_Msk (0xFUL << USB_OTG_CHNUM_Pos)
1426#define USB_OTG_CHNUM USB_OTG_CHNUM_Msk
1427#define USB_OTG_CHNUM_0 (0x1UL << USB_OTG_CHNUM_Pos)
1428#define USB_OTG_CHNUM_1 (0x2UL << USB_OTG_CHNUM_Pos)
1429#define USB_OTG_CHNUM_2 (0x4UL << USB_OTG_CHNUM_Pos)
1430#define USB_OTG_CHNUM_3 (0x8UL << USB_OTG_CHNUM_Pos)
1431#define USB_OTG_BCNT_Pos (4U)
1432#define USB_OTG_BCNT_Msk (0x7FFUL << USB_OTG_BCNT_Pos)
1433#define USB_OTG_BCNT USB_OTG_BCNT_Msk
1435#define USB_OTG_DPID_Pos (15U)
1436#define USB_OTG_DPID_Msk (0x3UL << USB_OTG_DPID_Pos)
1437#define USB_OTG_DPID USB_OTG_DPID_Msk
1438#define USB_OTG_DPID_0 (0x1UL << USB_OTG_DPID_Pos)
1439#define USB_OTG_DPID_1 (0x2UL << USB_OTG_DPID_Pos)
1441#define USB_OTG_PKTSTS_Pos (17U)
1442#define USB_OTG_PKTSTS_Msk (0xFUL << USB_OTG_PKTSTS_Pos)
1443#define USB_OTG_PKTSTS USB_OTG_PKTSTS_Msk
1444#define USB_OTG_PKTSTS_0 (0x1UL << USB_OTG_PKTSTS_Pos)
1445#define USB_OTG_PKTSTS_1 (0x2UL << USB_OTG_PKTSTS_Pos)
1446#define USB_OTG_PKTSTS_2 (0x4UL << USB_OTG_PKTSTS_Pos)
1447#define USB_OTG_PKTSTS_3 (0x8UL << USB_OTG_PKTSTS_Pos)
1449#define USB_OTG_EPNUM_Pos (0U)
1450#define USB_OTG_EPNUM_Msk (0xFUL << USB_OTG_EPNUM_Pos)
1451#define USB_OTG_EPNUM USB_OTG_EPNUM_Msk
1452#define USB_OTG_EPNUM_0 (0x1UL << USB_OTG_EPNUM_Pos)
1453#define USB_OTG_EPNUM_1 (0x2UL << USB_OTG_EPNUM_Pos)
1454#define USB_OTG_EPNUM_2 (0x4UL << USB_OTG_EPNUM_Pos)
1455#define USB_OTG_EPNUM_3 (0x8UL << USB_OTG_EPNUM_Pos)
1457#define USB_OTG_FRMNUM_Pos (21U)
1458#define USB_OTG_FRMNUM_Msk (0xFUL << USB_OTG_FRMNUM_Pos)
1459#define USB_OTG_FRMNUM USB_OTG_FRMNUM_Msk
1460#define USB_OTG_FRMNUM_0 (0x1UL << USB_OTG_FRMNUM_Pos)
1461#define USB_OTG_FRMNUM_1 (0x2UL << USB_OTG_FRMNUM_Pos)
1462#define USB_OTG_FRMNUM_2 (0x4UL << USB_OTG_FRMNUM_Pos)
1463#define USB_OTG_FRMNUM_3 (0x8UL << USB_OTG_FRMNUM_Pos)
1465/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
#define __IO
Definition core_cm3.h:170
__device_Registers
Definition stm32f107xc.h:696
__USB_OTG_Core_register
Definition stm32f107xc.h:670
__Host_Channel_Specific_Registers
Definition stm32f107xc.h:770
__Host_Mode_Register_Structures
Definition stm32f107xc.h:755
__IN_Endpoint-Specific_Register
Definition stm32f107xc.h:724
__OUT_Endpoint-Specific_Registers
Definition stm32f107xc.h:740