📄 mcf5445x_usb.h
字号:
#define MCF_USB_PORTSC_PE (0x20000004) #define MCF_USB_PORTSC_PEC (0x20000008) #define MCF_USB_PORTSC_OCA (0x20000010) #define MCF_USB_PORTSC_OCC (0x20000020) #define MCF_USB_PORTSC_FPR (0x20000040) #define MCF_USB_PORTSC_SUSP (0x20000080) #define MCF_USB_PORTSC_PR (0x20000100) #define MCF_USB_PORTSC_LS(x) (((x)&0x00000003) #define MCF_USB_PORTSC_PP (0x20001000) #define MCF_USB_PORTSC_PO (0x20002000) #define MCF_USB_PORTSC_PIC(x) (((x)&0x00000003) #define MCF_USB_PORTSC_PTC(x) (((x)&0x0000000F) #define MCF_USB_PORTSC_WLCN (0x20100000) #define MCF_USB_PORTSC_WKDS (0x20200000) #define MCF_USB_PORTSC_WKOC (0x20400000) #define MCF_USB_PORTSC_PHCD (0x20800000) #define MCF_USB_PORTSC_PFSC (0x21000000) #define MCF_USB_PORTSC_PSPD(x) (((x)&0x00000003) #define MCF_USB_PORTSC_PTS(x) (((x)&0x00000003) #define MCF_USB_PORTSC_PTS_ULPI (0xA0000000) #define MCF_USB_PORTSC_PTS_FS_LS (0xE0000000) #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 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 USBMODE */#define MCF_USB_USBMODE_CM(x) (((x)&0x00000003)) #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 EPSETUPSR */#define MCF_USB_EPSETUPSR_EPSETUPSTAT(x) (((x)&0x0000003F)) /* Bit definitions and macros for EPPRIME */#define MCF_USB_EPPRIME_PERB(x) (((x)&0x0000003F)) #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 EPFLUSH */#define MCF_USB_EPFLUSH_FERB(x) (((x)&0x0000003F)) #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 EPSR */#define MCF_USB_EPSR_ERBR(x) (((x)&0x0000003F)) #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 EPCOMPLETE */#define MCF_USB_EPCOMPLETE_ERCE(x) (((x)&0x0000003F)) #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 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 EPCR group */#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) /* Bit definitions and macros for EPCR1 */#define MCF_USB_EPCR1_RXS (0x00000001) #define MCF_USB_EPCR1_RXD (0x00000002) #define MCF_USB_EPCR1_RXT(x) (((x)&0x00000003)<<2) #define MCF_USB_EPCR1_RXI (0x00000020) #define MCF_USB_EPCR1_RXR (0x00000040) #define MCF_USB_EPCR1_RXE (0x00000080) #define MCF_USB_EPCR1_TXS (0x00010000) #define MCF_USB_EPCR1_TXD (0x00020000) #define MCF_USB_EPCR1_TXT(x) (((x)&0x00000003)<<18) #define MCF_USB_EPCR1_TXI (0x00200000) #define MCF_USB_EPCR1_TXR (0x00400000) #define MCF_USB_EPCR1_TXE (0x00800000) #define MCF_USB_EPCR1_TXT_CONTROL (0x00000000) #define MCF_USB_EPCR1_TXT_ISO (0x00040000) #define MCF_USB_EPCR1_TXT_BULK (0x00080000) #define MCF_USB_EPCR1_TXT_INT (0x000C0000) #define MCF_USB_EPCR1_RXT_CONTROL (0x00000000) #define MCF_USB_EPCR1_RXT_ISO (0x00000004) #define MCF_USB_EPCR1_RXT_BULK (0x00000008) #define MCF_USB_EPCR1_RXT_INT (0x0000000C) /* Bit definitions and macros for EPCR2 */#define MCF_USB_EPCR2_RXS (0x00000001) #define MCF_USB_EPCR2_RXD (0x00000002) #define MCF_USB_EPCR2_RXT(x) (((x)&0x00000003)<<2) #define MCF_USB_EPCR2_RXI (0x00000020) #define MCF_USB_EPCR2_RXR (0x00000040) #define MCF_USB_EPCR2_RXE (0x00000080) #define MCF_USB_EPCR2_TXS (0x00010000) #define MCF_USB_EPCR2_TXD (0x00020000) #define MCF_USB_EPCR2_TXT(x) (((x)&0x00000003)<<18) #define MCF_USB_EPCR2_TXI (0x00200000) #define MCF_USB_EPCR2_TXR (0x00400000) #define MCF_USB_EPCR2_TXE (0x00800000) /* Bit definitions and macros for EPCR3 */#define MCF_USB_EPCR3_RXS (0x00000001) #define MCF_USB_EPCR3_RXD (0x00000002) #define MCF_USB_EPCR3_RXT(x) (((x)&0x00000003)<<2) #define MCF_USB_EPCR3_RXI (0x00000020) #define MCF_USB_EPCR3_RXR (0x00000040) #define MCF_USB_EPCR3_RXE (0x00000080) #define MCF_USB_EPCR3_TXS (0x00010000) #define MCF_USB_EPCR3_TXD (0x00020000) #define MCF_USB_EPCR3_TXT(x) (((x)&0x00000003)<<18) #define MCF_USB_EPCR3_TXI (0x00200000) #define MCF_USB_EPCR3_TXR (0x00400000) #define MCF_USB_EPCR3_TXE (0x00800000) /********************************************************************/#endif /* __MCF5445X_USB_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -