⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcf537x_usb.h

📁 Freescale ColdFire MCF537x 家族的参考代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define MCF_USB_USBSTS_AAI                       (0x00000020)#define MCF_USB_USBSTS_URI                       (0x00000040)#define MCF_USB_USBSTS_SRI                       (0x00000080)#define MCF_USB_USBSTS_SLI                       (0x00000100)#define MCF_USB_USBSTS_HCH                       (0x00001000)#define MCF_USB_USBSTS_RCL                       (0x00002000)#define MCF_USB_USBSTS_PS                        (0x00004000)#define MCF_USB_USBSTS_AS                        (0x00008000)/* Bit definitions and macros for MCF_USB_USBINTR */#define MCF_USB_USBINTR_UE                       (0x00000001)#define MCF_USB_USBINTR_UEE                      (0x00000002)#define MCF_USB_USBINTR_PCE                      (0x00000004)#define MCF_USB_USBINTR_FRE                      (0x00000008)#define MCF_USB_USBINTR_SEE                      (0x00000010)#define MCF_USB_USBINTR_AAE                      (0x00000020)#define MCF_USB_USBINTR_URE                      (0x00000040)#define MCF_USB_USBINTR_SRE                      (0x00000080)#define MCF_USB_USBINTR_SLE                      (0x00000100)/* Bit definitions and macros for MCF_USB_FRINDEX */#define MCF_USB_FRINDEX_FRINDEX(x)               (((x)&0x00003FFF)<<0)/* Bit definitions and macros for MCF_USB_PERIODICLISTBASE */#define MCF_USB_PERIODICLISTBASE_PERBASE(x)      (((x)&0x000FFFFF)<<12)/* Bit definitions and macros for MCF_USB_DEVICEADDR */#define MCF_USB_DEVICEADDR_USBADR(x)             (((x)&0x0000007F)<<25)/* Bit definitions and macros for MCF_USB_ASYNCLISTADDR */#define MCF_USB_ASYNCLISTADDR_ASYBASE(x)         (((x)&0x07FFFFFF)<<5)/* Bit definitions and macros for MCF_USB_EPLISTADDR */#define MCF_USB_EPLISTADDR_EPBASE(x)             (((x)&0x001FFFFF)<<11)/* Bit definitions and macros for MCF_USB_ASYNCTTSTS */#define MCF_USB_ASYNCTTSTS_TTAS                  (0x00000001)#define MCF_USB_ASYNCTTSTS_TTAC                  (0x00000002)/* Bit definitions and macros for MCF_USB_BURSTSIZE */#define MCF_USB_BURSTSIZE_RXPBURST(x)            (((x)&0x000000FF)<<0)#define MCF_USB_BURSTSIZE_TXPBURST(x)            (((x)&0x000000FF)<<8)/* Bit definitions and macros for MCF_USB_TXFILLTUNING */#define MCF_USB_TXFILLTUNING_TXSCHOH(x)          (((x)&0x000000FF)<<0)#define MCF_USB_TXFILLTUNING_TXSCHHEALTH(x)      (((x)&0x0000001F)<<8)#define MCF_USB_TXFILLTUNING_TXFIFOTHRES(x)      (((x)&0x0000003F)<<16)/* Bit definitions and macros for MCF_USB_TXTTFILLTUNING */#define MCF_USB_TXTTFILLTUNING_TXTTSCHOH(x)      (((x)&0x0000001F)<<0)#define MCF_USB_TXTTFILLTUNING_TXTTSCHHEALTH(x)  (((x)&0x0000001F)<<8)/* Bit definitions and macros for MCF_USB_CONFIGFLAG */#define MCF_USB_CONFIGFLAG_CONFIGFLAG(x)         (((x)&0xFFFFFFFF)<<0)/* Bit definitions and macros for MCF_USB_PORTSC */#define MCF_USB_PORTSC_CCS                       (0x00000001)#define MCF_USB_PORTSC_CSC                       (0x00000002)#define MCF_USB_PORTSC_PE                        (0x00000004)#define MCF_USB_PORTSC_PEC                       (0x00000008)#define MCF_USB_PORTSC_OCA                       (0x00000010)#define MCF_USB_PORTSC_OCC                       (0x00000020)#define MCF_USB_PORTSC_FPR                       (0x00000040)#define MCF_USB_PORTSC_SUSP                      (0x00000080)#define MCF_USB_PORTSC_PR                        (0x00000100)#define MCF_USB_PORTSC_LS(x)                     (((x)&0x00000003)<<10)#define MCF_USB_PORTSC_PP                        (0x00001000)#define MCF_USB_PORTSC_PO                        (0x00002000)#define MCF_USB_PORTSC_PIC(x)                    (((x)&0x00000003)<<14)#define MCF_USB_PORTSC_PTC(x)                    (((x)&0x0000000F)<<16)#define MCF_USB_PORTSC_WLCN                      (0x00100000)#define MCF_USB_PORTSC_WKDS                      (0x00200000)#define MCF_USB_PORTSC_WKOC                      (0x00400000)#define MCF_USB_PORTSC_PHCD                      (0x00800000)#define MCF_USB_PORTSC_PFSC                      (0x01000000)#define MCF_USB_PORTSC_PSPD(x)                   (((x)&0x00000003)<<26)#define MCF_USB_PORTSC_PTS(x)                    (((x)&0x00000003)<<30)#define MCF_USB_PORTSC_PTS_ULPI                  (0x80000000)#define MCF_USB_PORTSC_PTS_FS_LS                 (0xC0000000)#define MCF_USB_PORTSC_PSPD_FULL                 (0x00000000)#define MCF_USB_PORTSC_PSPD_LOW                  (0x04000000)#define MCF_USB_PORTSC_PSPD_HIGH                 (0x08000000)#define MCF_USB_PORTSC_PTC_DISBALE               (0x00000000)#define MCF_USB_PORTSC_PTC_JSTATE                (0x00010000)#define MCF_USB_PORTSC_PTC_KSTATE                (0x00020000)#define MCF_USB_PORTSC_PTC_SEQ_NAK               (0x00030000)#define MCF_USB_PORTSC_PTC_PACKET                (0x00040000)#define MCF_USB_PORTSC_PTC_FORCE_ENABLE          (0x00050000)#define MCF_USB_PORTSC_PIC_OFF                   (0x00000000)#define MCF_USB_PORTSC_PIC_AMBER                 (0x00004000)#define MCF_USB_PORTSC_PIC_GREEN                 (0x00008000)#define MCF_USB_PORTSC_LS_SE0                    (0x00000000)#define MCF_USB_PORTSC_LS_JSTATE                 (0x00000400)#define MCF_USB_PORTSC_LS_KSTATE                 (0x00000800)/* Bit definitions and macros for MCF_USB_OTGSC */#define MCF_USB_OTGSC_VD                         (0x00000001)#define MCF_USB_OTGSC_VC                         (0x00000002)#define MCF_USB_OTGSC_OT                         (0x00000008)#define MCF_USB_OTGSC_DP                         (0x00000010)#define MCF_USB_OTGSC_ID                         (0x00000100)#define MCF_USB_OTGSC_AVV                        (0x00000200)#define MCF_USB_OTGSC_ASV                        (0x00000400)#define MCF_USB_OTGSC_BSV                        (0x00000800)#define MCF_USB_OTGSC_BSE                        (0x00001000)#define MCF_USB_OTGSC_1MST                       (0x00002000)#define MCF_USB_OTGSC_DPS                        (0x00004000)#define MCF_USB_OTGSC_IDIS                       (0x00010000)#define MCF_USB_OTGSC_AVVIS                      (0x00020000)#define MCF_USB_OTGSC_ASVIS                      (0x00040000)#define MCF_USB_OTGSC_BSVIS                      (0x00080000)#define MCF_USB_OTGSC_BSEIS                      (0x00100000)#define MCF_USB_OTGSC_1MSS                       (0x00200000)#define MCF_USB_OTGSC_DPIS                       (0x00400000)#define MCF_USB_OTGSC_IDIE                       (0x01000000)#define MCF_USB_OTGSC_AVVIE                      (0x02000000)#define MCF_USB_OTGSC_ADVIE                      (0x04000000)#define MCF_USB_OTGSC_BSVIE                      (0x08000000)#define MCF_USB_OTGSC_BSEIE                      (0x10000000)#define MCF_USB_OTGSC_1MSE                       (0x20000000)#define MCF_USB_OTGSC_DPIE                       (0x40000000)#define MCF_USB_OTGSC_CLEAR                      (0x007F0000)#define MCF_USB_OTGSC_ENABLE_ALL                 (0x7F000000)/* Bit definitions and macros for MCF_USB_USBMODE */#define MCF_USB_USBMODE_CM(x)                    (((x)&0x00000003)<<0)#define MCF_USB_USBMODE_ES                       (0x00000004)#define MCF_USB_USBMODE_SLOM                     (0x00000008)#define MCF_USB_USBMODE_SDIS                     (0x00000010)#define MCF_USB_USBMODE_CM_IDLE                  (0x00000000)#define MCF_USB_USBMODE_CM_DEVICE                (0x00000002)#define MCF_USB_USBMODE_CM_HOST                  (0x00000003)/* Bit definitions and macros for MCF_USB_EPSETUPSR */#define MCF_USB_EPSETUPSR_EPSETUPSTAT(x)         (((x)&0x0000003F)<<0)/* Bit definitions and macros for MCF_USB_EPPRIME */#define MCF_USB_EPPRIME_PERB(x)                  (((x)&0x0000003F)<<0)#define MCF_USB_EPPRIME_PETB(x)                  (((x)&0x0000003F)<<16)#define MCF_USB_EPPRIME_PETB0                    (0x00010000)#define MCF_USB_EPPRIME_PETB1                    (0x00020000)#define MCF_USB_EPPRIME_PETB2                    (0x00040000)#define MCF_USB_EPPRIME_PETB3                    (0x00080000)#define MCF_USB_EPPRIME_PETB4                    (0x00100000)#define MCF_USB_EPPRIME_PETB5                    (0x00200000)#define MCF_USB_EPPRIME_PERB0                    (0x00000001)#define MCF_USB_EPPRIME_PERB1                    (0x00000002)#define MCF_USB_EPPRIME_PERB2                    (0x00000004)#define MCF_USB_EPPRIME_PERB3                    (0x00000008)#define MCF_USB_EPPRIME_PERB4                    (0x00000010)#define MCF_USB_EPPRIME_PERB5                    (0x00000020)/* Bit definitions and macros for MCF_USB_EPFLUSH */#define MCF_USB_EPFLUSH_FERB(x)                  (((x)&0x0000003F)<<0)#define MCF_USB_EPFLUSH_FETB(x)                  (((x)&0x0000003F)<<16)#define MCF_USB_EPFLUSH_FETB0                    (0x00010000)#define MCF_USB_EPFLUSH_FETB1                    (0x00020000)#define MCF_USB_EPFLUSH_FETB2                    (0x00040000)#define MCF_USB_EPFLUSH_FETB3                    (0x00080000)#define MCF_USB_EPFLUSH_FETB4                    (0x00100000)#define MCF_USB_EPFLUSH_FETB5                    (0x00200000)#define MCF_USB_EPFLUSH_FERB0                    (0x00000001)#define MCF_USB_EPFLUSH_FERB1                    (0x00000002)#define MCF_USB_EPFLUSH_FERB2                    (0x00000004)#define MCF_USB_EPFLUSH_FERB3                    (0x00000008)#define MCF_USB_EPFLUSH_FERB4                    (0x00000010)#define MCF_USB_EPFLUSH_FERB5                    (0x00000020)/* Bit definitions and macros for MCF_USB_EPSR */#define MCF_USB_EPSR_ERBR(x)                     (((x)&0x0000003F)<<0)#define MCF_USB_EPSR_ETBR(x)                     (((x)&0x0000003F)<<16)#define MCF_USB_EPSR_ETBR0                       (0x00010000)#define MCF_USB_EPSR_ETBR1                       (0x00020000)#define MCF_USB_EPSR_ETBR2                       (0x00040000)#define MCF_USB_EPSR_ETBR3                       (0x00080000)#define MCF_USB_EPSR_ETBR4                       (0x00100000)#define MCF_USB_EPSR_ETBR5                       (0x00200000)#define MCF_USB_EPSR_ERBR0                       (0x00000001)#define MCF_USB_EPSR_ERBR1                       (0x00000002)#define MCF_USB_EPSR_ERBR2                       (0x00000004)#define MCF_USB_EPSR_ERBR3                       (0x00000008)#define MCF_USB_EPSR_ERBR4                       (0x00000010)#define MCF_USB_EPSR_ERBR5                       (0x00000020)/* Bit definitions and macros for MCF_USB_EPCOMPLETE */#define MCF_USB_EPCOMPLETE_ERCE(x)               (((x)&0x0000003F)<<0)#define MCF_USB_EPCOMPLETE_ETCE(x)               (((x)&0x0000003F)<<16)#define MCF_USB_EPCOMPLETE_ETCE0                 (0x00010000)#define MCF_USB_EPCOMPLETE_ETCE1                 (0x00020000)#define MCF_USB_EPCOMPLETE_ETCE2                 (0x00040000)#define MCF_USB_EPCOMPLETE_ETCE3                 (0x00080000)#define MCF_USB_EPCOMPLETE_ETCE4                 (0x00100000)#define MCF_USB_EPCOMPLETE_ETCE5                 (0x00200000)#define MCF_USB_EPCOMPLETE_ERCE0                 (0x00000001)#define MCF_USB_EPCOMPLETE_ERCE1                 (0x00000002)#define MCF_USB_EPCOMPLETE_ERCE2                 (0x00000004)#define MCF_USB_EPCOMPLETE_ERCE3                 (0x00000008)#define MCF_USB_EPCOMPLETE_ERCE4                 (0x00000010)#define MCF_USB_EPCOMPLETE_ERCE5                 (0x00000020)/* Bit definitions and macros for MCF_USB_EPCR0 */#define MCF_USB_EPCR0_RXS                        (0x00000001)#define MCF_USB_EPCR0_RXT(x)                     (((x)&0x00000003)<<2)#define MCF_USB_EPCR0_RXE                        (0x00000080)#define MCF_USB_EPCR0_TXS                        (0x00010000)#define MCF_USB_EPCR0_TXT(x)                     (((x)&0x00000003)<<18)#define MCF_USB_EPCR0_TXE                        (0x00800000)/* Bit definitions and macros for MCF_USB_EPCR */#define MCF_USB_EPCR_RXS                         (0x00000001)#define MCF_USB_EPCR_RXD                         (0x00000002)#define MCF_USB_EPCR_RXT(x)                      (((x)&0x00000003)<<2)#define MCF_USB_EPCR_RXI                         (0x00000020)#define MCF_USB_EPCR_RXR                         (0x00000040)#define MCF_USB_EPCR_RXE                         (0x00000080)#define MCF_USB_EPCR_TXS                         (0x00010000)#define MCF_USB_EPCR_TXD                         (0x00020000)#define MCF_USB_EPCR_TXT(x)                      (((x)&0x00000003)<<18)#define MCF_USB_EPCR_TXI                         (0x00200000)#define MCF_USB_EPCR_TXR                         (0x00400000)#define MCF_USB_EPCR_TXE                         (0x00800000)#define MCF_USB_EPCR_TXT_CONTROL                 (0x00000000)#define MCF_USB_EPCR_TXT_ISO                     (0x00040000)#define MCF_USB_EPCR_TXT_BULK                    (0x00080000)#define MCF_USB_EPCR_TXT_INT                     (0x000C0000)#define MCF_USB_EPCR_RXT_CONTROL                 (0x00000000)#define MCF_USB_EPCR_RXT_ISO                     (0x00000004)#define MCF_USB_EPCR_RXT_BULK                    (0x00000008)#define MCF_USB_EPCR_RXT_INT                     (0x0000000C)/********************************************************************/#endif /* __MCF537X_USB_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -