mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_Maxim/TARGET_MAX32625/device/usb_regs.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
- Parent:
- 150:02e0a0aed4ec
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /******************************************************************************* |
<> | 150:02e0a0aed4ec | 2 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
<> | 150:02e0a0aed4ec | 3 | * |
<> | 150:02e0a0aed4ec | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
<> | 150:02e0a0aed4ec | 5 | * copy of this software and associated documentation files (the "Software"), |
<> | 150:02e0a0aed4ec | 6 | * to deal in the Software without restriction, including without limitation |
<> | 150:02e0a0aed4ec | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
<> | 150:02e0a0aed4ec | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
<> | 150:02e0a0aed4ec | 9 | * Software is furnished to do so, subject to the following conditions: |
<> | 150:02e0a0aed4ec | 10 | * |
<> | 150:02e0a0aed4ec | 11 | * The above copyright notice and this permission notice shall be included |
<> | 150:02e0a0aed4ec | 12 | * in all copies or substantial portions of the Software. |
<> | 150:02e0a0aed4ec | 13 | * |
<> | 150:02e0a0aed4ec | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
<> | 150:02e0a0aed4ec | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
<> | 150:02e0a0aed4ec | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
<> | 150:02e0a0aed4ec | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
<> | 150:02e0a0aed4ec | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
<> | 150:02e0a0aed4ec | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
<> | 150:02e0a0aed4ec | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
<> | 150:02e0a0aed4ec | 21 | * |
<> | 150:02e0a0aed4ec | 22 | * Except as contained in this notice, the name of Maxim Integrated |
<> | 150:02e0a0aed4ec | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
<> | 150:02e0a0aed4ec | 24 | * Products, Inc. Branding Policy. |
<> | 150:02e0a0aed4ec | 25 | * |
<> | 150:02e0a0aed4ec | 26 | * The mere transfer of this software does not imply any licenses |
<> | 150:02e0a0aed4ec | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
<> | 150:02e0a0aed4ec | 28 | * trademarks, maskwork rights, or any other form of intellectual |
<> | 150:02e0a0aed4ec | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
<> | 150:02e0a0aed4ec | 30 | * ownership rights. |
<> | 150:02e0a0aed4ec | 31 | ******************************************************************************/ |
<> | 150:02e0a0aed4ec | 32 | |
<> | 150:02e0a0aed4ec | 33 | #ifndef _MXC_USB_REGS_H_ |
<> | 150:02e0a0aed4ec | 34 | #define _MXC_USB_REGS_H_ |
<> | 150:02e0a0aed4ec | 35 | |
<> | 150:02e0a0aed4ec | 36 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 37 | extern "C" { |
<> | 150:02e0a0aed4ec | 38 | #endif |
<> | 150:02e0a0aed4ec | 39 | |
<> | 150:02e0a0aed4ec | 40 | #include <stdint.h> |
<> | 150:02e0a0aed4ec | 41 | #include "mxc_device.h" |
<> | 150:02e0a0aed4ec | 42 | |
<> | 150:02e0a0aed4ec | 43 | /* |
<> | 150:02e0a0aed4ec | 44 | If types are not defined elsewhere (CMSIS) define them here |
<> | 150:02e0a0aed4ec | 45 | */ |
<> | 150:02e0a0aed4ec | 46 | #ifndef __IO |
<> | 150:02e0a0aed4ec | 47 | #define __IO volatile |
<> | 150:02e0a0aed4ec | 48 | #endif |
<> | 150:02e0a0aed4ec | 49 | #ifndef __I |
<> | 150:02e0a0aed4ec | 50 | #define __I volatile const |
<> | 150:02e0a0aed4ec | 51 | #endif |
<> | 150:02e0a0aed4ec | 52 | #ifndef __O |
<> | 150:02e0a0aed4ec | 53 | #define __O volatile |
<> | 150:02e0a0aed4ec | 54 | #endif |
<> | 150:02e0a0aed4ec | 55 | |
<> | 150:02e0a0aed4ec | 56 | |
<> | 150:02e0a0aed4ec | 57 | #define MXC_V_USB_EP_DIR_DISABLE ((uint32_t)0x00000000UL) |
<> | 150:02e0a0aed4ec | 58 | #define MXC_V_USB_EP_DIR_OUT ((uint32_t)0x00000001UL) |
<> | 150:02e0a0aed4ec | 59 | #define MXC_V_USB_EP_DIR_IN ((uint32_t)0x00000002UL) |
<> | 150:02e0a0aed4ec | 60 | #define MXC_V_USB_EP_DIR_CONTROL ((uint32_t)0x00000003UL) |
<> | 150:02e0a0aed4ec | 61 | |
<> | 150:02e0a0aed4ec | 62 | #define MXC_S_USB_EP_DIR_DISABLE (MXC_V_USB_EP_DIR_DISABLE << MXC_F_USB_EP_DIR_POS) |
<> | 150:02e0a0aed4ec | 63 | #define MXC_S_USB_EP_DIR_OUT (MXC_V_USB_EP_DIR_OUT << MXC_F_USB_EP_DIR_POS) |
<> | 150:02e0a0aed4ec | 64 | #define MXC_S_USB_EP_DIR_IN (MXC_V_USB_EP_DIR_IN << MXC_F_USB_EP_DIR_POS) |
<> | 150:02e0a0aed4ec | 65 | #define MXC_S_USB_EP_DIR_CONTROL (MXC_V_USB_EP_DIR_CONTROL << MXC_F_USB_EP_DIR_POS) |
<> | 150:02e0a0aed4ec | 66 | |
<> | 150:02e0a0aed4ec | 67 | /* |
<> | 150:02e0a0aed4ec | 68 | Typedefed structure(s) for module registers (per instance or section) with direct 32-bit |
<> | 150:02e0a0aed4ec | 69 | access to each register in module. |
<> | 150:02e0a0aed4ec | 70 | */ |
<> | 150:02e0a0aed4ec | 71 | |
<> | 150:02e0a0aed4ec | 72 | /* Offset Register Description |
<> | 150:02e0a0aed4ec | 73 | ============= ============================================================================ */ |
<> | 150:02e0a0aed4ec | 74 | typedef struct { |
<> | 150:02e0a0aed4ec | 75 | __IO uint32_t cn; /* 0x0000 USB Control Register */ |
<> | 150:02e0a0aed4ec | 76 | __I uint32_t rsv004[127]; /* 0x0004-0x01FC */ |
<> | 150:02e0a0aed4ec | 77 | __IO uint32_t dev_addr; /* 0x0200 USB Device Address Register */ |
<> | 150:02e0a0aed4ec | 78 | __IO uint32_t dev_cn; /* 0x0204 USB Device Control Register */ |
<> | 150:02e0a0aed4ec | 79 | __IO uint32_t dev_intfl; /* 0x0208 USB Device Interrupt */ |
<> | 150:02e0a0aed4ec | 80 | __IO uint32_t dev_inten; /* 0x020C USB Device Interrupt Enable */ |
<> | 150:02e0a0aed4ec | 81 | __I uint32_t rsv210[4]; /* 0x0210-0x021C */ |
<> | 150:02e0a0aed4ec | 82 | __IO uint32_t ep_base; /* 0x0220 USB Endpoint Descriptor Table Base Address */ |
<> | 150:02e0a0aed4ec | 83 | __IO uint32_t cur_buf; /* 0x0224 USB Current Endpoint Buffer Register */ |
<> | 150:02e0a0aed4ec | 84 | __IO uint32_t in_owner; /* 0x0228 USB IN Endpoint Buffer Owner Register */ |
<> | 150:02e0a0aed4ec | 85 | __IO uint32_t out_owner; /* 0x022C USB OUT Endpoint Buffer Owner Register */ |
<> | 150:02e0a0aed4ec | 86 | __IO uint32_t in_int; /* 0x0230 USB IN Endpoint Buffer Available Interrupt */ |
<> | 150:02e0a0aed4ec | 87 | __IO uint32_t out_int; /* 0x0234 USB OUT Endpoint Data Available Interrupt */ |
<> | 150:02e0a0aed4ec | 88 | __IO uint32_t nak_int; /* 0x0238 USB IN Endpoint NAK Interrupt */ |
<> | 150:02e0a0aed4ec | 89 | __IO uint32_t dma_err_int; /* 0x023C USB DMA Error Interrupt */ |
<> | 150:02e0a0aed4ec | 90 | __IO uint32_t buf_ovr_int; /* 0x0240 USB Buffer Overflow Interrupt */ |
<> | 150:02e0a0aed4ec | 91 | __I uint32_t rsv244[7]; /* 0x0244-0x025C */ |
<> | 150:02e0a0aed4ec | 92 | __IO uint32_t setup0; /* 0x0260 USB SETUP Packet Bytes 0 to 3 */ |
<> | 150:02e0a0aed4ec | 93 | __IO uint32_t setup1; /* 0x0264 USB SETUP Packet Bytes 4 to 7 */ |
<> | 150:02e0a0aed4ec | 94 | __I uint32_t rsv268[6]; /* 0x0268-0x027C */ |
<> | 150:02e0a0aed4ec | 95 | __IO uint32_t ep[8]; /* 0x0280-0x029C USB Endpoint[n] Control Register */ |
<> | 150:02e0a0aed4ec | 96 | } mxc_usb_regs_t; |
<> | 150:02e0a0aed4ec | 97 | |
<> | 150:02e0a0aed4ec | 98 | |
<> | 150:02e0a0aed4ec | 99 | /* |
<> | 150:02e0a0aed4ec | 100 | Register offsets for module USB. |
<> | 150:02e0a0aed4ec | 101 | */ |
<> | 150:02e0a0aed4ec | 102 | |
<> | 150:02e0a0aed4ec | 103 | #define MXC_R_USB_OFFS_CN ((uint32_t)0x00000000UL) |
<> | 150:02e0a0aed4ec | 104 | #define MXC_R_USB_OFFS_DEV_ADDR ((uint32_t)0x00000200UL) |
<> | 150:02e0a0aed4ec | 105 | #define MXC_R_USB_OFFS_DEV_CN ((uint32_t)0x00000204UL) |
<> | 150:02e0a0aed4ec | 106 | #define MXC_R_USB_OFFS_DEV_INTFL ((uint32_t)0x00000208UL) |
<> | 150:02e0a0aed4ec | 107 | #define MXC_R_USB_OFFS_DEV_INTEN ((uint32_t)0x0000020CUL) |
<> | 150:02e0a0aed4ec | 108 | #define MXC_R_USB_OFFS_EP_BASE ((uint32_t)0x00000220UL) |
<> | 150:02e0a0aed4ec | 109 | #define MXC_R_USB_OFFS_CUR_BUF ((uint32_t)0x00000224UL) |
<> | 150:02e0a0aed4ec | 110 | #define MXC_R_USB_OFFS_IN_OWNER ((uint32_t)0x00000228UL) |
<> | 150:02e0a0aed4ec | 111 | #define MXC_R_USB_OFFS_OUT_OWNER ((uint32_t)0x0000022CUL) |
<> | 150:02e0a0aed4ec | 112 | #define MXC_R_USB_OFFS_IN_INT ((uint32_t)0x00000230UL) |
<> | 150:02e0a0aed4ec | 113 | #define MXC_R_USB_OFFS_OUT_INT ((uint32_t)0x00000234UL) |
<> | 150:02e0a0aed4ec | 114 | #define MXC_R_USB_OFFS_NAK_INT ((uint32_t)0x00000238UL) |
<> | 150:02e0a0aed4ec | 115 | #define MXC_R_USB_OFFS_DMA_ERR_INT ((uint32_t)0x0000023CUL) |
<> | 150:02e0a0aed4ec | 116 | #define MXC_R_USB_OFFS_BUF_OVR_INT ((uint32_t)0x00000240UL) |
<> | 150:02e0a0aed4ec | 117 | #define MXC_R_USB_OFFS_SETUP0 ((uint32_t)0x00000260UL) |
<> | 150:02e0a0aed4ec | 118 | #define MXC_R_USB_OFFS_SETUP1 ((uint32_t)0x00000264UL) |
<> | 150:02e0a0aed4ec | 119 | #define MXC_R_USB_OFFS_EP0 ((uint32_t)0x00000280UL) |
<> | 150:02e0a0aed4ec | 120 | #define MXC_R_USB_OFFS_EP1 ((uint32_t)0x00000284UL) |
<> | 150:02e0a0aed4ec | 121 | #define MXC_R_USB_OFFS_EP2 ((uint32_t)0x00000288UL) |
<> | 150:02e0a0aed4ec | 122 | #define MXC_R_USB_OFFS_EP3 ((uint32_t)0x0000028CUL) |
<> | 150:02e0a0aed4ec | 123 | #define MXC_R_USB_OFFS_EP4 ((uint32_t)0x00000290UL) |
<> | 150:02e0a0aed4ec | 124 | #define MXC_R_USB_OFFS_EP5 ((uint32_t)0x00000294UL) |
<> | 150:02e0a0aed4ec | 125 | #define MXC_R_USB_OFFS_EP6 ((uint32_t)0x00000298UL) |
<> | 150:02e0a0aed4ec | 126 | #define MXC_R_USB_OFFS_EP7 ((uint32_t)0x0000029CUL) |
<> | 150:02e0a0aed4ec | 127 | |
<> | 150:02e0a0aed4ec | 128 | |
<> | 150:02e0a0aed4ec | 129 | /* |
<> | 150:02e0a0aed4ec | 130 | Field positions and masks for module USB. |
<> | 150:02e0a0aed4ec | 131 | */ |
<> | 150:02e0a0aed4ec | 132 | |
<> | 150:02e0a0aed4ec | 133 | #define MXC_F_USB_CN_USB_EN_POS 0 |
<> | 150:02e0a0aed4ec | 134 | #define MXC_F_USB_CN_USB_EN ((uint32_t)(0x00000001UL << MXC_F_USB_CN_USB_EN_POS)) |
<> | 150:02e0a0aed4ec | 135 | #define MXC_F_USB_CN_HOST_POS 1 |
<> | 150:02e0a0aed4ec | 136 | #define MXC_F_USB_CN_HOST ((uint32_t)(0x00000001UL << MXC_F_USB_CN_HOST_POS)) |
<> | 150:02e0a0aed4ec | 137 | |
<> | 150:02e0a0aed4ec | 138 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR_POS 0 |
<> | 150:02e0a0aed4ec | 139 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR ((uint32_t)(0x0000007FUL << MXC_F_USB_DEV_ADDR_DEV_ADDR_POS)) |
<> | 150:02e0a0aed4ec | 140 | |
<> | 150:02e0a0aed4ec | 141 | #define MXC_F_USB_DEV_CN_SIGRWU_POS 2 |
<> | 150:02e0a0aed4ec | 142 | #define MXC_F_USB_DEV_CN_SIGRWU ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_SIGRWU_POS)) |
<> | 150:02e0a0aed4ec | 143 | #define MXC_F_USB_DEV_CN_CONNECT_POS 3 |
<> | 150:02e0a0aed4ec | 144 | #define MXC_F_USB_DEV_CN_CONNECT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_CONNECT_POS)) |
<> | 150:02e0a0aed4ec | 145 | #define MXC_F_USB_DEV_CN_ULPM_POS 4 |
<> | 150:02e0a0aed4ec | 146 | #define MXC_F_USB_DEV_CN_ULPM ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_ULPM_POS)) |
<> | 150:02e0a0aed4ec | 147 | #define MXC_F_USB_DEV_CN_URST_POS 5 |
<> | 150:02e0a0aed4ec | 148 | #define MXC_F_USB_DEV_CN_URST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_URST_POS)) |
<> | 150:02e0a0aed4ec | 149 | #define MXC_F_USB_DEV_CN_VBGATE_POS 6 |
<> | 150:02e0a0aed4ec | 150 | #define MXC_F_USB_DEV_CN_VBGATE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_VBGATE_POS)) |
<> | 150:02e0a0aed4ec | 151 | #define MXC_F_USB_DEV_CN_OSCEN_POS 7 |
<> | 150:02e0a0aed4ec | 152 | #define MXC_F_USB_DEV_CN_OSCEN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_OSCEN_POS)) |
<> | 150:02e0a0aed4ec | 153 | #define MXC_F_USB_DEV_CN_BACT_OE_POS 8 |
<> | 150:02e0a0aed4ec | 154 | #define MXC_F_USB_DEV_CN_BACT_OE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_BACT_OE_POS)) |
<> | 150:02e0a0aed4ec | 155 | #define MXC_F_USB_DEV_CN_FIFO_MODE_POS 9 |
<> | 150:02e0a0aed4ec | 156 | #define MXC_F_USB_DEV_CN_FIFO_MODE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_FIFO_MODE_POS)) |
<> | 150:02e0a0aed4ec | 157 | |
<> | 150:02e0a0aed4ec | 158 | #define MXC_F_USB_DEV_INTFL_DPACT_POS 0 |
<> | 150:02e0a0aed4ec | 159 | #define MXC_F_USB_DEV_INTFL_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DPACT_POS)) |
<> | 150:02e0a0aed4ec | 160 | #define MXC_F_USB_DEV_INTFL_RWU_DN_POS 1 |
<> | 150:02e0a0aed4ec | 161 | #define MXC_F_USB_DEV_INTFL_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_RWU_DN_POS)) |
<> | 150:02e0a0aed4ec | 162 | #define MXC_F_USB_DEV_INTFL_BACT_POS 2 |
<> | 150:02e0a0aed4ec | 163 | #define MXC_F_USB_DEV_INTFL_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BACT_POS)) |
<> | 150:02e0a0aed4ec | 164 | #define MXC_F_USB_DEV_INTFL_BRST_POS 3 |
<> | 150:02e0a0aed4ec | 165 | #define MXC_F_USB_DEV_INTFL_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_POS)) |
<> | 150:02e0a0aed4ec | 166 | #define MXC_F_USB_DEV_INTFL_SUSP_POS 4 |
<> | 150:02e0a0aed4ec | 167 | #define MXC_F_USB_DEV_INTFL_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SUSP_POS)) |
<> | 150:02e0a0aed4ec | 168 | #define MXC_F_USB_DEV_INTFL_NO_VBUS_POS 5 |
<> | 150:02e0a0aed4ec | 169 | #define MXC_F_USB_DEV_INTFL_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_NO_VBUS_POS)) |
<> | 150:02e0a0aed4ec | 170 | #define MXC_F_USB_DEV_INTFL_VBUS_POS 6 |
<> | 150:02e0a0aed4ec | 171 | #define MXC_F_USB_DEV_INTFL_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_POS)) |
<> | 150:02e0a0aed4ec | 172 | #define MXC_F_USB_DEV_INTFL_BRST_DN_POS 7 |
<> | 150:02e0a0aed4ec | 173 | #define MXC_F_USB_DEV_INTFL_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_DN_POS)) |
<> | 150:02e0a0aed4ec | 174 | #define MXC_F_USB_DEV_INTFL_SETUP_POS 8 |
<> | 150:02e0a0aed4ec | 175 | #define MXC_F_USB_DEV_INTFL_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SETUP_POS)) |
<> | 150:02e0a0aed4ec | 176 | #define MXC_F_USB_DEV_INTFL_EP_IN_POS 9 |
<> | 150:02e0a0aed4ec | 177 | #define MXC_F_USB_DEV_INTFL_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_IN_POS)) |
<> | 150:02e0a0aed4ec | 178 | #define MXC_F_USB_DEV_INTFL_EP_OUT_POS 10 |
<> | 150:02e0a0aed4ec | 179 | #define MXC_F_USB_DEV_INTFL_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_OUT_POS)) |
<> | 150:02e0a0aed4ec | 180 | #define MXC_F_USB_DEV_INTFL_EP_NAK_POS 11 |
<> | 150:02e0a0aed4ec | 181 | #define MXC_F_USB_DEV_INTFL_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_NAK_POS)) |
<> | 150:02e0a0aed4ec | 182 | #define MXC_F_USB_DEV_INTFL_DMA_ERR_POS 12 |
<> | 150:02e0a0aed4ec | 183 | #define MXC_F_USB_DEV_INTFL_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DMA_ERR_POS)) |
<> | 150:02e0a0aed4ec | 184 | #define MXC_F_USB_DEV_INTFL_BUF_OVR_POS 13 |
<> | 150:02e0a0aed4ec | 185 | #define MXC_F_USB_DEV_INTFL_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BUF_OVR_POS)) |
<> | 150:02e0a0aed4ec | 186 | #define MXC_F_USB_DEV_INTFL_VBUS_ST_POS 16 |
<> | 150:02e0a0aed4ec | 187 | #define MXC_F_USB_DEV_INTFL_VBUS_ST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_ST_POS)) |
<> | 150:02e0a0aed4ec | 188 | |
<> | 150:02e0a0aed4ec | 189 | #define MXC_F_USB_DEV_INTEN_DPACT_POS 0 |
<> | 150:02e0a0aed4ec | 190 | #define MXC_F_USB_DEV_INTEN_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DPACT_POS)) |
<> | 150:02e0a0aed4ec | 191 | #define MXC_F_USB_DEV_INTEN_RWU_DN_POS 1 |
<> | 150:02e0a0aed4ec | 192 | #define MXC_F_USB_DEV_INTEN_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_RWU_DN_POS)) |
<> | 150:02e0a0aed4ec | 193 | #define MXC_F_USB_DEV_INTEN_BACT_POS 2 |
<> | 150:02e0a0aed4ec | 194 | #define MXC_F_USB_DEV_INTEN_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BACT_POS)) |
<> | 150:02e0a0aed4ec | 195 | #define MXC_F_USB_DEV_INTEN_BRST_POS 3 |
<> | 150:02e0a0aed4ec | 196 | #define MXC_F_USB_DEV_INTEN_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_POS)) |
<> | 150:02e0a0aed4ec | 197 | #define MXC_F_USB_DEV_INTEN_SUSP_POS 4 |
<> | 150:02e0a0aed4ec | 198 | #define MXC_F_USB_DEV_INTEN_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SUSP_POS)) |
<> | 150:02e0a0aed4ec | 199 | #define MXC_F_USB_DEV_INTEN_NO_VBUS_POS 5 |
<> | 150:02e0a0aed4ec | 200 | #define MXC_F_USB_DEV_INTEN_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_NO_VBUS_POS)) |
<> | 150:02e0a0aed4ec | 201 | #define MXC_F_USB_DEV_INTEN_VBUS_POS 6 |
<> | 150:02e0a0aed4ec | 202 | #define MXC_F_USB_DEV_INTEN_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_VBUS_POS)) |
<> | 150:02e0a0aed4ec | 203 | #define MXC_F_USB_DEV_INTEN_BRST_DN_POS 7 |
<> | 150:02e0a0aed4ec | 204 | #define MXC_F_USB_DEV_INTEN_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_DN_POS)) |
<> | 150:02e0a0aed4ec | 205 | #define MXC_F_USB_DEV_INTEN_SETUP_POS 8 |
<> | 150:02e0a0aed4ec | 206 | #define MXC_F_USB_DEV_INTEN_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SETUP_POS)) |
<> | 150:02e0a0aed4ec | 207 | #define MXC_F_USB_DEV_INTEN_EP_IN_POS 9 |
<> | 150:02e0a0aed4ec | 208 | #define MXC_F_USB_DEV_INTEN_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_IN_POS)) |
<> | 150:02e0a0aed4ec | 209 | #define MXC_F_USB_DEV_INTEN_EP_OUT_POS 10 |
<> | 150:02e0a0aed4ec | 210 | #define MXC_F_USB_DEV_INTEN_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_OUT_POS)) |
<> | 150:02e0a0aed4ec | 211 | #define MXC_F_USB_DEV_INTEN_EP_NAK_POS 11 |
<> | 150:02e0a0aed4ec | 212 | #define MXC_F_USB_DEV_INTEN_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_NAK_POS)) |
<> | 150:02e0a0aed4ec | 213 | #define MXC_F_USB_DEV_INTEN_DMA_ERR_POS 12 |
<> | 150:02e0a0aed4ec | 214 | #define MXC_F_USB_DEV_INTEN_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DMA_ERR_POS)) |
<> | 150:02e0a0aed4ec | 215 | #define MXC_F_USB_DEV_INTEN_BUF_OVR_POS 13 |
<> | 150:02e0a0aed4ec | 216 | #define MXC_F_USB_DEV_INTEN_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BUF_OVR_POS)) |
<> | 150:02e0a0aed4ec | 217 | |
<> | 150:02e0a0aed4ec | 218 | #define MXC_F_USB_EP_BASE_EP_BASE_POS 9 |
<> | 150:02e0a0aed4ec | 219 | #define MXC_F_USB_EP_BASE_EP_BASE ((uint32_t)(0x007FFFFFUL << MXC_F_USB_EP_BASE_EP_BASE_POS)) |
<> | 150:02e0a0aed4ec | 220 | |
<> | 150:02e0a0aed4ec | 221 | #define MXC_F_USB_CUR_BUF_OUT_BUF_POS 0 |
<> | 150:02e0a0aed4ec | 222 | #define MXC_F_USB_CUR_BUF_OUT_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_OUT_BUF_POS)) |
<> | 150:02e0a0aed4ec | 223 | #define MXC_F_USB_CUR_BUF_IN_BUF_POS 16 |
<> | 150:02e0a0aed4ec | 224 | #define MXC_F_USB_CUR_BUF_IN_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_IN_BUF_POS)) |
<> | 150:02e0a0aed4ec | 225 | |
<> | 150:02e0a0aed4ec | 226 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER_POS 0 |
<> | 150:02e0a0aed4ec | 227 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF0_OWNER_POS)) |
<> | 150:02e0a0aed4ec | 228 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER_POS 16 |
<> | 150:02e0a0aed4ec | 229 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF1_OWNER_POS)) |
<> | 150:02e0a0aed4ec | 230 | |
<> | 150:02e0a0aed4ec | 231 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS 0 |
<> | 150:02e0a0aed4ec | 232 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS)) |
<> | 150:02e0a0aed4ec | 233 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS 16 |
<> | 150:02e0a0aed4ec | 234 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS)) |
<> | 150:02e0a0aed4ec | 235 | |
<> | 150:02e0a0aed4ec | 236 | #define MXC_F_USB_IN_INT_INBAV_POS 0 |
<> | 150:02e0a0aed4ec | 237 | #define MXC_F_USB_IN_INT_INBAV ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_INT_INBAV_POS)) |
<> | 150:02e0a0aed4ec | 238 | |
<> | 150:02e0a0aed4ec | 239 | #define MXC_F_USB_OUT_INT_OUTDAV_POS 0 |
<> | 150:02e0a0aed4ec | 240 | #define MXC_F_USB_OUT_INT_OUTDAV ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_INT_OUTDAV_POS)) |
<> | 150:02e0a0aed4ec | 241 | |
<> | 150:02e0a0aed4ec | 242 | #define MXC_F_USB_NAK_INT_NAK_POS 0 |
<> | 150:02e0a0aed4ec | 243 | #define MXC_F_USB_NAK_INT_NAK ((uint32_t)(0x000000FFUL << MXC_F_USB_NAK_INT_NAK_POS)) |
<> | 150:02e0a0aed4ec | 244 | |
<> | 150:02e0a0aed4ec | 245 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS 0 |
<> | 150:02e0a0aed4ec | 246 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR ((uint32_t)(0x000000FFUL << MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS)) |
<> | 150:02e0a0aed4ec | 247 | |
<> | 150:02e0a0aed4ec | 248 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS 0 |
<> | 150:02e0a0aed4ec | 249 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR ((uint32_t)(0x000000FFUL << MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS)) |
<> | 150:02e0a0aed4ec | 250 | |
<> | 150:02e0a0aed4ec | 251 | #define MXC_F_USB_SETUP0_BYTE0_POS 0 |
<> | 150:02e0a0aed4ec | 252 | #define MXC_F_USB_SETUP0_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE0_POS)) |
<> | 150:02e0a0aed4ec | 253 | #define MXC_F_USB_SETUP0_BYTE1_POS 8 |
<> | 150:02e0a0aed4ec | 254 | #define MXC_F_USB_SETUP0_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE1_POS)) |
<> | 150:02e0a0aed4ec | 255 | #define MXC_F_USB_SETUP0_BYTE2_POS 16 |
<> | 150:02e0a0aed4ec | 256 | #define MXC_F_USB_SETUP0_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE2_POS)) |
<> | 150:02e0a0aed4ec | 257 | #define MXC_F_USB_SETUP0_BYTE3_POS 24 |
<> | 150:02e0a0aed4ec | 258 | #define MXC_F_USB_SETUP0_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE3_POS)) |
<> | 150:02e0a0aed4ec | 259 | |
<> | 150:02e0a0aed4ec | 260 | #define MXC_F_USB_SETUP1_BYTE0_POS 0 |
<> | 150:02e0a0aed4ec | 261 | #define MXC_F_USB_SETUP1_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE0_POS)) |
<> | 150:02e0a0aed4ec | 262 | #define MXC_F_USB_SETUP1_BYTE1_POS 8 |
<> | 150:02e0a0aed4ec | 263 | #define MXC_F_USB_SETUP1_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE1_POS)) |
<> | 150:02e0a0aed4ec | 264 | #define MXC_F_USB_SETUP1_BYTE2_POS 16 |
<> | 150:02e0a0aed4ec | 265 | #define MXC_F_USB_SETUP1_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE2_POS)) |
<> | 150:02e0a0aed4ec | 266 | #define MXC_F_USB_SETUP1_BYTE3_POS 24 |
<> | 150:02e0a0aed4ec | 267 | #define MXC_F_USB_SETUP1_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE3_POS)) |
<> | 150:02e0a0aed4ec | 268 | |
<> | 150:02e0a0aed4ec | 269 | #define MXC_F_USB_EP_DIR_POS 0 |
<> | 150:02e0a0aed4ec | 270 | #define MXC_F_USB_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP_DIR_POS)) |
<> | 150:02e0a0aed4ec | 271 | #define MXC_F_USB_EP_BUF2_POS 3 |
<> | 150:02e0a0aed4ec | 272 | #define MXC_F_USB_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP_BUF2_POS)) |
<> | 150:02e0a0aed4ec | 273 | #define MXC_F_USB_EP_INT_EN_POS 4 |
<> | 150:02e0a0aed4ec | 274 | #define MXC_F_USB_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_INT_EN_POS)) |
<> | 150:02e0a0aed4ec | 275 | #define MXC_F_USB_EP_NAK_EN_POS 5 |
<> | 150:02e0a0aed4ec | 276 | #define MXC_F_USB_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_NAK_EN_POS)) |
<> | 150:02e0a0aed4ec | 277 | #define MXC_F_USB_EP_DT_POS 6 |
<> | 150:02e0a0aed4ec | 278 | #define MXC_F_USB_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP_DT_POS)) |
<> | 150:02e0a0aed4ec | 279 | #define MXC_F_USB_EP_STALL_POS 8 |
<> | 150:02e0a0aed4ec | 280 | #define MXC_F_USB_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_STALL_POS)) |
<> | 150:02e0a0aed4ec | 281 | #define MXC_F_USB_EP_ST_STALL_POS 9 |
<> | 150:02e0a0aed4ec | 282 | #define MXC_F_USB_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_STALL_POS)) |
<> | 150:02e0a0aed4ec | 283 | #define MXC_F_USB_EP_ST_ACK_POS 10 |
<> | 150:02e0a0aed4ec | 284 | #define MXC_F_USB_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_ACK_POS)) |
<> | 150:02e0a0aed4ec | 285 | |
<> | 150:02e0a0aed4ec | 286 | |
<> | 150:02e0a0aed4ec | 287 | |
<> | 150:02e0a0aed4ec | 288 | #ifdef __cplusplus |
<> | 150:02e0a0aed4ec | 289 | } |
<> | 150:02e0a0aed4ec | 290 | #endif |
<> | 150:02e0a0aed4ec | 291 | |
<> | 150:02e0a0aed4ec | 292 | #endif /* _MXC_USB_REGS_H_ */ |
<> | 150:02e0a0aed4ec | 293 |