Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
usb_regs.h
00001 /******************************************************************************* 00002 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. 00003 * 00004 * Permission is hereby granted, free of charge, to any person obtaining a 00005 * copy of this software and associated documentation files (the "Software"), 00006 * to deal in the Software without restriction, including without limitation 00007 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00008 * and/or sell copies of the Software, and to permit persons to whom the 00009 * Software is furnished to do so, subject to the following conditions: 00010 * 00011 * The above copyright notice and this permission notice shall be included 00012 * in all copies or substantial portions of the Software. 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00015 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00016 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00017 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES 00018 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00019 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00020 * OTHER DEALINGS IN THE SOFTWARE. 00021 * 00022 * Except as contained in this notice, the name of Maxim Integrated 00023 * Products, Inc. shall not be used except as stated in the Maxim Integrated 00024 * Products, Inc. Branding Policy. 00025 * 00026 * The mere transfer of this software does not imply any licenses 00027 * of trade secrets, proprietary technology, copyrights, patents, 00028 * trademarks, maskwork rights, or any other form of intellectual 00029 * property whatsoever. Maxim Integrated Products, Inc. retains all 00030 * ownership rights. 00031 * 00032 ******************************************************************************/ 00033 00034 #ifndef _MXC_USB_REGS_H_ 00035 #define _MXC_USB_REGS_H_ 00036 00037 #include <stdint.h> 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 /* 00044 If types are not defined elsewhere (CMSIS) define them here 00045 */ 00046 #ifndef __IO 00047 #define __IO volatile 00048 #endif 00049 #ifndef __I 00050 #define __I volatile const 00051 #endif 00052 #ifndef __O 00053 #define __O volatile 00054 #endif 00055 #ifndef __R 00056 #define __R volatile const 00057 #endif 00058 00059 00060 #define MXC_V_USB_EP_DIR_DISABLE ((uint32_t)0x00000000UL) 00061 #define MXC_V_USB_EP_DIR_OUT ((uint32_t)0x00000001UL) 00062 #define MXC_V_USB_EP_DIR_IN ((uint32_t)0x00000002UL) 00063 #define MXC_V_USB_EP_DIR_CONTROL ((uint32_t)0x00000003UL) 00064 00065 #define MXC_S_USB_EP_DIR_DISABLE (MXC_V_USB_EP_DIR_DISABLE << MXC_F_USB_EP_DIR_POS) 00066 #define MXC_S_USB_EP_DIR_OUT (MXC_V_USB_EP_DIR_OUT << MXC_F_USB_EP_DIR_POS) 00067 #define MXC_S_USB_EP_DIR_IN (MXC_V_USB_EP_DIR_IN << MXC_F_USB_EP_DIR_POS) 00068 #define MXC_S_USB_EP_DIR_CONTROL (MXC_V_USB_EP_DIR_CONTROL << MXC_F_USB_EP_DIR_POS) 00069 00070 /* 00071 Typedefed structure(s) for module registers (per instance or section) with direct 32-bit 00072 access to each register in module. 00073 */ 00074 00075 /* Offset Register Description 00076 ============= ============================================================================ */ 00077 typedef struct { 00078 __IO uint32_t cn; /* 0x0000 USB Control Register */ 00079 __R uint32_t rsv004[127]; /* 0x0004-0x01FC */ 00080 __IO uint32_t dev_addr; /* 0x0200 USB Device Address Register */ 00081 __IO uint32_t dev_cn; /* 0x0204 USB Device Control Register */ 00082 __IO uint32_t dev_intfl; /* 0x0208 USB Device Interrupt */ 00083 __IO uint32_t dev_inten; /* 0x020C USB Device Interrupt Enable */ 00084 __R uint32_t rsv210[4]; /* 0x0210-0x021C */ 00085 __IO uint32_t ep_base; /* 0x0220 USB Endpoint Descriptor Table Base Address */ 00086 __IO uint32_t cur_buf; /* 0x0224 USB Current Endpoint Buffer Register */ 00087 __IO uint32_t in_owner; /* 0x0228 USB IN Endpoint Buffer Owner Register */ 00088 __IO uint32_t out_owner; /* 0x022C USB OUT Endpoint Buffer Owner Register */ 00089 __IO uint32_t in_int; /* 0x0230 USB IN Endpoint Buffer Available Interrupt */ 00090 __IO uint32_t out_int; /* 0x0234 USB OUT Endpoint Data Available Interrupt */ 00091 __IO uint32_t nak_int; /* 0x0238 USB IN Endpoint NAK Interrupt */ 00092 __IO uint32_t dma_err_int; /* 0x023C USB DMA Error Interrupt */ 00093 __IO uint32_t buf_ovr_int; /* 0x0240 USB Buffer Overflow Interrupt */ 00094 __R uint32_t rsv244[7]; /* 0x0244-0x025C */ 00095 __IO uint32_t setup0; /* 0x0260 USB SETUP Packet Bytes 0 to 3 */ 00096 __IO uint32_t setup1; /* 0x0264 USB SETUP Packet Bytes 4 to 7 */ 00097 __R uint32_t rsv268[6]; /* 0x0268-0x027C */ 00098 __IO uint32_t ep[8]; /* 0x0280-0x029C USB Endpoint[n] Control Register */ 00099 } mxc_usb_regs_t; 00100 00101 00102 /* 00103 Register offsets for module USB. 00104 */ 00105 00106 #define MXC_R_USB_OFFS_CN ((uint32_t)0x00000000UL) 00107 #define MXC_R_USB_OFFS_DEV_ADDR ((uint32_t)0x00000200UL) 00108 #define MXC_R_USB_OFFS_DEV_CN ((uint32_t)0x00000204UL) 00109 #define MXC_R_USB_OFFS_DEV_INTFL ((uint32_t)0x00000208UL) 00110 #define MXC_R_USB_OFFS_DEV_INTEN ((uint32_t)0x0000020CUL) 00111 #define MXC_R_USB_OFFS_EP_BASE ((uint32_t)0x00000220UL) 00112 #define MXC_R_USB_OFFS_CUR_BUF ((uint32_t)0x00000224UL) 00113 #define MXC_R_USB_OFFS_IN_OWNER ((uint32_t)0x00000228UL) 00114 #define MXC_R_USB_OFFS_OUT_OWNER ((uint32_t)0x0000022CUL) 00115 #define MXC_R_USB_OFFS_IN_INT ((uint32_t)0x00000230UL) 00116 #define MXC_R_USB_OFFS_OUT_INT ((uint32_t)0x00000234UL) 00117 #define MXC_R_USB_OFFS_NAK_INT ((uint32_t)0x00000238UL) 00118 #define MXC_R_USB_OFFS_DMA_ERR_INT ((uint32_t)0x0000023CUL) 00119 #define MXC_R_USB_OFFS_BUF_OVR_INT ((uint32_t)0x00000240UL) 00120 #define MXC_R_USB_OFFS_SETUP0 ((uint32_t)0x00000260UL) 00121 #define MXC_R_USB_OFFS_SETUP1 ((uint32_t)0x00000264UL) 00122 #define MXC_R_USB_OFFS_EP0 ((uint32_t)0x00000280UL) 00123 #define MXC_R_USB_OFFS_EP1 ((uint32_t)0x00000284UL) 00124 #define MXC_R_USB_OFFS_EP2 ((uint32_t)0x00000288UL) 00125 #define MXC_R_USB_OFFS_EP3 ((uint32_t)0x0000028CUL) 00126 #define MXC_R_USB_OFFS_EP4 ((uint32_t)0x00000290UL) 00127 #define MXC_R_USB_OFFS_EP5 ((uint32_t)0x00000294UL) 00128 #define MXC_R_USB_OFFS_EP6 ((uint32_t)0x00000298UL) 00129 #define MXC_R_USB_OFFS_EP7 ((uint32_t)0x0000029CUL) 00130 00131 00132 /* 00133 Field positions and masks for module USB. 00134 */ 00135 00136 #define MXC_F_USB_CN_USB_EN_POS 0 00137 #define MXC_F_USB_CN_USB_EN ((uint32_t)(0x00000001UL << MXC_F_USB_CN_USB_EN_POS)) 00138 #define MXC_F_USB_CN_HOST_POS 1 00139 #define MXC_F_USB_CN_HOST ((uint32_t)(0x00000001UL << MXC_F_USB_CN_HOST_POS)) 00140 00141 #define MXC_F_USB_DEV_ADDR_DEV_ADDR_POS 0 00142 #define MXC_F_USB_DEV_ADDR_DEV_ADDR ((uint32_t)(0x0000007FUL << MXC_F_USB_DEV_ADDR_DEV_ADDR_POS)) 00143 00144 #define MXC_F_USB_DEV_CN_SIGRWU_POS 2 00145 #define MXC_F_USB_DEV_CN_SIGRWU ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_SIGRWU_POS)) 00146 #define MXC_F_USB_DEV_CN_CONNECT_POS 3 00147 #define MXC_F_USB_DEV_CN_CONNECT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_CONNECT_POS)) 00148 #define MXC_F_USB_DEV_CN_ULPM_POS 4 00149 #define MXC_F_USB_DEV_CN_ULPM ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_ULPM_POS)) 00150 #define MXC_F_USB_DEV_CN_URST_POS 5 00151 #define MXC_F_USB_DEV_CN_URST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_URST_POS)) 00152 #define MXC_F_USB_DEV_CN_VBGATE_POS 6 00153 #define MXC_F_USB_DEV_CN_VBGATE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_VBGATE_POS)) 00154 #define MXC_F_USB_DEV_CN_OSCEN_POS 7 00155 #define MXC_F_USB_DEV_CN_OSCEN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_OSCEN_POS)) 00156 #define MXC_F_USB_DEV_CN_BACT_OE_POS 8 00157 #define MXC_F_USB_DEV_CN_BACT_OE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_BACT_OE_POS)) 00158 #define MXC_F_USB_DEV_CN_FIFO_MODE_POS 9 00159 #define MXC_F_USB_DEV_CN_FIFO_MODE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_FIFO_MODE_POS)) 00160 00161 #define MXC_F_USB_DEV_INTFL_DPACT_POS 0 00162 #define MXC_F_USB_DEV_INTFL_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DPACT_POS)) 00163 #define MXC_F_USB_DEV_INTFL_RWU_DN_POS 1 00164 #define MXC_F_USB_DEV_INTFL_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_RWU_DN_POS)) 00165 #define MXC_F_USB_DEV_INTFL_BACT_POS 2 00166 #define MXC_F_USB_DEV_INTFL_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BACT_POS)) 00167 #define MXC_F_USB_DEV_INTFL_BRST_POS 3 00168 #define MXC_F_USB_DEV_INTFL_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_POS)) 00169 #define MXC_F_USB_DEV_INTFL_SUSP_POS 4 00170 #define MXC_F_USB_DEV_INTFL_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SUSP_POS)) 00171 #define MXC_F_USB_DEV_INTFL_NO_VBUS_POS 5 00172 #define MXC_F_USB_DEV_INTFL_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_NO_VBUS_POS)) 00173 #define MXC_F_USB_DEV_INTFL_VBUS_POS 6 00174 #define MXC_F_USB_DEV_INTFL_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_POS)) 00175 #define MXC_F_USB_DEV_INTFL_BRST_DN_POS 7 00176 #define MXC_F_USB_DEV_INTFL_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_DN_POS)) 00177 #define MXC_F_USB_DEV_INTFL_SETUP_POS 8 00178 #define MXC_F_USB_DEV_INTFL_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SETUP_POS)) 00179 #define MXC_F_USB_DEV_INTFL_EP_IN_POS 9 00180 #define MXC_F_USB_DEV_INTFL_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_IN_POS)) 00181 #define MXC_F_USB_DEV_INTFL_EP_OUT_POS 10 00182 #define MXC_F_USB_DEV_INTFL_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_OUT_POS)) 00183 #define MXC_F_USB_DEV_INTFL_EP_NAK_POS 11 00184 #define MXC_F_USB_DEV_INTFL_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_NAK_POS)) 00185 #define MXC_F_USB_DEV_INTFL_DMA_ERR_POS 12 00186 #define MXC_F_USB_DEV_INTFL_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DMA_ERR_POS)) 00187 #define MXC_F_USB_DEV_INTFL_BUF_OVR_POS 13 00188 #define MXC_F_USB_DEV_INTFL_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BUF_OVR_POS)) 00189 #define MXC_F_USB_DEV_INTFL_VBUS_ST_POS 16 00190 #define MXC_F_USB_DEV_INTFL_VBUS_ST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_ST_POS)) 00191 00192 #define MXC_F_USB_DEV_INTEN_DPACT_POS 0 00193 #define MXC_F_USB_DEV_INTEN_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DPACT_POS)) 00194 #define MXC_F_USB_DEV_INTEN_RWU_DN_POS 1 00195 #define MXC_F_USB_DEV_INTEN_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_RWU_DN_POS)) 00196 #define MXC_F_USB_DEV_INTEN_BACT_POS 2 00197 #define MXC_F_USB_DEV_INTEN_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BACT_POS)) 00198 #define MXC_F_USB_DEV_INTEN_BRST_POS 3 00199 #define MXC_F_USB_DEV_INTEN_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_POS)) 00200 #define MXC_F_USB_DEV_INTEN_SUSP_POS 4 00201 #define MXC_F_USB_DEV_INTEN_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SUSP_POS)) 00202 #define MXC_F_USB_DEV_INTEN_NO_VBUS_POS 5 00203 #define MXC_F_USB_DEV_INTEN_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_NO_VBUS_POS)) 00204 #define MXC_F_USB_DEV_INTEN_VBUS_POS 6 00205 #define MXC_F_USB_DEV_INTEN_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_VBUS_POS)) 00206 #define MXC_F_USB_DEV_INTEN_BRST_DN_POS 7 00207 #define MXC_F_USB_DEV_INTEN_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_DN_POS)) 00208 #define MXC_F_USB_DEV_INTEN_SETUP_POS 8 00209 #define MXC_F_USB_DEV_INTEN_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SETUP_POS)) 00210 #define MXC_F_USB_DEV_INTEN_EP_IN_POS 9 00211 #define MXC_F_USB_DEV_INTEN_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_IN_POS)) 00212 #define MXC_F_USB_DEV_INTEN_EP_OUT_POS 10 00213 #define MXC_F_USB_DEV_INTEN_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_OUT_POS)) 00214 #define MXC_F_USB_DEV_INTEN_EP_NAK_POS 11 00215 #define MXC_F_USB_DEV_INTEN_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_NAK_POS)) 00216 #define MXC_F_USB_DEV_INTEN_DMA_ERR_POS 12 00217 #define MXC_F_USB_DEV_INTEN_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DMA_ERR_POS)) 00218 #define MXC_F_USB_DEV_INTEN_BUF_OVR_POS 13 00219 #define MXC_F_USB_DEV_INTEN_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BUF_OVR_POS)) 00220 00221 #define MXC_F_USB_EP_BASE_EP_BASE_POS 9 00222 #define MXC_F_USB_EP_BASE_EP_BASE ((uint32_t)(0x007FFFFFUL << MXC_F_USB_EP_BASE_EP_BASE_POS)) 00223 00224 #define MXC_F_USB_CUR_BUF_OUT_BUF_POS 0 00225 #define MXC_F_USB_CUR_BUF_OUT_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_OUT_BUF_POS)) 00226 #define MXC_F_USB_CUR_BUF_IN_BUF_POS 16 00227 #define MXC_F_USB_CUR_BUF_IN_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_IN_BUF_POS)) 00228 00229 #define MXC_F_USB_IN_OWNER_BUF0_OWNER_POS 0 00230 #define MXC_F_USB_IN_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF0_OWNER_POS)) 00231 #define MXC_F_USB_IN_OWNER_BUF1_OWNER_POS 16 00232 #define MXC_F_USB_IN_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF1_OWNER_POS)) 00233 00234 #define MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS 0 00235 #define MXC_F_USB_OUT_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS)) 00236 #define MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS 16 00237 #define MXC_F_USB_OUT_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS)) 00238 00239 #define MXC_F_USB_IN_INT_INBAV_POS 0 00240 #define MXC_F_USB_IN_INT_INBAV ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_INT_INBAV_POS)) 00241 00242 #define MXC_F_USB_OUT_INT_OUTDAV_POS 0 00243 #define MXC_F_USB_OUT_INT_OUTDAV ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_INT_OUTDAV_POS)) 00244 00245 #define MXC_F_USB_NAK_INT_NAK_POS 0 00246 #define MXC_F_USB_NAK_INT_NAK ((uint32_t)(0x000000FFUL << MXC_F_USB_NAK_INT_NAK_POS)) 00247 00248 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS 0 00249 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR ((uint32_t)(0x000000FFUL << MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS)) 00250 00251 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS 0 00252 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR ((uint32_t)(0x000000FFUL << MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS)) 00253 00254 #define MXC_F_USB_SETUP0_BYTE0_POS 0 00255 #define MXC_F_USB_SETUP0_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE0_POS)) 00256 #define MXC_F_USB_SETUP0_BYTE1_POS 8 00257 #define MXC_F_USB_SETUP0_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE1_POS)) 00258 #define MXC_F_USB_SETUP0_BYTE2_POS 16 00259 #define MXC_F_USB_SETUP0_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE2_POS)) 00260 #define MXC_F_USB_SETUP0_BYTE3_POS 24 00261 #define MXC_F_USB_SETUP0_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE3_POS)) 00262 00263 #define MXC_F_USB_SETUP1_BYTE0_POS 0 00264 #define MXC_F_USB_SETUP1_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE0_POS)) 00265 #define MXC_F_USB_SETUP1_BYTE1_POS 8 00266 #define MXC_F_USB_SETUP1_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE1_POS)) 00267 #define MXC_F_USB_SETUP1_BYTE2_POS 16 00268 #define MXC_F_USB_SETUP1_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE2_POS)) 00269 #define MXC_F_USB_SETUP1_BYTE3_POS 24 00270 #define MXC_F_USB_SETUP1_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE3_POS)) 00271 00272 #define MXC_F_USB_EP_DIR_POS 0 00273 #define MXC_F_USB_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP_DIR_POS)) 00274 #define MXC_F_USB_EP_BUF2_POS 3 00275 #define MXC_F_USB_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP_BUF2_POS)) 00276 #define MXC_F_USB_EP_INT_EN_POS 4 00277 #define MXC_F_USB_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_INT_EN_POS)) 00278 #define MXC_F_USB_EP_NAK_EN_POS 5 00279 #define MXC_F_USB_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_NAK_EN_POS)) 00280 #define MXC_F_USB_EP_DT_POS 6 00281 #define MXC_F_USB_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP_DT_POS)) 00282 #define MXC_F_USB_EP_STALL_POS 8 00283 #define MXC_F_USB_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_STALL_POS)) 00284 #define MXC_F_USB_EP_ST_STALL_POS 9 00285 #define MXC_F_USB_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_STALL_POS)) 00286 #define MXC_F_USB_EP_ST_ACK_POS 10 00287 #define MXC_F_USB_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_ACK_POS)) 00288 00289 #ifdef __cplusplus 00290 } 00291 #endif 00292 00293 #endif /* _MXC_USB_REGS_H_ */
Generated on Tue Jul 12 2022 15:37:26 by
1.7.2