| M480 BSP V3.05.001 The Board Support Package for M480 Series

hsusbd_reg.h
Go to the documentation of this file.
1 /**************************************************************************/
9 #ifndef __HSUSBD_REG_H__
10 #define __HSUSBD_REG_H__
11
12 #if defined ( __CC_ARM )
13 #pragma anon_unions
14 #endif
15
26 typedef struct
27 {
28
605 union
606 {
607 __IO uint32_t EPDAT;
608 __IO uint8_t EPDAT_BYTE;
609
610 };
612 __IO uint32_t EPINTSTS;
613 __IO uint32_t EPINTEN;
614 __I uint32_t EPDATCNT;
615 __IO uint32_t EPRSPCTL;
616 __IO uint32_t EPMPS;
617 __IO uint32_t EPTXCNT;
618 __IO uint32_t EPCFG;
619 __IO uint32_t EPBUFST;
620 __IO uint32_t EPBUFEND;
622 } HSUSBD_EP_T;
623
624 typedef struct
625 {
626
1945 __I uint32_t GINTSTS;
1946 __I uint32_t RESERVE0[1];
1949 __IO uint32_t GINTEN;
1950 __I uint32_t RESERVE1[1];
1953 __IO uint32_t BUSINTSTS;
1954 __IO uint32_t BUSINTEN;
1955 __IO uint32_t OPER;
1956 __I uint32_t FRAMECNT;
1957 __IO uint32_t FADDR;
1958 __IO uint32_t TEST;
1960 union
1961 {
1962 __IO uint32_t CEPDAT;
1963 __IO uint8_t CEPDAT_BYTE;
1964
1965 };
1967 __IO uint32_t CEPCTL;
1968 __IO uint32_t CEPINTEN;
1969 __IO uint32_t CEPINTSTS;
1970 __IO uint32_t CEPTXCNT;
1971 __I uint32_t CEPRXCNT;
1972 __I uint32_t CEPDATCNT;
1973 __I uint32_t SETUP1_0;
1974 __I uint32_t SETUP3_2;
1975 __I uint32_t SETUP5_4;
1976 __I uint32_t SETUP7_6;
1977 __IO uint32_t CEPBUFST;
1978 __IO uint32_t CEPBUFEND;
1979 __IO uint32_t DMACTL;
1980 __IO uint32_t DMACNT;
1982 HSUSBD_EP_T EP[12];
1983
1985 __I uint32_t RESERVE2[303];
1987 __IO uint32_t DMAADDR;
1988 __IO uint32_t PHYCTL;
1990 } HSUSBD_T;
1991
1997 #define HSUSBD_GINTSTS_USBIF_Pos (0)
1998 #define HSUSBD_GINTSTS_USBIF_Msk (0x1ul << HSUSBD_GINTSTS_USBIF_Pos)
2000 #define HSUSBD_GINTSTS_CEPIF_Pos (1)
2001 #define HSUSBD_GINTSTS_CEPIF_Msk (0x1ul << HSUSBD_GINTSTS_CEPIF_Pos)
2003 #define HSUSBD_GINTSTS_EPAIF_Pos (2)
2004 #define HSUSBD_GINTSTS_EPAIF_Msk (0x1ul << HSUSBD_GINTSTS_EPAIF_Pos)
2006 #define HSUSBD_GINTSTS_EPBIF_Pos (3)
2007 #define HSUSBD_GINTSTS_EPBIF_Msk (0x1ul << HSUSBD_GINTSTS_EPBIF_Pos)
2009 #define HSUSBD_GINTSTS_EPCIF_Pos (4)
2010 #define HSUSBD_GINTSTS_EPCIF_Msk (0x1ul << HSUSBD_GINTSTS_EPCIF_Pos)
2012 #define HSUSBD_GINTSTS_EPDIF_Pos (5)
2013 #define HSUSBD_GINTSTS_EPDIF_Msk (0x1ul << HSUSBD_GINTSTS_EPDIF_Pos)
2015 #define HSUSBD_GINTSTS_EPEIF_Pos (6)
2016 #define HSUSBD_GINTSTS_EPEIF_Msk (0x1ul << HSUSBD_GINTSTS_EPEIF_Pos)
2018 #define HSUSBD_GINTSTS_EPFIF_Pos (7)
2019 #define HSUSBD_GINTSTS_EPFIF_Msk (0x1ul << HSUSBD_GINTSTS_EPFIF_Pos)
2021 #define HSUSBD_GINTSTS_EPGIF_Pos (8)
2022 #define HSUSBD_GINTSTS_EPGIF_Msk (0x1ul << HSUSBD_GINTSTS_EPGIF_Pos)
2024 #define HSUSBD_GINTSTS_EPHIF_Pos (9)
2025 #define HSUSBD_GINTSTS_EPHIF_Msk (0x1ul << HSUSBD_GINTSTS_EPHIF_Pos)
2027 #define HSUSBD_GINTSTS_EPIIF_Pos (10)
2028 #define HSUSBD_GINTSTS_EPIIF_Msk (0x1ul << HSUSBD_GINTSTS_EPIIF_Pos)
2030 #define HSUSBD_GINTSTS_EPJIF_Pos (11)
2031 #define HSUSBD_GINTSTS_EPJIF_Msk (0x1ul << HSUSBD_GINTSTS_EPJIF_Pos)
2033 #define HSUSBD_GINTSTS_EPKIF_Pos (12)
2034 #define HSUSBD_GINTSTS_EPKIF_Msk (0x1ul << HSUSBD_GINTSTS_EPKIF_Pos)
2036 #define HSUSBD_GINTSTS_EPLIF_Pos (13)
2037 #define HSUSBD_GINTSTS_EPLIF_Msk (0x1ul << HSUSBD_GINTSTS_EPLIF_Pos)
2039 #define HSUSBD_GINTEN_USBIEN_Pos (0)
2040 #define HSUSBD_GINTEN_USBIEN_Msk (0x1ul << HSUSBD_GINTEN_USBIEN_Pos)
2042 #define HSUSBD_GINTEN_CEPIEN_Pos (1)
2043 #define HSUSBD_GINTEN_CEPIEN_Msk (0x1ul << HSUSBD_GINTEN_CEPIEN_Pos)
2045 #define HSUSBD_GINTEN_EPAIEN_Pos (2)
2046 #define HSUSBD_GINTEN_EPAIEN_Msk (0x1ul << HSUSBD_GINTEN_EPAIEN_Pos)
2048 #define HSUSBD_GINTEN_EPBIEN_Pos (3)
2049 #define HSUSBD_GINTEN_EPBIEN_Msk (0x1ul << HSUSBD_GINTEN_EPBIEN_Pos)
2051 #define HSUSBD_GINTEN_EPCIEN_Pos (4)
2052 #define HSUSBD_GINTEN_EPCIEN_Msk (0x1ul << HSUSBD_GINTEN_EPCIEN_Pos)
2054 #define HSUSBD_GINTEN_EPDIEN_Pos (5)
2055 #define HSUSBD_GINTEN_EPDIEN_Msk (0x1ul << HSUSBD_GINTEN_EPDIEN_Pos)
2057 #define HSUSBD_GINTEN_EPEIEN_Pos (6)
2058 #define HSUSBD_GINTEN_EPEIEN_Msk (0x1ul << HSUSBD_GINTEN_EPEIEN_Pos)
2060 #define HSUSBD_GINTEN_EPFIEN_Pos (7)
2061 #define HSUSBD_GINTEN_EPFIEN_Msk (0x1ul << HSUSBD_GINTEN_EPFIEN_Pos)
2063 #define HSUSBD_GINTEN_EPGIEN_Pos (8)
2064 #define HSUSBD_GINTEN_EPGIEN_Msk (0x1ul << HSUSBD_GINTEN_EPGIEN_Pos)
2066 #define HSUSBD_GINTEN_EPHIEN_Pos (9)
2067 #define HSUSBD_GINTEN_EPHIEN_Msk (0x1ul << HSUSBD_GINTEN_EPHIEN_Pos)
2069 #define HSUSBD_GINTEN_EPIIEN_Pos (10)
2070 #define HSUSBD_GINTEN_EPIIEN_Msk (0x1ul << HSUSBD_GINTEN_EPIIEN_Pos)
2072 #define HSUSBD_GINTEN_EPJIEN_Pos (11)
2073 #define HSUSBD_GINTEN_EPJIEN_Msk (0x1ul << HSUSBD_GINTEN_EPJIEN_Pos)
2075 #define HSUSBD_GINTEN_EPKIEN_Pos (12)
2076 #define HSUSBD_GINTEN_EPKIEN_Msk (0x1ul << HSUSBD_GINTEN_EPKIEN_Pos)
2078 #define HSUSBD_GINTEN_EPLIEN_Pos (13)
2079 #define HSUSBD_GINTEN_EPLIEN_Msk (0x1ul << HSUSBD_GINTEN_EPLIEN_Pos)
2081 #define HSUSBD_BUSINTSTS_SOFIF_Pos (0)
2082 #define HSUSBD_BUSINTSTS_SOFIF_Msk (0x1ul << HSUSBD_BUSINTSTS_SOFIF_Pos)
2084 #define HSUSBD_BUSINTSTS_RSTIF_Pos (1)
2085 #define HSUSBD_BUSINTSTS_RSTIF_Msk (0x1ul << HSUSBD_BUSINTSTS_RSTIF_Pos)
2087 #define HSUSBD_BUSINTSTS_RESUMEIF_Pos (2)
2088 #define HSUSBD_BUSINTSTS_RESUMEIF_Msk (0x1ul << HSUSBD_BUSINTSTS_RESUMEIF_Pos)
2090 #define HSUSBD_BUSINTSTS_SUSPENDIF_Pos (3)
2091 #define HSUSBD_BUSINTSTS_SUSPENDIF_Msk (0x1ul << HSUSBD_BUSINTSTS_SUSPENDIF_Pos)
2093 #define HSUSBD_BUSINTSTS_HISPDIF_Pos (4)
2094 #define HSUSBD_BUSINTSTS_HISPDIF_Msk (0x1ul << HSUSBD_BUSINTSTS_HISPDIF_Pos)
2096 #define HSUSBD_BUSINTSTS_DMADONEIF_Pos (5)
2097 #define HSUSBD_BUSINTSTS_DMADONEIF_Msk (0x1ul << HSUSBD_BUSINTSTS_DMADONEIF_Pos)
2099 #define HSUSBD_BUSINTSTS_PHYCLKVLDIF_Pos (6)
2100 #define HSUSBD_BUSINTSTS_PHYCLKVLDIF_Msk (0x1ul << HSUSBD_BUSINTSTS_PHYCLKVLDIF_Pos)
2102 #define HSUSBD_BUSINTSTS_VBUSDETIF_Pos (8)
2103 #define HSUSBD_BUSINTSTS_VBUSDETIF_Msk (0x1ul << HSUSBD_BUSINTSTS_VBUSDETIF_Pos)
2105 #define HSUSBD_BUSINTEN_SOFIEN_Pos (0)
2106 #define HSUSBD_BUSINTEN_SOFIEN_Msk (0x1ul << HSUSBD_BUSINTEN_SOFIEN_Pos)
2108 #define HSUSBD_BUSINTEN_RSTIEN_Pos (1)
2109 #define HSUSBD_BUSINTEN_RSTIEN_Msk (0x1ul << HSUSBD_BUSINTEN_RSTIEN_Pos)
2111 #define HSUSBD_BUSINTEN_RESUMEIEN_Pos (2)
2112 #define HSUSBD_BUSINTEN_RESUMEIEN_Msk (0x1ul << HSUSBD_BUSINTEN_RESUMEIEN_Pos)
2114 #define HSUSBD_BUSINTEN_SUSPENDIEN_Pos (3)
2115 #define HSUSBD_BUSINTEN_SUSPENDIEN_Msk (0x1ul << HSUSBD_BUSINTEN_SUSPENDIEN_Pos)
2117 #define HSUSBD_BUSINTEN_HISPDIEN_Pos (4)
2118 #define HSUSBD_BUSINTEN_HISPDIEN_Msk (0x1ul << HSUSBD_BUSINTEN_HISPDIEN_Pos)
2120 #define HSUSBD_BUSINTEN_DMADONEIEN_Pos (5)
2121 #define HSUSBD_BUSINTEN_DMADONEIEN_Msk (0x1ul << HSUSBD_BUSINTEN_DMADONEIEN_Pos)
2123 #define HSUSBD_BUSINTEN_PHYCLKVLDIEN_Pos (6)
2124 #define HSUSBD_BUSINTEN_PHYCLKVLDIEN_Msk (0x1ul << HSUSBD_BUSINTEN_PHYCLKVLDIEN_Pos)
2126 #define HSUSBD_BUSINTEN_VBUSDETIEN_Pos (8)
2127 #define HSUSBD_BUSINTEN_VBUSDETIEN_Msk (0x1ul << HSUSBD_BUSINTEN_VBUSDETIEN_Pos)
2129 #define HSUSBD_OPER_RESUMEEN_Pos (0)
2130 #define HSUSBD_OPER_RESUMEEN_Msk (0x1ul << HSUSBD_OPER_RESUMEEN_Pos)
2132 #define HSUSBD_OPER_HISPDEN_Pos (1)
2133 #define HSUSBD_OPER_HISPDEN_Msk (0x1ul << HSUSBD_OPER_HISPDEN_Pos)
2135 #define HSUSBD_OPER_CURSPD_Pos (2)
2136 #define HSUSBD_OPER_CURSPD_Msk (0x1ul << HSUSBD_OPER_CURSPD_Pos)
2138 #define HSUSBD_FRAMECNT_MFRAMECNT_Pos (0)
2139 #define HSUSBD_FRAMECNT_MFRAMECNT_Msk (0x7ul << HSUSBD_FRAMECNT_MFRAMECNT_Pos)
2141 #define HSUSBD_FRAMECNT_FRAMECNT_Pos (3)
2142 #define HSUSBD_FRAMECNT_FRAMECNT_Msk (0x7fful << HSUSBD_FRAMECNT_FRAMECNT_Pos)
2144 #define HSUSBD_FADDR_FADDR_Pos (0)
2145 #define HSUSBD_FADDR_FADDR_Msk (0x7ful << HSUSBD_FADDR_FADDR_Pos)
2147 #define HSUSBD_TEST_TESTMODE_Pos (0)
2148 #define HSUSBD_TEST_TESTMODE_Msk (0x7ul << HSUSBD_TEST_TESTMODE_Pos)
2150 #define HSUSBD_CEPDAT_DAT_Pos (0)
2151 #define HSUSBD_CEPDAT_DAT_Msk (0xfffffffful << HSUSBD_CEPDAT_DAT_Pos)
2153 #define HSUSBD_CEPCTL_NAKCLR_Pos (0)
2154 #define HSUSBD_CEPCTL_NAKCLR_Msk (0x1ul << HSUSBD_CEPCTL_NAKCLR_Pos)
2156 #define HSUSBD_CEPCTL_STALLEN_Pos (1)
2157 #define HSUSBD_CEPCTL_STALLEN_Msk (0x1ul << HSUSBD_CEPCTL_STALLEN_Pos)
2159 #define HSUSBD_CEPCTL_ZEROLEN_Pos (2)
2160 #define HSUSBD_CEPCTL_ZEROLEN_Msk (0x1ul << HSUSBD_CEPCTL_ZEROLEN_Pos)
2162 #define HSUSBD_CEPCTL_FLUSH_Pos (3)
2163 #define HSUSBD_CEPCTL_FLUSH_Msk (0x1ul << HSUSBD_CEPCTL_FLUSH_Pos)
2165 #define HSUSBD_CEPINTEN_SETUPTKIEN_Pos (0)
2166 #define HSUSBD_CEPINTEN_SETUPTKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_SETUPTKIEN_Pos)
2168 #define HSUSBD_CEPINTEN_SETUPPKIEN_Pos (1)
2169 #define HSUSBD_CEPINTEN_SETUPPKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_SETUPPKIEN_Pos)
2171 #define HSUSBD_CEPINTEN_OUTTKIEN_Pos (2)
2172 #define HSUSBD_CEPINTEN_OUTTKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_OUTTKIEN_Pos)
2174 #define HSUSBD_CEPINTEN_INTKIEN_Pos (3)
2175 #define HSUSBD_CEPINTEN_INTKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_INTKIEN_Pos)
2177 #define HSUSBD_CEPINTEN_PINGIEN_Pos (4)
2178 #define HSUSBD_CEPINTEN_PINGIEN_Msk (0x1ul << HSUSBD_CEPINTEN_PINGIEN_Pos)
2180 #define HSUSBD_CEPINTEN_TXPKIEN_Pos (5)
2181 #define HSUSBD_CEPINTEN_TXPKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_TXPKIEN_Pos)
2183 #define HSUSBD_CEPINTEN_RXPKIEN_Pos (6)
2184 #define HSUSBD_CEPINTEN_RXPKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_RXPKIEN_Pos)
2186 #define HSUSBD_CEPINTEN_NAKIEN_Pos (7)
2187 #define HSUSBD_CEPINTEN_NAKIEN_Msk (0x1ul << HSUSBD_CEPINTEN_NAKIEN_Pos)
2189 #define HSUSBD_CEPINTEN_STALLIEN_Pos (8)
2190 #define HSUSBD_CEPINTEN_STALLIEN_Msk (0x1ul << HSUSBD_CEPINTEN_STALLIEN_Pos)
2192 #define HSUSBD_CEPINTEN_ERRIEN_Pos (9)
2193 #define HSUSBD_CEPINTEN_ERRIEN_Msk (0x1ul << HSUSBD_CEPINTEN_ERRIEN_Pos)
2195 #define HSUSBD_CEPINTEN_STSDONEIEN_Pos (10)
2196 #define HSUSBD_CEPINTEN_STSDONEIEN_Msk (0x1ul << HSUSBD_CEPINTEN_STSDONEIEN_Pos)
2198 #define HSUSBD_CEPINTEN_BUFFULLIEN_Pos (11)
2199 #define HSUSBD_CEPINTEN_BUFFULLIEN_Msk (0x1ul << HSUSBD_CEPINTEN_BUFFULLIEN_Pos)
2201 #define HSUSBD_CEPINTEN_BUFEMPTYIEN_Pos (12)
2202 #define HSUSBD_CEPINTEN_BUFEMPTYIEN_Msk (0x1ul << HSUSBD_CEPINTEN_BUFEMPTYIEN_Pos)
2204 #define HSUSBD_CEPINTSTS_SETUPTKIF_Pos (0)
2205 #define HSUSBD_CEPINTSTS_SETUPTKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_SETUPTKIF_Pos)
2207 #define HSUSBD_CEPINTSTS_SETUPPKIF_Pos (1)
2208 #define HSUSBD_CEPINTSTS_SETUPPKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_SETUPPKIF_Pos)
2210 #define HSUSBD_CEPINTSTS_OUTTKIF_Pos (2)
2211 #define HSUSBD_CEPINTSTS_OUTTKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_OUTTKIF_Pos)
2213 #define HSUSBD_CEPINTSTS_INTKIF_Pos (3)
2214 #define HSUSBD_CEPINTSTS_INTKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_INTKIF_Pos)
2216 #define HSUSBD_CEPINTSTS_PINGIF_Pos (4)
2217 #define HSUSBD_CEPINTSTS_PINGIF_Msk (0x1ul << HSUSBD_CEPINTSTS_PINGIF_Pos)
2219 #define HSUSBD_CEPINTSTS_TXPKIF_Pos (5)
2220 #define HSUSBD_CEPINTSTS_TXPKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_TXPKIF_Pos)
2222 #define HSUSBD_CEPINTSTS_RXPKIF_Pos (6)
2223 #define HSUSBD_CEPINTSTS_RXPKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_RXPKIF_Pos)
2225 #define HSUSBD_CEPINTSTS_NAKIF_Pos (7)
2226 #define HSUSBD_CEPINTSTS_NAKIF_Msk (0x1ul << HSUSBD_CEPINTSTS_NAKIF_Pos)
2228 #define HSUSBD_CEPINTSTS_STALLIF_Pos (8)
2229 #define HSUSBD_CEPINTSTS_STALLIF_Msk (0x1ul << HSUSBD_CEPINTSTS_STALLIF_Pos)
2231 #define HSUSBD_CEPINTSTS_ERRIF_Pos (9)
2232 #define HSUSBD_CEPINTSTS_ERRIF_Msk (0x1ul << HSUSBD_CEPINTSTS_ERRIF_Pos)
2234 #define HSUSBD_CEPINTSTS_STSDONEIF_Pos (10)
2235 #define HSUSBD_CEPINTSTS_STSDONEIF_Msk (0x1ul << HSUSBD_CEPINTSTS_STSDONEIF_Pos)
2237 #define HSUSBD_CEPINTSTS_BUFFULLIF_Pos (11)
2238 #define HSUSBD_CEPINTSTS_BUFFULLIF_Msk (0x1ul << HSUSBD_CEPINTSTS_BUFFULLIF_Pos)
2240 #define HSUSBD_CEPINTSTS_BUFEMPTYIF_Pos (12)
2241 #define HSUSBD_CEPINTSTS_BUFEMPTYIF_Msk (0x1ul << HSUSBD_CEPINTSTS_BUFEMPTYIF_Pos)
2243 #define HSUSBD_CEPTXCNT_TXCNT_Pos (0)
2244 #define HSUSBD_CEPTXCNT_TXCNT_Msk (0xfful << HSUSBD_CEPTXCNT_TXCNT_Pos)
2246 #define HSUSBD_CEPRXCNT_RXCNT_Pos (0)
2247 #define HSUSBD_CEPRXCNT_RXCNT_Msk (0xfful << HSUSBD_CEPRXCNT_RXCNT_Pos)
2249 #define HSUSBD_CEPDATCNT_DATCNT_Pos (0)
2250 #define HSUSBD_CEPDATCNT_DATCNT_Msk (0xfffful << HSUSBD_CEPDATCNT_DATCNT_Pos)
2252 #define HSUSBD_SETUP1_0_SETUP0_Pos (0)
2253 #define HSUSBD_SETUP1_0_SETUP0_Msk (0xfful << HSUSBD_SETUP1_0_SETUP0_Pos)
2255 #define HSUSBD_SETUP1_0_SETUP1_Pos (8)
2256 #define HSUSBD_SETUP1_0_SETUP1_Msk (0xfful << HSUSBD_SETUP1_0_SETUP1_Pos)
2258 #define HSUSBD_SETUP3_2_SETUP2_Pos (0)
2259 #define HSUSBD_SETUP3_2_SETUP2_Msk (0xfful << HSUSBD_SETUP3_2_SETUP2_Pos)
2261 #define HSUSBD_SETUP3_2_SETUP3_Pos (8)
2262 #define HSUSBD_SETUP3_2_SETUP3_Msk (0xfful << HSUSBD_SETUP3_2_SETUP3_Pos)
2264 #define HSUSBD_SETUP5_4_SETUP4_Pos (0)
2265 #define HSUSBD_SETUP5_4_SETUP4_Msk (0xfful << HSUSBD_SETUP5_4_SETUP4_Pos)
2267 #define HSUSBD_SETUP5_4_SETUP5_Pos (8)
2268 #define HSUSBD_SETUP5_4_SETUP5_Msk (0xfful << HSUSBD_SETUP5_4_SETUP5_Pos)
2270 #define HSUSBD_SETUP7_6_SETUP6_Pos (0)
2271 #define HSUSBD_SETUP7_6_SETUP6_Msk (0xfful << HSUSBD_SETUP7_6_SETUP6_Pos)
2273 #define HSUSBD_SETUP7_6_SETUP7_Pos (8)
2274 #define HSUSBD_SETUP7_6_SETUP7_Msk (0xfful << HSUSBD_SETUP7_6_SETUP7_Pos)
2276 #define HSUSBD_CEPBUFST_SADDR_Pos (0)
2277 #define HSUSBD_CEPBUFST_SADDR_Msk (0xffful << HSUSBD_CEPBUFST_SADDR_Pos)
2279 #define HSUSBD_CEPBUFEND_EADDR_Pos (0)
2280 #define HSUSBD_CEPBUFEND_EADDR_Msk (0xffful << HSUSBD_CEPBUFEND_EADDR_Pos)
2282 #define HSUSBD_DMACTL_EPNUM_Pos (0)
2283 #define HSUSBD_DMACTL_EPNUM_Msk (0xful << HSUSBD_DMACTL_EPNUM_Pos)
2285 #define HSUSBD_DMACTL_DMARD_Pos (4)
2286 #define HSUSBD_DMACTL_DMARD_Msk (0x1ul << HSUSBD_DMACTL_DMARD_Pos)
2288 #define HSUSBD_DMACTL_DMAEN_Pos (5)
2289 #define HSUSBD_DMACTL_DMAEN_Msk (0x1ul << HSUSBD_DMACTL_DMAEN_Pos)
2291 #define HSUSBD_DMACTL_SGEN_Pos (6)
2292 #define HSUSBD_DMACTL_SGEN_Msk (0x1ul << HSUSBD_DMACTL_SGEN_Pos)
2294 #define HSUSBD_DMACTL_DMARST_Pos (7)
2295 #define HSUSBD_DMACTL_DMARST_Msk (0x1ul << HSUSBD_DMACTL_DMARST_Pos)
2297 #define HSUSBD_DMACTL_SVINEP_Pos (8)
2298 #define HSUSBD_DMACTL_SVINEP_Msk (0x1ul << HSUSBD_DMACTL_SVINEP_Pos)
2300 #define HSUSBD_DMACNT_DMACNT_Pos (0)
2301 #define HSUSBD_DMACNT_DMACNT_Msk (0xffffful << HSUSBD_DMACNT_DMACNT_Pos)
2303 #define HSUSBD_EPDAT_EPDAT_Pos (0)
2304 #define HSUSBD_EPDAT_EPDAT_Msk (0xfffffffful << HSUSBD_EPDAT_EPDAT_Pos)
2306 #define HSUSBD_EPINTSTS_BUFFULLIF_Pos (0)
2307 #define HSUSBD_EPINTSTS_BUFFULLIF_Msk (0x1ul << HSUSBD_EPINTSTS_BUFFULLIF_Pos)
2309 #define HSUSBD_EPINTSTS_BUFEMPTYIF_Pos (1)
2310 #define HSUSBD_EPINTSTS_BUFEMPTYIF_Msk (0x1ul << HSUSBD_EPINTSTS_BUFEMPTYIF_Pos)
2312 #define HSUSBD_EPINTSTS_SHORTTXIF_Pos (2)
2313 #define HSUSBD_EPINTSTS_SHORTTXIF_Msk (0x1ul << HSUSBD_EPINTSTS_SHORTTXIF_Pos)
2315 #define HSUSBD_EPINTSTS_TXPKIF_Pos (3)
2316 #define HSUSBD_EPINTSTS_TXPKIF_Msk (0x1ul << HSUSBD_EPINTSTS_TXPKIF_Pos)
2318 #define HSUSBD_EPINTSTS_RXPKIF_Pos (4)
2319 #define HSUSBD_EPINTSTS_RXPKIF_Msk (0x1ul << HSUSBD_EPINTSTS_RXPKIF_Pos)
2321 #define HSUSBD_EPINTSTS_OUTTKIF_Pos (5)
2322 #define HSUSBD_EPINTSTS_OUTTKIF_Msk (0x1ul << HSUSBD_EPINTSTS_OUTTKIF_Pos)
2324 #define HSUSBD_EPINTSTS_INTKIF_Pos (6)
2325 #define HSUSBD_EPINTSTS_INTKIF_Msk (0x1ul << HSUSBD_EPINTSTS_INTKIF_Pos)
2327 #define HSUSBD_EPINTSTS_PINGIF_Pos (7)
2328 #define HSUSBD_EPINTSTS_PINGIF_Msk (0x1ul << HSUSBD_EPINTSTS_PINGIF_Pos)
2330 #define HSUSBD_EPINTSTS_NAKIF_Pos (8)
2331 #define HSUSBD_EPINTSTS_NAKIF_Msk (0x1ul << HSUSBD_EPINTSTS_NAKIF_Pos)
2333 #define HSUSBD_EPINTSTS_STALLIF_Pos (9)
2334 #define HSUSBD_EPINTSTS_STALLIF_Msk (0x1ul << HSUSBD_EPINTSTS_STALLIF_Pos)
2336 #define HSUSBD_EPINTSTS_NYETIF_Pos (10)
2337 #define HSUSBD_EPINTSTS_NYETIF_Msk (0x1ul << HSUSBD_EPINTSTS_NYETIF_Pos)
2339 #define HSUSBD_EPINTSTS_ERRIF_Pos (11)
2340 #define HSUSBD_EPINTSTS_ERRIF_Msk (0x1ul << HSUSBD_EPINTSTS_ERRIF_Pos)
2342 #define HSUSBD_EPINTSTS_SHORTRXIF_Pos (12)
2343 #define HSUSBD_EPINTSTS_SHORTRXIF_Msk (0x1ul << HSUSBD_EPINTSTS_SHORTRXIF_Pos)
2345 #define HSUSBD_EPINTEN_BUFFULLIEN_Pos (0)
2346 #define HSUSBD_EPINTEN_BUFFULLIEN_Msk (0x1ul << HSUSBD_EPINTEN_BUFFULLIEN_Pos)
2348 #define HSUSBD_EPINTEN_BUFEMPTYIEN_Pos (1)
2349 #define HSUSBD_EPINTEN_BUFEMPTYIEN_Msk (0x1ul << HSUSBD_EPINTEN_BUFEMPTYIEN_Pos)
2351 #define HSUSBD_EPINTEN_SHORTTXIEN_Pos (2)
2352 #define HSUSBD_EPINTEN_SHORTTXIEN_Msk (0x1ul << HSUSBD_EPINTEN_SHORTTXIEN_Pos)
2354 #define HSUSBD_EPINTEN_TXPKIEN_Pos (3)
2355 #define HSUSBD_EPINTEN_TXPKIEN_Msk (0x1ul << HSUSBD_EPINTEN_TXPKIEN_Pos)
2357 #define HSUSBD_EPINTEN_RXPKIEN_Pos (4)
2358 #define HSUSBD_EPINTEN_RXPKIEN_Msk (0x1ul << HSUSBD_EPINTEN_RXPKIEN_Pos)
2360 #define HSUSBD_EPINTEN_OUTTKIEN_Pos (5)
2361 #define HSUSBD_EPINTEN_OUTTKIEN_Msk (0x1ul << HSUSBD_EPINTEN_OUTTKIEN_Pos)
2363 #define HSUSBD_EPINTEN_INTKIEN_Pos (6)
2364 #define HSUSBD_EPINTEN_INTKIEN_Msk (0x1ul << HSUSBD_EPINTEN_INTKIEN_Pos)
2366 #define HSUSBD_EPINTEN_PINGIEN_Pos (7)
2367 #define HSUSBD_EPINTEN_PINGIEN_Msk (0x1ul << HSUSBD_EPINTEN_PINGIEN_Pos)
2369 #define HSUSBD_EPINTEN_NAKIEN_Pos (8)
2370 #define HSUSBD_EPINTEN_NAKIEN_Msk (0x1ul << HSUSBD_EPINTEN_NAKIEN_Pos)
2372 #define HSUSBD_EPINTEN_STALLIEN_Pos (9)
2373 #define HSUSBD_EPINTEN_STALLIEN_Msk (0x1ul << HSUSBD_EPINTEN_STALLIEN_Pos)
2375 #define HSUSBD_EPINTEN_NYETIEN_Pos (10)
2376 #define HSUSBD_EPINTEN_NYETIEN_Msk (0x1ul << HSUSBD_EPINTEN_NYETIEN_Pos)
2378 #define HSUSBD_EPINTEN_ERRIEN_Pos (11)
2379 #define HSUSBD_EPINTEN_ERRIEN_Msk (0x1ul << HSUSBD_EPINTEN_ERRIEN_Pos)
2381 #define HSUSBD_EPINTEN_SHORTRXIEN_Pos (12)
2382 #define HSUSBD_EPINTEN_SHORTRXIEN_Msk (0x1ul << HSUSBD_EPINTEN_SHORTRXIEN_Pos)
2384 #define HSUSBD_EPDATCNT_DATCNT_Pos (0)
2385 #define HSUSBD_EPDATCNT_DATCNT_Msk (0xfffful << HSUSBD_EPDATCNT_DATCNT_Pos)
2387 #define HSUSBD_EPDATCNT_DMALOOP_Pos (16)
2388 #define HSUSBD_EPDATCNT_DMALOOP_Msk (0x7ffful << HSUSBD_EPDATCNT_DMALOOP_Pos)
2390 #define HSUSBD_EPRSPCTL_FLUSH_Pos (0)
2391 #define HSUSBD_EPRSPCTL_FLUSH_Msk (0x1ul << HSUSBD_EPRSPCTL_FLUSH_Pos)
2393 #define HSUSBD_EPRSPCTL_MODE_Pos (1)
2394 #define HSUSBD_EPRSPCTL_MODE_Msk (0x3ul << HSUSBD_EPRSPCTL_MODE_Pos)
2396 #define HSUSBD_EPRSPCTL_TOGGLE_Pos (3)
2397 #define HSUSBD_EPRSPCTL_TOGGLE_Msk (0x1ul << HSUSBD_EPRSPCTL_TOGGLE_Pos)
2399 #define HSUSBD_EPRSPCTL_HALT_Pos (4)
2400 #define HSUSBD_EPRSPCTL_HALT_Msk (0x1ul << HSUSBD_EPRSPCTL_HALT_Pos)
2402 #define HSUSBD_EPRSPCTL_ZEROLEN_Pos (5)
2403 #define HSUSBD_EPRSPCTL_ZEROLEN_Msk (0x1ul << HSUSBD_EPRSPCTL_ZEROLEN_Pos)
2405 #define HSUSBD_EPRSPCTL_SHORTTXEN_Pos (6)
2406 #define HSUSBD_EPRSPCTL_SHORTTXEN_Msk (0x1ul << HSUSBD_EPRSPCTL_SHORTTXEN_Pos)
2408 #define HSUSBD_EPRSPCTL_DISBUF_Pos (7)
2409 #define HSUSBD_EPRSPCTL_DISBUF_Msk (0x1ul << HSUSBD_EPRSPCTL_DISBUF_Pos)
2411 #define HSUSBD_EPMPS_EPMPS_Pos (0)
2412 #define HSUSBD_EPMPS_EPMPS_Msk (0x7fful << HSUSBD_EPMPS_EPMPS_Pos)
2414 #define HSUSBD_EPTXCNT_TXCNT_Pos (0)
2415 #define HSUSBD_EPTXCNT_TXCNT_Msk (0x7fful << HSUSBD_EPTXCNT_TXCNT_Pos)
2417 #define HSUSBD_EPCFG_EPEN_Pos (0)
2418 #define HSUSBD_EPCFG_EPEN_Msk (0x1ul << HSUSBD_EPCFG_EPEN_Pos)
2420 #define HSUSBD_EPCFG_EPTYPE_Pos (1)
2421 #define HSUSBD_EPCFG_EPTYPE_Msk (0x3ul << HSUSBD_EPCFG_EPTYPE_Pos)
2423 #define HSUSBD_EPCFG_EPDIR_Pos (3)
2424 #define HSUSBD_EPCFG_EPDIR_Msk (0x1ul << HSUSBD_EPCFG_EPDIR_Pos)
2426 #define HSUSBD_EPCFG_EPNUM_Pos (4)
2427 #define HSUSBD_EPCFG_EPNUM_Msk (0xful << HSUSBD_EPCFG_EPNUM_Pos)
2429 #define HSUSBD_EPBUFST_SADDR_Pos (0)
2430 #define HSUSBD_EPBUFST_SADDR_Msk (0xffful << HSUSBD_EPBUFST_SADDR_Pos)
2432 #define HSUSBD_EPBUFEND_EADDR_Pos (0)
2433 #define HSUSBD_EPBUFEND_EADDR_Msk (0xffful << HSUSBD_EPBUFEND_EADDR_Pos)
2435 #define HSUSBD_DMAADDR_DMAADDR_Pos (0)
2436 #define HSUSBD_DMAADDR_DMAADDR_Msk (0xfffffffful << HSUSBD_DMAADDR_DMAADDR_Pos)
2438 #define HSUSBD_PHYCTL_DPPUEN_Pos (8)
2439 #define HSUSBD_PHYCTL_DPPUEN_Msk (0x1ul << HSUSBD_PHYCTL_DPPUEN_Pos)
2441 #define HSUSBD_PHYCTL_PHYEN_Pos (9)
2442 #define HSUSBD_PHYCTL_PHYEN_Msk (0x1ul << HSUSBD_PHYCTL_PHYEN_Pos)
2444 #define HSUSBD_PHYCTL_WKEN_Pos (24)
2445 #define HSUSBD_PHYCTL_WKEN_Msk (0x1ul << HSUSBD_PHYCTL_WKEN_Pos)
2447 #define HSUSBD_PHYCTL_VBUSDET_Pos (31)
2448 #define HSUSBD_PHYCTL_VBUSDET_Msk (0x1ul << HSUSBD_PHYCTL_VBUSDET_Pos) /* HSUSBD_CONST */
2451 /* end of HSUSBD register group */ /* end of REGISTER group */
2453
2454 #if defined ( __CC_ARM )
2455 #pragma no_anon_unions
2456 #endif
2457
2458 #endif /* __HSUSBD_REG_H__ */
HSUSBD_T::DMACNT
__IO uint32_t DMACNT
Definition: hsusbd_reg.h:1980
HSUSBD_T::PHYCTL
__IO uint32_t PHYCTL
Definition: hsusbd_reg.h:1988
HSUSBD_T
Definition: hsusbd_reg.h:624
HSUSBD_T::DMAADDR
__IO uint32_t DMAADDR
Definition: hsusbd_reg.h:1987
HSUSBD_EP_T::EPDAT_BYTE
__IO uint8_t EPDAT_BYTE
Definition: hsusbd_reg.h:608
HSUSBD_EP_T::EPDATCNT
__I uint32_t EPDATCNT
Definition: hsusbd_reg.h:614
HSUSBD_T::CEPDATCNT
__I uint32_t CEPDATCNT
Definition: hsusbd_reg.h:1972
HSUSBD_EP_T
Definition: hsusbd_reg.h:26
HSUSBD_T::GINTEN
__IO uint32_t GINTEN
Definition: hsusbd_reg.h:1949
HSUSBD_EP_T::EPINTSTS
__IO uint32_t EPINTSTS
Definition: hsusbd_reg.h:612
HSUSBD_T::SETUP7_6
__I uint32_t SETUP7_6
Definition: hsusbd_reg.h:1976
HSUSBD_T::CEPINTSTS
__IO uint32_t CEPINTSTS
Definition: hsusbd_reg.h:1969
HSUSBD_T::GINTSTS
__I uint32_t GINTSTS
Definition: hsusbd_reg.h:1945
HSUSBD_T::CEPCTL
__IO uint32_t CEPCTL
Definition: hsusbd_reg.h:1967
HSUSBD_T::FADDR
__IO uint32_t FADDR
Definition: hsusbd_reg.h:1957
HSUSBD_EP_T::EPBUFEND
__IO uint32_t EPBUFEND
Definition: hsusbd_reg.h:620
HSUSBD_EP_T::EPRSPCTL
__IO uint32_t EPRSPCTL
Definition: hsusbd_reg.h:615
HSUSBD_T::BUSINTEN
__IO uint32_t BUSINTEN
Definition: hsusbd_reg.h:1954
HSUSBD_T::BUSINTSTS
__IO uint32_t BUSINTSTS
Definition: hsusbd_reg.h:1953
HSUSBD_T::OPER
__IO uint32_t OPER
Definition: hsusbd_reg.h:1955
HSUSBD_T::CEPBUFST
__IO uint32_t CEPBUFST
Definition: hsusbd_reg.h:1977
HSUSBD_T::FRAMECNT
__I uint32_t FRAMECNT
Definition: hsusbd_reg.h:1956
HSUSBD_T::CEPBUFEND
__IO uint32_t CEPBUFEND
Definition: hsusbd_reg.h:1978
HSUSBD_T::SETUP3_2
__I uint32_t SETUP3_2
Definition: hsusbd_reg.h:1974
HSUSBD_T::CEPTXCNT
__IO uint32_t CEPTXCNT
Definition: hsusbd_reg.h:1970
HSUSBD_EP_T::EPMPS
__IO uint32_t EPMPS
Definition: hsusbd_reg.h:616
HSUSBD_T::CEPDAT
__IO uint32_t CEPDAT
Definition: hsusbd_reg.h:1962
HSUSBD_T::DMACTL
__IO uint32_t DMACTL
Definition: hsusbd_reg.h:1979
HSUSBD_T::CEPINTEN
__IO uint32_t CEPINTEN
Definition: hsusbd_reg.h:1968
HSUSBD_T::CEPDAT_BYTE
__IO uint8_t CEPDAT_BYTE
Definition: hsusbd_reg.h:1963
HSUSBD_T::TEST
__IO uint32_t TEST
Definition: hsusbd_reg.h:1958
HSUSBD_T::CEPRXCNT
__I uint32_t CEPRXCNT
Definition: hsusbd_reg.h:1971
HSUSBD_EP_T::EPBUFST
__IO uint32_t EPBUFST
Definition: hsusbd_reg.h:619
HSUSBD_T::SETUP5_4
__I uint32_t SETUP5_4
Definition: hsusbd_reg.h:1975
HSUSBD_EP_T::EPDAT
__IO uint32_t EPDAT
Definition: hsusbd_reg.h:607
HSUSBD_EP_T::EPCFG
__IO uint32_t EPCFG
Definition: hsusbd_reg.h:618
HSUSBD_EP_T::EPTXCNT
__IO uint32_t EPTXCNT
Definition: hsusbd_reg.h:617
HSUSBD_EP_T::EPINTEN
__IO uint32_t EPINTEN
Definition: hsusbd_reg.h:613
HSUSBD_T::SETUP1_0
__I uint32_t SETUP1_0
Definition: hsusbd_reg.h:1973