27 #ifndef __HW_USBD_IP3511_H 28 #define __HW_USBD_IP3511_H 37 typedef volatile struct _EP_LIST {
43 typedef volatile struct {
44 volatile uint32_t DEVCMDSTAT;
45 volatile uint32_t INFO;
46 volatile uint32_t EPLISTSTART;
47 volatile uint32_t DATABUFSTART;
48 volatile uint32_t LPM;
49 volatile uint32_t EPSKIP;
50 volatile uint32_t EPINUSE;
51 volatile uint32_t EPBUFCFG;
52 volatile uint32_t INTSTAT;
53 volatile uint32_t INTEN;
54 volatile uint32_t INTSETSTAT;
55 volatile uint32_t INTROUTING;
56 volatile uint32_t RESERVED0[1];
57 volatile uint32_t EPTOGGLE;
60 #define EP_CMD_INFO_SIZE 8 61 #define EP_ZERO_BUF_MAX_BYTES (64 * 2) 64 #define BUF_ACTIVE (0x1U << 31) 65 #define EP_DISABLED (0x1 << 30) 66 #define EP_STALL (0x1 << 29) 67 #define EP_RESET (0x1 << 28) 68 #define EP_RF_TV (0x1 << 27) 69 #define EP_ISO_TYPE (0x1 << 26) 72 #define FS_EP_NBYTE_OFFSET 16 73 #define HS_EP_NBYTE_OFFSET 11 76 #define USB_EN (0x1 << 7) 77 #define USB_SETUP_RCVD (0x1 << 8) 78 #define USB_PLL_ON (0x1 << 9) 79 #define USB_FORCE_VBUS (0x1 << 10) 80 #define USB_LPM (0x1 << 11) 81 #define USB_IntOnNAK_AO (0x1 << 12) 82 #define USB_IntOnNAK_AI (0x1 << 13) 83 #define USB_IntOnNAK_CO (0x1 << 14) 84 #define USB_IntOnNAK_CI (0x1 << 15) 85 #define USB_DCON (0x1 << 16) 86 #define USB_DSUS (0x1 << 17) 87 #define USB_LPM_SUS (0x1 << 19) 88 #define USB_REMOTE_WAKE (0x1 << 20) 89 #define USB_CMD_STAT_SPEED_FULL (0x1 << 22) 90 #define USB_CMD_STAT_SPEED_HIGH (0x2 << 22) 91 #define USB_DCON_C (0x1 << 24) 92 #define USB_DSUS_C (0x1 << 25) 93 #define USB_DRESET_C (0x1 << 26) 94 #define USB_OTG_C (0x1 << 27) 95 #define USB_VBUS_DBOUNCE (0x1 << 28) 97 #define USB_TEST_MODE_DIS (0x0 << 29) 98 #define USB_TEST_MODE_J (0x1 << 29) 99 #define USB_TEST_MODE_K (0x2 << 29) 100 #define USB_TEST_MODE_SE0_NAK (0x3 << 29) 101 #define USB_TEST_MODE_PACKET (0x4 << 29) 102 #define USB_TEST_MODE_FORCE_ENA (0x5 << 29) 108 #define MAX_PHY_EP_INTS (0xFFFF) 110 #define NZ_EP_OUT_MASK (0x555555554) 111 #define NZ_EP_IN_MASK (0xAAAAAAAA8) 112 #define FRAME_INT (0x1 << 30) 113 #define DEV_STAT_INT (0x80000000) 117 #define FS_PKT_LNGTH_MASK 0x000003FF 118 #define HS_PKT_LNGTH_MASK 0x00007FFF 121 #define FS_ADDR_OFFSET_MASK 0x0000FFFF 122 #define HS_ADDR_OFFSET_MASK 0x000007FF 125 #define ERR_NOERROR 0x00 126 #define ERR_PID_ENCODE 0x01 127 #define ERR_UNKNOWN_PID 0x02 128 #define ERR_UNEXPECT_PKT 0x03 129 #define ERR_TCRC 0x04 130 #define ERR_DCRC 0x05 131 #define ERR_TIMEOUT 0x06 132 #define ERR_BABBIE 0x07 133 #define ERR_EOF_PKT 0x08 134 #define ERR_TX_RX_NAK 0x09 135 #define ERR_SENT_STALL 0x0A 136 #define ERR_BUF_OVERRUN 0x0B 137 #define ERR_SENT_EPT_PKT 0x0C 138 #define ERR_BIT_STUFF 0x0D 139 #define ERR_SYNC 0x0E 140 #define ERR_TOGGLE_BIT 0x0F Definition: hw_usbd_ip3511.h:43
Definition: hw_usbd_ip3511.h:37