29 #ifndef __USB_OTG_REGS_H__ 30 #define __USB_OTG_REGS_H__ 50 #define USB_OTG_HS_BASE_ADDR 0x40040000 51 #define USB_OTG_FS_BASE_ADDR 0x50000000 53 #define USB_OTG_CORE_GLOBAL_REGS_OFFSET 0x000 54 #define USB_OTG_DEV_GLOBAL_REG_OFFSET 0x800 55 #define USB_OTG_DEV_IN_EP_REG_OFFSET 0x900 56 #define USB_OTG_EP_REG_OFFSET 0x20 57 #define USB_OTG_DEV_OUT_EP_REG_OFFSET 0xB00 58 #define USB_OTG_HOST_GLOBAL_REG_OFFSET 0x400 59 #define USB_OTG_HOST_PORT_REGS_OFFSET 0x440 60 #define USB_OTG_HOST_CHAN_REGS_OFFSET 0x500 61 #define USB_OTG_CHAN_REGS_OFFSET 0x20 62 #define USB_OTG_PCGCCTL_OFFSET 0xE00 63 #define USB_OTG_DATA_FIFO_OFFSET 0x1000 64 #define USB_OTG_DATA_FIFO_SIZE 0x1000 67 #define USB_OTG_MAX_TX_FIFOS 15 69 #define USB_OTG_HS_MAX_PACKET_SIZE 512 70 #define USB_OTG_FS_MAX_PACKET_SIZE 64 71 #define USB_OTG_MAX_EP0_SIZE 64 133 uint32_t Reserved44[15];
173 uint32_t Reserved18[2];
211 uint32_t Reserved[2];
244 uint32_t Reserved2_7 :
250 uint32_t hstsethnpen :
254 uint32_t Reserved12_15 :
264 uint32_t Reserved20_31 :
275 uint32_t Reserved0_1 :
279 uint32_t Reserved3_7 :
281 uint32_t sesreqsucstschng :
283 uint32_t hstnegsucstschng :
285 uint32_t reserver10_16 :
289 uint32_t adevtoutchng :
293 uint32_t Reserved31_20 :
303 uint32_t glblintrmsk :
311 uint32_t nptxfemplvl_txfemplvl :
313 uint32_t ptxfemplvl :
315 uint32_t Reserved9_31 :
327 uint32_t Reserved3_5 :
339 uint32_t Reserved14 :
341 uint32_t phylpwrclksel :
343 uint32_t Reserved16 :
347 uint32_t ulpi_auto_res :
349 uint32_t ulpi_clk_sus_m :
351 uint32_t ulpi_ext_vbus_drv :
353 uint32_t ulpi_int_vbus_ind :
355 uint32_t term_sel_dl_pulse :
357 uint32_t ulpi_ind_cpl :
359 uint32_t ulpi_passthrough :
361 uint32_t ulpi_protect_disable :
363 uint32_t Reserved26_28 :
365 uint32_t force_host :
369 uint32_t corrupt_tx :
393 uint32_t Reserved11_29 :
409 uint32_t modemismatch :
417 uint32_t nptxfempty :
421 uint32_t goutnakeff :
423 uint32_t Reserved8_9 :
425 uint32_t erlysuspend :
427 uint32_t usbsuspend :
433 uint32_t isooutdrop :
437 uint32_t Reserved16 :
439 uint32_t epmismatch :
445 uint32_t incomplisoin :
447 uint32_t incomplisoout :
449 uint32_t Reserved22_23 :
457 uint32_t Reserved27 :
459 uint32_t conidstschng :
461 uint32_t disconnect :
463 uint32_t sessreqintr :
477 uint32_t modemismatch :
485 uint32_t nptxfempty :
489 uint32_t goutnakeff :
491 uint32_t Reserved8_9 :
493 uint32_t erlysuspend :
495 uint32_t usbsuspend :
501 uint32_t isooutdrop :
505 uint32_t Reserved16_17 :
511 uint32_t incomplisoin :
513 uint32_t incomplisoout :
515 uint32_t Reserved22_23 :
523 uint32_t Reserved27 :
525 uint32_t conidstschng :
527 uint32_t disconnect :
529 uint32_t sessreqintr :
591 uint32_t nptxfspcavail :
593 uint32_t nptxqspcavail :
614 uint32_t txfspcavail :
627 uint32_t Reserved_in :
631 uint32_t Reserved_17 :
633 uint32_t vbussensingA :
635 uint32_t vbussensingB :
639 uint32_t disablevbussensing :
641 uint32_t Reserved_out :
654 uint32_t nzstsouthshk :
662 uint32_t Reserved12_31 :
672 uint32_t rmtwkupsig :
676 uint32_t gnpinnaksts :
678 uint32_t goutnaksts :
690 uint32_t poprg_done :
708 uint32_t Reserved4_7:
712 uint32_t Reserved22_31 :
724 uint32_t epdisabled :
730 uint32_t intktxfemp :
734 uint32_t inepnakeff :
738 uint32_t txfifoundrn :
740 uint32_t Reserved14_31 :
753 uint32_t epdisabled :
759 uint32_t Reserved04_31 :
784 uint32_t non_iso_thr_en :
786 uint32_t iso_thr_en :
788 uint32_t tx_thr_len :
790 uint32_t Reserved11_15 :
794 uint32_t rx_thr_len :
796 uint32_t Reserved26 :
800 uint32_t Reserved28_31 :
866 uint32_t Reserved7_18 :
870 uint32_t Reserved20_28 :
874 uint32_t Reserved31 :
884 uint32_t fslspclksel :
921 uint32_t ptxfspcavail :
923 uint32_t ptxqspcavail :
944 uint32_t prtconnsts :
946 uint32_t prtconndet :
952 uint32_t prtovrcurract :
954 uint32_t prtovrcurrchng :
972 uint32_t Reserved19_31 :
1056 uint32_t xfercompl :
1076 uint32_t datatglerr :
1104 uint32_t xfercompl :
1124 uint32_t datatglerr :
1141 uint32_t Reserved2_3 :
1145 uint32_t Reserved5_31 :
union _USB_OTG_DCTL_TypeDef USB_OTG_DCTL_TypeDef
union _USB_OTG_DTXFSTSn_TypeDef USB_OTG_DTXFSTSn_TypeDef
union _USB_OTG_HNPTXSTS_TypeDef USB_OTG_HNPTXSTS_TypeDef
struct _USB_OTG_HREGS USB_OTG_HREGS
union _USB_OTG_PCGCCTL_TypeDef USB_OTG_PCGCCTL_TypeDef
union _USB_OTG_GCCFG_TypeDef USB_OTG_GCCFG_TypeDef
struct _USB_OTG_HC_REGS USB_OTG_HC_REGS
union _USB_OTG_DIEPINTn_TypeDef USB_OTG_DIEPINTn_TypeDef
#define USB_OTG_MAX_TX_FIFOS
__IO uint32_t DIEPTXF[USB_OTG_MAX_TX_FIFOS]
union _USB_OTG_HCTSIZn_TypeDef USB_OTG_HCTSIZn_TypeDef
union _USB_OTG_DOEPINTn_TypeDef USB_OTG_DOEPINTn_TypeDef
struct USB_OTG_core_regs USB_OTG_CORE_REGS
union _USB_OTG_DEPXFRSIZ_TypeDef USB_OTG_DEPXFRSIZ_TypeDef
union _USB_OTG_HCSPLT_TypeDef USB_OTG_HCSPLT_TypeDef
union _USB_OTG_HAINTMSK_TypeDef USB_OTG_HAINTMSK_TypeDef
union _USB_OTG_DEPCTL_TypeDef USB_OTG_DEPCTL_TypeDef
union _USB_OTG_HCFG_TypeDef USB_OTG_HCFG_TypeDef
union _USB_OTG_HFNUM_TypeDef USB_OTG_HFNUM_TypeDef
union _USB_OTG_DEP0XFRSIZ_TypeDef USB_OTG_DEP0XFRSIZ_TypeDef
union _USB_OTG_GOTGINT_TypeDef USB_OTG_GOTGINT_TypeDef
struct USB_OTG_core_regs * PUSB_OTG_CORE_REGS
__IO uint32_t DIEPTXF0_HNPTXFSIZ
struct _USB_OTG_INEPREGS USB_OTG_INEPREGS
union _USB_OTG_GINTSTS_TypeDef USB_OTG_GINTSTS_TypeDef
union _USB_OTG_GAHBCFG_TypeDef USB_OTG_GAHBCFG_TypeDef
struct _USB_OTG_GREGS USB_OTG_GREGS
union _USB_OTG_GOTGCTL_TypeDef USB_OTG_GOTGCTL_TypeDef
union _USB_OTG_DTHRCTL_TypeDef USB_OTG_DTHRCTL_TypeDef
union _USB_OTG_HCINTn_TypeDef USB_OTG_HCINTn_TypeDef
union _USB_OTG_GRSTCTL_TypeDef USB_OTG_GRSTCTL_TypeDef
union _USB_OTG_DSTS_TypeDef USB_OTG_DSTS_TypeDef
union _USB_OTG_HCINTMSK_TypeDef USB_OTG_HCINTMSK_TypeDef
union _USB_OTG_DRXSTS_TypeDef USB_OTG_DRXSTS_TypeDef
union _USB_OTG_HPRT0_TypeDef USB_OTG_HPRT0_TypeDef
union _USB_OTG_GUSBCFG_TypeDef USB_OTG_GUSBCFG_TypeDef
union _USB_OTG_HCCHAR_TypeDef USB_OTG_HCCHAR_TypeDef
union _USB_OTG_FSIZ_TypeDef USB_OTG_FSIZ_TypeDef
union _USB_OTG_HAINT_TypeDef USB_OTG_HAINT_TypeDef
General low level driver configuration.
struct _USB_OTG_OUTEPREGS USB_OTG_OUTEPREGS
union _USB_OTG_GINTMSK_TypeDef USB_OTG_GINTMSK_TypeDef
union _USB_OTG_DAINT_TypeDef USB_OTG_DAINT_TypeDef
union _USB_OTG_HFRMINTRVL_TypeDef USB_OTG_HFRMINTRVL_TypeDef
union _USB_OTG_HPTXSTS_TypeDef USB_OTG_HPTXSTS_TypeDef
struct _USB_OTG_DREGS USB_OTG_DREGS
union _USB_OTG_DCFG_TypeDef USB_OTG_DCFG_TypeDef
union _USB_OTG_GRXSTS_TypeDef USB_OTG_GRXFSTS_TypeDef