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.
mbed-dev/targets/TARGET_Maxim/TARGET_MAX32610/device/usb_regs.h@46:b156ef445742, 2017-06-03 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sat Jun 03 00:22:44 2017 +0000
- Revision:
- 46:b156ef445742
- Parent:
- 18:6a4db94011d3
Final code for internal battlebot competition.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /******************************************************************************* |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved. |
sahilmgandhi | 18:6a4db94011d3 | 3 | * |
sahilmgandhi | 18:6a4db94011d3 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
sahilmgandhi | 18:6a4db94011d3 | 5 | * copy of this software and associated documentation files (the "Software"), |
sahilmgandhi | 18:6a4db94011d3 | 6 | * to deal in the Software without restriction, including without limitation |
sahilmgandhi | 18:6a4db94011d3 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
sahilmgandhi | 18:6a4db94011d3 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
sahilmgandhi | 18:6a4db94011d3 | 9 | * Software is furnished to do so, subject to the following conditions: |
sahilmgandhi | 18:6a4db94011d3 | 10 | * |
sahilmgandhi | 18:6a4db94011d3 | 11 | * The above copyright notice and this permission notice shall be included |
sahilmgandhi | 18:6a4db94011d3 | 12 | * in all copies or substantial portions of the Software. |
sahilmgandhi | 18:6a4db94011d3 | 13 | * |
sahilmgandhi | 18:6a4db94011d3 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
sahilmgandhi | 18:6a4db94011d3 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
sahilmgandhi | 18:6a4db94011d3 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
sahilmgandhi | 18:6a4db94011d3 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
sahilmgandhi | 18:6a4db94011d3 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
sahilmgandhi | 18:6a4db94011d3 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
sahilmgandhi | 18:6a4db94011d3 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
sahilmgandhi | 18:6a4db94011d3 | 21 | * |
sahilmgandhi | 18:6a4db94011d3 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
sahilmgandhi | 18:6a4db94011d3 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
sahilmgandhi | 18:6a4db94011d3 | 24 | * Products, Inc. Branding Policy. |
sahilmgandhi | 18:6a4db94011d3 | 25 | * |
sahilmgandhi | 18:6a4db94011d3 | 26 | * The mere transfer of this software does not imply any licenses |
sahilmgandhi | 18:6a4db94011d3 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
sahilmgandhi | 18:6a4db94011d3 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
sahilmgandhi | 18:6a4db94011d3 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
sahilmgandhi | 18:6a4db94011d3 | 30 | * ownership rights. |
sahilmgandhi | 18:6a4db94011d3 | 31 | ******************************************************************************* |
sahilmgandhi | 18:6a4db94011d3 | 32 | */ |
sahilmgandhi | 18:6a4db94011d3 | 33 | |
sahilmgandhi | 18:6a4db94011d3 | 34 | #ifndef _MXC_USB_REGS_H_ |
sahilmgandhi | 18:6a4db94011d3 | 35 | #define _MXC_USB_REGS_H_ |
sahilmgandhi | 18:6a4db94011d3 | 36 | |
sahilmgandhi | 18:6a4db94011d3 | 37 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 38 | extern "C" { |
sahilmgandhi | 18:6a4db94011d3 | 39 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 40 | |
sahilmgandhi | 18:6a4db94011d3 | 41 | #include <stdint.h> |
sahilmgandhi | 18:6a4db94011d3 | 42 | |
sahilmgandhi | 18:6a4db94011d3 | 43 | /** |
sahilmgandhi | 18:6a4db94011d3 | 44 | * @file usb_regs.h |
sahilmgandhi | 18:6a4db94011d3 | 45 | * @addtogroup usb USB |
sahilmgandhi | 18:6a4db94011d3 | 46 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 47 | */ |
sahilmgandhi | 18:6a4db94011d3 | 48 | |
sahilmgandhi | 18:6a4db94011d3 | 49 | /* Offset Register Description |
sahilmgandhi | 18:6a4db94011d3 | 50 | ====== ================================================ */ |
sahilmgandhi | 18:6a4db94011d3 | 51 | typedef struct { |
sahilmgandhi | 18:6a4db94011d3 | 52 | __IO uint32_t cn; /* 0x0000 USB Control Register */ |
sahilmgandhi | 18:6a4db94011d3 | 53 | __I uint32_t rsv0004[127]; /* 0x0004 */ |
sahilmgandhi | 18:6a4db94011d3 | 54 | __IO uint32_t dev_addr; /* 0x0200 USB Device Address Register */ |
sahilmgandhi | 18:6a4db94011d3 | 55 | __IO uint32_t dev_cn; /* 0x0204 USB Device Control Register */ |
sahilmgandhi | 18:6a4db94011d3 | 56 | __IO uint32_t dev_intfl; /* 0x0208 USB Device Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 57 | __IO uint32_t dev_inten; /* 0x020C USB Device Interrupt Enable */ |
sahilmgandhi | 18:6a4db94011d3 | 58 | __I uint32_t rsv0210[4]; /* 0x0210 */ |
sahilmgandhi | 18:6a4db94011d3 | 59 | __IO uint32_t ep_base; /* 0x0220 USB Endpoint Descriptor Table Base Address */ |
sahilmgandhi | 18:6a4db94011d3 | 60 | __IO uint32_t cur_buf; /* 0x0224 USB Current Endpoint Buffer Register */ |
sahilmgandhi | 18:6a4db94011d3 | 61 | __IO uint32_t in_owner; /* 0x0228 USB IN Endpoint Buffer Owner Register */ |
sahilmgandhi | 18:6a4db94011d3 | 62 | __IO uint32_t out_owner; /* 0x022C USB OUT Endpoint Buffer Owner Register */ |
sahilmgandhi | 18:6a4db94011d3 | 63 | __IO uint32_t in_int; /* 0x0230 USB IN Endpoint Buffer Available Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 64 | __IO uint32_t out_int; /* 0x0234 USB OUT Endpoint Data Available Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 65 | __IO uint32_t nak_int; /* 0x0238 USB IN Endpoint NAK Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 66 | __IO uint32_t dma_err_int; /* 0x023C USB DMA Error Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 67 | __IO uint32_t buf_ovr_int; /* 0x0240 USB Buffer Overflow Interrupt */ |
sahilmgandhi | 18:6a4db94011d3 | 68 | __I uint32_t rsv0244[7]; /* 0x0244 */ |
sahilmgandhi | 18:6a4db94011d3 | 69 | __IO uint32_t setup0; /* 0x0260 USB SETUP Packet Bytes 0 to 3 */ |
sahilmgandhi | 18:6a4db94011d3 | 70 | __IO uint32_t setup1; /* 0x0264 USB SETUP Packet Bytes 4 to 7 */ |
sahilmgandhi | 18:6a4db94011d3 | 71 | __I uint32_t rsv0268[6]; /* 0x0268 */ |
sahilmgandhi | 18:6a4db94011d3 | 72 | __IO uint32_t ep[MXC_USB_NUM_EP]; /* 0x0280 USB Endpoint Control Registers */ |
sahilmgandhi | 18:6a4db94011d3 | 73 | } mxc_usb_regs_t; |
sahilmgandhi | 18:6a4db94011d3 | 74 | |
sahilmgandhi | 18:6a4db94011d3 | 75 | |
sahilmgandhi | 18:6a4db94011d3 | 76 | /* |
sahilmgandhi | 18:6a4db94011d3 | 77 | Register offsets for module USB. |
sahilmgandhi | 18:6a4db94011d3 | 78 | */ |
sahilmgandhi | 18:6a4db94011d3 | 79 | #define MXC_R_USB_OFFS_CN ((uint32_t)0x00000000UL) |
sahilmgandhi | 18:6a4db94011d3 | 80 | #define MXC_R_USB_OFFS_DEV_ADDR ((uint32_t)0x00000200UL) |
sahilmgandhi | 18:6a4db94011d3 | 81 | #define MXC_R_USB_OFFS_DEV_CN ((uint32_t)0x00000204UL) |
sahilmgandhi | 18:6a4db94011d3 | 82 | #define MXC_R_USB_OFFS_DEV_INTFL ((uint32_t)0x00000208UL) |
sahilmgandhi | 18:6a4db94011d3 | 83 | #define MXC_R_USB_OFFS_DEV_INTEN ((uint32_t)0x0000020CUL) |
sahilmgandhi | 18:6a4db94011d3 | 84 | #define MXC_R_USB_OFFS_EP_BASE ((uint32_t)0x00000220UL) |
sahilmgandhi | 18:6a4db94011d3 | 85 | #define MXC_R_USB_OFFS_CUR_BUF ((uint32_t)0x00000224UL) |
sahilmgandhi | 18:6a4db94011d3 | 86 | #define MXC_R_USB_OFFS_IN_OWNER ((uint32_t)0x00000228UL) |
sahilmgandhi | 18:6a4db94011d3 | 87 | #define MXC_R_USB_OFFS_OUT_OWNER ((uint32_t)0x0000022CUL) |
sahilmgandhi | 18:6a4db94011d3 | 88 | #define MXC_R_USB_OFFS_IN_INT ((uint32_t)0x00000230UL) |
sahilmgandhi | 18:6a4db94011d3 | 89 | #define MXC_R_USB_OFFS_OUT_INT ((uint32_t)0x00000234UL) |
sahilmgandhi | 18:6a4db94011d3 | 90 | #define MXC_R_USB_OFFS_NAK_INT ((uint32_t)0x00000238UL) |
sahilmgandhi | 18:6a4db94011d3 | 91 | #define MXC_R_USB_OFFS_DMA_ERR_INT ((uint32_t)0x0000023CUL) |
sahilmgandhi | 18:6a4db94011d3 | 92 | #define MXC_R_USB_OFFS_BUF_OVR_INT ((uint32_t)0x00000240UL) |
sahilmgandhi | 18:6a4db94011d3 | 93 | #define MXC_R_USB_OFFS_SETUP0 ((uint32_t)0x00000260UL) |
sahilmgandhi | 18:6a4db94011d3 | 94 | #define MXC_R_USB_OFFS_SETUP1 ((uint32_t)0x00000264UL) |
sahilmgandhi | 18:6a4db94011d3 | 95 | #define MXC_R_USB_OFFS_EP0 ((uint32_t)0x00000280UL) |
sahilmgandhi | 18:6a4db94011d3 | 96 | #define MXC_R_USB_OFFS_EP1 ((uint32_t)0x00000284UL) |
sahilmgandhi | 18:6a4db94011d3 | 97 | #define MXC_R_USB_OFFS_EP2 ((uint32_t)0x00000288UL) |
sahilmgandhi | 18:6a4db94011d3 | 98 | #define MXC_R_USB_OFFS_EP3 ((uint32_t)0x0000028CUL) |
sahilmgandhi | 18:6a4db94011d3 | 99 | #define MXC_R_USB_OFFS_EP4 ((uint32_t)0x00000290UL) |
sahilmgandhi | 18:6a4db94011d3 | 100 | #define MXC_R_USB_OFFS_EP5 ((uint32_t)0x00000294UL) |
sahilmgandhi | 18:6a4db94011d3 | 101 | #define MXC_R_USB_OFFS_EP6 ((uint32_t)0x00000298UL) |
sahilmgandhi | 18:6a4db94011d3 | 102 | #define MXC_R_USB_OFFS_EP7 ((uint32_t)0x0000029CUL) |
sahilmgandhi | 18:6a4db94011d3 | 103 | |
sahilmgandhi | 18:6a4db94011d3 | 104 | |
sahilmgandhi | 18:6a4db94011d3 | 105 | /* |
sahilmgandhi | 18:6a4db94011d3 | 106 | Field positions and masks for module USB. |
sahilmgandhi | 18:6a4db94011d3 | 107 | */ |
sahilmgandhi | 18:6a4db94011d3 | 108 | #define MXC_F_USB_CN_USB_EN_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 109 | #define MXC_F_USB_CN_USB_EN ((uint32_t)(0x00000001UL << MXC_F_USB_CN_USB_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 110 | |
sahilmgandhi | 18:6a4db94011d3 | 111 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 112 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR ((uint32_t)(0x0000007FUL << MXC_F_USB_DEV_ADDR_DEV_ADDR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 113 | |
sahilmgandhi | 18:6a4db94011d3 | 114 | #define MXC_F_USB_DEV_CN_SIGRWU_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 115 | #define MXC_F_USB_DEV_CN_SIGRWU ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_SIGRWU_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 116 | #define MXC_F_USB_DEV_CN_CONNECT_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 117 | #define MXC_F_USB_DEV_CN_CONNECT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_CONNECT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 118 | #define MXC_F_USB_DEV_CN_ULPM_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 119 | #define MXC_F_USB_DEV_CN_ULPM ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_ULPM_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 120 | #define MXC_F_USB_DEV_CN_URST_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 121 | #define MXC_F_USB_DEV_CN_URST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_URST_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 122 | #define MXC_F_USB_DEV_CN_VBGATE_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 123 | #define MXC_F_USB_DEV_CN_VBGATE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_VBGATE_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 124 | #define MXC_F_USB_DEV_CN_FIFO_MODE_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 125 | #define MXC_F_USB_DEV_CN_FIFO_MODE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_FIFO_MODE_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 126 | |
sahilmgandhi | 18:6a4db94011d3 | 127 | #define MXC_F_USB_DEV_INTFL_DPACT_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 128 | #define MXC_F_USB_DEV_INTFL_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DPACT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 129 | #define MXC_F_USB_DEV_INTFL_RWU_DN_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 130 | #define MXC_F_USB_DEV_INTFL_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_RWU_DN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 131 | #define MXC_F_USB_DEV_INTFL_BACT_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 132 | #define MXC_F_USB_DEV_INTFL_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BACT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 133 | #define MXC_F_USB_DEV_INTFL_BRST_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 134 | #define MXC_F_USB_DEV_INTFL_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 135 | #define MXC_F_USB_DEV_INTFL_SUSP_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 136 | #define MXC_F_USB_DEV_INTFL_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SUSP_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 137 | #define MXC_F_USB_DEV_INTFL_NO_VBUS_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 138 | #define MXC_F_USB_DEV_INTFL_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_NO_VBUS_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 139 | #define MXC_F_USB_DEV_INTFL_VBUS_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 140 | #define MXC_F_USB_DEV_INTFL_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 141 | #define MXC_F_USB_DEV_INTFL_BRST_DN_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 142 | #define MXC_F_USB_DEV_INTFL_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_DN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 143 | #define MXC_F_USB_DEV_INTFL_SETUP_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 144 | #define MXC_F_USB_DEV_INTFL_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SETUP_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 145 | #define MXC_F_USB_DEV_INTFL_EP_IN_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 146 | #define MXC_F_USB_DEV_INTFL_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_IN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 147 | #define MXC_F_USB_DEV_INTFL_EP_OUT_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 148 | #define MXC_F_USB_DEV_INTFL_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_OUT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 149 | #define MXC_F_USB_DEV_INTFL_EP_NAK_POS 11 |
sahilmgandhi | 18:6a4db94011d3 | 150 | #define MXC_F_USB_DEV_INTFL_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_NAK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 151 | #define MXC_F_USB_DEV_INTFL_DMA_ERR_POS 12 |
sahilmgandhi | 18:6a4db94011d3 | 152 | #define MXC_F_USB_DEV_INTFL_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DMA_ERR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 153 | #define MXC_F_USB_DEV_INTFL_BUF_OVR_POS 13 |
sahilmgandhi | 18:6a4db94011d3 | 154 | #define MXC_F_USB_DEV_INTFL_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BUF_OVR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 155 | #define MXC_F_USB_DEV_INTFL_VBUS_ST_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 156 | #define MXC_F_USB_DEV_INTFL_VBUS_ST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_ST_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 157 | |
sahilmgandhi | 18:6a4db94011d3 | 158 | #define MXC_F_USB_DEV_INTEN_DPACT_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 159 | #define MXC_F_USB_DEV_INTEN_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DPACT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 160 | #define MXC_F_USB_DEV_INTEN_RWU_DN_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 161 | #define MXC_F_USB_DEV_INTEN_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_RWU_DN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 162 | #define MXC_F_USB_DEV_INTEN_BACT_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 163 | #define MXC_F_USB_DEV_INTEN_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BACT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 164 | #define MXC_F_USB_DEV_INTEN_BRST_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 165 | #define MXC_F_USB_DEV_INTEN_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 166 | #define MXC_F_USB_DEV_INTEN_SUSP_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 167 | #define MXC_F_USB_DEV_INTEN_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SUSP_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 168 | #define MXC_F_USB_DEV_INTEN_NO_VBUS_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 169 | #define MXC_F_USB_DEV_INTEN_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_NO_VBUS_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 170 | #define MXC_F_USB_DEV_INTEN_VBUS_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 171 | #define MXC_F_USB_DEV_INTEN_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_VBUS_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 172 | #define MXC_F_USB_DEV_INTEN_BRST_DN_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 173 | #define MXC_F_USB_DEV_INTEN_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_DN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 174 | #define MXC_F_USB_DEV_INTEN_SETUP_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 175 | #define MXC_F_USB_DEV_INTEN_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SETUP_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 176 | #define MXC_F_USB_DEV_INTEN_EP_IN_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 177 | #define MXC_F_USB_DEV_INTEN_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_IN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 178 | #define MXC_F_USB_DEV_INTEN_EP_OUT_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 179 | #define MXC_F_USB_DEV_INTEN_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_OUT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 180 | #define MXC_F_USB_DEV_INTEN_EP_NAK_POS 11 |
sahilmgandhi | 18:6a4db94011d3 | 181 | #define MXC_F_USB_DEV_INTEN_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_NAK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 182 | #define MXC_F_USB_DEV_INTEN_DMA_ERR_POS 12 |
sahilmgandhi | 18:6a4db94011d3 | 183 | #define MXC_F_USB_DEV_INTEN_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DMA_ERR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 184 | #define MXC_F_USB_DEV_INTEN_BUF_OVR_POS 13 |
sahilmgandhi | 18:6a4db94011d3 | 185 | #define MXC_F_USB_DEV_INTEN_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BUF_OVR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 186 | |
sahilmgandhi | 18:6a4db94011d3 | 187 | #define MXC_F_USB_EP_BASE_EP_BASE_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 188 | #define MXC_F_USB_EP_BASE_EP_BASE ((uint32_t)(0x007FFFFFUL << MXC_F_USB_EP_BASE_EP_BASE_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 189 | |
sahilmgandhi | 18:6a4db94011d3 | 190 | #define MXC_F_USB_CUR_BUF_OUT_BUF_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 191 | #define MXC_F_USB_CUR_BUF_OUT_BUF ((uint32_t)(0x000000FFUL << MXC_F_USB_CUR_BUF_OUT_BUF_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 192 | #define MXC_F_USB_CUR_BUF_IN_BUF_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 193 | #define MXC_F_USB_CUR_BUF_IN_BUF ((uint32_t)(0x000000FFUL << MXC_F_USB_CUR_BUF_IN_BUF_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 194 | |
sahilmgandhi | 18:6a4db94011d3 | 195 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 196 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_OWNER_BUF0_OWNER_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 197 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 198 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_OWNER_BUF1_OWNER_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 199 | |
sahilmgandhi | 18:6a4db94011d3 | 200 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 201 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 202 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 203 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 204 | |
sahilmgandhi | 18:6a4db94011d3 | 205 | #define MXC_F_USB_IN_INT_INBAV0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 206 | #define MXC_F_USB_IN_INT_INBAV0 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 207 | #define MXC_F_USB_IN_INT_INBAV1_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 208 | #define MXC_F_USB_IN_INT_INBAV1 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 209 | #define MXC_F_USB_IN_INT_INBAV2_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 210 | #define MXC_F_USB_IN_INT_INBAV2 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 211 | #define MXC_F_USB_IN_INT_INBAV3_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 212 | #define MXC_F_USB_IN_INT_INBAV3 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 213 | #define MXC_F_USB_IN_INT_INBAV4_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 214 | #define MXC_F_USB_IN_INT_INBAV4 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 215 | #define MXC_F_USB_IN_INT_INBAV5_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 216 | #define MXC_F_USB_IN_INT_INBAV5 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 217 | #define MXC_F_USB_IN_INT_INBAV6_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 218 | #define MXC_F_USB_IN_INT_INBAV6 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 219 | #define MXC_F_USB_IN_INT_INBAV7_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 220 | #define MXC_F_USB_IN_INT_INBAV7 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 221 | |
sahilmgandhi | 18:6a4db94011d3 | 222 | #define MXC_F_USB_OUT_INT_OUTDAV0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 223 | #define MXC_F_USB_OUT_INT_OUTDAV0 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 224 | #define MXC_F_USB_OUT_INT_OUTDAV1_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 225 | #define MXC_F_USB_OUT_INT_OUTDAV1 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 226 | #define MXC_F_USB_OUT_INT_OUTDAV2_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 227 | #define MXC_F_USB_OUT_INT_OUTDAV2 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 228 | #define MXC_F_USB_OUT_INT_OUTDAV3_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 229 | #define MXC_F_USB_OUT_INT_OUTDAV3 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 230 | #define MXC_F_USB_OUT_INT_OUTDAV4_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 231 | #define MXC_F_USB_OUT_INT_OUTDAV4 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 232 | #define MXC_F_USB_OUT_INT_OUTDAV5_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 233 | #define MXC_F_USB_OUT_INT_OUTDAV5 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 234 | #define MXC_F_USB_OUT_INT_OUTDAV6_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 235 | #define MXC_F_USB_OUT_INT_OUTDAV6 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 236 | #define MXC_F_USB_OUT_INT_OUTDAV7_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 237 | #define MXC_F_USB_OUT_INT_OUTDAV7 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 238 | |
sahilmgandhi | 18:6a4db94011d3 | 239 | #define MXC_F_USB_NAK_INT_NAK0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 240 | #define MXC_F_USB_NAK_INT_NAK0 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 241 | #define MXC_F_USB_NAK_INT_NAK1_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 242 | #define MXC_F_USB_NAK_INT_NAK1 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 243 | #define MXC_F_USB_NAK_INT_NAK2_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 244 | #define MXC_F_USB_NAK_INT_NAK2 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 245 | #define MXC_F_USB_NAK_INT_NAK3_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 246 | #define MXC_F_USB_NAK_INT_NAK3 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 247 | #define MXC_F_USB_NAK_INT_NAK4_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 248 | #define MXC_F_USB_NAK_INT_NAK4 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 249 | #define MXC_F_USB_NAK_INT_NAK5_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 250 | #define MXC_F_USB_NAK_INT_NAK5 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 251 | #define MXC_F_USB_NAK_INT_NAK6_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 252 | #define MXC_F_USB_NAK_INT_NAK6 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 253 | #define MXC_F_USB_NAK_INT_NAK7_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 254 | #define MXC_F_USB_NAK_INT_NAK7 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 255 | |
sahilmgandhi | 18:6a4db94011d3 | 256 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 257 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR0 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 258 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR1_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 259 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR1 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 260 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR2_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 261 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR2 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 262 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR3_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 263 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR3 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 264 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR4_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 265 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR4 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 266 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR5_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 267 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR5 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 268 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR6_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 269 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR6 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 270 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR7_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 271 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR7 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 272 | |
sahilmgandhi | 18:6a4db94011d3 | 273 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 274 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR0 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 275 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR1_POS 1 |
sahilmgandhi | 18:6a4db94011d3 | 276 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR1 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 277 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR2_POS 2 |
sahilmgandhi | 18:6a4db94011d3 | 278 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR2 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 279 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR3_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 280 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR3 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 281 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR4_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 282 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR4 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 283 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR5_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 284 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR5 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 285 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR6_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 286 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR6 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 287 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR7_POS 7 |
sahilmgandhi | 18:6a4db94011d3 | 288 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR7 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 289 | |
sahilmgandhi | 18:6a4db94011d3 | 290 | #define MXC_F_USB_SETUP0_BYTE0_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 291 | #define MXC_F_USB_SETUP0_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE0_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 292 | #define MXC_F_USB_SETUP0_BYTE1_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 293 | #define MXC_F_USB_SETUP0_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE1_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 294 | #define MXC_F_USB_SETUP0_BYTE2_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 295 | #define MXC_F_USB_SETUP0_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 296 | #define MXC_F_USB_SETUP0_BYTE3_POS 24 |
sahilmgandhi | 18:6a4db94011d3 | 297 | #define MXC_F_USB_SETUP0_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE3_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 298 | |
sahilmgandhi | 18:6a4db94011d3 | 299 | #define MXC_F_USB_SETUP1_BYTE4_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 300 | #define MXC_F_USB_SETUP1_BYTE4 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE4_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 301 | #define MXC_F_USB_SETUP1_BYTE5_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 302 | #define MXC_F_USB_SETUP1_BYTE5 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE5_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 303 | #define MXC_F_USB_SETUP1_BYTE6_POS 16 |
sahilmgandhi | 18:6a4db94011d3 | 304 | #define MXC_F_USB_SETUP1_BYTE6 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE6_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 305 | #define MXC_F_USB_SETUP1_BYTE7_POS 24 |
sahilmgandhi | 18:6a4db94011d3 | 306 | #define MXC_F_USB_SETUP1_BYTE7 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE7_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 307 | |
sahilmgandhi | 18:6a4db94011d3 | 308 | #define MXC_F_USB_EP0_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 309 | #define MXC_F_USB_EP0_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP0_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 310 | #define MXC_F_USB_EP0_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 311 | #define MXC_F_USB_EP0_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 312 | #define MXC_F_USB_EP0_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 313 | #define MXC_F_USB_EP0_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 314 | #define MXC_F_USB_EP0_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 315 | #define MXC_F_USB_EP0_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 316 | #define MXC_F_USB_EP0_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 317 | #define MXC_F_USB_EP0_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 318 | #define MXC_F_USB_EP0_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 319 | #define MXC_F_USB_EP0_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 320 | #define MXC_F_USB_EP0_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 321 | #define MXC_F_USB_EP0_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 322 | #define MXC_F_USB_EP0_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 323 | #define MXC_F_USB_EP0_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 324 | |
sahilmgandhi | 18:6a4db94011d3 | 325 | #define MXC_F_USB_EP1_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 326 | #define MXC_F_USB_EP1_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP1_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 327 | #define MXC_F_USB_EP1_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 328 | #define MXC_F_USB_EP1_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 329 | #define MXC_F_USB_EP1_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 330 | #define MXC_F_USB_EP1_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 331 | #define MXC_F_USB_EP1_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 332 | #define MXC_F_USB_EP1_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 333 | #define MXC_F_USB_EP1_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 334 | #define MXC_F_USB_EP1_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 335 | #define MXC_F_USB_EP1_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 336 | #define MXC_F_USB_EP1_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 337 | #define MXC_F_USB_EP1_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 338 | #define MXC_F_USB_EP1_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 339 | #define MXC_F_USB_EP1_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 340 | #define MXC_F_USB_EP1_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 341 | |
sahilmgandhi | 18:6a4db94011d3 | 342 | #define MXC_F_USB_EP2_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 343 | #define MXC_F_USB_EP2_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP2_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 344 | #define MXC_F_USB_EP2_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 345 | #define MXC_F_USB_EP2_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 346 | #define MXC_F_USB_EP2_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 347 | #define MXC_F_USB_EP2_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 348 | #define MXC_F_USB_EP2_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 349 | #define MXC_F_USB_EP2_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 350 | #define MXC_F_USB_EP2_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 351 | #define MXC_F_USB_EP2_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 352 | #define MXC_F_USB_EP2_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 353 | #define MXC_F_USB_EP2_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 354 | #define MXC_F_USB_EP2_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 355 | #define MXC_F_USB_EP2_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 356 | #define MXC_F_USB_EP2_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 357 | #define MXC_F_USB_EP2_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 358 | |
sahilmgandhi | 18:6a4db94011d3 | 359 | #define MXC_F_USB_EP3_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 360 | #define MXC_F_USB_EP3_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP3_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 361 | #define MXC_F_USB_EP3_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 362 | #define MXC_F_USB_EP3_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 363 | #define MXC_F_USB_EP3_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 364 | #define MXC_F_USB_EP3_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 365 | #define MXC_F_USB_EP3_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 366 | #define MXC_F_USB_EP3_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 367 | #define MXC_F_USB_EP3_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 368 | #define MXC_F_USB_EP3_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 369 | #define MXC_F_USB_EP3_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 370 | #define MXC_F_USB_EP3_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 371 | #define MXC_F_USB_EP3_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 372 | #define MXC_F_USB_EP3_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 373 | #define MXC_F_USB_EP3_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 374 | #define MXC_F_USB_EP3_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 375 | |
sahilmgandhi | 18:6a4db94011d3 | 376 | #define MXC_F_USB_EP4_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 377 | #define MXC_F_USB_EP4_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP4_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 378 | #define MXC_F_USB_EP4_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 379 | #define MXC_F_USB_EP4_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 380 | #define MXC_F_USB_EP4_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 381 | #define MXC_F_USB_EP4_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 382 | #define MXC_F_USB_EP4_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 383 | #define MXC_F_USB_EP4_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 384 | #define MXC_F_USB_EP4_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 385 | #define MXC_F_USB_EP4_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 386 | #define MXC_F_USB_EP4_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 387 | #define MXC_F_USB_EP4_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 388 | #define MXC_F_USB_EP4_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 389 | #define MXC_F_USB_EP4_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 390 | #define MXC_F_USB_EP4_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 391 | #define MXC_F_USB_EP4_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 392 | |
sahilmgandhi | 18:6a4db94011d3 | 393 | #define MXC_F_USB_EP5_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 394 | #define MXC_F_USB_EP5_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP5_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 395 | #define MXC_F_USB_EP5_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 396 | #define MXC_F_USB_EP5_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 397 | #define MXC_F_USB_EP5_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 398 | #define MXC_F_USB_EP5_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 399 | #define MXC_F_USB_EP5_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 400 | #define MXC_F_USB_EP5_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 401 | #define MXC_F_USB_EP5_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 402 | #define MXC_F_USB_EP5_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 403 | #define MXC_F_USB_EP5_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 404 | #define MXC_F_USB_EP5_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 405 | #define MXC_F_USB_EP5_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 406 | #define MXC_F_USB_EP5_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 407 | #define MXC_F_USB_EP5_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 408 | #define MXC_F_USB_EP5_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 409 | |
sahilmgandhi | 18:6a4db94011d3 | 410 | #define MXC_F_USB_EP6_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 411 | #define MXC_F_USB_EP6_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP6_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 412 | #define MXC_F_USB_EP6_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 413 | #define MXC_F_USB_EP6_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 414 | #define MXC_F_USB_EP6_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 415 | #define MXC_F_USB_EP6_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 416 | #define MXC_F_USB_EP6_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 417 | #define MXC_F_USB_EP6_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 418 | #define MXC_F_USB_EP6_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 419 | #define MXC_F_USB_EP6_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 420 | #define MXC_F_USB_EP6_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 421 | #define MXC_F_USB_EP6_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 422 | #define MXC_F_USB_EP6_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 423 | #define MXC_F_USB_EP6_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 424 | #define MXC_F_USB_EP6_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 425 | #define MXC_F_USB_EP6_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 426 | |
sahilmgandhi | 18:6a4db94011d3 | 427 | #define MXC_F_USB_EP7_EP_DIR_POS 0 |
sahilmgandhi | 18:6a4db94011d3 | 428 | #define MXC_F_USB_EP7_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP7_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 429 | #define MXC_F_USB_EP7_EP_BUF2_POS 3 |
sahilmgandhi | 18:6a4db94011d3 | 430 | #define MXC_F_USB_EP7_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 431 | #define MXC_F_USB_EP7_EP_INT_EN_POS 4 |
sahilmgandhi | 18:6a4db94011d3 | 432 | #define MXC_F_USB_EP7_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_INT_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 433 | #define MXC_F_USB_EP7_EP_NAK_EN_POS 5 |
sahilmgandhi | 18:6a4db94011d3 | 434 | #define MXC_F_USB_EP7_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 435 | #define MXC_F_USB_EP7_EP_DT_POS 6 |
sahilmgandhi | 18:6a4db94011d3 | 436 | #define MXC_F_USB_EP7_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 437 | #define MXC_F_USB_EP7_EP_STALL_POS 8 |
sahilmgandhi | 18:6a4db94011d3 | 438 | #define MXC_F_USB_EP7_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 439 | #define MXC_F_USB_EP7_EP_ST_STALL_POS 9 |
sahilmgandhi | 18:6a4db94011d3 | 440 | #define MXC_F_USB_EP7_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 441 | #define MXC_F_USB_EP7_EP_ST_ACK_POS 10 |
sahilmgandhi | 18:6a4db94011d3 | 442 | #define MXC_F_USB_EP7_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 443 | |
sahilmgandhi | 18:6a4db94011d3 | 444 | #define MXC_F_USB_EP_DIR_POS (0) |
sahilmgandhi | 18:6a4db94011d3 | 445 | #define MXC_F_USB_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP_DIR_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 446 | |
sahilmgandhi | 18:6a4db94011d3 | 447 | #define MXC_V_USB_EP_DIR_DISABLE ((uint32_t)0x00000000UL) |
sahilmgandhi | 18:6a4db94011d3 | 448 | #define MXC_V_USB_EP_DIR_OUT ((uint32_t)0x00000001UL) |
sahilmgandhi | 18:6a4db94011d3 | 449 | #define MXC_V_USB_EP_DIR_IN ((uint32_t)0x00000002UL) |
sahilmgandhi | 18:6a4db94011d3 | 450 | #define MXC_V_USB_EP_DIR_CONTROL ((uint32_t)0x00000003UL) |
sahilmgandhi | 18:6a4db94011d3 | 451 | |
sahilmgandhi | 18:6a4db94011d3 | 452 | #define MXC_S_USB_EP_DIR_DISABLE (MXC_V_USB_EP_DIR_DISABLE << MXC_F_USB_EP_DIR_POS) |
sahilmgandhi | 18:6a4db94011d3 | 453 | #define MXC_S_USB_EP_DIR_OUT (MXC_V_USB_EP_DIR_OUT << MXC_F_USB_EP_DIR_POS) |
sahilmgandhi | 18:6a4db94011d3 | 454 | #define MXC_S_USB_EP_DIR_IN (MXC_V_USB_EP_DIR_IN << MXC_F_USB_EP_DIR_POS) |
sahilmgandhi | 18:6a4db94011d3 | 455 | #define MXC_S_USB_EP_DIR_CONTROL (MXC_V_USB_EP_DIR_CONTROL << MXC_F_USB_EP_DIR_POS) |
sahilmgandhi | 18:6a4db94011d3 | 456 | |
sahilmgandhi | 18:6a4db94011d3 | 457 | #define MXC_F_USB_EP_BUF2_POS (3) |
sahilmgandhi | 18:6a4db94011d3 | 458 | #define MXC_F_USB_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP_BUF2_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 459 | #define MXC_F_USB_EP_INTEN_POS (4) |
sahilmgandhi | 18:6a4db94011d3 | 460 | #define MXC_F_USB_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_INTEN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 461 | #define MXC_F_USB_EP_NAK_EN_POS (5) |
sahilmgandhi | 18:6a4db94011d3 | 462 | #define MXC_F_USB_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_NAK_EN_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 463 | #define MXC_F_USB_EP_DT_POS (6) |
sahilmgandhi | 18:6a4db94011d3 | 464 | #define MXC_F_USB_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP_DT_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 465 | #define MXC_F_USB_EP_STALL_POS (8) |
sahilmgandhi | 18:6a4db94011d3 | 466 | #define MXC_F_USB_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 467 | #define MXC_F_USB_EP_ST_STALL_POS (9) |
sahilmgandhi | 18:6a4db94011d3 | 468 | #define MXC_F_USB_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_STALL_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 469 | #define MXC_F_USB_EP_ST_ACK_POS (10) |
sahilmgandhi | 18:6a4db94011d3 | 470 | #define MXC_F_USB_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_ACK_POS)) |
sahilmgandhi | 18:6a4db94011d3 | 471 | |
sahilmgandhi | 18:6a4db94011d3 | 472 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 473 | } |
sahilmgandhi | 18:6a4db94011d3 | 474 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 475 | |
sahilmgandhi | 18:6a4db94011d3 | 476 | /** |
sahilmgandhi | 18:6a4db94011d3 | 477 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 478 | */ |
sahilmgandhi | 18:6a4db94011d3 | 479 | |
sahilmgandhi | 18:6a4db94011d3 | 480 | #endif /* _MXC_USB_REGS_H_ */ |