Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_EFM32HG_STK3400/efm32hg_usb.h@98:8ab26030e058, 2015-04-29 (annotated)
- Committer:
- Kojto
- Date:
- Wed Apr 29 10:16:23 2015 +0100
- Revision:
- 98:8ab26030e058
- Child:
- 113:f141b2784e32
Release 98 of the mbed library
Changes:
- Silabs new targets (Giant, Zero, Happy, Leopard, Wonder Geckos)
- Asynchronous SPI, I2C, Serial
- LowPower classes
- Nordic - nordic SDK v8.0 update
- Teensy - gcc arm fix for startup
- Nucleo F411 - usb freq fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 98:8ab26030e058 | 1 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 2 | * @file efm32hg_usb.h |
Kojto | 98:8ab26030e058 | 3 | * @brief EFM32HG_USB register and bit field definitions |
Kojto | 98:8ab26030e058 | 4 | * @version 3.20.12 |
Kojto | 98:8ab26030e058 | 5 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 6 | * @section License |
Kojto | 98:8ab26030e058 | 7 | * <b>(C) Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b> |
Kojto | 98:8ab26030e058 | 8 | ****************************************************************************** |
Kojto | 98:8ab26030e058 | 9 | * |
Kojto | 98:8ab26030e058 | 10 | * Permission is granted to anyone to use this software for any purpose, |
Kojto | 98:8ab26030e058 | 11 | * including commercial applications, and to alter it and redistribute it |
Kojto | 98:8ab26030e058 | 12 | * freely, subject to the following restrictions: |
Kojto | 98:8ab26030e058 | 13 | * |
Kojto | 98:8ab26030e058 | 14 | * 1. The origin of this software must not be misrepresented; you must not |
Kojto | 98:8ab26030e058 | 15 | * claim that you wrote the original software.@n |
Kojto | 98:8ab26030e058 | 16 | * 2. Altered source versions must be plainly marked as such, and must not be |
Kojto | 98:8ab26030e058 | 17 | * misrepresented as being the original software.@n |
Kojto | 98:8ab26030e058 | 18 | * 3. This notice may not be removed or altered from any source distribution. |
Kojto | 98:8ab26030e058 | 19 | * |
Kojto | 98:8ab26030e058 | 20 | * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. |
Kojto | 98:8ab26030e058 | 21 | * has no obligation to support this Software. Silicon Laboratories, Inc. is |
Kojto | 98:8ab26030e058 | 22 | * providing the Software "AS IS", with no express or implied warranties of any |
Kojto | 98:8ab26030e058 | 23 | * kind, including, but not limited to, any implied warranties of |
Kojto | 98:8ab26030e058 | 24 | * merchantability or fitness for any particular purpose or warranties against |
Kojto | 98:8ab26030e058 | 25 | * infringement of any proprietary rights of a third party. |
Kojto | 98:8ab26030e058 | 26 | * |
Kojto | 98:8ab26030e058 | 27 | * Silicon Laboratories, Inc. will not be liable for any consequential, |
Kojto | 98:8ab26030e058 | 28 | * incidental, or special damages, or any other relief, or for any claim by |
Kojto | 98:8ab26030e058 | 29 | * any third party, arising from your use of this Software. |
Kojto | 98:8ab26030e058 | 30 | * |
Kojto | 98:8ab26030e058 | 31 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 32 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 33 | * @defgroup EFM32HG_USB |
Kojto | 98:8ab26030e058 | 34 | * @{ |
Kojto | 98:8ab26030e058 | 35 | * @brief EFM32HG_USB Register Declaration |
Kojto | 98:8ab26030e058 | 36 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 37 | typedef struct |
Kojto | 98:8ab26030e058 | 38 | { |
Kojto | 98:8ab26030e058 | 39 | __IO uint32_t CTRL; /**< System Control Register */ |
Kojto | 98:8ab26030e058 | 40 | __I uint32_t STATUS; /**< System Status Register */ |
Kojto | 98:8ab26030e058 | 41 | __I uint32_t IF; /**< Interrupt Flag Register */ |
Kojto | 98:8ab26030e058 | 42 | __IO uint32_t IFS; /**< Interrupt Flag Set Register */ |
Kojto | 98:8ab26030e058 | 43 | __IO uint32_t IFC; /**< Interrupt Flag Clear Register */ |
Kojto | 98:8ab26030e058 | 44 | __IO uint32_t IEN; /**< Interrupt Enable Register */ |
Kojto | 98:8ab26030e058 | 45 | __IO uint32_t ROUTE; /**< I/O Routing Register */ |
Kojto | 98:8ab26030e058 | 46 | |
Kojto | 98:8ab26030e058 | 47 | uint32_t RESERVED0[61435]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 48 | __IO uint32_t GAHBCFG; /**< AHB Configuration Register */ |
Kojto | 98:8ab26030e058 | 49 | __IO uint32_t GUSBCFG; /**< USB Configuration Register */ |
Kojto | 98:8ab26030e058 | 50 | __IO uint32_t GRSTCTL; /**< Reset Register */ |
Kojto | 98:8ab26030e058 | 51 | __IO uint32_t GINTSTS; /**< Interrupt Register */ |
Kojto | 98:8ab26030e058 | 52 | __IO uint32_t GINTMSK; /**< Interrupt Mask Register */ |
Kojto | 98:8ab26030e058 | 53 | __I uint32_t GRXSTSR; /**< Receive Status Debug Read Register */ |
Kojto | 98:8ab26030e058 | 54 | __I uint32_t GRXSTSP; /**< Receive Status Read and Pop Register */ |
Kojto | 98:8ab26030e058 | 55 | __IO uint32_t GRXFSIZ; /**< Receive FIFO Size Register */ |
Kojto | 98:8ab26030e058 | 56 | __IO uint32_t GNPTXFSIZ; /**< Non-periodic Transmit FIFO Size Register */ |
Kojto | 98:8ab26030e058 | 57 | |
Kojto | 98:8ab26030e058 | 58 | uint32_t RESERVED1[12]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 59 | __IO uint32_t GDFIFOCFG; /**< Global DFIFO Configuration Register */ |
Kojto | 98:8ab26030e058 | 60 | |
Kojto | 98:8ab26030e058 | 61 | uint32_t RESERVED2[41]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 62 | __IO uint32_t DIEPTXF1; /**< Device IN Endpoint Transmit FIFO 1 Size Register */ |
Kojto | 98:8ab26030e058 | 63 | __IO uint32_t DIEPTXF2; /**< Device IN Endpoint Transmit FIFO 2 Size Register */ |
Kojto | 98:8ab26030e058 | 64 | __IO uint32_t DIEPTXF3; /**< Device IN Endpoint Transmit FIFO 3 Size Register */ |
Kojto | 98:8ab26030e058 | 65 | |
Kojto | 98:8ab26030e058 | 66 | uint32_t RESERVED3[444]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 67 | __IO uint32_t DCFG; /**< Device Configuration Register */ |
Kojto | 98:8ab26030e058 | 68 | __IO uint32_t DCTL; /**< Device Control Register */ |
Kojto | 98:8ab26030e058 | 69 | __I uint32_t DSTS; /**< Device Status Register */ |
Kojto | 98:8ab26030e058 | 70 | uint32_t RESERVED4[1]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 71 | __IO uint32_t DIEPMSK; /**< Device IN Endpoint Common Interrupt Mask Register */ |
Kojto | 98:8ab26030e058 | 72 | __IO uint32_t DOEPMSK; /**< Device OUT Endpoint Common Interrupt Mask Register */ |
Kojto | 98:8ab26030e058 | 73 | __I uint32_t DAINT; /**< Device All Endpoints Interrupt Register */ |
Kojto | 98:8ab26030e058 | 74 | __IO uint32_t DAINTMSK; /**< Device All Endpoints Interrupt Mask Register */ |
Kojto | 98:8ab26030e058 | 75 | |
Kojto | 98:8ab26030e058 | 76 | uint32_t RESERVED5[5]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 77 | __IO uint32_t DIEPEMPMSK; /**< Device IN Endpoint FIFO Empty Interrupt Mask Register */ |
Kojto | 98:8ab26030e058 | 78 | |
Kojto | 98:8ab26030e058 | 79 | uint32_t RESERVED6[50]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 80 | __IO uint32_t DIEP0CTL; /**< Device IN Endpoint 0 Control Register */ |
Kojto | 98:8ab26030e058 | 81 | uint32_t RESERVED7[1]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 82 | __IO uint32_t DIEP0INT; /**< Device IN Endpoint 0 Interrupt Register */ |
Kojto | 98:8ab26030e058 | 83 | uint32_t RESERVED8[1]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 84 | __IO uint32_t DIEP0TSIZ; /**< Device IN Endpoint 0 Transfer Size Register */ |
Kojto | 98:8ab26030e058 | 85 | __IO uint32_t DIEP0DMAADDR; /**< Device IN Endpoint 0 DMA Address Register */ |
Kojto | 98:8ab26030e058 | 86 | __I uint32_t DIEP0TXFSTS; /**< Device IN Endpoint 0 Transmit FIFO Status Register */ |
Kojto | 98:8ab26030e058 | 87 | |
Kojto | 98:8ab26030e058 | 88 | uint32_t RESERVED9[1]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 89 | USB_DIEP_TypeDef DIEP[3]; /**< Device IN Endpoint x+1 Registers */ |
Kojto | 98:8ab26030e058 | 90 | |
Kojto | 98:8ab26030e058 | 91 | uint32_t RESERVED10[96]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 92 | __IO uint32_t DOEP0CTL; /**< Device OUT Endpoint 0 Control Register */ |
Kojto | 98:8ab26030e058 | 93 | uint32_t RESERVED11[1]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 94 | __IO uint32_t DOEP0INT; /**< Device OUT Endpoint 0 Interrupt Register */ |
Kojto | 98:8ab26030e058 | 95 | uint32_t RESERVED12[1]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 96 | __IO uint32_t DOEP0TSIZ; /**< Device OUT Endpoint 0 Transfer Size Register */ |
Kojto | 98:8ab26030e058 | 97 | __IO uint32_t DOEP0DMAADDR; /**< Device OUT Endpoint 0 DMA Address Register */ |
Kojto | 98:8ab26030e058 | 98 | |
Kojto | 98:8ab26030e058 | 99 | uint32_t RESERVED13[2]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 100 | USB_DOEP_TypeDef DOEP[3]; /**< Device OUT Endpoint x+1 Registers */ |
Kojto | 98:8ab26030e058 | 101 | |
Kojto | 98:8ab26030e058 | 102 | uint32_t RESERVED14[160]; /**< Reserved for future use **/ |
Kojto | 98:8ab26030e058 | 103 | __IO uint32_t PCGCCTL; /**< Power and Clock Gating Control Register */ |
Kojto | 98:8ab26030e058 | 104 | |
Kojto | 98:8ab26030e058 | 105 | uint32_t RESERVED15[127]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 106 | __IO uint32_t FIFO0D[384]; /**< Device EP 0 FIFO */ |
Kojto | 98:8ab26030e058 | 107 | |
Kojto | 98:8ab26030e058 | 108 | uint32_t RESERVED16[640]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 109 | __IO uint32_t FIFO1D[384]; /**< Device EP 1 FIFO */ |
Kojto | 98:8ab26030e058 | 110 | |
Kojto | 98:8ab26030e058 | 111 | uint32_t RESERVED17[640]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 112 | __IO uint32_t FIFO2D[384]; /**< Device EP 2 FIFO */ |
Kojto | 98:8ab26030e058 | 113 | |
Kojto | 98:8ab26030e058 | 114 | uint32_t RESERVED18[640]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 115 | __IO uint32_t FIFO3D[384]; /**< Device EP 3 FIFO */ |
Kojto | 98:8ab26030e058 | 116 | |
Kojto | 98:8ab26030e058 | 117 | uint32_t RESERVED19[28288]; /**< Reserved registers */ |
Kojto | 98:8ab26030e058 | 118 | __IO uint32_t FIFORAM[512]; /**< Direct Access to Data FIFO RAM for Debugging (2 KB) */ |
Kojto | 98:8ab26030e058 | 119 | } USB_TypeDef; /** @} */ |
Kojto | 98:8ab26030e058 | 120 | |
Kojto | 98:8ab26030e058 | 121 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 122 | * @defgroup EFM32HG_USB_BitFields |
Kojto | 98:8ab26030e058 | 123 | * @{ |
Kojto | 98:8ab26030e058 | 124 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 125 | |
Kojto | 98:8ab26030e058 | 126 | /* Bit fields for USB CTRL */ |
Kojto | 98:8ab26030e058 | 127 | #define _USB_CTRL_RESETVALUE 0x00000020UL /**< Default value for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 128 | #define _USB_CTRL_MASK 0x033302B2UL /**< Mask for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 129 | #define USB_CTRL_DMPUAP (0x1UL << 1) /**< DMPU Active Polarity */ |
Kojto | 98:8ab26030e058 | 130 | #define _USB_CTRL_DMPUAP_SHIFT 1 /**< Shift value for USB_DMPUAP */ |
Kojto | 98:8ab26030e058 | 131 | #define _USB_CTRL_DMPUAP_MASK 0x2UL /**< Bit mask for USB_DMPUAP */ |
Kojto | 98:8ab26030e058 | 132 | #define _USB_CTRL_DMPUAP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 133 | #define _USB_CTRL_DMPUAP_LOW 0x00000000UL /**< Mode LOW for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 134 | #define _USB_CTRL_DMPUAP_HIGH 0x00000001UL /**< Mode HIGH for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 135 | #define USB_CTRL_DMPUAP_DEFAULT (_USB_CTRL_DMPUAP_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 136 | #define USB_CTRL_DMPUAP_LOW (_USB_CTRL_DMPUAP_LOW << 1) /**< Shifted mode LOW for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 137 | #define USB_CTRL_DMPUAP_HIGH (_USB_CTRL_DMPUAP_HIGH << 1) /**< Shifted mode HIGH for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 138 | #define _USB_CTRL_LEMOSCCTRL_SHIFT 4 /**< Shift value for USB_LEMOSCCTRL */ |
Kojto | 98:8ab26030e058 | 139 | #define _USB_CTRL_LEMOSCCTRL_MASK 0x30UL /**< Bit mask for USB_LEMOSCCTRL */ |
Kojto | 98:8ab26030e058 | 140 | #define _USB_CTRL_LEMOSCCTRL_NONE 0x00000000UL /**< Mode NONE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 141 | #define _USB_CTRL_LEMOSCCTRL_GATE 0x00000001UL /**< Mode GATE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 142 | #define _USB_CTRL_LEMOSCCTRL_DEFAULT 0x00000002UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 143 | #define _USB_CTRL_LEMOSCCTRL_SUSPEND 0x00000002UL /**< Mode SUSPEND for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 144 | #define USB_CTRL_LEMOSCCTRL_NONE (_USB_CTRL_LEMOSCCTRL_NONE << 4) /**< Shifted mode NONE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 145 | #define USB_CTRL_LEMOSCCTRL_GATE (_USB_CTRL_LEMOSCCTRL_GATE << 4) /**< Shifted mode GATE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 146 | #define USB_CTRL_LEMOSCCTRL_DEFAULT (_USB_CTRL_LEMOSCCTRL_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 147 | #define USB_CTRL_LEMOSCCTRL_SUSPEND (_USB_CTRL_LEMOSCCTRL_SUSPEND << 4) /**< Shifted mode SUSPEND for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 148 | #define USB_CTRL_LEMPHYCTRL (0x1UL << 7) /**< Low Energy Mode USB PHY Control */ |
Kojto | 98:8ab26030e058 | 149 | #define _USB_CTRL_LEMPHYCTRL_SHIFT 7 /**< Shift value for USB_LEMPHYCTRL */ |
Kojto | 98:8ab26030e058 | 150 | #define _USB_CTRL_LEMPHYCTRL_MASK 0x80UL /**< Bit mask for USB_LEMPHYCTRL */ |
Kojto | 98:8ab26030e058 | 151 | #define _USB_CTRL_LEMPHYCTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 152 | #define _USB_CTRL_LEMPHYCTRL_NONE 0x00000000UL /**< Mode NONE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 153 | #define _USB_CTRL_LEMPHYCTRL_LEM 0x00000001UL /**< Mode LEM for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 154 | #define USB_CTRL_LEMPHYCTRL_DEFAULT (_USB_CTRL_LEMPHYCTRL_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 155 | #define USB_CTRL_LEMPHYCTRL_NONE (_USB_CTRL_LEMPHYCTRL_NONE << 7) /**< Shifted mode NONE for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 156 | #define USB_CTRL_LEMPHYCTRL_LEM (_USB_CTRL_LEMPHYCTRL_LEM << 7) /**< Shifted mode LEM for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 157 | #define USB_CTRL_LEMIDLEEN (0x1UL << 9) /**< Low Energy Mode on Bus Idle Enable */ |
Kojto | 98:8ab26030e058 | 158 | #define _USB_CTRL_LEMIDLEEN_SHIFT 9 /**< Shift value for USB_LEMIDLEEN */ |
Kojto | 98:8ab26030e058 | 159 | #define _USB_CTRL_LEMIDLEEN_MASK 0x200UL /**< Bit mask for USB_LEMIDLEEN */ |
Kojto | 98:8ab26030e058 | 160 | #define _USB_CTRL_LEMIDLEEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 161 | #define USB_CTRL_LEMIDLEEN_DEFAULT (_USB_CTRL_LEMIDLEEN_DEFAULT << 9) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 162 | #define USB_CTRL_VREGDIS (0x1UL << 16) /**< Voltage Regulator Disable */ |
Kojto | 98:8ab26030e058 | 163 | #define _USB_CTRL_VREGDIS_SHIFT 16 /**< Shift value for USB_VREGDIS */ |
Kojto | 98:8ab26030e058 | 164 | #define _USB_CTRL_VREGDIS_MASK 0x10000UL /**< Bit mask for USB_VREGDIS */ |
Kojto | 98:8ab26030e058 | 165 | #define _USB_CTRL_VREGDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 166 | #define USB_CTRL_VREGDIS_DEFAULT (_USB_CTRL_VREGDIS_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 167 | #define USB_CTRL_VREGOSEN (0x1UL << 17) /**< VREGO Sense Enable */ |
Kojto | 98:8ab26030e058 | 168 | #define _USB_CTRL_VREGOSEN_SHIFT 17 /**< Shift value for USB_VREGOSEN */ |
Kojto | 98:8ab26030e058 | 169 | #define _USB_CTRL_VREGOSEN_MASK 0x20000UL /**< Bit mask for USB_VREGOSEN */ |
Kojto | 98:8ab26030e058 | 170 | #define _USB_CTRL_VREGOSEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 171 | #define USB_CTRL_VREGOSEN_DEFAULT (_USB_CTRL_VREGOSEN_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 172 | #define _USB_CTRL_BIASPROGEM01_SHIFT 20 /**< Shift value for USB_BIASPROGEM01 */ |
Kojto | 98:8ab26030e058 | 173 | #define _USB_CTRL_BIASPROGEM01_MASK 0x300000UL /**< Bit mask for USB_BIASPROGEM01 */ |
Kojto | 98:8ab26030e058 | 174 | #define _USB_CTRL_BIASPROGEM01_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 175 | #define USB_CTRL_BIASPROGEM01_DEFAULT (_USB_CTRL_BIASPROGEM01_DEFAULT << 20) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 176 | #define _USB_CTRL_BIASPROGEM23_SHIFT 24 /**< Shift value for USB_BIASPROGEM23 */ |
Kojto | 98:8ab26030e058 | 177 | #define _USB_CTRL_BIASPROGEM23_MASK 0x3000000UL /**< Bit mask for USB_BIASPROGEM23 */ |
Kojto | 98:8ab26030e058 | 178 | #define _USB_CTRL_BIASPROGEM23_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 179 | #define USB_CTRL_BIASPROGEM23_DEFAULT (_USB_CTRL_BIASPROGEM23_DEFAULT << 24) /**< Shifted mode DEFAULT for USB_CTRL */ |
Kojto | 98:8ab26030e058 | 180 | |
Kojto | 98:8ab26030e058 | 181 | /* Bit fields for USB STATUS */ |
Kojto | 98:8ab26030e058 | 182 | #define _USB_STATUS_RESETVALUE 0x00000000UL /**< Default value for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 183 | #define _USB_STATUS_MASK 0x00000005UL /**< Mask for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 184 | #define USB_STATUS_VREGOS (0x1UL << 0) /**< VREGO Sense Output */ |
Kojto | 98:8ab26030e058 | 185 | #define _USB_STATUS_VREGOS_SHIFT 0 /**< Shift value for USB_VREGOS */ |
Kojto | 98:8ab26030e058 | 186 | #define _USB_STATUS_VREGOS_MASK 0x1UL /**< Bit mask for USB_VREGOS */ |
Kojto | 98:8ab26030e058 | 187 | #define _USB_STATUS_VREGOS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 188 | #define USB_STATUS_VREGOS_DEFAULT (_USB_STATUS_VREGOS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 189 | #define USB_STATUS_LEMACTIVE (0x1UL << 2) /**< Low Energy Mode Active */ |
Kojto | 98:8ab26030e058 | 190 | #define _USB_STATUS_LEMACTIVE_SHIFT 2 /**< Shift value for USB_LEMACTIVE */ |
Kojto | 98:8ab26030e058 | 191 | #define _USB_STATUS_LEMACTIVE_MASK 0x4UL /**< Bit mask for USB_LEMACTIVE */ |
Kojto | 98:8ab26030e058 | 192 | #define _USB_STATUS_LEMACTIVE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 193 | #define USB_STATUS_LEMACTIVE_DEFAULT (_USB_STATUS_LEMACTIVE_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_STATUS */ |
Kojto | 98:8ab26030e058 | 194 | |
Kojto | 98:8ab26030e058 | 195 | /* Bit fields for USB IF */ |
Kojto | 98:8ab26030e058 | 196 | #define _USB_IF_RESETVALUE 0x00000003UL /**< Default value for USB_IF */ |
Kojto | 98:8ab26030e058 | 197 | #define _USB_IF_MASK 0x00000003UL /**< Mask for USB_IF */ |
Kojto | 98:8ab26030e058 | 198 | #define USB_IF_VREGOSH (0x1UL << 0) /**< VREGO Sense High Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 199 | #define _USB_IF_VREGOSH_SHIFT 0 /**< Shift value for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 200 | #define _USB_IF_VREGOSH_MASK 0x1UL /**< Bit mask for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 201 | #define _USB_IF_VREGOSH_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_IF */ |
Kojto | 98:8ab26030e058 | 202 | #define USB_IF_VREGOSH_DEFAULT (_USB_IF_VREGOSH_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_IF */ |
Kojto | 98:8ab26030e058 | 203 | #define USB_IF_VREGOSL (0x1UL << 1) /**< VREGO Sense Low Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 204 | #define _USB_IF_VREGOSL_SHIFT 1 /**< Shift value for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 205 | #define _USB_IF_VREGOSL_MASK 0x2UL /**< Bit mask for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 206 | #define _USB_IF_VREGOSL_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_IF */ |
Kojto | 98:8ab26030e058 | 207 | #define USB_IF_VREGOSL_DEFAULT (_USB_IF_VREGOSL_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_IF */ |
Kojto | 98:8ab26030e058 | 208 | |
Kojto | 98:8ab26030e058 | 209 | /* Bit fields for USB IFS */ |
Kojto | 98:8ab26030e058 | 210 | #define _USB_IFS_RESETVALUE 0x00000000UL /**< Default value for USB_IFS */ |
Kojto | 98:8ab26030e058 | 211 | #define _USB_IFS_MASK 0x00000003UL /**< Mask for USB_IFS */ |
Kojto | 98:8ab26030e058 | 212 | #define USB_IFS_VREGOSH (0x1UL << 0) /**< Set VREGO Sense High Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 213 | #define _USB_IFS_VREGOSH_SHIFT 0 /**< Shift value for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 214 | #define _USB_IFS_VREGOSH_MASK 0x1UL /**< Bit mask for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 215 | #define _USB_IFS_VREGOSH_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IFS */ |
Kojto | 98:8ab26030e058 | 216 | #define USB_IFS_VREGOSH_DEFAULT (_USB_IFS_VREGOSH_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_IFS */ |
Kojto | 98:8ab26030e058 | 217 | #define USB_IFS_VREGOSL (0x1UL << 1) /**< Set VREGO Sense Low Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 218 | #define _USB_IFS_VREGOSL_SHIFT 1 /**< Shift value for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 219 | #define _USB_IFS_VREGOSL_MASK 0x2UL /**< Bit mask for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 220 | #define _USB_IFS_VREGOSL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IFS */ |
Kojto | 98:8ab26030e058 | 221 | #define USB_IFS_VREGOSL_DEFAULT (_USB_IFS_VREGOSL_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_IFS */ |
Kojto | 98:8ab26030e058 | 222 | |
Kojto | 98:8ab26030e058 | 223 | /* Bit fields for USB IFC */ |
Kojto | 98:8ab26030e058 | 224 | #define _USB_IFC_RESETVALUE 0x00000000UL /**< Default value for USB_IFC */ |
Kojto | 98:8ab26030e058 | 225 | #define _USB_IFC_MASK 0x00000003UL /**< Mask for USB_IFC */ |
Kojto | 98:8ab26030e058 | 226 | #define USB_IFC_VREGOSH (0x1UL << 0) /**< Clear VREGO Sense High Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 227 | #define _USB_IFC_VREGOSH_SHIFT 0 /**< Shift value for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 228 | #define _USB_IFC_VREGOSH_MASK 0x1UL /**< Bit mask for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 229 | #define _USB_IFC_VREGOSH_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IFC */ |
Kojto | 98:8ab26030e058 | 230 | #define USB_IFC_VREGOSH_DEFAULT (_USB_IFC_VREGOSH_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_IFC */ |
Kojto | 98:8ab26030e058 | 231 | #define USB_IFC_VREGOSL (0x1UL << 1) /**< Clear VREGO Sense Low Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 232 | #define _USB_IFC_VREGOSL_SHIFT 1 /**< Shift value for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 233 | #define _USB_IFC_VREGOSL_MASK 0x2UL /**< Bit mask for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 234 | #define _USB_IFC_VREGOSL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IFC */ |
Kojto | 98:8ab26030e058 | 235 | #define USB_IFC_VREGOSL_DEFAULT (_USB_IFC_VREGOSL_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_IFC */ |
Kojto | 98:8ab26030e058 | 236 | |
Kojto | 98:8ab26030e058 | 237 | /* Bit fields for USB IEN */ |
Kojto | 98:8ab26030e058 | 238 | #define _USB_IEN_RESETVALUE 0x00000000UL /**< Default value for USB_IEN */ |
Kojto | 98:8ab26030e058 | 239 | #define _USB_IEN_MASK 0x00000003UL /**< Mask for USB_IEN */ |
Kojto | 98:8ab26030e058 | 240 | #define USB_IEN_VREGOSH (0x1UL << 0) /**< VREGO Sense High Interrupt Enable */ |
Kojto | 98:8ab26030e058 | 241 | #define _USB_IEN_VREGOSH_SHIFT 0 /**< Shift value for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 242 | #define _USB_IEN_VREGOSH_MASK 0x1UL /**< Bit mask for USB_VREGOSH */ |
Kojto | 98:8ab26030e058 | 243 | #define _USB_IEN_VREGOSH_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IEN */ |
Kojto | 98:8ab26030e058 | 244 | #define USB_IEN_VREGOSH_DEFAULT (_USB_IEN_VREGOSH_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_IEN */ |
Kojto | 98:8ab26030e058 | 245 | #define USB_IEN_VREGOSL (0x1UL << 1) /**< VREGO Sense Low Interrupt Enable */ |
Kojto | 98:8ab26030e058 | 246 | #define _USB_IEN_VREGOSL_SHIFT 1 /**< Shift value for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 247 | #define _USB_IEN_VREGOSL_MASK 0x2UL /**< Bit mask for USB_VREGOSL */ |
Kojto | 98:8ab26030e058 | 248 | #define _USB_IEN_VREGOSL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_IEN */ |
Kojto | 98:8ab26030e058 | 249 | #define USB_IEN_VREGOSL_DEFAULT (_USB_IEN_VREGOSL_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_IEN */ |
Kojto | 98:8ab26030e058 | 250 | |
Kojto | 98:8ab26030e058 | 251 | /* Bit fields for USB ROUTE */ |
Kojto | 98:8ab26030e058 | 252 | #define _USB_ROUTE_RESETVALUE 0x00000000UL /**< Default value for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 253 | #define _USB_ROUTE_MASK 0x00000005UL /**< Mask for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 254 | #define USB_ROUTE_PHYPEN (0x1UL << 0) /**< USB PHY Pin Enable */ |
Kojto | 98:8ab26030e058 | 255 | #define _USB_ROUTE_PHYPEN_SHIFT 0 /**< Shift value for USB_PHYPEN */ |
Kojto | 98:8ab26030e058 | 256 | #define _USB_ROUTE_PHYPEN_MASK 0x1UL /**< Bit mask for USB_PHYPEN */ |
Kojto | 98:8ab26030e058 | 257 | #define _USB_ROUTE_PHYPEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 258 | #define USB_ROUTE_PHYPEN_DEFAULT (_USB_ROUTE_PHYPEN_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 259 | #define USB_ROUTE_DMPUPEN (0x1UL << 2) /**< DMPU Pin Enable */ |
Kojto | 98:8ab26030e058 | 260 | #define _USB_ROUTE_DMPUPEN_SHIFT 2 /**< Shift value for USB_DMPUPEN */ |
Kojto | 98:8ab26030e058 | 261 | #define _USB_ROUTE_DMPUPEN_MASK 0x4UL /**< Bit mask for USB_DMPUPEN */ |
Kojto | 98:8ab26030e058 | 262 | #define _USB_ROUTE_DMPUPEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 263 | #define USB_ROUTE_DMPUPEN_DEFAULT (_USB_ROUTE_DMPUPEN_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_ROUTE */ |
Kojto | 98:8ab26030e058 | 264 | |
Kojto | 98:8ab26030e058 | 265 | /* Bit fields for USB GAHBCFG */ |
Kojto | 98:8ab26030e058 | 266 | #define _USB_GAHBCFG_RESETVALUE 0x00000000UL /**< Default value for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 267 | #define _USB_GAHBCFG_MASK 0x00E000BFUL /**< Mask for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 268 | #define USB_GAHBCFG_GLBLINTRMSK (0x1UL << 0) /**< Global Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 269 | #define _USB_GAHBCFG_GLBLINTRMSK_SHIFT 0 /**< Shift value for USB_GLBLINTRMSK */ |
Kojto | 98:8ab26030e058 | 270 | #define _USB_GAHBCFG_GLBLINTRMSK_MASK 0x1UL /**< Bit mask for USB_GLBLINTRMSK */ |
Kojto | 98:8ab26030e058 | 271 | #define _USB_GAHBCFG_GLBLINTRMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 272 | #define USB_GAHBCFG_GLBLINTRMSK_DEFAULT (_USB_GAHBCFG_GLBLINTRMSK_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 273 | #define _USB_GAHBCFG_HBSTLEN_SHIFT 1 /**< Shift value for USB_HBSTLEN */ |
Kojto | 98:8ab26030e058 | 274 | #define _USB_GAHBCFG_HBSTLEN_MASK 0x1EUL /**< Bit mask for USB_HBSTLEN */ |
Kojto | 98:8ab26030e058 | 275 | #define _USB_GAHBCFG_HBSTLEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 276 | #define _USB_GAHBCFG_HBSTLEN_SINGLE 0x00000000UL /**< Mode SINGLE for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 277 | #define _USB_GAHBCFG_HBSTLEN_INCR 0x00000001UL /**< Mode INCR for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 278 | #define _USB_GAHBCFG_HBSTLEN_INCR4 0x00000003UL /**< Mode INCR4 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 279 | #define _USB_GAHBCFG_HBSTLEN_INCR8 0x00000005UL /**< Mode INCR8 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 280 | #define _USB_GAHBCFG_HBSTLEN_INCR16 0x00000007UL /**< Mode INCR16 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 281 | #define USB_GAHBCFG_HBSTLEN_DEFAULT (_USB_GAHBCFG_HBSTLEN_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 282 | #define USB_GAHBCFG_HBSTLEN_SINGLE (_USB_GAHBCFG_HBSTLEN_SINGLE << 1) /**< Shifted mode SINGLE for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 283 | #define USB_GAHBCFG_HBSTLEN_INCR (_USB_GAHBCFG_HBSTLEN_INCR << 1) /**< Shifted mode INCR for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 284 | #define USB_GAHBCFG_HBSTLEN_INCR4 (_USB_GAHBCFG_HBSTLEN_INCR4 << 1) /**< Shifted mode INCR4 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 285 | #define USB_GAHBCFG_HBSTLEN_INCR8 (_USB_GAHBCFG_HBSTLEN_INCR8 << 1) /**< Shifted mode INCR8 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 286 | #define USB_GAHBCFG_HBSTLEN_INCR16 (_USB_GAHBCFG_HBSTLEN_INCR16 << 1) /**< Shifted mode INCR16 for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 287 | #define USB_GAHBCFG_DMAEN (0x1UL << 5) /**< DMA Enable */ |
Kojto | 98:8ab26030e058 | 288 | #define _USB_GAHBCFG_DMAEN_SHIFT 5 /**< Shift value for USB_DMAEN */ |
Kojto | 98:8ab26030e058 | 289 | #define _USB_GAHBCFG_DMAEN_MASK 0x20UL /**< Bit mask for USB_DMAEN */ |
Kojto | 98:8ab26030e058 | 290 | #define _USB_GAHBCFG_DMAEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 291 | #define USB_GAHBCFG_DMAEN_DEFAULT (_USB_GAHBCFG_DMAEN_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 292 | #define USB_GAHBCFG_NPTXFEMPLVL (0x1UL << 7) /**< Non-Periodic TxFIFO Empty Level */ |
Kojto | 98:8ab26030e058 | 293 | #define _USB_GAHBCFG_NPTXFEMPLVL_SHIFT 7 /**< Shift value for USB_NPTXFEMPLVL */ |
Kojto | 98:8ab26030e058 | 294 | #define _USB_GAHBCFG_NPTXFEMPLVL_MASK 0x80UL /**< Bit mask for USB_NPTXFEMPLVL */ |
Kojto | 98:8ab26030e058 | 295 | #define _USB_GAHBCFG_NPTXFEMPLVL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 296 | #define _USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY 0x00000000UL /**< Mode HALFEMPTY for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 297 | #define _USB_GAHBCFG_NPTXFEMPLVL_EMPTY 0x00000001UL /**< Mode EMPTY for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 298 | #define USB_GAHBCFG_NPTXFEMPLVL_DEFAULT (_USB_GAHBCFG_NPTXFEMPLVL_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 299 | #define USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY (_USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY << 7) /**< Shifted mode HALFEMPTY for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 300 | #define USB_GAHBCFG_NPTXFEMPLVL_EMPTY (_USB_GAHBCFG_NPTXFEMPLVL_EMPTY << 7) /**< Shifted mode EMPTY for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 301 | #define USB_GAHBCFG_REMMEMSUPP (0x1UL << 21) /**< Remote Memory Support */ |
Kojto | 98:8ab26030e058 | 302 | #define _USB_GAHBCFG_REMMEMSUPP_SHIFT 21 /**< Shift value for USB_REMMEMSUPP */ |
Kojto | 98:8ab26030e058 | 303 | #define _USB_GAHBCFG_REMMEMSUPP_MASK 0x200000UL /**< Bit mask for USB_REMMEMSUPP */ |
Kojto | 98:8ab26030e058 | 304 | #define _USB_GAHBCFG_REMMEMSUPP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 305 | #define USB_GAHBCFG_REMMEMSUPP_DEFAULT (_USB_GAHBCFG_REMMEMSUPP_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 306 | #define USB_GAHBCFG_NOTIALLDMAWRIT (0x1UL << 22) /**< Notify All DMA Writes */ |
Kojto | 98:8ab26030e058 | 307 | #define _USB_GAHBCFG_NOTIALLDMAWRIT_SHIFT 22 /**< Shift value for USB_NOTIALLDMAWRIT */ |
Kojto | 98:8ab26030e058 | 308 | #define _USB_GAHBCFG_NOTIALLDMAWRIT_MASK 0x400000UL /**< Bit mask for USB_NOTIALLDMAWRIT */ |
Kojto | 98:8ab26030e058 | 309 | #define _USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 310 | #define USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT (_USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 311 | #define USB_GAHBCFG_AHBSINGLE (0x1UL << 23) /**< AHB Single Support */ |
Kojto | 98:8ab26030e058 | 312 | #define _USB_GAHBCFG_AHBSINGLE_SHIFT 23 /**< Shift value for USB_AHBSINGLE */ |
Kojto | 98:8ab26030e058 | 313 | #define _USB_GAHBCFG_AHBSINGLE_MASK 0x800000UL /**< Bit mask for USB_AHBSINGLE */ |
Kojto | 98:8ab26030e058 | 314 | #define _USB_GAHBCFG_AHBSINGLE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 315 | #define USB_GAHBCFG_AHBSINGLE_DEFAULT (_USB_GAHBCFG_AHBSINGLE_DEFAULT << 23) /**< Shifted mode DEFAULT for USB_GAHBCFG */ |
Kojto | 98:8ab26030e058 | 316 | |
Kojto | 98:8ab26030e058 | 317 | /* Bit fields for USB GUSBCFG */ |
Kojto | 98:8ab26030e058 | 318 | #define _USB_GUSBCFG_RESETVALUE 0x00001440UL /**< Default value for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 319 | #define _USB_GUSBCFG_MASK 0x90403C27UL /**< Mask for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 320 | #define _USB_GUSBCFG_TOUTCAL_SHIFT 0 /**< Shift value for USB_TOUTCAL */ |
Kojto | 98:8ab26030e058 | 321 | #define _USB_GUSBCFG_TOUTCAL_MASK 0x7UL /**< Bit mask for USB_TOUTCAL */ |
Kojto | 98:8ab26030e058 | 322 | #define _USB_GUSBCFG_TOUTCAL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 323 | #define USB_GUSBCFG_TOUTCAL_DEFAULT (_USB_GUSBCFG_TOUTCAL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 324 | #define USB_GUSBCFG_FSINTF (0x1UL << 5) /**< Full-Speed Serial Interface Select */ |
Kojto | 98:8ab26030e058 | 325 | #define _USB_GUSBCFG_FSINTF_SHIFT 5 /**< Shift value for USB_FSINTF */ |
Kojto | 98:8ab26030e058 | 326 | #define _USB_GUSBCFG_FSINTF_MASK 0x20UL /**< Bit mask for USB_FSINTF */ |
Kojto | 98:8ab26030e058 | 327 | #define _USB_GUSBCFG_FSINTF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 328 | #define USB_GUSBCFG_FSINTF_DEFAULT (_USB_GUSBCFG_FSINTF_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 329 | #define _USB_GUSBCFG_USBTRDTIM_SHIFT 10 /**< Shift value for USB_USBTRDTIM */ |
Kojto | 98:8ab26030e058 | 330 | #define _USB_GUSBCFG_USBTRDTIM_MASK 0x3C00UL /**< Bit mask for USB_USBTRDTIM */ |
Kojto | 98:8ab26030e058 | 331 | #define _USB_GUSBCFG_USBTRDTIM_DEFAULT 0x00000005UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 332 | #define USB_GUSBCFG_USBTRDTIM_DEFAULT (_USB_GUSBCFG_USBTRDTIM_DEFAULT << 10) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 333 | #define USB_GUSBCFG_TERMSELDLPULSE (0x1UL << 22) /**< TermSel DLine Pulsing Selection */ |
Kojto | 98:8ab26030e058 | 334 | #define _USB_GUSBCFG_TERMSELDLPULSE_SHIFT 22 /**< Shift value for USB_TERMSELDLPULSE */ |
Kojto | 98:8ab26030e058 | 335 | #define _USB_GUSBCFG_TERMSELDLPULSE_MASK 0x400000UL /**< Bit mask for USB_TERMSELDLPULSE */ |
Kojto | 98:8ab26030e058 | 336 | #define _USB_GUSBCFG_TERMSELDLPULSE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 337 | #define _USB_GUSBCFG_TERMSELDLPULSE_TXVALID 0x00000000UL /**< Mode TXVALID for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 338 | #define _USB_GUSBCFG_TERMSELDLPULSE_TERMSEL 0x00000001UL /**< Mode TERMSEL for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 339 | #define USB_GUSBCFG_TERMSELDLPULSE_DEFAULT (_USB_GUSBCFG_TERMSELDLPULSE_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 340 | #define USB_GUSBCFG_TERMSELDLPULSE_TXVALID (_USB_GUSBCFG_TERMSELDLPULSE_TXVALID << 22) /**< Shifted mode TXVALID for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 341 | #define USB_GUSBCFG_TERMSELDLPULSE_TERMSEL (_USB_GUSBCFG_TERMSELDLPULSE_TERMSEL << 22) /**< Shifted mode TERMSEL for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 342 | #define USB_GUSBCFG_TXENDDELAY (0x1UL << 28) /**< Tx End Delay */ |
Kojto | 98:8ab26030e058 | 343 | #define _USB_GUSBCFG_TXENDDELAY_SHIFT 28 /**< Shift value for USB_TXENDDELAY */ |
Kojto | 98:8ab26030e058 | 344 | #define _USB_GUSBCFG_TXENDDELAY_MASK 0x10000000UL /**< Bit mask for USB_TXENDDELAY */ |
Kojto | 98:8ab26030e058 | 345 | #define _USB_GUSBCFG_TXENDDELAY_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 346 | #define USB_GUSBCFG_TXENDDELAY_DEFAULT (_USB_GUSBCFG_TXENDDELAY_DEFAULT << 28) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 347 | #define USB_GUSBCFG_CORRUPTTXPKT (0x1UL << 31) /**< Corrupt Tx packet */ |
Kojto | 98:8ab26030e058 | 348 | #define _USB_GUSBCFG_CORRUPTTXPKT_SHIFT 31 /**< Shift value for USB_CORRUPTTXPKT */ |
Kojto | 98:8ab26030e058 | 349 | #define _USB_GUSBCFG_CORRUPTTXPKT_MASK 0x80000000UL /**< Bit mask for USB_CORRUPTTXPKT */ |
Kojto | 98:8ab26030e058 | 350 | #define _USB_GUSBCFG_CORRUPTTXPKT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 351 | #define USB_GUSBCFG_CORRUPTTXPKT_DEFAULT (_USB_GUSBCFG_CORRUPTTXPKT_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_GUSBCFG */ |
Kojto | 98:8ab26030e058 | 352 | |
Kojto | 98:8ab26030e058 | 353 | /* Bit fields for USB GRSTCTL */ |
Kojto | 98:8ab26030e058 | 354 | #define _USB_GRSTCTL_RESETVALUE 0x80000000UL /**< Default value for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 355 | #define _USB_GRSTCTL_MASK 0xC00007F3UL /**< Mask for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 356 | #define USB_GRSTCTL_CSFTRST (0x1UL << 0) /**< Core Soft Reset */ |
Kojto | 98:8ab26030e058 | 357 | #define _USB_GRSTCTL_CSFTRST_SHIFT 0 /**< Shift value for USB_CSFTRST */ |
Kojto | 98:8ab26030e058 | 358 | #define _USB_GRSTCTL_CSFTRST_MASK 0x1UL /**< Bit mask for USB_CSFTRST */ |
Kojto | 98:8ab26030e058 | 359 | #define _USB_GRSTCTL_CSFTRST_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 360 | #define USB_GRSTCTL_CSFTRST_DEFAULT (_USB_GRSTCTL_CSFTRST_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 361 | #define USB_GRSTCTL_PIUFSSFTRST (0x1UL << 1) /**< PIU FS Dedicated Controller Soft Reset */ |
Kojto | 98:8ab26030e058 | 362 | #define _USB_GRSTCTL_PIUFSSFTRST_SHIFT 1 /**< Shift value for USB_PIUFSSFTRST */ |
Kojto | 98:8ab26030e058 | 363 | #define _USB_GRSTCTL_PIUFSSFTRST_MASK 0x2UL /**< Bit mask for USB_PIUFSSFTRST */ |
Kojto | 98:8ab26030e058 | 364 | #define _USB_GRSTCTL_PIUFSSFTRST_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 365 | #define USB_GRSTCTL_PIUFSSFTRST_DEFAULT (_USB_GRSTCTL_PIUFSSFTRST_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 366 | #define USB_GRSTCTL_RXFFLSH (0x1UL << 4) /**< RxFIFO Flush */ |
Kojto | 98:8ab26030e058 | 367 | #define _USB_GRSTCTL_RXFFLSH_SHIFT 4 /**< Shift value for USB_RXFFLSH */ |
Kojto | 98:8ab26030e058 | 368 | #define _USB_GRSTCTL_RXFFLSH_MASK 0x10UL /**< Bit mask for USB_RXFFLSH */ |
Kojto | 98:8ab26030e058 | 369 | #define _USB_GRSTCTL_RXFFLSH_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 370 | #define USB_GRSTCTL_RXFFLSH_DEFAULT (_USB_GRSTCTL_RXFFLSH_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 371 | #define USB_GRSTCTL_TXFFLSH (0x1UL << 5) /**< TxFIFO Flush */ |
Kojto | 98:8ab26030e058 | 372 | #define _USB_GRSTCTL_TXFFLSH_SHIFT 5 /**< Shift value for USB_TXFFLSH */ |
Kojto | 98:8ab26030e058 | 373 | #define _USB_GRSTCTL_TXFFLSH_MASK 0x20UL /**< Bit mask for USB_TXFFLSH */ |
Kojto | 98:8ab26030e058 | 374 | #define _USB_GRSTCTL_TXFFLSH_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 375 | #define USB_GRSTCTL_TXFFLSH_DEFAULT (_USB_GRSTCTL_TXFFLSH_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 376 | #define _USB_GRSTCTL_TXFNUM_SHIFT 6 /**< Shift value for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 377 | #define _USB_GRSTCTL_TXFNUM_MASK 0x7C0UL /**< Bit mask for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 378 | #define _USB_GRSTCTL_TXFNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 379 | #define _USB_GRSTCTL_TXFNUM_F0 0x00000000UL /**< Mode F0 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 380 | #define _USB_GRSTCTL_TXFNUM_F1 0x00000001UL /**< Mode F1 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 381 | #define _USB_GRSTCTL_TXFNUM_F2 0x00000002UL /**< Mode F2 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 382 | #define _USB_GRSTCTL_TXFNUM_F3 0x00000003UL /**< Mode F3 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 383 | #define _USB_GRSTCTL_TXFNUM_F4 0x00000004UL /**< Mode F4 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 384 | #define _USB_GRSTCTL_TXFNUM_F5 0x00000005UL /**< Mode F5 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 385 | #define _USB_GRSTCTL_TXFNUM_F6 0x00000006UL /**< Mode F6 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 386 | #define _USB_GRSTCTL_TXFNUM_FALL 0x00000010UL /**< Mode FALL for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 387 | #define USB_GRSTCTL_TXFNUM_DEFAULT (_USB_GRSTCTL_TXFNUM_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 388 | #define USB_GRSTCTL_TXFNUM_F0 (_USB_GRSTCTL_TXFNUM_F0 << 6) /**< Shifted mode F0 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 389 | #define USB_GRSTCTL_TXFNUM_F1 (_USB_GRSTCTL_TXFNUM_F1 << 6) /**< Shifted mode F1 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 390 | #define USB_GRSTCTL_TXFNUM_F2 (_USB_GRSTCTL_TXFNUM_F2 << 6) /**< Shifted mode F2 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 391 | #define USB_GRSTCTL_TXFNUM_F3 (_USB_GRSTCTL_TXFNUM_F3 << 6) /**< Shifted mode F3 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 392 | #define USB_GRSTCTL_TXFNUM_F4 (_USB_GRSTCTL_TXFNUM_F4 << 6) /**< Shifted mode F4 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 393 | #define USB_GRSTCTL_TXFNUM_F5 (_USB_GRSTCTL_TXFNUM_F5 << 6) /**< Shifted mode F5 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 394 | #define USB_GRSTCTL_TXFNUM_F6 (_USB_GRSTCTL_TXFNUM_F6 << 6) /**< Shifted mode F6 for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 395 | #define USB_GRSTCTL_TXFNUM_FALL (_USB_GRSTCTL_TXFNUM_FALL << 6) /**< Shifted mode FALL for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 396 | #define USB_GRSTCTL_DMAREQ (0x1UL << 30) /**< DMA Request Signal */ |
Kojto | 98:8ab26030e058 | 397 | #define _USB_GRSTCTL_DMAREQ_SHIFT 30 /**< Shift value for USB_DMAREQ */ |
Kojto | 98:8ab26030e058 | 398 | #define _USB_GRSTCTL_DMAREQ_MASK 0x40000000UL /**< Bit mask for USB_DMAREQ */ |
Kojto | 98:8ab26030e058 | 399 | #define _USB_GRSTCTL_DMAREQ_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 400 | #define USB_GRSTCTL_DMAREQ_DEFAULT (_USB_GRSTCTL_DMAREQ_DEFAULT << 30) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 401 | #define USB_GRSTCTL_AHBIDLE (0x1UL << 31) /**< AHB Master Idle */ |
Kojto | 98:8ab26030e058 | 402 | #define _USB_GRSTCTL_AHBIDLE_SHIFT 31 /**< Shift value for USB_AHBIDLE */ |
Kojto | 98:8ab26030e058 | 403 | #define _USB_GRSTCTL_AHBIDLE_MASK 0x80000000UL /**< Bit mask for USB_AHBIDLE */ |
Kojto | 98:8ab26030e058 | 404 | #define _USB_GRSTCTL_AHBIDLE_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 405 | #define USB_GRSTCTL_AHBIDLE_DEFAULT (_USB_GRSTCTL_AHBIDLE_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_GRSTCTL */ |
Kojto | 98:8ab26030e058 | 406 | |
Kojto | 98:8ab26030e058 | 407 | /* Bit fields for USB GINTSTS */ |
Kojto | 98:8ab26030e058 | 408 | #define _USB_GINTSTS_RESETVALUE 0x00000000UL /**< Default value for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 409 | #define _USB_GINTSTS_MASK 0x80FCFCD9UL /**< Mask for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 410 | #define USB_GINTSTS_CURMOD (0x1UL << 0) /**< Current Mode of Operation */ |
Kojto | 98:8ab26030e058 | 411 | #define _USB_GINTSTS_CURMOD_SHIFT 0 /**< Shift value for USB_CURMOD */ |
Kojto | 98:8ab26030e058 | 412 | #define _USB_GINTSTS_CURMOD_MASK 0x1UL /**< Bit mask for USB_CURMOD */ |
Kojto | 98:8ab26030e058 | 413 | #define _USB_GINTSTS_CURMOD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 414 | #define _USB_GINTSTS_CURMOD_DEVICE 0x00000000UL /**< Mode DEVICE for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 415 | #define USB_GINTSTS_CURMOD_DEFAULT (_USB_GINTSTS_CURMOD_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 416 | #define USB_GINTSTS_CURMOD_DEVICE (_USB_GINTSTS_CURMOD_DEVICE << 0) /**< Shifted mode DEVICE for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 417 | #define USB_GINTSTS_SOF (0x1UL << 3) /**< Start of Frame */ |
Kojto | 98:8ab26030e058 | 418 | #define _USB_GINTSTS_SOF_SHIFT 3 /**< Shift value for USB_SOF */ |
Kojto | 98:8ab26030e058 | 419 | #define _USB_GINTSTS_SOF_MASK 0x8UL /**< Bit mask for USB_SOF */ |
Kojto | 98:8ab26030e058 | 420 | #define _USB_GINTSTS_SOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 421 | #define USB_GINTSTS_SOF_DEFAULT (_USB_GINTSTS_SOF_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 422 | #define USB_GINTSTS_RXFLVL (0x1UL << 4) /**< RxFIFO Non-Empty */ |
Kojto | 98:8ab26030e058 | 423 | #define _USB_GINTSTS_RXFLVL_SHIFT 4 /**< Shift value for USB_RXFLVL */ |
Kojto | 98:8ab26030e058 | 424 | #define _USB_GINTSTS_RXFLVL_MASK 0x10UL /**< Bit mask for USB_RXFLVL */ |
Kojto | 98:8ab26030e058 | 425 | #define _USB_GINTSTS_RXFLVL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 426 | #define USB_GINTSTS_RXFLVL_DEFAULT (_USB_GINTSTS_RXFLVL_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 427 | #define USB_GINTSTS_GINNAKEFF (0x1UL << 6) /**< Global IN Non-periodic NAK Effective */ |
Kojto | 98:8ab26030e058 | 428 | #define _USB_GINTSTS_GINNAKEFF_SHIFT 6 /**< Shift value for USB_GINNAKEFF */ |
Kojto | 98:8ab26030e058 | 429 | #define _USB_GINTSTS_GINNAKEFF_MASK 0x40UL /**< Bit mask for USB_GINNAKEFF */ |
Kojto | 98:8ab26030e058 | 430 | #define _USB_GINTSTS_GINNAKEFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 431 | #define USB_GINTSTS_GINNAKEFF_DEFAULT (_USB_GINTSTS_GINNAKEFF_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 432 | #define USB_GINTSTS_GOUTNAKEFF (0x1UL << 7) /**< Global OUT NAK Effective */ |
Kojto | 98:8ab26030e058 | 433 | #define _USB_GINTSTS_GOUTNAKEFF_SHIFT 7 /**< Shift value for USB_GOUTNAKEFF */ |
Kojto | 98:8ab26030e058 | 434 | #define _USB_GINTSTS_GOUTNAKEFF_MASK 0x80UL /**< Bit mask for USB_GOUTNAKEFF */ |
Kojto | 98:8ab26030e058 | 435 | #define _USB_GINTSTS_GOUTNAKEFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 436 | #define USB_GINTSTS_GOUTNAKEFF_DEFAULT (_USB_GINTSTS_GOUTNAKEFF_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 437 | #define USB_GINTSTS_ERLYSUSP (0x1UL << 10) /**< Early Suspend */ |
Kojto | 98:8ab26030e058 | 438 | #define _USB_GINTSTS_ERLYSUSP_SHIFT 10 /**< Shift value for USB_ERLYSUSP */ |
Kojto | 98:8ab26030e058 | 439 | #define _USB_GINTSTS_ERLYSUSP_MASK 0x400UL /**< Bit mask for USB_ERLYSUSP */ |
Kojto | 98:8ab26030e058 | 440 | #define _USB_GINTSTS_ERLYSUSP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 441 | #define USB_GINTSTS_ERLYSUSP_DEFAULT (_USB_GINTSTS_ERLYSUSP_DEFAULT << 10) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 442 | #define USB_GINTSTS_USBSUSP (0x1UL << 11) /**< USB Suspend */ |
Kojto | 98:8ab26030e058 | 443 | #define _USB_GINTSTS_USBSUSP_SHIFT 11 /**< Shift value for USB_USBSUSP */ |
Kojto | 98:8ab26030e058 | 444 | #define _USB_GINTSTS_USBSUSP_MASK 0x800UL /**< Bit mask for USB_USBSUSP */ |
Kojto | 98:8ab26030e058 | 445 | #define _USB_GINTSTS_USBSUSP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 446 | #define USB_GINTSTS_USBSUSP_DEFAULT (_USB_GINTSTS_USBSUSP_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 447 | #define USB_GINTSTS_USBRST (0x1UL << 12) /**< USB Reset */ |
Kojto | 98:8ab26030e058 | 448 | #define _USB_GINTSTS_USBRST_SHIFT 12 /**< Shift value for USB_USBRST */ |
Kojto | 98:8ab26030e058 | 449 | #define _USB_GINTSTS_USBRST_MASK 0x1000UL /**< Bit mask for USB_USBRST */ |
Kojto | 98:8ab26030e058 | 450 | #define _USB_GINTSTS_USBRST_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 451 | #define USB_GINTSTS_USBRST_DEFAULT (_USB_GINTSTS_USBRST_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 452 | #define USB_GINTSTS_ENUMDONE (0x1UL << 13) /**< Enumeration Done */ |
Kojto | 98:8ab26030e058 | 453 | #define _USB_GINTSTS_ENUMDONE_SHIFT 13 /**< Shift value for USB_ENUMDONE */ |
Kojto | 98:8ab26030e058 | 454 | #define _USB_GINTSTS_ENUMDONE_MASK 0x2000UL /**< Bit mask for USB_ENUMDONE */ |
Kojto | 98:8ab26030e058 | 455 | #define _USB_GINTSTS_ENUMDONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 456 | #define USB_GINTSTS_ENUMDONE_DEFAULT (_USB_GINTSTS_ENUMDONE_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 457 | #define USB_GINTSTS_ISOOUTDROP (0x1UL << 14) /**< Isochronous OUT Packet Dropped Interrupt */ |
Kojto | 98:8ab26030e058 | 458 | #define _USB_GINTSTS_ISOOUTDROP_SHIFT 14 /**< Shift value for USB_ISOOUTDROP */ |
Kojto | 98:8ab26030e058 | 459 | #define _USB_GINTSTS_ISOOUTDROP_MASK 0x4000UL /**< Bit mask for USB_ISOOUTDROP */ |
Kojto | 98:8ab26030e058 | 460 | #define _USB_GINTSTS_ISOOUTDROP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 461 | #define USB_GINTSTS_ISOOUTDROP_DEFAULT (_USB_GINTSTS_ISOOUTDROP_DEFAULT << 14) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 462 | #define USB_GINTSTS_EOPF (0x1UL << 15) /**< End of Periodic Frame Interrupt */ |
Kojto | 98:8ab26030e058 | 463 | #define _USB_GINTSTS_EOPF_SHIFT 15 /**< Shift value for USB_EOPF */ |
Kojto | 98:8ab26030e058 | 464 | #define _USB_GINTSTS_EOPF_MASK 0x8000UL /**< Bit mask for USB_EOPF */ |
Kojto | 98:8ab26030e058 | 465 | #define _USB_GINTSTS_EOPF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 466 | #define USB_GINTSTS_EOPF_DEFAULT (_USB_GINTSTS_EOPF_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 467 | #define USB_GINTSTS_IEPINT (0x1UL << 18) /**< IN Endpoints Interrupt */ |
Kojto | 98:8ab26030e058 | 468 | #define _USB_GINTSTS_IEPINT_SHIFT 18 /**< Shift value for USB_IEPINT */ |
Kojto | 98:8ab26030e058 | 469 | #define _USB_GINTSTS_IEPINT_MASK 0x40000UL /**< Bit mask for USB_IEPINT */ |
Kojto | 98:8ab26030e058 | 470 | #define _USB_GINTSTS_IEPINT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 471 | #define USB_GINTSTS_IEPINT_DEFAULT (_USB_GINTSTS_IEPINT_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 472 | #define USB_GINTSTS_OEPINT (0x1UL << 19) /**< OUT Endpoints Interrupt */ |
Kojto | 98:8ab26030e058 | 473 | #define _USB_GINTSTS_OEPINT_SHIFT 19 /**< Shift value for USB_OEPINT */ |
Kojto | 98:8ab26030e058 | 474 | #define _USB_GINTSTS_OEPINT_MASK 0x80000UL /**< Bit mask for USB_OEPINT */ |
Kojto | 98:8ab26030e058 | 475 | #define _USB_GINTSTS_OEPINT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 476 | #define USB_GINTSTS_OEPINT_DEFAULT (_USB_GINTSTS_OEPINT_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 477 | #define USB_GINTSTS_INCOMPISOIN (0x1UL << 20) /**< Incomplete Isochronous IN Transfer */ |
Kojto | 98:8ab26030e058 | 478 | #define _USB_GINTSTS_INCOMPISOIN_SHIFT 20 /**< Shift value for USB_INCOMPISOIN */ |
Kojto | 98:8ab26030e058 | 479 | #define _USB_GINTSTS_INCOMPISOIN_MASK 0x100000UL /**< Bit mask for USB_INCOMPISOIN */ |
Kojto | 98:8ab26030e058 | 480 | #define _USB_GINTSTS_INCOMPISOIN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 481 | #define USB_GINTSTS_INCOMPISOIN_DEFAULT (_USB_GINTSTS_INCOMPISOIN_DEFAULT << 20) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 482 | #define USB_GINTSTS_INCOMPLP (0x1UL << 21) /**< Incomplete Periodic Transfer */ |
Kojto | 98:8ab26030e058 | 483 | #define _USB_GINTSTS_INCOMPLP_SHIFT 21 /**< Shift value for USB_INCOMPLP */ |
Kojto | 98:8ab26030e058 | 484 | #define _USB_GINTSTS_INCOMPLP_MASK 0x200000UL /**< Bit mask for USB_INCOMPLP */ |
Kojto | 98:8ab26030e058 | 485 | #define _USB_GINTSTS_INCOMPLP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 486 | #define USB_GINTSTS_INCOMPLP_DEFAULT (_USB_GINTSTS_INCOMPLP_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 487 | #define USB_GINTSTS_FETSUSP (0x1UL << 22) /**< Data Fetch Suspended */ |
Kojto | 98:8ab26030e058 | 488 | #define _USB_GINTSTS_FETSUSP_SHIFT 22 /**< Shift value for USB_FETSUSP */ |
Kojto | 98:8ab26030e058 | 489 | #define _USB_GINTSTS_FETSUSP_MASK 0x400000UL /**< Bit mask for USB_FETSUSP */ |
Kojto | 98:8ab26030e058 | 490 | #define _USB_GINTSTS_FETSUSP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 491 | #define USB_GINTSTS_FETSUSP_DEFAULT (_USB_GINTSTS_FETSUSP_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 492 | #define USB_GINTSTS_RESETDET (0x1UL << 23) /**< Reset detected Interrupt */ |
Kojto | 98:8ab26030e058 | 493 | #define _USB_GINTSTS_RESETDET_SHIFT 23 /**< Shift value for USB_RESETDET */ |
Kojto | 98:8ab26030e058 | 494 | #define _USB_GINTSTS_RESETDET_MASK 0x800000UL /**< Bit mask for USB_RESETDET */ |
Kojto | 98:8ab26030e058 | 495 | #define _USB_GINTSTS_RESETDET_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 496 | #define USB_GINTSTS_RESETDET_DEFAULT (_USB_GINTSTS_RESETDET_DEFAULT << 23) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 497 | #define USB_GINTSTS_WKUPINT (0x1UL << 31) /**< Resume/Remote Wakeup Detected Interrupt */ |
Kojto | 98:8ab26030e058 | 498 | #define _USB_GINTSTS_WKUPINT_SHIFT 31 /**< Shift value for USB_WKUPINT */ |
Kojto | 98:8ab26030e058 | 499 | #define _USB_GINTSTS_WKUPINT_MASK 0x80000000UL /**< Bit mask for USB_WKUPINT */ |
Kojto | 98:8ab26030e058 | 500 | #define _USB_GINTSTS_WKUPINT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 501 | #define USB_GINTSTS_WKUPINT_DEFAULT (_USB_GINTSTS_WKUPINT_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_GINTSTS */ |
Kojto | 98:8ab26030e058 | 502 | |
Kojto | 98:8ab26030e058 | 503 | /* Bit fields for USB GINTMSK */ |
Kojto | 98:8ab26030e058 | 504 | #define _USB_GINTMSK_RESETVALUE 0x00000000UL /**< Default value for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 505 | #define _USB_GINTMSK_MASK 0x80FCFCDAUL /**< Mask for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 506 | #define USB_GINTMSK_MODEMISMSK (0x1UL << 1) /**< Mode Mismatch Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 507 | #define _USB_GINTMSK_MODEMISMSK_SHIFT 1 /**< Shift value for USB_MODEMISMSK */ |
Kojto | 98:8ab26030e058 | 508 | #define _USB_GINTMSK_MODEMISMSK_MASK 0x2UL /**< Bit mask for USB_MODEMISMSK */ |
Kojto | 98:8ab26030e058 | 509 | #define _USB_GINTMSK_MODEMISMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 510 | #define USB_GINTMSK_MODEMISMSK_DEFAULT (_USB_GINTMSK_MODEMISMSK_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 511 | #define USB_GINTMSK_SOFMSK (0x1UL << 3) /**< Start of Frame Mask */ |
Kojto | 98:8ab26030e058 | 512 | #define _USB_GINTMSK_SOFMSK_SHIFT 3 /**< Shift value for USB_SOFMSK */ |
Kojto | 98:8ab26030e058 | 513 | #define _USB_GINTMSK_SOFMSK_MASK 0x8UL /**< Bit mask for USB_SOFMSK */ |
Kojto | 98:8ab26030e058 | 514 | #define _USB_GINTMSK_SOFMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 515 | #define USB_GINTMSK_SOFMSK_DEFAULT (_USB_GINTMSK_SOFMSK_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 516 | #define USB_GINTMSK_RXFLVLMSK (0x1UL << 4) /**< Receive FIFO Non-Empty Mask */ |
Kojto | 98:8ab26030e058 | 517 | #define _USB_GINTMSK_RXFLVLMSK_SHIFT 4 /**< Shift value for USB_RXFLVLMSK */ |
Kojto | 98:8ab26030e058 | 518 | #define _USB_GINTMSK_RXFLVLMSK_MASK 0x10UL /**< Bit mask for USB_RXFLVLMSK */ |
Kojto | 98:8ab26030e058 | 519 | #define _USB_GINTMSK_RXFLVLMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 520 | #define USB_GINTMSK_RXFLVLMSK_DEFAULT (_USB_GINTMSK_RXFLVLMSK_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 521 | #define USB_GINTMSK_GINNAKEFFMSK (0x1UL << 6) /**< Global Non-periodic IN NAK Effective Mask */ |
Kojto | 98:8ab26030e058 | 522 | #define _USB_GINTMSK_GINNAKEFFMSK_SHIFT 6 /**< Shift value for USB_GINNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 523 | #define _USB_GINTMSK_GINNAKEFFMSK_MASK 0x40UL /**< Bit mask for USB_GINNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 524 | #define _USB_GINTMSK_GINNAKEFFMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 525 | #define USB_GINTMSK_GINNAKEFFMSK_DEFAULT (_USB_GINTMSK_GINNAKEFFMSK_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 526 | #define USB_GINTMSK_GOUTNAKEFFMSK (0x1UL << 7) /**< Global OUT NAK Effective Mask */ |
Kojto | 98:8ab26030e058 | 527 | #define _USB_GINTMSK_GOUTNAKEFFMSK_SHIFT 7 /**< Shift value for USB_GOUTNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 528 | #define _USB_GINTMSK_GOUTNAKEFFMSK_MASK 0x80UL /**< Bit mask for USB_GOUTNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 529 | #define _USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 530 | #define USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT (_USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 531 | #define USB_GINTMSK_ERLYSUSPMSK (0x1UL << 10) /**< Early Suspend Mask */ |
Kojto | 98:8ab26030e058 | 532 | #define _USB_GINTMSK_ERLYSUSPMSK_SHIFT 10 /**< Shift value for USB_ERLYSUSPMSK */ |
Kojto | 98:8ab26030e058 | 533 | #define _USB_GINTMSK_ERLYSUSPMSK_MASK 0x400UL /**< Bit mask for USB_ERLYSUSPMSK */ |
Kojto | 98:8ab26030e058 | 534 | #define _USB_GINTMSK_ERLYSUSPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 535 | #define USB_GINTMSK_ERLYSUSPMSK_DEFAULT (_USB_GINTMSK_ERLYSUSPMSK_DEFAULT << 10) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 536 | #define USB_GINTMSK_USBSUSPMSK (0x1UL << 11) /**< USB Suspend Mask */ |
Kojto | 98:8ab26030e058 | 537 | #define _USB_GINTMSK_USBSUSPMSK_SHIFT 11 /**< Shift value for USB_USBSUSPMSK */ |
Kojto | 98:8ab26030e058 | 538 | #define _USB_GINTMSK_USBSUSPMSK_MASK 0x800UL /**< Bit mask for USB_USBSUSPMSK */ |
Kojto | 98:8ab26030e058 | 539 | #define _USB_GINTMSK_USBSUSPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 540 | #define USB_GINTMSK_USBSUSPMSK_DEFAULT (_USB_GINTMSK_USBSUSPMSK_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 541 | #define USB_GINTMSK_USBRSTMSK (0x1UL << 12) /**< USB Reset Mask */ |
Kojto | 98:8ab26030e058 | 542 | #define _USB_GINTMSK_USBRSTMSK_SHIFT 12 /**< Shift value for USB_USBRSTMSK */ |
Kojto | 98:8ab26030e058 | 543 | #define _USB_GINTMSK_USBRSTMSK_MASK 0x1000UL /**< Bit mask for USB_USBRSTMSK */ |
Kojto | 98:8ab26030e058 | 544 | #define _USB_GINTMSK_USBRSTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 545 | #define USB_GINTMSK_USBRSTMSK_DEFAULT (_USB_GINTMSK_USBRSTMSK_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 546 | #define USB_GINTMSK_ENUMDONEMSK (0x1UL << 13) /**< Enumeration Done Mask */ |
Kojto | 98:8ab26030e058 | 547 | #define _USB_GINTMSK_ENUMDONEMSK_SHIFT 13 /**< Shift value for USB_ENUMDONEMSK */ |
Kojto | 98:8ab26030e058 | 548 | #define _USB_GINTMSK_ENUMDONEMSK_MASK 0x2000UL /**< Bit mask for USB_ENUMDONEMSK */ |
Kojto | 98:8ab26030e058 | 549 | #define _USB_GINTMSK_ENUMDONEMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 550 | #define USB_GINTMSK_ENUMDONEMSK_DEFAULT (_USB_GINTMSK_ENUMDONEMSK_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 551 | #define USB_GINTMSK_ISOOUTDROPMSK (0x1UL << 14) /**< Isochronous OUT Packet Dropped Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 552 | #define _USB_GINTMSK_ISOOUTDROPMSK_SHIFT 14 /**< Shift value for USB_ISOOUTDROPMSK */ |
Kojto | 98:8ab26030e058 | 553 | #define _USB_GINTMSK_ISOOUTDROPMSK_MASK 0x4000UL /**< Bit mask for USB_ISOOUTDROPMSK */ |
Kojto | 98:8ab26030e058 | 554 | #define _USB_GINTMSK_ISOOUTDROPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 555 | #define USB_GINTMSK_ISOOUTDROPMSK_DEFAULT (_USB_GINTMSK_ISOOUTDROPMSK_DEFAULT << 14) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 556 | #define USB_GINTMSK_EOPFMSK (0x1UL << 15) /**< End of Periodic Frame Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 557 | #define _USB_GINTMSK_EOPFMSK_SHIFT 15 /**< Shift value for USB_EOPFMSK */ |
Kojto | 98:8ab26030e058 | 558 | #define _USB_GINTMSK_EOPFMSK_MASK 0x8000UL /**< Bit mask for USB_EOPFMSK */ |
Kojto | 98:8ab26030e058 | 559 | #define _USB_GINTMSK_EOPFMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 560 | #define USB_GINTMSK_EOPFMSK_DEFAULT (_USB_GINTMSK_EOPFMSK_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 561 | #define USB_GINTMSK_IEPINTMSK (0x1UL << 18) /**< IN Endpoints Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 562 | #define _USB_GINTMSK_IEPINTMSK_SHIFT 18 /**< Shift value for USB_IEPINTMSK */ |
Kojto | 98:8ab26030e058 | 563 | #define _USB_GINTMSK_IEPINTMSK_MASK 0x40000UL /**< Bit mask for USB_IEPINTMSK */ |
Kojto | 98:8ab26030e058 | 564 | #define _USB_GINTMSK_IEPINTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 565 | #define USB_GINTMSK_IEPINTMSK_DEFAULT (_USB_GINTMSK_IEPINTMSK_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 566 | #define USB_GINTMSK_OEPINTMSK (0x1UL << 19) /**< OUT Endpoints Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 567 | #define _USB_GINTMSK_OEPINTMSK_SHIFT 19 /**< Shift value for USB_OEPINTMSK */ |
Kojto | 98:8ab26030e058 | 568 | #define _USB_GINTMSK_OEPINTMSK_MASK 0x80000UL /**< Bit mask for USB_OEPINTMSK */ |
Kojto | 98:8ab26030e058 | 569 | #define _USB_GINTMSK_OEPINTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 570 | #define USB_GINTMSK_OEPINTMSK_DEFAULT (_USB_GINTMSK_OEPINTMSK_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 571 | #define USB_GINTMSK_INCOMPISOINMSK (0x1UL << 20) /**< Incomplete Isochronous IN Transfer Mask */ |
Kojto | 98:8ab26030e058 | 572 | #define _USB_GINTMSK_INCOMPISOINMSK_SHIFT 20 /**< Shift value for USB_INCOMPISOINMSK */ |
Kojto | 98:8ab26030e058 | 573 | #define _USB_GINTMSK_INCOMPISOINMSK_MASK 0x100000UL /**< Bit mask for USB_INCOMPISOINMSK */ |
Kojto | 98:8ab26030e058 | 574 | #define _USB_GINTMSK_INCOMPISOINMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 575 | #define USB_GINTMSK_INCOMPISOINMSK_DEFAULT (_USB_GINTMSK_INCOMPISOINMSK_DEFAULT << 20) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 576 | #define USB_GINTMSK_INCOMPLPMSK (0x1UL << 21) /**< Incomplete Periodic Transfer Mask */ |
Kojto | 98:8ab26030e058 | 577 | #define _USB_GINTMSK_INCOMPLPMSK_SHIFT 21 /**< Shift value for USB_INCOMPLPMSK */ |
Kojto | 98:8ab26030e058 | 578 | #define _USB_GINTMSK_INCOMPLPMSK_MASK 0x200000UL /**< Bit mask for USB_INCOMPLPMSK */ |
Kojto | 98:8ab26030e058 | 579 | #define _USB_GINTMSK_INCOMPLPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 580 | #define USB_GINTMSK_INCOMPLPMSK_DEFAULT (_USB_GINTMSK_INCOMPLPMSK_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 581 | #define USB_GINTMSK_FETSUSPMSK (0x1UL << 22) /**< Data Fetch Suspended Mask */ |
Kojto | 98:8ab26030e058 | 582 | #define _USB_GINTMSK_FETSUSPMSK_SHIFT 22 /**< Shift value for USB_FETSUSPMSK */ |
Kojto | 98:8ab26030e058 | 583 | #define _USB_GINTMSK_FETSUSPMSK_MASK 0x400000UL /**< Bit mask for USB_FETSUSPMSK */ |
Kojto | 98:8ab26030e058 | 584 | #define _USB_GINTMSK_FETSUSPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 585 | #define USB_GINTMSK_FETSUSPMSK_DEFAULT (_USB_GINTMSK_FETSUSPMSK_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 586 | #define USB_GINTMSK_RESETDETMSK (0x1UL << 23) /**< Reset detected Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 587 | #define _USB_GINTMSK_RESETDETMSK_SHIFT 23 /**< Shift value for USB_RESETDETMSK */ |
Kojto | 98:8ab26030e058 | 588 | #define _USB_GINTMSK_RESETDETMSK_MASK 0x800000UL /**< Bit mask for USB_RESETDETMSK */ |
Kojto | 98:8ab26030e058 | 589 | #define _USB_GINTMSK_RESETDETMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 590 | #define USB_GINTMSK_RESETDETMSK_DEFAULT (_USB_GINTMSK_RESETDETMSK_DEFAULT << 23) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 591 | #define USB_GINTMSK_WKUPINTMSK (0x1UL << 31) /**< Resume/Remote Wakeup Detected Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 592 | #define _USB_GINTMSK_WKUPINTMSK_SHIFT 31 /**< Shift value for USB_WKUPINTMSK */ |
Kojto | 98:8ab26030e058 | 593 | #define _USB_GINTMSK_WKUPINTMSK_MASK 0x80000000UL /**< Bit mask for USB_WKUPINTMSK */ |
Kojto | 98:8ab26030e058 | 594 | #define _USB_GINTMSK_WKUPINTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 595 | #define USB_GINTMSK_WKUPINTMSK_DEFAULT (_USB_GINTMSK_WKUPINTMSK_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_GINTMSK */ |
Kojto | 98:8ab26030e058 | 596 | |
Kojto | 98:8ab26030e058 | 597 | /* Bit fields for USB GRXSTSR */ |
Kojto | 98:8ab26030e058 | 598 | #define _USB_GRXSTSR_RESETVALUE 0x00000000UL /**< Default value for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 599 | #define _USB_GRXSTSR_MASK 0x01FFFFFFUL /**< Mask for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 600 | #define _USB_GRXSTSR_CHEPNUM_SHIFT 0 /**< Shift value for USB_CHEPNUM */ |
Kojto | 98:8ab26030e058 | 601 | #define _USB_GRXSTSR_CHEPNUM_MASK 0xFUL /**< Bit mask for USB_CHEPNUM */ |
Kojto | 98:8ab26030e058 | 602 | #define _USB_GRXSTSR_CHEPNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 603 | #define USB_GRXSTSR_CHEPNUM_DEFAULT (_USB_GRXSTSR_CHEPNUM_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 604 | #define _USB_GRXSTSR_BCNT_SHIFT 4 /**< Shift value for USB_BCNT */ |
Kojto | 98:8ab26030e058 | 605 | #define _USB_GRXSTSR_BCNT_MASK 0x7FF0UL /**< Bit mask for USB_BCNT */ |
Kojto | 98:8ab26030e058 | 606 | #define _USB_GRXSTSR_BCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 607 | #define USB_GRXSTSR_BCNT_DEFAULT (_USB_GRXSTSR_BCNT_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 608 | #define _USB_GRXSTSR_DPID_SHIFT 15 /**< Shift value for USB_DPID */ |
Kojto | 98:8ab26030e058 | 609 | #define _USB_GRXSTSR_DPID_MASK 0x18000UL /**< Bit mask for USB_DPID */ |
Kojto | 98:8ab26030e058 | 610 | #define _USB_GRXSTSR_DPID_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 611 | #define _USB_GRXSTSR_DPID_DATA0 0x00000000UL /**< Mode DATA0 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 612 | #define _USB_GRXSTSR_DPID_DATA1 0x00000001UL /**< Mode DATA1 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 613 | #define _USB_GRXSTSR_DPID_DATA2 0x00000002UL /**< Mode DATA2 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 614 | #define _USB_GRXSTSR_DPID_MDATA 0x00000003UL /**< Mode MDATA for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 615 | #define USB_GRXSTSR_DPID_DEFAULT (_USB_GRXSTSR_DPID_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 616 | #define USB_GRXSTSR_DPID_DATA0 (_USB_GRXSTSR_DPID_DATA0 << 15) /**< Shifted mode DATA0 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 617 | #define USB_GRXSTSR_DPID_DATA1 (_USB_GRXSTSR_DPID_DATA1 << 15) /**< Shifted mode DATA1 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 618 | #define USB_GRXSTSR_DPID_DATA2 (_USB_GRXSTSR_DPID_DATA2 << 15) /**< Shifted mode DATA2 for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 619 | #define USB_GRXSTSR_DPID_MDATA (_USB_GRXSTSR_DPID_MDATA << 15) /**< Shifted mode MDATA for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 620 | #define _USB_GRXSTSR_PKTSTS_SHIFT 17 /**< Shift value for USB_PKTSTS */ |
Kojto | 98:8ab26030e058 | 621 | #define _USB_GRXSTSR_PKTSTS_MASK 0x1E0000UL /**< Bit mask for USB_PKTSTS */ |
Kojto | 98:8ab26030e058 | 622 | #define _USB_GRXSTSR_PKTSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 623 | #define _USB_GRXSTSR_PKTSTS_GOUTNAK 0x00000001UL /**< Mode GOUTNAK for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 624 | #define _USB_GRXSTSR_PKTSTS_PKTRCV 0x00000002UL /**< Mode PKTRCV for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 625 | #define _USB_GRXSTSR_PKTSTS_XFERCOMPL 0x00000003UL /**< Mode XFERCOMPL for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 626 | #define _USB_GRXSTSR_PKTSTS_SETUPCOMPL 0x00000004UL /**< Mode SETUPCOMPL for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 627 | #define _USB_GRXSTSR_PKTSTS_TGLERR 0x00000005UL /**< Mode TGLERR for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 628 | #define _USB_GRXSTSR_PKTSTS_SETUPRCV 0x00000006UL /**< Mode SETUPRCV for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 629 | #define _USB_GRXSTSR_PKTSTS_CHLT 0x00000007UL /**< Mode CHLT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 630 | #define USB_GRXSTSR_PKTSTS_DEFAULT (_USB_GRXSTSR_PKTSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 631 | #define USB_GRXSTSR_PKTSTS_GOUTNAK (_USB_GRXSTSR_PKTSTS_GOUTNAK << 17) /**< Shifted mode GOUTNAK for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 632 | #define USB_GRXSTSR_PKTSTS_PKTRCV (_USB_GRXSTSR_PKTSTS_PKTRCV << 17) /**< Shifted mode PKTRCV for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 633 | #define USB_GRXSTSR_PKTSTS_XFERCOMPL (_USB_GRXSTSR_PKTSTS_XFERCOMPL << 17) /**< Shifted mode XFERCOMPL for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 634 | #define USB_GRXSTSR_PKTSTS_SETUPCOMPL (_USB_GRXSTSR_PKTSTS_SETUPCOMPL << 17) /**< Shifted mode SETUPCOMPL for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 635 | #define USB_GRXSTSR_PKTSTS_TGLERR (_USB_GRXSTSR_PKTSTS_TGLERR << 17) /**< Shifted mode TGLERR for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 636 | #define USB_GRXSTSR_PKTSTS_SETUPRCV (_USB_GRXSTSR_PKTSTS_SETUPRCV << 17) /**< Shifted mode SETUPRCV for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 637 | #define USB_GRXSTSR_PKTSTS_CHLT (_USB_GRXSTSR_PKTSTS_CHLT << 17) /**< Shifted mode CHLT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 638 | #define _USB_GRXSTSR_FN_SHIFT 21 /**< Shift value for USB_FN */ |
Kojto | 98:8ab26030e058 | 639 | #define _USB_GRXSTSR_FN_MASK 0x1E00000UL /**< Bit mask for USB_FN */ |
Kojto | 98:8ab26030e058 | 640 | #define _USB_GRXSTSR_FN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 641 | #define USB_GRXSTSR_FN_DEFAULT (_USB_GRXSTSR_FN_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_GRXSTSR */ |
Kojto | 98:8ab26030e058 | 642 | |
Kojto | 98:8ab26030e058 | 643 | /* Bit fields for USB GRXSTSP */ |
Kojto | 98:8ab26030e058 | 644 | #define _USB_GRXSTSP_RESETVALUE 0x00000000UL /**< Default value for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 645 | #define _USB_GRXSTSP_MASK 0x01FFFFFFUL /**< Mask for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 646 | #define _USB_GRXSTSP_CHEPNUM_SHIFT 0 /**< Shift value for USB_CHEPNUM */ |
Kojto | 98:8ab26030e058 | 647 | #define _USB_GRXSTSP_CHEPNUM_MASK 0xFUL /**< Bit mask for USB_CHEPNUM */ |
Kojto | 98:8ab26030e058 | 648 | #define _USB_GRXSTSP_CHEPNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 649 | #define USB_GRXSTSP_CHEPNUM_DEFAULT (_USB_GRXSTSP_CHEPNUM_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 650 | #define _USB_GRXSTSP_BCNT_SHIFT 4 /**< Shift value for USB_BCNT */ |
Kojto | 98:8ab26030e058 | 651 | #define _USB_GRXSTSP_BCNT_MASK 0x7FF0UL /**< Bit mask for USB_BCNT */ |
Kojto | 98:8ab26030e058 | 652 | #define _USB_GRXSTSP_BCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 653 | #define USB_GRXSTSP_BCNT_DEFAULT (_USB_GRXSTSP_BCNT_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 654 | #define _USB_GRXSTSP_DPID_SHIFT 15 /**< Shift value for USB_DPID */ |
Kojto | 98:8ab26030e058 | 655 | #define _USB_GRXSTSP_DPID_MASK 0x18000UL /**< Bit mask for USB_DPID */ |
Kojto | 98:8ab26030e058 | 656 | #define _USB_GRXSTSP_DPID_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 657 | #define _USB_GRXSTSP_DPID_DATA0 0x00000000UL /**< Mode DATA0 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 658 | #define _USB_GRXSTSP_DPID_DATA1 0x00000001UL /**< Mode DATA1 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 659 | #define _USB_GRXSTSP_DPID_DATA2 0x00000002UL /**< Mode DATA2 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 660 | #define _USB_GRXSTSP_DPID_MDATA 0x00000003UL /**< Mode MDATA for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 661 | #define USB_GRXSTSP_DPID_DEFAULT (_USB_GRXSTSP_DPID_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 662 | #define USB_GRXSTSP_DPID_DATA0 (_USB_GRXSTSP_DPID_DATA0 << 15) /**< Shifted mode DATA0 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 663 | #define USB_GRXSTSP_DPID_DATA1 (_USB_GRXSTSP_DPID_DATA1 << 15) /**< Shifted mode DATA1 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 664 | #define USB_GRXSTSP_DPID_DATA2 (_USB_GRXSTSP_DPID_DATA2 << 15) /**< Shifted mode DATA2 for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 665 | #define USB_GRXSTSP_DPID_MDATA (_USB_GRXSTSP_DPID_MDATA << 15) /**< Shifted mode MDATA for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 666 | #define _USB_GRXSTSP_PKTSTS_SHIFT 17 /**< Shift value for USB_PKTSTS */ |
Kojto | 98:8ab26030e058 | 667 | #define _USB_GRXSTSP_PKTSTS_MASK 0x1E0000UL /**< Bit mask for USB_PKTSTS */ |
Kojto | 98:8ab26030e058 | 668 | #define _USB_GRXSTSP_PKTSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 669 | #define _USB_GRXSTSP_PKTSTS_GOUTNAK 0x00000001UL /**< Mode GOUTNAK for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 670 | #define _USB_GRXSTSP_PKTSTS_PKTRCV 0x00000002UL /**< Mode PKTRCV for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 671 | #define _USB_GRXSTSP_PKTSTS_XFERCOMPL 0x00000003UL /**< Mode XFERCOMPL for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 672 | #define _USB_GRXSTSP_PKTSTS_SETUPCOMPL 0x00000004UL /**< Mode SETUPCOMPL for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 673 | #define _USB_GRXSTSP_PKTSTS_TGLERR 0x00000005UL /**< Mode TGLERR for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 674 | #define _USB_GRXSTSP_PKTSTS_SETUPRCV 0x00000006UL /**< Mode SETUPRCV for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 675 | #define _USB_GRXSTSP_PKTSTS_CHLT 0x00000007UL /**< Mode CHLT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 676 | #define USB_GRXSTSP_PKTSTS_DEFAULT (_USB_GRXSTSP_PKTSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 677 | #define USB_GRXSTSP_PKTSTS_GOUTNAK (_USB_GRXSTSP_PKTSTS_GOUTNAK << 17) /**< Shifted mode GOUTNAK for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 678 | #define USB_GRXSTSP_PKTSTS_PKTRCV (_USB_GRXSTSP_PKTSTS_PKTRCV << 17) /**< Shifted mode PKTRCV for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 679 | #define USB_GRXSTSP_PKTSTS_XFERCOMPL (_USB_GRXSTSP_PKTSTS_XFERCOMPL << 17) /**< Shifted mode XFERCOMPL for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 680 | #define USB_GRXSTSP_PKTSTS_SETUPCOMPL (_USB_GRXSTSP_PKTSTS_SETUPCOMPL << 17) /**< Shifted mode SETUPCOMPL for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 681 | #define USB_GRXSTSP_PKTSTS_TGLERR (_USB_GRXSTSP_PKTSTS_TGLERR << 17) /**< Shifted mode TGLERR for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 682 | #define USB_GRXSTSP_PKTSTS_SETUPRCV (_USB_GRXSTSP_PKTSTS_SETUPRCV << 17) /**< Shifted mode SETUPRCV for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 683 | #define USB_GRXSTSP_PKTSTS_CHLT (_USB_GRXSTSP_PKTSTS_CHLT << 17) /**< Shifted mode CHLT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 684 | #define _USB_GRXSTSP_FN_SHIFT 21 /**< Shift value for USB_FN */ |
Kojto | 98:8ab26030e058 | 685 | #define _USB_GRXSTSP_FN_MASK 0x1E00000UL /**< Bit mask for USB_FN */ |
Kojto | 98:8ab26030e058 | 686 | #define _USB_GRXSTSP_FN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 687 | #define USB_GRXSTSP_FN_DEFAULT (_USB_GRXSTSP_FN_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_GRXSTSP */ |
Kojto | 98:8ab26030e058 | 688 | |
Kojto | 98:8ab26030e058 | 689 | /* Bit fields for USB GRXFSIZ */ |
Kojto | 98:8ab26030e058 | 690 | #define _USB_GRXFSIZ_RESETVALUE 0x00000200UL /**< Default value for USB_GRXFSIZ */ |
Kojto | 98:8ab26030e058 | 691 | #define _USB_GRXFSIZ_MASK 0x000003FFUL /**< Mask for USB_GRXFSIZ */ |
Kojto | 98:8ab26030e058 | 692 | #define _USB_GRXFSIZ_RXFDEP_SHIFT 0 /**< Shift value for USB_RXFDEP */ |
Kojto | 98:8ab26030e058 | 693 | #define _USB_GRXFSIZ_RXFDEP_MASK 0x3FFUL /**< Bit mask for USB_RXFDEP */ |
Kojto | 98:8ab26030e058 | 694 | #define _USB_GRXFSIZ_RXFDEP_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_GRXFSIZ */ |
Kojto | 98:8ab26030e058 | 695 | #define USB_GRXFSIZ_RXFDEP_DEFAULT (_USB_GRXFSIZ_RXFDEP_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GRXFSIZ */ |
Kojto | 98:8ab26030e058 | 696 | |
Kojto | 98:8ab26030e058 | 697 | /* Bit fields for USB GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 698 | #define _USB_GNPTXFSIZ_RESETVALUE 0x02000200UL /**< Default value for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 699 | #define _USB_GNPTXFSIZ_MASK 0xFFFF03FFUL /**< Mask for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 700 | #define _USB_GNPTXFSIZ_NPTXFSTADDR_SHIFT 0 /**< Shift value for USB_NPTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 701 | #define _USB_GNPTXFSIZ_NPTXFSTADDR_MASK 0x3FFUL /**< Bit mask for USB_NPTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 702 | #define _USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 703 | #define USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT (_USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 704 | #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_SHIFT 16 /**< Shift value for USB_NPTXFINEPTXF0DEP */ |
Kojto | 98:8ab26030e058 | 705 | #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_MASK 0xFFFF0000UL /**< Bit mask for USB_NPTXFINEPTXF0DEP */ |
Kojto | 98:8ab26030e058 | 706 | #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 707 | #define USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT (_USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_GNPTXFSIZ */ |
Kojto | 98:8ab26030e058 | 708 | |
Kojto | 98:8ab26030e058 | 709 | /* Bit fields for USB GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 710 | #define _USB_GDFIFOCFG_RESETVALUE 0x05F80600UL /**< Default value for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 711 | #define _USB_GDFIFOCFG_MASK 0xFFFFFFFFUL /**< Mask for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 712 | #define _USB_GDFIFOCFG_GDFIFOCFG_SHIFT 0 /**< Shift value for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 713 | #define _USB_GDFIFOCFG_GDFIFOCFG_MASK 0xFFFFUL /**< Bit mask for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 714 | #define _USB_GDFIFOCFG_GDFIFOCFG_DEFAULT 0x00000600UL /**< Mode DEFAULT for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 715 | #define USB_GDFIFOCFG_GDFIFOCFG_DEFAULT (_USB_GDFIFOCFG_GDFIFOCFG_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 716 | #define _USB_GDFIFOCFG_EPINFOBASEADDR_SHIFT 16 /**< Shift value for USB_EPINFOBASEADDR */ |
Kojto | 98:8ab26030e058 | 717 | #define _USB_GDFIFOCFG_EPINFOBASEADDR_MASK 0xFFFF0000UL /**< Bit mask for USB_EPINFOBASEADDR */ |
Kojto | 98:8ab26030e058 | 718 | #define _USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT 0x000005F8UL /**< Mode DEFAULT for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 719 | #define USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT (_USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_GDFIFOCFG */ |
Kojto | 98:8ab26030e058 | 720 | |
Kojto | 98:8ab26030e058 | 721 | /* Bit fields for USB DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 722 | #define _USB_DIEPTXF1_RESETVALUE 0x02000400UL /**< Default value for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 723 | #define _USB_DIEPTXF1_MASK 0x03FF07FFUL /**< Mask for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 724 | #define _USB_DIEPTXF1_INEPNTXFSTADDR_SHIFT 0 /**< Shift value for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 725 | #define _USB_DIEPTXF1_INEPNTXFSTADDR_MASK 0x7FFUL /**< Bit mask for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 726 | #define _USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT 0x00000400UL /**< Mode DEFAULT for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 727 | #define USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 728 | #define _USB_DIEPTXF1_INEPNTXFDEP_SHIFT 16 /**< Shift value for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 729 | #define _USB_DIEPTXF1_INEPNTXFDEP_MASK 0x3FF0000UL /**< Bit mask for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 730 | #define _USB_DIEPTXF1_INEPNTXFDEP_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 731 | #define USB_DIEPTXF1_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF1_INEPNTXFDEP_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DIEPTXF1 */ |
Kojto | 98:8ab26030e058 | 732 | |
Kojto | 98:8ab26030e058 | 733 | /* Bit fields for USB DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 734 | #define _USB_DIEPTXF2_RESETVALUE 0x02000600UL /**< Default value for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 735 | #define _USB_DIEPTXF2_MASK 0x03FF07FFUL /**< Mask for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 736 | #define _USB_DIEPTXF2_INEPNTXFSTADDR_SHIFT 0 /**< Shift value for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 737 | #define _USB_DIEPTXF2_INEPNTXFSTADDR_MASK 0x7FFUL /**< Bit mask for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 738 | #define _USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT 0x00000600UL /**< Mode DEFAULT for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 739 | #define USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 740 | #define _USB_DIEPTXF2_INEPNTXFDEP_SHIFT 16 /**< Shift value for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 741 | #define _USB_DIEPTXF2_INEPNTXFDEP_MASK 0x3FF0000UL /**< Bit mask for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 742 | #define _USB_DIEPTXF2_INEPNTXFDEP_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 743 | #define USB_DIEPTXF2_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF2_INEPNTXFDEP_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DIEPTXF2 */ |
Kojto | 98:8ab26030e058 | 744 | |
Kojto | 98:8ab26030e058 | 745 | /* Bit fields for USB DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 746 | #define _USB_DIEPTXF3_RESETVALUE 0x02000800UL /**< Default value for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 747 | #define _USB_DIEPTXF3_MASK 0x03FF0FFFUL /**< Mask for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 748 | #define _USB_DIEPTXF3_INEPNTXFSTADDR_SHIFT 0 /**< Shift value for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 749 | #define _USB_DIEPTXF3_INEPNTXFSTADDR_MASK 0xFFFUL /**< Bit mask for USB_INEPNTXFSTADDR */ |
Kojto | 98:8ab26030e058 | 750 | #define _USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT 0x00000800UL /**< Mode DEFAULT for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 751 | #define USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 752 | #define _USB_DIEPTXF3_INEPNTXFDEP_SHIFT 16 /**< Shift value for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 753 | #define _USB_DIEPTXF3_INEPNTXFDEP_MASK 0x3FF0000UL /**< Bit mask for USB_INEPNTXFDEP */ |
Kojto | 98:8ab26030e058 | 754 | #define _USB_DIEPTXF3_INEPNTXFDEP_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 755 | #define USB_DIEPTXF3_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF3_INEPNTXFDEP_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DIEPTXF3 */ |
Kojto | 98:8ab26030e058 | 756 | |
Kojto | 98:8ab26030e058 | 757 | /* Bit fields for USB DCFG */ |
Kojto | 98:8ab26030e058 | 758 | #define _USB_DCFG_RESETVALUE 0x08000000UL /**< Default value for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 759 | #define _USB_DCFG_MASK 0xFC009FFFUL /**< Mask for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 760 | #define _USB_DCFG_DEVSPD_SHIFT 0 /**< Shift value for USB_DEVSPD */ |
Kojto | 98:8ab26030e058 | 761 | #define _USB_DCFG_DEVSPD_MASK 0x3UL /**< Bit mask for USB_DEVSPD */ |
Kojto | 98:8ab26030e058 | 762 | #define _USB_DCFG_DEVSPD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 763 | #define _USB_DCFG_DEVSPD_LS 0x00000002UL /**< Mode LS for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 764 | #define _USB_DCFG_DEVSPD_FS 0x00000003UL /**< Mode FS for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 765 | #define USB_DCFG_DEVSPD_DEFAULT (_USB_DCFG_DEVSPD_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 766 | #define USB_DCFG_DEVSPD_LS (_USB_DCFG_DEVSPD_LS << 0) /**< Shifted mode LS for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 767 | #define USB_DCFG_DEVSPD_FS (_USB_DCFG_DEVSPD_FS << 0) /**< Shifted mode FS for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 768 | #define USB_DCFG_NZSTSOUTHSHK (0x1UL << 2) /**< Non-Zero-Length Status OUT Handshake */ |
Kojto | 98:8ab26030e058 | 769 | #define _USB_DCFG_NZSTSOUTHSHK_SHIFT 2 /**< Shift value for USB_NZSTSOUTHSHK */ |
Kojto | 98:8ab26030e058 | 770 | #define _USB_DCFG_NZSTSOUTHSHK_MASK 0x4UL /**< Bit mask for USB_NZSTSOUTHSHK */ |
Kojto | 98:8ab26030e058 | 771 | #define _USB_DCFG_NZSTSOUTHSHK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 772 | #define USB_DCFG_NZSTSOUTHSHK_DEFAULT (_USB_DCFG_NZSTSOUTHSHK_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 773 | #define USB_DCFG_ENA32KHZSUSP (0x1UL << 3) /**< Enable 32 KHz Suspend mode */ |
Kojto | 98:8ab26030e058 | 774 | #define _USB_DCFG_ENA32KHZSUSP_SHIFT 3 /**< Shift value for USB_ENA32KHZSUSP */ |
Kojto | 98:8ab26030e058 | 775 | #define _USB_DCFG_ENA32KHZSUSP_MASK 0x8UL /**< Bit mask for USB_ENA32KHZSUSP */ |
Kojto | 98:8ab26030e058 | 776 | #define _USB_DCFG_ENA32KHZSUSP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 777 | #define USB_DCFG_ENA32KHZSUSP_DEFAULT (_USB_DCFG_ENA32KHZSUSP_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 778 | #define _USB_DCFG_DEVADDR_SHIFT 4 /**< Shift value for USB_DEVADDR */ |
Kojto | 98:8ab26030e058 | 779 | #define _USB_DCFG_DEVADDR_MASK 0x7F0UL /**< Bit mask for USB_DEVADDR */ |
Kojto | 98:8ab26030e058 | 780 | #define _USB_DCFG_DEVADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 781 | #define USB_DCFG_DEVADDR_DEFAULT (_USB_DCFG_DEVADDR_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 782 | #define _USB_DCFG_PERFRINT_SHIFT 11 /**< Shift value for USB_PERFRINT */ |
Kojto | 98:8ab26030e058 | 783 | #define _USB_DCFG_PERFRINT_MASK 0x1800UL /**< Bit mask for USB_PERFRINT */ |
Kojto | 98:8ab26030e058 | 784 | #define _USB_DCFG_PERFRINT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 785 | #define _USB_DCFG_PERFRINT_80PCNT 0x00000000UL /**< Mode 80PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 786 | #define _USB_DCFG_PERFRINT_85PCNT 0x00000001UL /**< Mode 85PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 787 | #define _USB_DCFG_PERFRINT_90PCNT 0x00000002UL /**< Mode 90PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 788 | #define _USB_DCFG_PERFRINT_95PCNT 0x00000003UL /**< Mode 95PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 789 | #define USB_DCFG_PERFRINT_DEFAULT (_USB_DCFG_PERFRINT_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 790 | #define USB_DCFG_PERFRINT_80PCNT (_USB_DCFG_PERFRINT_80PCNT << 11) /**< Shifted mode 80PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 791 | #define USB_DCFG_PERFRINT_85PCNT (_USB_DCFG_PERFRINT_85PCNT << 11) /**< Shifted mode 85PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 792 | #define USB_DCFG_PERFRINT_90PCNT (_USB_DCFG_PERFRINT_90PCNT << 11) /**< Shifted mode 90PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 793 | #define USB_DCFG_PERFRINT_95PCNT (_USB_DCFG_PERFRINT_95PCNT << 11) /**< Shifted mode 95PCNT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 794 | #define USB_DCFG_ERRATICINTMSK (0x1UL << 15) /**< */ |
Kojto | 98:8ab26030e058 | 795 | #define _USB_DCFG_ERRATICINTMSK_SHIFT 15 /**< Shift value for USB_ERRATICINTMSK */ |
Kojto | 98:8ab26030e058 | 796 | #define _USB_DCFG_ERRATICINTMSK_MASK 0x8000UL /**< Bit mask for USB_ERRATICINTMSK */ |
Kojto | 98:8ab26030e058 | 797 | #define _USB_DCFG_ERRATICINTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 798 | #define USB_DCFG_ERRATICINTMSK_DEFAULT (_USB_DCFG_ERRATICINTMSK_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 799 | #define _USB_DCFG_RESVALID_SHIFT 26 /**< Shift value for USB_RESVALID */ |
Kojto | 98:8ab26030e058 | 800 | #define _USB_DCFG_RESVALID_MASK 0xFC000000UL /**< Bit mask for USB_RESVALID */ |
Kojto | 98:8ab26030e058 | 801 | #define _USB_DCFG_RESVALID_DEFAULT 0x00000002UL /**< Mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 802 | #define USB_DCFG_RESVALID_DEFAULT (_USB_DCFG_RESVALID_DEFAULT << 26) /**< Shifted mode DEFAULT for USB_DCFG */ |
Kojto | 98:8ab26030e058 | 803 | |
Kojto | 98:8ab26030e058 | 804 | /* Bit fields for USB DCTL */ |
Kojto | 98:8ab26030e058 | 805 | #define _USB_DCTL_RESETVALUE 0x00000000UL /**< Default value for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 806 | #define _USB_DCTL_MASK 0x00018FFFUL /**< Mask for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 807 | #define USB_DCTL_RMTWKUPSIG (0x1UL << 0) /**< Remote Wakeup Signaling */ |
Kojto | 98:8ab26030e058 | 808 | #define _USB_DCTL_RMTWKUPSIG_SHIFT 0 /**< Shift value for USB_RMTWKUPSIG */ |
Kojto | 98:8ab26030e058 | 809 | #define _USB_DCTL_RMTWKUPSIG_MASK 0x1UL /**< Bit mask for USB_RMTWKUPSIG */ |
Kojto | 98:8ab26030e058 | 810 | #define _USB_DCTL_RMTWKUPSIG_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 811 | #define USB_DCTL_RMTWKUPSIG_DEFAULT (_USB_DCTL_RMTWKUPSIG_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 812 | #define USB_DCTL_SFTDISCON (0x1UL << 1) /**< Soft Disconnect */ |
Kojto | 98:8ab26030e058 | 813 | #define _USB_DCTL_SFTDISCON_SHIFT 1 /**< Shift value for USB_SFTDISCON */ |
Kojto | 98:8ab26030e058 | 814 | #define _USB_DCTL_SFTDISCON_MASK 0x2UL /**< Bit mask for USB_SFTDISCON */ |
Kojto | 98:8ab26030e058 | 815 | #define _USB_DCTL_SFTDISCON_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 816 | #define USB_DCTL_SFTDISCON_DEFAULT (_USB_DCTL_SFTDISCON_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 817 | #define USB_DCTL_GNPINNAKSTS (0x1UL << 2) /**< Global Non-periodic IN NAK Status */ |
Kojto | 98:8ab26030e058 | 818 | #define _USB_DCTL_GNPINNAKSTS_SHIFT 2 /**< Shift value for USB_GNPINNAKSTS */ |
Kojto | 98:8ab26030e058 | 819 | #define _USB_DCTL_GNPINNAKSTS_MASK 0x4UL /**< Bit mask for USB_GNPINNAKSTS */ |
Kojto | 98:8ab26030e058 | 820 | #define _USB_DCTL_GNPINNAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 821 | #define USB_DCTL_GNPINNAKSTS_DEFAULT (_USB_DCTL_GNPINNAKSTS_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 822 | #define USB_DCTL_GOUTNAKSTS (0x1UL << 3) /**< Global OUT NAK Status */ |
Kojto | 98:8ab26030e058 | 823 | #define _USB_DCTL_GOUTNAKSTS_SHIFT 3 /**< Shift value for USB_GOUTNAKSTS */ |
Kojto | 98:8ab26030e058 | 824 | #define _USB_DCTL_GOUTNAKSTS_MASK 0x8UL /**< Bit mask for USB_GOUTNAKSTS */ |
Kojto | 98:8ab26030e058 | 825 | #define _USB_DCTL_GOUTNAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 826 | #define USB_DCTL_GOUTNAKSTS_DEFAULT (_USB_DCTL_GOUTNAKSTS_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 827 | #define _USB_DCTL_TSTCTL_SHIFT 4 /**< Shift value for USB_TSTCTL */ |
Kojto | 98:8ab26030e058 | 828 | #define _USB_DCTL_TSTCTL_MASK 0x70UL /**< Bit mask for USB_TSTCTL */ |
Kojto | 98:8ab26030e058 | 829 | #define _USB_DCTL_TSTCTL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 830 | #define _USB_DCTL_TSTCTL_DISABLE 0x00000000UL /**< Mode DISABLE for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 831 | #define _USB_DCTL_TSTCTL_J 0x00000001UL /**< Mode J for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 832 | #define _USB_DCTL_TSTCTL_K 0x00000002UL /**< Mode K for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 833 | #define _USB_DCTL_TSTCTL_SE0NAK 0x00000003UL /**< Mode SE0NAK for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 834 | #define _USB_DCTL_TSTCTL_PACKET 0x00000004UL /**< Mode PACKET for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 835 | #define _USB_DCTL_TSTCTL_FORCE 0x00000005UL /**< Mode FORCE for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 836 | #define USB_DCTL_TSTCTL_DEFAULT (_USB_DCTL_TSTCTL_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 837 | #define USB_DCTL_TSTCTL_DISABLE (_USB_DCTL_TSTCTL_DISABLE << 4) /**< Shifted mode DISABLE for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 838 | #define USB_DCTL_TSTCTL_J (_USB_DCTL_TSTCTL_J << 4) /**< Shifted mode J for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 839 | #define USB_DCTL_TSTCTL_K (_USB_DCTL_TSTCTL_K << 4) /**< Shifted mode K for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 840 | #define USB_DCTL_TSTCTL_SE0NAK (_USB_DCTL_TSTCTL_SE0NAK << 4) /**< Shifted mode SE0NAK for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 841 | #define USB_DCTL_TSTCTL_PACKET (_USB_DCTL_TSTCTL_PACKET << 4) /**< Shifted mode PACKET for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 842 | #define USB_DCTL_TSTCTL_FORCE (_USB_DCTL_TSTCTL_FORCE << 4) /**< Shifted mode FORCE for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 843 | #define USB_DCTL_SGNPINNAK (0x1UL << 7) /**< Set Global Non-periodic IN NAK */ |
Kojto | 98:8ab26030e058 | 844 | #define _USB_DCTL_SGNPINNAK_SHIFT 7 /**< Shift value for USB_SGNPINNAK */ |
Kojto | 98:8ab26030e058 | 845 | #define _USB_DCTL_SGNPINNAK_MASK 0x80UL /**< Bit mask for USB_SGNPINNAK */ |
Kojto | 98:8ab26030e058 | 846 | #define _USB_DCTL_SGNPINNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 847 | #define USB_DCTL_SGNPINNAK_DEFAULT (_USB_DCTL_SGNPINNAK_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 848 | #define USB_DCTL_CGNPINNAK (0x1UL << 8) /**< Clear Global Non-periodic IN NAK */ |
Kojto | 98:8ab26030e058 | 849 | #define _USB_DCTL_CGNPINNAK_SHIFT 8 /**< Shift value for USB_CGNPINNAK */ |
Kojto | 98:8ab26030e058 | 850 | #define _USB_DCTL_CGNPINNAK_MASK 0x100UL /**< Bit mask for USB_CGNPINNAK */ |
Kojto | 98:8ab26030e058 | 851 | #define _USB_DCTL_CGNPINNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 852 | #define USB_DCTL_CGNPINNAK_DEFAULT (_USB_DCTL_CGNPINNAK_DEFAULT << 8) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 853 | #define USB_DCTL_SGOUTNAK (0x1UL << 9) /**< Set Global OUT NAK */ |
Kojto | 98:8ab26030e058 | 854 | #define _USB_DCTL_SGOUTNAK_SHIFT 9 /**< Shift value for USB_SGOUTNAK */ |
Kojto | 98:8ab26030e058 | 855 | #define _USB_DCTL_SGOUTNAK_MASK 0x200UL /**< Bit mask for USB_SGOUTNAK */ |
Kojto | 98:8ab26030e058 | 856 | #define _USB_DCTL_SGOUTNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 857 | #define USB_DCTL_SGOUTNAK_DEFAULT (_USB_DCTL_SGOUTNAK_DEFAULT << 9) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 858 | #define USB_DCTL_CGOUTNAK (0x1UL << 10) /**< Clear Global OUT NAK */ |
Kojto | 98:8ab26030e058 | 859 | #define _USB_DCTL_CGOUTNAK_SHIFT 10 /**< Shift value for USB_CGOUTNAK */ |
Kojto | 98:8ab26030e058 | 860 | #define _USB_DCTL_CGOUTNAK_MASK 0x400UL /**< Bit mask for USB_CGOUTNAK */ |
Kojto | 98:8ab26030e058 | 861 | #define _USB_DCTL_CGOUTNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 862 | #define USB_DCTL_CGOUTNAK_DEFAULT (_USB_DCTL_CGOUTNAK_DEFAULT << 10) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 863 | #define USB_DCTL_PWRONPRGDONE (0x1UL << 11) /**< Power-On Programming Done */ |
Kojto | 98:8ab26030e058 | 864 | #define _USB_DCTL_PWRONPRGDONE_SHIFT 11 /**< Shift value for USB_PWRONPRGDONE */ |
Kojto | 98:8ab26030e058 | 865 | #define _USB_DCTL_PWRONPRGDONE_MASK 0x800UL /**< Bit mask for USB_PWRONPRGDONE */ |
Kojto | 98:8ab26030e058 | 866 | #define _USB_DCTL_PWRONPRGDONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 867 | #define USB_DCTL_PWRONPRGDONE_DEFAULT (_USB_DCTL_PWRONPRGDONE_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 868 | #define USB_DCTL_IGNRFRMNUM (0x1UL << 15) /**< Ignore Frame number For Isochronous End points */ |
Kojto | 98:8ab26030e058 | 869 | #define _USB_DCTL_IGNRFRMNUM_SHIFT 15 /**< Shift value for USB_IGNRFRMNUM */ |
Kojto | 98:8ab26030e058 | 870 | #define _USB_DCTL_IGNRFRMNUM_MASK 0x8000UL /**< Bit mask for USB_IGNRFRMNUM */ |
Kojto | 98:8ab26030e058 | 871 | #define _USB_DCTL_IGNRFRMNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 872 | #define USB_DCTL_IGNRFRMNUM_DEFAULT (_USB_DCTL_IGNRFRMNUM_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 873 | #define USB_DCTL_NAKONBBLE (0x1UL << 16) /**< NAK on Babble Error */ |
Kojto | 98:8ab26030e058 | 874 | #define _USB_DCTL_NAKONBBLE_SHIFT 16 /**< Shift value for USB_NAKONBBLE */ |
Kojto | 98:8ab26030e058 | 875 | #define _USB_DCTL_NAKONBBLE_MASK 0x10000UL /**< Bit mask for USB_NAKONBBLE */ |
Kojto | 98:8ab26030e058 | 876 | #define _USB_DCTL_NAKONBBLE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 877 | #define USB_DCTL_NAKONBBLE_DEFAULT (_USB_DCTL_NAKONBBLE_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DCTL */ |
Kojto | 98:8ab26030e058 | 878 | |
Kojto | 98:8ab26030e058 | 879 | /* Bit fields for USB DSTS */ |
Kojto | 98:8ab26030e058 | 880 | #define _USB_DSTS_RESETVALUE 0x00000002UL /**< Default value for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 881 | #define _USB_DSTS_MASK 0x00FFFF0FUL /**< Mask for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 882 | #define USB_DSTS_SUSPSTS (0x1UL << 0) /**< Suspend Status */ |
Kojto | 98:8ab26030e058 | 883 | #define _USB_DSTS_SUSPSTS_SHIFT 0 /**< Shift value for USB_SUSPSTS */ |
Kojto | 98:8ab26030e058 | 884 | #define _USB_DSTS_SUSPSTS_MASK 0x1UL /**< Bit mask for USB_SUSPSTS */ |
Kojto | 98:8ab26030e058 | 885 | #define _USB_DSTS_SUSPSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 886 | #define USB_DSTS_SUSPSTS_DEFAULT (_USB_DSTS_SUSPSTS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 887 | #define _USB_DSTS_ENUMSPD_SHIFT 1 /**< Shift value for USB_ENUMSPD */ |
Kojto | 98:8ab26030e058 | 888 | #define _USB_DSTS_ENUMSPD_MASK 0x6UL /**< Bit mask for USB_ENUMSPD */ |
Kojto | 98:8ab26030e058 | 889 | #define _USB_DSTS_ENUMSPD_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 890 | #define _USB_DSTS_ENUMSPD_LS 0x00000002UL /**< Mode LS for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 891 | #define _USB_DSTS_ENUMSPD_FS 0x00000003UL /**< Mode FS for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 892 | #define USB_DSTS_ENUMSPD_DEFAULT (_USB_DSTS_ENUMSPD_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 893 | #define USB_DSTS_ENUMSPD_LS (_USB_DSTS_ENUMSPD_LS << 1) /**< Shifted mode LS for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 894 | #define USB_DSTS_ENUMSPD_FS (_USB_DSTS_ENUMSPD_FS << 1) /**< Shifted mode FS for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 895 | #define USB_DSTS_ERRTICERR (0x1UL << 3) /**< Erratic Error */ |
Kojto | 98:8ab26030e058 | 896 | #define _USB_DSTS_ERRTICERR_SHIFT 3 /**< Shift value for USB_ERRTICERR */ |
Kojto | 98:8ab26030e058 | 897 | #define _USB_DSTS_ERRTICERR_MASK 0x8UL /**< Bit mask for USB_ERRTICERR */ |
Kojto | 98:8ab26030e058 | 898 | #define _USB_DSTS_ERRTICERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 899 | #define USB_DSTS_ERRTICERR_DEFAULT (_USB_DSTS_ERRTICERR_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 900 | #define _USB_DSTS_SOFFN_SHIFT 8 /**< Shift value for USB_SOFFN */ |
Kojto | 98:8ab26030e058 | 901 | #define _USB_DSTS_SOFFN_MASK 0x3FFF00UL /**< Bit mask for USB_SOFFN */ |
Kojto | 98:8ab26030e058 | 902 | #define _USB_DSTS_SOFFN_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 903 | #define USB_DSTS_SOFFN_DEFAULT (_USB_DSTS_SOFFN_DEFAULT << 8) /**< Shifted mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 904 | #define _USB_DSTS_DEVLNSTS_SHIFT 22 /**< Shift value for USB_DEVLNSTS */ |
Kojto | 98:8ab26030e058 | 905 | #define _USB_DSTS_DEVLNSTS_MASK 0xC00000UL /**< Bit mask for USB_DEVLNSTS */ |
Kojto | 98:8ab26030e058 | 906 | #define _USB_DSTS_DEVLNSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 907 | #define USB_DSTS_DEVLNSTS_DEFAULT (_USB_DSTS_DEVLNSTS_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_DSTS */ |
Kojto | 98:8ab26030e058 | 908 | |
Kojto | 98:8ab26030e058 | 909 | /* Bit fields for USB DIEPMSK */ |
Kojto | 98:8ab26030e058 | 910 | #define _USB_DIEPMSK_RESETVALUE 0x00000000UL /**< Default value for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 911 | #define _USB_DIEPMSK_MASK 0x0000215FUL /**< Mask for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 912 | #define USB_DIEPMSK_XFERCOMPLMSK (0x1UL << 0) /**< Transfer Completed Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 913 | #define _USB_DIEPMSK_XFERCOMPLMSK_SHIFT 0 /**< Shift value for USB_XFERCOMPLMSK */ |
Kojto | 98:8ab26030e058 | 914 | #define _USB_DIEPMSK_XFERCOMPLMSK_MASK 0x1UL /**< Bit mask for USB_XFERCOMPLMSK */ |
Kojto | 98:8ab26030e058 | 915 | #define _USB_DIEPMSK_XFERCOMPLMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 916 | #define USB_DIEPMSK_XFERCOMPLMSK_DEFAULT (_USB_DIEPMSK_XFERCOMPLMSK_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 917 | #define USB_DIEPMSK_EPDISBLDMSK (0x1UL << 1) /**< Endpoint Disabled Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 918 | #define _USB_DIEPMSK_EPDISBLDMSK_SHIFT 1 /**< Shift value for USB_EPDISBLDMSK */ |
Kojto | 98:8ab26030e058 | 919 | #define _USB_DIEPMSK_EPDISBLDMSK_MASK 0x2UL /**< Bit mask for USB_EPDISBLDMSK */ |
Kojto | 98:8ab26030e058 | 920 | #define _USB_DIEPMSK_EPDISBLDMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 921 | #define USB_DIEPMSK_EPDISBLDMSK_DEFAULT (_USB_DIEPMSK_EPDISBLDMSK_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 922 | #define USB_DIEPMSK_AHBERRMSK (0x1UL << 2) /**< AHB Error Mask */ |
Kojto | 98:8ab26030e058 | 923 | #define _USB_DIEPMSK_AHBERRMSK_SHIFT 2 /**< Shift value for USB_AHBERRMSK */ |
Kojto | 98:8ab26030e058 | 924 | #define _USB_DIEPMSK_AHBERRMSK_MASK 0x4UL /**< Bit mask for USB_AHBERRMSK */ |
Kojto | 98:8ab26030e058 | 925 | #define _USB_DIEPMSK_AHBERRMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 926 | #define USB_DIEPMSK_AHBERRMSK_DEFAULT (_USB_DIEPMSK_AHBERRMSK_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 927 | #define USB_DIEPMSK_TIMEOUTMSK (0x1UL << 3) /**< Timeout Condition Mask */ |
Kojto | 98:8ab26030e058 | 928 | #define _USB_DIEPMSK_TIMEOUTMSK_SHIFT 3 /**< Shift value for USB_TIMEOUTMSK */ |
Kojto | 98:8ab26030e058 | 929 | #define _USB_DIEPMSK_TIMEOUTMSK_MASK 0x8UL /**< Bit mask for USB_TIMEOUTMSK */ |
Kojto | 98:8ab26030e058 | 930 | #define _USB_DIEPMSK_TIMEOUTMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 931 | #define USB_DIEPMSK_TIMEOUTMSK_DEFAULT (_USB_DIEPMSK_TIMEOUTMSK_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 932 | #define USB_DIEPMSK_INTKNTXFEMPMSK (0x1UL << 4) /**< IN Token Received When TxFIFO Empty Mask */ |
Kojto | 98:8ab26030e058 | 933 | #define _USB_DIEPMSK_INTKNTXFEMPMSK_SHIFT 4 /**< Shift value for USB_INTKNTXFEMPMSK */ |
Kojto | 98:8ab26030e058 | 934 | #define _USB_DIEPMSK_INTKNTXFEMPMSK_MASK 0x10UL /**< Bit mask for USB_INTKNTXFEMPMSK */ |
Kojto | 98:8ab26030e058 | 935 | #define _USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 936 | #define USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT (_USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 937 | #define USB_DIEPMSK_INEPNAKEFFMSK (0x1UL << 6) /**< IN Endpoint NAK Effective Mask */ |
Kojto | 98:8ab26030e058 | 938 | #define _USB_DIEPMSK_INEPNAKEFFMSK_SHIFT 6 /**< Shift value for USB_INEPNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 939 | #define _USB_DIEPMSK_INEPNAKEFFMSK_MASK 0x40UL /**< Bit mask for USB_INEPNAKEFFMSK */ |
Kojto | 98:8ab26030e058 | 940 | #define _USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 941 | #define USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT (_USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 942 | #define USB_DIEPMSK_TXFIFOUNDRNMSK (0x1UL << 8) /**< Fifo Underrun Mask */ |
Kojto | 98:8ab26030e058 | 943 | #define _USB_DIEPMSK_TXFIFOUNDRNMSK_SHIFT 8 /**< Shift value for USB_TXFIFOUNDRNMSK */ |
Kojto | 98:8ab26030e058 | 944 | #define _USB_DIEPMSK_TXFIFOUNDRNMSK_MASK 0x100UL /**< Bit mask for USB_TXFIFOUNDRNMSK */ |
Kojto | 98:8ab26030e058 | 945 | #define _USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 946 | #define USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT (_USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT << 8) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 947 | #define USB_DIEPMSK_NAKMSK (0x1UL << 13) /**< NAK interrupt Mask */ |
Kojto | 98:8ab26030e058 | 948 | #define _USB_DIEPMSK_NAKMSK_SHIFT 13 /**< Shift value for USB_NAKMSK */ |
Kojto | 98:8ab26030e058 | 949 | #define _USB_DIEPMSK_NAKMSK_MASK 0x2000UL /**< Bit mask for USB_NAKMSK */ |
Kojto | 98:8ab26030e058 | 950 | #define _USB_DIEPMSK_NAKMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 951 | #define USB_DIEPMSK_NAKMSK_DEFAULT (_USB_DIEPMSK_NAKMSK_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DIEPMSK */ |
Kojto | 98:8ab26030e058 | 952 | |
Kojto | 98:8ab26030e058 | 953 | /* Bit fields for USB DOEPMSK */ |
Kojto | 98:8ab26030e058 | 954 | #define _USB_DOEPMSK_RESETVALUE 0x00000000UL /**< Default value for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 955 | #define _USB_DOEPMSK_MASK 0x0000317FUL /**< Mask for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 956 | #define USB_DOEPMSK_XFERCOMPLMSK (0x1UL << 0) /**< Transfer Completed Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 957 | #define _USB_DOEPMSK_XFERCOMPLMSK_SHIFT 0 /**< Shift value for USB_XFERCOMPLMSK */ |
Kojto | 98:8ab26030e058 | 958 | #define _USB_DOEPMSK_XFERCOMPLMSK_MASK 0x1UL /**< Bit mask for USB_XFERCOMPLMSK */ |
Kojto | 98:8ab26030e058 | 959 | #define _USB_DOEPMSK_XFERCOMPLMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 960 | #define USB_DOEPMSK_XFERCOMPLMSK_DEFAULT (_USB_DOEPMSK_XFERCOMPLMSK_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 961 | #define USB_DOEPMSK_EPDISBLDMSK (0x1UL << 1) /**< Endpoint Disabled Interrupt Mask */ |
Kojto | 98:8ab26030e058 | 962 | #define _USB_DOEPMSK_EPDISBLDMSK_SHIFT 1 /**< Shift value for USB_EPDISBLDMSK */ |
Kojto | 98:8ab26030e058 | 963 | #define _USB_DOEPMSK_EPDISBLDMSK_MASK 0x2UL /**< Bit mask for USB_EPDISBLDMSK */ |
Kojto | 98:8ab26030e058 | 964 | #define _USB_DOEPMSK_EPDISBLDMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 965 | #define USB_DOEPMSK_EPDISBLDMSK_DEFAULT (_USB_DOEPMSK_EPDISBLDMSK_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 966 | #define USB_DOEPMSK_AHBERRMSK (0x1UL << 2) /**< AHB Error */ |
Kojto | 98:8ab26030e058 | 967 | #define _USB_DOEPMSK_AHBERRMSK_SHIFT 2 /**< Shift value for USB_AHBERRMSK */ |
Kojto | 98:8ab26030e058 | 968 | #define _USB_DOEPMSK_AHBERRMSK_MASK 0x4UL /**< Bit mask for USB_AHBERRMSK */ |
Kojto | 98:8ab26030e058 | 969 | #define _USB_DOEPMSK_AHBERRMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 970 | #define USB_DOEPMSK_AHBERRMSK_DEFAULT (_USB_DOEPMSK_AHBERRMSK_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 971 | #define USB_DOEPMSK_SETUPMSK (0x1UL << 3) /**< SETUP Phase Done Mask */ |
Kojto | 98:8ab26030e058 | 972 | #define _USB_DOEPMSK_SETUPMSK_SHIFT 3 /**< Shift value for USB_SETUPMSK */ |
Kojto | 98:8ab26030e058 | 973 | #define _USB_DOEPMSK_SETUPMSK_MASK 0x8UL /**< Bit mask for USB_SETUPMSK */ |
Kojto | 98:8ab26030e058 | 974 | #define _USB_DOEPMSK_SETUPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 975 | #define USB_DOEPMSK_SETUPMSK_DEFAULT (_USB_DOEPMSK_SETUPMSK_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 976 | #define USB_DOEPMSK_OUTTKNEPDISMSK (0x1UL << 4) /**< OUT Token Received when Endpoint Disabled Mask */ |
Kojto | 98:8ab26030e058 | 977 | #define _USB_DOEPMSK_OUTTKNEPDISMSK_SHIFT 4 /**< Shift value for USB_OUTTKNEPDISMSK */ |
Kojto | 98:8ab26030e058 | 978 | #define _USB_DOEPMSK_OUTTKNEPDISMSK_MASK 0x10UL /**< Bit mask for USB_OUTTKNEPDISMSK */ |
Kojto | 98:8ab26030e058 | 979 | #define _USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 980 | #define USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT (_USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 981 | #define USB_DOEPMSK_STSPHSERCVDMSK (0x1UL << 5) /**< Status Phase Received Mask */ |
Kojto | 98:8ab26030e058 | 982 | #define _USB_DOEPMSK_STSPHSERCVDMSK_SHIFT 5 /**< Shift value for USB_STSPHSERCVDMSK */ |
Kojto | 98:8ab26030e058 | 983 | #define _USB_DOEPMSK_STSPHSERCVDMSK_MASK 0x20UL /**< Bit mask for USB_STSPHSERCVDMSK */ |
Kojto | 98:8ab26030e058 | 984 | #define _USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 985 | #define USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT (_USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 986 | #define USB_DOEPMSK_BACK2BACKSETUP (0x1UL << 6) /**< Back-to-Back SETUP Packets Received Mask */ |
Kojto | 98:8ab26030e058 | 987 | #define _USB_DOEPMSK_BACK2BACKSETUP_SHIFT 6 /**< Shift value for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 988 | #define _USB_DOEPMSK_BACK2BACKSETUP_MASK 0x40UL /**< Bit mask for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 989 | #define _USB_DOEPMSK_BACK2BACKSETUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 990 | #define USB_DOEPMSK_BACK2BACKSETUP_DEFAULT (_USB_DOEPMSK_BACK2BACKSETUP_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 991 | #define USB_DOEPMSK_OUTPKTERRMSK (0x1UL << 8) /**< OUT Packet Error Mask */ |
Kojto | 98:8ab26030e058 | 992 | #define _USB_DOEPMSK_OUTPKTERRMSK_SHIFT 8 /**< Shift value for USB_OUTPKTERRMSK */ |
Kojto | 98:8ab26030e058 | 993 | #define _USB_DOEPMSK_OUTPKTERRMSK_MASK 0x100UL /**< Bit mask for USB_OUTPKTERRMSK */ |
Kojto | 98:8ab26030e058 | 994 | #define _USB_DOEPMSK_OUTPKTERRMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 995 | #define USB_DOEPMSK_OUTPKTERRMSK_DEFAULT (_USB_DOEPMSK_OUTPKTERRMSK_DEFAULT << 8) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 996 | #define USB_DOEPMSK_BBLEERRMSK (0x1UL << 12) /**< Babble Error interrupt Mask */ |
Kojto | 98:8ab26030e058 | 997 | #define _USB_DOEPMSK_BBLEERRMSK_SHIFT 12 /**< Shift value for USB_BBLEERRMSK */ |
Kojto | 98:8ab26030e058 | 998 | #define _USB_DOEPMSK_BBLEERRMSK_MASK 0x1000UL /**< Bit mask for USB_BBLEERRMSK */ |
Kojto | 98:8ab26030e058 | 999 | #define _USB_DOEPMSK_BBLEERRMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 1000 | #define USB_DOEPMSK_BBLEERRMSK_DEFAULT (_USB_DOEPMSK_BBLEERRMSK_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 1001 | #define USB_DOEPMSK_NAKMSK (0x1UL << 13) /**< NAK interrupt Mask */ |
Kojto | 98:8ab26030e058 | 1002 | #define _USB_DOEPMSK_NAKMSK_SHIFT 13 /**< Shift value for USB_NAKMSK */ |
Kojto | 98:8ab26030e058 | 1003 | #define _USB_DOEPMSK_NAKMSK_MASK 0x2000UL /**< Bit mask for USB_NAKMSK */ |
Kojto | 98:8ab26030e058 | 1004 | #define _USB_DOEPMSK_NAKMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 1005 | #define USB_DOEPMSK_NAKMSK_DEFAULT (_USB_DOEPMSK_NAKMSK_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DOEPMSK */ |
Kojto | 98:8ab26030e058 | 1006 | |
Kojto | 98:8ab26030e058 | 1007 | /* Bit fields for USB DAINT */ |
Kojto | 98:8ab26030e058 | 1008 | #define _USB_DAINT_RESETVALUE 0x00000000UL /**< Default value for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1009 | #define _USB_DAINT_MASK 0x000F000FUL /**< Mask for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1010 | #define USB_DAINT_INEPINT0 (0x1UL << 0) /**< IN Endpoint 0 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1011 | #define _USB_DAINT_INEPINT0_SHIFT 0 /**< Shift value for USB_INEPINT0 */ |
Kojto | 98:8ab26030e058 | 1012 | #define _USB_DAINT_INEPINT0_MASK 0x1UL /**< Bit mask for USB_INEPINT0 */ |
Kojto | 98:8ab26030e058 | 1013 | #define _USB_DAINT_INEPINT0_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1014 | #define USB_DAINT_INEPINT0_DEFAULT (_USB_DAINT_INEPINT0_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1015 | #define USB_DAINT_INEPINT1 (0x1UL << 1) /**< IN Endpoint 1 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1016 | #define _USB_DAINT_INEPINT1_SHIFT 1 /**< Shift value for USB_INEPINT1 */ |
Kojto | 98:8ab26030e058 | 1017 | #define _USB_DAINT_INEPINT1_MASK 0x2UL /**< Bit mask for USB_INEPINT1 */ |
Kojto | 98:8ab26030e058 | 1018 | #define _USB_DAINT_INEPINT1_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1019 | #define USB_DAINT_INEPINT1_DEFAULT (_USB_DAINT_INEPINT1_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1020 | #define USB_DAINT_INEPINT2 (0x1UL << 2) /**< IN Endpoint 2 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1021 | #define _USB_DAINT_INEPINT2_SHIFT 2 /**< Shift value for USB_INEPINT2 */ |
Kojto | 98:8ab26030e058 | 1022 | #define _USB_DAINT_INEPINT2_MASK 0x4UL /**< Bit mask for USB_INEPINT2 */ |
Kojto | 98:8ab26030e058 | 1023 | #define _USB_DAINT_INEPINT2_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1024 | #define USB_DAINT_INEPINT2_DEFAULT (_USB_DAINT_INEPINT2_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1025 | #define USB_DAINT_INEPINT3 (0x1UL << 3) /**< IN Endpoint 3 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1026 | #define _USB_DAINT_INEPINT3_SHIFT 3 /**< Shift value for USB_INEPINT3 */ |
Kojto | 98:8ab26030e058 | 1027 | #define _USB_DAINT_INEPINT3_MASK 0x8UL /**< Bit mask for USB_INEPINT3 */ |
Kojto | 98:8ab26030e058 | 1028 | #define _USB_DAINT_INEPINT3_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1029 | #define USB_DAINT_INEPINT3_DEFAULT (_USB_DAINT_INEPINT3_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1030 | #define USB_DAINT_OUTEPINT0 (0x1UL << 16) /**< OUT Endpoint 0 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1031 | #define _USB_DAINT_OUTEPINT0_SHIFT 16 /**< Shift value for USB_OUTEPINT0 */ |
Kojto | 98:8ab26030e058 | 1032 | #define _USB_DAINT_OUTEPINT0_MASK 0x10000UL /**< Bit mask for USB_OUTEPINT0 */ |
Kojto | 98:8ab26030e058 | 1033 | #define _USB_DAINT_OUTEPINT0_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1034 | #define USB_DAINT_OUTEPINT0_DEFAULT (_USB_DAINT_OUTEPINT0_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1035 | #define USB_DAINT_OUTEPINT1 (0x1UL << 17) /**< OUT Endpoint 1 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1036 | #define _USB_DAINT_OUTEPINT1_SHIFT 17 /**< Shift value for USB_OUTEPINT1 */ |
Kojto | 98:8ab26030e058 | 1037 | #define _USB_DAINT_OUTEPINT1_MASK 0x20000UL /**< Bit mask for USB_OUTEPINT1 */ |
Kojto | 98:8ab26030e058 | 1038 | #define _USB_DAINT_OUTEPINT1_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1039 | #define USB_DAINT_OUTEPINT1_DEFAULT (_USB_DAINT_OUTEPINT1_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1040 | #define USB_DAINT_OUTEPINT2 (0x1UL << 18) /**< OUT Endpoint 2 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1041 | #define _USB_DAINT_OUTEPINT2_SHIFT 18 /**< Shift value for USB_OUTEPINT2 */ |
Kojto | 98:8ab26030e058 | 1042 | #define _USB_DAINT_OUTEPINT2_MASK 0x40000UL /**< Bit mask for USB_OUTEPINT2 */ |
Kojto | 98:8ab26030e058 | 1043 | #define _USB_DAINT_OUTEPINT2_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1044 | #define USB_DAINT_OUTEPINT2_DEFAULT (_USB_DAINT_OUTEPINT2_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1045 | #define USB_DAINT_OUTEPINT3 (0x1UL << 19) /**< OUT Endpoint 3 Interrupt Bit */ |
Kojto | 98:8ab26030e058 | 1046 | #define _USB_DAINT_OUTEPINT3_SHIFT 19 /**< Shift value for USB_OUTEPINT3 */ |
Kojto | 98:8ab26030e058 | 1047 | #define _USB_DAINT_OUTEPINT3_MASK 0x80000UL /**< Bit mask for USB_OUTEPINT3 */ |
Kojto | 98:8ab26030e058 | 1048 | #define _USB_DAINT_OUTEPINT3_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1049 | #define USB_DAINT_OUTEPINT3_DEFAULT (_USB_DAINT_OUTEPINT3_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DAINT */ |
Kojto | 98:8ab26030e058 | 1050 | |
Kojto | 98:8ab26030e058 | 1051 | /* Bit fields for USB DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1052 | #define _USB_DAINTMSK_RESETVALUE 0x00000000UL /**< Default value for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1053 | #define _USB_DAINTMSK_MASK 0x000F000FUL /**< Mask for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1054 | #define USB_DAINTMSK_INEPMSK0 (0x1UL << 0) /**< IN Endpoint 0 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1055 | #define _USB_DAINTMSK_INEPMSK0_SHIFT 0 /**< Shift value for USB_INEPMSK0 */ |
Kojto | 98:8ab26030e058 | 1056 | #define _USB_DAINTMSK_INEPMSK0_MASK 0x1UL /**< Bit mask for USB_INEPMSK0 */ |
Kojto | 98:8ab26030e058 | 1057 | #define _USB_DAINTMSK_INEPMSK0_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1058 | #define USB_DAINTMSK_INEPMSK0_DEFAULT (_USB_DAINTMSK_INEPMSK0_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1059 | #define USB_DAINTMSK_INEPMSK1 (0x1UL << 1) /**< IN Endpoint 1 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1060 | #define _USB_DAINTMSK_INEPMSK1_SHIFT 1 /**< Shift value for USB_INEPMSK1 */ |
Kojto | 98:8ab26030e058 | 1061 | #define _USB_DAINTMSK_INEPMSK1_MASK 0x2UL /**< Bit mask for USB_INEPMSK1 */ |
Kojto | 98:8ab26030e058 | 1062 | #define _USB_DAINTMSK_INEPMSK1_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1063 | #define USB_DAINTMSK_INEPMSK1_DEFAULT (_USB_DAINTMSK_INEPMSK1_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1064 | #define USB_DAINTMSK_INEPMSK2 (0x1UL << 2) /**< IN Endpoint 2 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1065 | #define _USB_DAINTMSK_INEPMSK2_SHIFT 2 /**< Shift value for USB_INEPMSK2 */ |
Kojto | 98:8ab26030e058 | 1066 | #define _USB_DAINTMSK_INEPMSK2_MASK 0x4UL /**< Bit mask for USB_INEPMSK2 */ |
Kojto | 98:8ab26030e058 | 1067 | #define _USB_DAINTMSK_INEPMSK2_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1068 | #define USB_DAINTMSK_INEPMSK2_DEFAULT (_USB_DAINTMSK_INEPMSK2_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1069 | #define USB_DAINTMSK_INEPMSK3 (0x1UL << 3) /**< IN Endpoint 3 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1070 | #define _USB_DAINTMSK_INEPMSK3_SHIFT 3 /**< Shift value for USB_INEPMSK3 */ |
Kojto | 98:8ab26030e058 | 1071 | #define _USB_DAINTMSK_INEPMSK3_MASK 0x8UL /**< Bit mask for USB_INEPMSK3 */ |
Kojto | 98:8ab26030e058 | 1072 | #define _USB_DAINTMSK_INEPMSK3_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1073 | #define USB_DAINTMSK_INEPMSK3_DEFAULT (_USB_DAINTMSK_INEPMSK3_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1074 | #define USB_DAINTMSK_OUTEPMSK0 (0x1UL << 16) /**< OUT Endpoint 0 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1075 | #define _USB_DAINTMSK_OUTEPMSK0_SHIFT 16 /**< Shift value for USB_OUTEPMSK0 */ |
Kojto | 98:8ab26030e058 | 1076 | #define _USB_DAINTMSK_OUTEPMSK0_MASK 0x10000UL /**< Bit mask for USB_OUTEPMSK0 */ |
Kojto | 98:8ab26030e058 | 1077 | #define _USB_DAINTMSK_OUTEPMSK0_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1078 | #define USB_DAINTMSK_OUTEPMSK0_DEFAULT (_USB_DAINTMSK_OUTEPMSK0_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1079 | #define USB_DAINTMSK_OUTEPMSK1 (0x1UL << 17) /**< OUT Endpoint 1 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1080 | #define _USB_DAINTMSK_OUTEPMSK1_SHIFT 17 /**< Shift value for USB_OUTEPMSK1 */ |
Kojto | 98:8ab26030e058 | 1081 | #define _USB_DAINTMSK_OUTEPMSK1_MASK 0x20000UL /**< Bit mask for USB_OUTEPMSK1 */ |
Kojto | 98:8ab26030e058 | 1082 | #define _USB_DAINTMSK_OUTEPMSK1_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1083 | #define USB_DAINTMSK_OUTEPMSK1_DEFAULT (_USB_DAINTMSK_OUTEPMSK1_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1084 | #define USB_DAINTMSK_OUTEPMSK2 (0x1UL << 18) /**< OUT Endpoint 2 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1085 | #define _USB_DAINTMSK_OUTEPMSK2_SHIFT 18 /**< Shift value for USB_OUTEPMSK2 */ |
Kojto | 98:8ab26030e058 | 1086 | #define _USB_DAINTMSK_OUTEPMSK2_MASK 0x40000UL /**< Bit mask for USB_OUTEPMSK2 */ |
Kojto | 98:8ab26030e058 | 1087 | #define _USB_DAINTMSK_OUTEPMSK2_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1088 | #define USB_DAINTMSK_OUTEPMSK2_DEFAULT (_USB_DAINTMSK_OUTEPMSK2_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1089 | #define USB_DAINTMSK_OUTEPMSK3 (0x1UL << 19) /**< OUT Endpoint 3 Interrupt mask Bit */ |
Kojto | 98:8ab26030e058 | 1090 | #define _USB_DAINTMSK_OUTEPMSK3_SHIFT 19 /**< Shift value for USB_OUTEPMSK3 */ |
Kojto | 98:8ab26030e058 | 1091 | #define _USB_DAINTMSK_OUTEPMSK3_MASK 0x80000UL /**< Bit mask for USB_OUTEPMSK3 */ |
Kojto | 98:8ab26030e058 | 1092 | #define _USB_DAINTMSK_OUTEPMSK3_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1093 | #define USB_DAINTMSK_OUTEPMSK3_DEFAULT (_USB_DAINTMSK_OUTEPMSK3_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DAINTMSK */ |
Kojto | 98:8ab26030e058 | 1094 | |
Kojto | 98:8ab26030e058 | 1095 | /* Bit fields for USB DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1096 | #define _USB_DIEPEMPMSK_RESETVALUE 0x00000000UL /**< Default value for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1097 | #define _USB_DIEPEMPMSK_MASK 0x0000FFFFUL /**< Mask for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1098 | #define _USB_DIEPEMPMSK_DIEPEMPMSK_SHIFT 0 /**< Shift value for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1099 | #define _USB_DIEPEMPMSK_DIEPEMPMSK_MASK 0xFFFFUL /**< Bit mask for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1100 | #define _USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1101 | #define USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT (_USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEPEMPMSK */ |
Kojto | 98:8ab26030e058 | 1102 | |
Kojto | 98:8ab26030e058 | 1103 | /* Bit fields for USB DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1104 | #define _USB_DIEP0CTL_RESETVALUE 0x00008000UL /**< Default value for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1105 | #define _USB_DIEP0CTL_MASK 0xCFEE8003UL /**< Mask for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1106 | #define _USB_DIEP0CTL_MPS_SHIFT 0 /**< Shift value for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1107 | #define _USB_DIEP0CTL_MPS_MASK 0x3UL /**< Bit mask for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1108 | #define _USB_DIEP0CTL_MPS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1109 | #define _USB_DIEP0CTL_MPS_64B 0x00000000UL /**< Mode 64B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1110 | #define _USB_DIEP0CTL_MPS_32B 0x00000001UL /**< Mode 32B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1111 | #define _USB_DIEP0CTL_MPS_16B 0x00000002UL /**< Mode 16B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1112 | #define _USB_DIEP0CTL_MPS_8B 0x00000003UL /**< Mode 8B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1113 | #define USB_DIEP0CTL_MPS_DEFAULT (_USB_DIEP0CTL_MPS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1114 | #define USB_DIEP0CTL_MPS_64B (_USB_DIEP0CTL_MPS_64B << 0) /**< Shifted mode 64B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1115 | #define USB_DIEP0CTL_MPS_32B (_USB_DIEP0CTL_MPS_32B << 0) /**< Shifted mode 32B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1116 | #define USB_DIEP0CTL_MPS_16B (_USB_DIEP0CTL_MPS_16B << 0) /**< Shifted mode 16B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1117 | #define USB_DIEP0CTL_MPS_8B (_USB_DIEP0CTL_MPS_8B << 0) /**< Shifted mode 8B for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1118 | #define USB_DIEP0CTL_USBACTEP (0x1UL << 15) /**< USB Active Endpoint */ |
Kojto | 98:8ab26030e058 | 1119 | #define _USB_DIEP0CTL_USBACTEP_SHIFT 15 /**< Shift value for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1120 | #define _USB_DIEP0CTL_USBACTEP_MASK 0x8000UL /**< Bit mask for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1121 | #define _USB_DIEP0CTL_USBACTEP_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1122 | #define USB_DIEP0CTL_USBACTEP_DEFAULT (_USB_DIEP0CTL_USBACTEP_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1123 | #define USB_DIEP0CTL_NAKSTS (0x1UL << 17) /**< NAK Status */ |
Kojto | 98:8ab26030e058 | 1124 | #define _USB_DIEP0CTL_NAKSTS_SHIFT 17 /**< Shift value for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1125 | #define _USB_DIEP0CTL_NAKSTS_MASK 0x20000UL /**< Bit mask for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1126 | #define _USB_DIEP0CTL_NAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1127 | #define USB_DIEP0CTL_NAKSTS_DEFAULT (_USB_DIEP0CTL_NAKSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1128 | #define _USB_DIEP0CTL_EPTYPE_SHIFT 18 /**< Shift value for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1129 | #define _USB_DIEP0CTL_EPTYPE_MASK 0xC0000UL /**< Bit mask for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1130 | #define _USB_DIEP0CTL_EPTYPE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1131 | #define USB_DIEP0CTL_EPTYPE_DEFAULT (_USB_DIEP0CTL_EPTYPE_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1132 | #define USB_DIEP0CTL_STALL (0x1UL << 21) /**< Handshake */ |
Kojto | 98:8ab26030e058 | 1133 | #define _USB_DIEP0CTL_STALL_SHIFT 21 /**< Shift value for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1134 | #define _USB_DIEP0CTL_STALL_MASK 0x200000UL /**< Bit mask for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1135 | #define _USB_DIEP0CTL_STALL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1136 | #define USB_DIEP0CTL_STALL_DEFAULT (_USB_DIEP0CTL_STALL_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1137 | #define _USB_DIEP0CTL_TXFNUM_SHIFT 22 /**< Shift value for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 1138 | #define _USB_DIEP0CTL_TXFNUM_MASK 0x3C00000UL /**< Bit mask for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 1139 | #define _USB_DIEP0CTL_TXFNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1140 | #define USB_DIEP0CTL_TXFNUM_DEFAULT (_USB_DIEP0CTL_TXFNUM_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1141 | #define USB_DIEP0CTL_CNAK (0x1UL << 26) /**< Clear NAK */ |
Kojto | 98:8ab26030e058 | 1142 | #define _USB_DIEP0CTL_CNAK_SHIFT 26 /**< Shift value for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1143 | #define _USB_DIEP0CTL_CNAK_MASK 0x4000000UL /**< Bit mask for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1144 | #define _USB_DIEP0CTL_CNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1145 | #define USB_DIEP0CTL_CNAK_DEFAULT (_USB_DIEP0CTL_CNAK_DEFAULT << 26) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1146 | #define USB_DIEP0CTL_SNAK (0x1UL << 27) /**< Set NAK */ |
Kojto | 98:8ab26030e058 | 1147 | #define _USB_DIEP0CTL_SNAK_SHIFT 27 /**< Shift value for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1148 | #define _USB_DIEP0CTL_SNAK_MASK 0x8000000UL /**< Bit mask for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1149 | #define _USB_DIEP0CTL_SNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1150 | #define USB_DIEP0CTL_SNAK_DEFAULT (_USB_DIEP0CTL_SNAK_DEFAULT << 27) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1151 | #define USB_DIEP0CTL_EPDIS (0x1UL << 30) /**< Endpoint Disable */ |
Kojto | 98:8ab26030e058 | 1152 | #define _USB_DIEP0CTL_EPDIS_SHIFT 30 /**< Shift value for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1153 | #define _USB_DIEP0CTL_EPDIS_MASK 0x40000000UL /**< Bit mask for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1154 | #define _USB_DIEP0CTL_EPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1155 | #define USB_DIEP0CTL_EPDIS_DEFAULT (_USB_DIEP0CTL_EPDIS_DEFAULT << 30) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1156 | #define USB_DIEP0CTL_EPENA (0x1UL << 31) /**< Endpoint Enable */ |
Kojto | 98:8ab26030e058 | 1157 | #define _USB_DIEP0CTL_EPENA_SHIFT 31 /**< Shift value for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1158 | #define _USB_DIEP0CTL_EPENA_MASK 0x80000000UL /**< Bit mask for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1159 | #define _USB_DIEP0CTL_EPENA_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1160 | #define USB_DIEP0CTL_EPENA_DEFAULT (_USB_DIEP0CTL_EPENA_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_DIEP0CTL */ |
Kojto | 98:8ab26030e058 | 1161 | |
Kojto | 98:8ab26030e058 | 1162 | /* Bit fields for USB DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1163 | #define _USB_DIEP0INT_RESETVALUE 0x00000080UL /**< Default value for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1164 | #define _USB_DIEP0INT_MASK 0x000038DFUL /**< Mask for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1165 | #define USB_DIEP0INT_XFERCOMPL (0x1UL << 0) /**< Transfer Completed Interrupt */ |
Kojto | 98:8ab26030e058 | 1166 | #define _USB_DIEP0INT_XFERCOMPL_SHIFT 0 /**< Shift value for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1167 | #define _USB_DIEP0INT_XFERCOMPL_MASK 0x1UL /**< Bit mask for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1168 | #define _USB_DIEP0INT_XFERCOMPL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1169 | #define USB_DIEP0INT_XFERCOMPL_DEFAULT (_USB_DIEP0INT_XFERCOMPL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1170 | #define USB_DIEP0INT_EPDISBLD (0x1UL << 1) /**< Endpoint Disabled Interrupt */ |
Kojto | 98:8ab26030e058 | 1171 | #define _USB_DIEP0INT_EPDISBLD_SHIFT 1 /**< Shift value for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1172 | #define _USB_DIEP0INT_EPDISBLD_MASK 0x2UL /**< Bit mask for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1173 | #define _USB_DIEP0INT_EPDISBLD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1174 | #define USB_DIEP0INT_EPDISBLD_DEFAULT (_USB_DIEP0INT_EPDISBLD_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1175 | #define USB_DIEP0INT_AHBERR (0x1UL << 2) /**< AHB Error */ |
Kojto | 98:8ab26030e058 | 1176 | #define _USB_DIEP0INT_AHBERR_SHIFT 2 /**< Shift value for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1177 | #define _USB_DIEP0INT_AHBERR_MASK 0x4UL /**< Bit mask for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1178 | #define _USB_DIEP0INT_AHBERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1179 | #define USB_DIEP0INT_AHBERR_DEFAULT (_USB_DIEP0INT_AHBERR_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1180 | #define USB_DIEP0INT_TIMEOUT (0x1UL << 3) /**< Timeout Condition */ |
Kojto | 98:8ab26030e058 | 1181 | #define _USB_DIEP0INT_TIMEOUT_SHIFT 3 /**< Shift value for USB_TIMEOUT */ |
Kojto | 98:8ab26030e058 | 1182 | #define _USB_DIEP0INT_TIMEOUT_MASK 0x8UL /**< Bit mask for USB_TIMEOUT */ |
Kojto | 98:8ab26030e058 | 1183 | #define _USB_DIEP0INT_TIMEOUT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1184 | #define USB_DIEP0INT_TIMEOUT_DEFAULT (_USB_DIEP0INT_TIMEOUT_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1185 | #define USB_DIEP0INT_INTKNTXFEMP (0x1UL << 4) /**< IN Token Received When TxFIFO is Empty */ |
Kojto | 98:8ab26030e058 | 1186 | #define _USB_DIEP0INT_INTKNTXFEMP_SHIFT 4 /**< Shift value for USB_INTKNTXFEMP */ |
Kojto | 98:8ab26030e058 | 1187 | #define _USB_DIEP0INT_INTKNTXFEMP_MASK 0x10UL /**< Bit mask for USB_INTKNTXFEMP */ |
Kojto | 98:8ab26030e058 | 1188 | #define _USB_DIEP0INT_INTKNTXFEMP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1189 | #define USB_DIEP0INT_INTKNTXFEMP_DEFAULT (_USB_DIEP0INT_INTKNTXFEMP_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1190 | #define USB_DIEP0INT_INEPNAKEFF (0x1UL << 6) /**< IN Endpoint NAK Effective */ |
Kojto | 98:8ab26030e058 | 1191 | #define _USB_DIEP0INT_INEPNAKEFF_SHIFT 6 /**< Shift value for USB_INEPNAKEFF */ |
Kojto | 98:8ab26030e058 | 1192 | #define _USB_DIEP0INT_INEPNAKEFF_MASK 0x40UL /**< Bit mask for USB_INEPNAKEFF */ |
Kojto | 98:8ab26030e058 | 1193 | #define _USB_DIEP0INT_INEPNAKEFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1194 | #define USB_DIEP0INT_INEPNAKEFF_DEFAULT (_USB_DIEP0INT_INEPNAKEFF_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1195 | #define USB_DIEP0INT_TXFEMP (0x1UL << 7) /**< Transmit FIFO Empty */ |
Kojto | 98:8ab26030e058 | 1196 | #define _USB_DIEP0INT_TXFEMP_SHIFT 7 /**< Shift value for USB_TXFEMP */ |
Kojto | 98:8ab26030e058 | 1197 | #define _USB_DIEP0INT_TXFEMP_MASK 0x80UL /**< Bit mask for USB_TXFEMP */ |
Kojto | 98:8ab26030e058 | 1198 | #define _USB_DIEP0INT_TXFEMP_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1199 | #define USB_DIEP0INT_TXFEMP_DEFAULT (_USB_DIEP0INT_TXFEMP_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1200 | #define USB_DIEP0INT_PKTDRPSTS (0x1UL << 11) /**< Packet Drop Status */ |
Kojto | 98:8ab26030e058 | 1201 | #define _USB_DIEP0INT_PKTDRPSTS_SHIFT 11 /**< Shift value for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1202 | #define _USB_DIEP0INT_PKTDRPSTS_MASK 0x800UL /**< Bit mask for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1203 | #define _USB_DIEP0INT_PKTDRPSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1204 | #define USB_DIEP0INT_PKTDRPSTS_DEFAULT (_USB_DIEP0INT_PKTDRPSTS_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1205 | #define USB_DIEP0INT_BBLEERR (0x1UL << 12) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1206 | #define _USB_DIEP0INT_BBLEERR_SHIFT 12 /**< Shift value for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1207 | #define _USB_DIEP0INT_BBLEERR_MASK 0x1000UL /**< Bit mask for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1208 | #define _USB_DIEP0INT_BBLEERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1209 | #define USB_DIEP0INT_BBLEERR_DEFAULT (_USB_DIEP0INT_BBLEERR_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1210 | #define USB_DIEP0INT_NAKINTRPT (0x1UL << 13) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1211 | #define _USB_DIEP0INT_NAKINTRPT_SHIFT 13 /**< Shift value for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1212 | #define _USB_DIEP0INT_NAKINTRPT_MASK 0x2000UL /**< Bit mask for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1213 | #define _USB_DIEP0INT_NAKINTRPT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1214 | #define USB_DIEP0INT_NAKINTRPT_DEFAULT (_USB_DIEP0INT_NAKINTRPT_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DIEP0INT */ |
Kojto | 98:8ab26030e058 | 1215 | |
Kojto | 98:8ab26030e058 | 1216 | /* Bit fields for USB DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1217 | #define _USB_DIEP0TSIZ_RESETVALUE 0x00000000UL /**< Default value for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1218 | #define _USB_DIEP0TSIZ_MASK 0x0018007FUL /**< Mask for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1219 | #define _USB_DIEP0TSIZ_XFERSIZE_SHIFT 0 /**< Shift value for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1220 | #define _USB_DIEP0TSIZ_XFERSIZE_MASK 0x7FUL /**< Bit mask for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1221 | #define _USB_DIEP0TSIZ_XFERSIZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1222 | #define USB_DIEP0TSIZ_XFERSIZE_DEFAULT (_USB_DIEP0TSIZ_XFERSIZE_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1223 | #define _USB_DIEP0TSIZ_PKTCNT_SHIFT 19 /**< Shift value for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1224 | #define _USB_DIEP0TSIZ_PKTCNT_MASK 0x180000UL /**< Bit mask for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1225 | #define _USB_DIEP0TSIZ_PKTCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1226 | #define USB_DIEP0TSIZ_PKTCNT_DEFAULT (_USB_DIEP0TSIZ_PKTCNT_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DIEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1227 | |
Kojto | 98:8ab26030e058 | 1228 | /* Bit fields for USB DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1229 | #define _USB_DIEP0DMAADDR_RESETVALUE 0x00000000UL /**< Default value for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1230 | #define _USB_DIEP0DMAADDR_MASK 0xFFFFFFFFUL /**< Mask for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1231 | #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_SHIFT 0 /**< Shift value for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1232 | #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_MASK 0xFFFFFFFFUL /**< Bit mask for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1233 | #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1234 | #define USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT (_USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1235 | |
Kojto | 98:8ab26030e058 | 1236 | /* Bit fields for USB DIEP0TXFSTS */ |
Kojto | 98:8ab26030e058 | 1237 | #define _USB_DIEP0TXFSTS_RESETVALUE 0x00000200UL /**< Default value for USB_DIEP0TXFSTS */ |
Kojto | 98:8ab26030e058 | 1238 | #define _USB_DIEP0TXFSTS_MASK 0x0000FFFFUL /**< Mask for USB_DIEP0TXFSTS */ |
Kojto | 98:8ab26030e058 | 1239 | #define _USB_DIEP0TXFSTS_SPCAVAIL_SHIFT 0 /**< Shift value for USB_SPCAVAIL */ |
Kojto | 98:8ab26030e058 | 1240 | #define _USB_DIEP0TXFSTS_SPCAVAIL_MASK 0xFFFFUL /**< Bit mask for USB_SPCAVAIL */ |
Kojto | 98:8ab26030e058 | 1241 | #define _USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_DIEP0TXFSTS */ |
Kojto | 98:8ab26030e058 | 1242 | #define USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT (_USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP0TXFSTS */ |
Kojto | 98:8ab26030e058 | 1243 | |
Kojto | 98:8ab26030e058 | 1244 | /* Bit fields for USB DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1245 | #define _USB_DIEP_CTL_RESETVALUE 0x00000000UL /**< Default value for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1246 | #define _USB_DIEP_CTL_MASK 0xFFEF87FFUL /**< Mask for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1247 | #define _USB_DIEP_CTL_MPS_SHIFT 0 /**< Shift value for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1248 | #define _USB_DIEP_CTL_MPS_MASK 0x7FFUL /**< Bit mask for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1249 | #define _USB_DIEP_CTL_MPS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1250 | #define USB_DIEP_CTL_MPS_DEFAULT (_USB_DIEP_CTL_MPS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1251 | #define USB_DIEP_CTL_USBACTEP (0x1UL << 15) /**< USB Active Endpoint */ |
Kojto | 98:8ab26030e058 | 1252 | #define _USB_DIEP_CTL_USBACTEP_SHIFT 15 /**< Shift value for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1253 | #define _USB_DIEP_CTL_USBACTEP_MASK 0x8000UL /**< Bit mask for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1254 | #define _USB_DIEP_CTL_USBACTEP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1255 | #define USB_DIEP_CTL_USBACTEP_DEFAULT (_USB_DIEP_CTL_USBACTEP_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1256 | #define USB_DIEP_CTL_DPIDEOF (0x1UL << 16) /**< Endpoint Data PID / Even or Odd Frame */ |
Kojto | 98:8ab26030e058 | 1257 | #define _USB_DIEP_CTL_DPIDEOF_SHIFT 16 /**< Shift value for USB_DPIDEOF */ |
Kojto | 98:8ab26030e058 | 1258 | #define _USB_DIEP_CTL_DPIDEOF_MASK 0x10000UL /**< Bit mask for USB_DPIDEOF */ |
Kojto | 98:8ab26030e058 | 1259 | #define _USB_DIEP_CTL_DPIDEOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1260 | #define _USB_DIEP_CTL_DPIDEOF_DATA0EVEN 0x00000000UL /**< Mode DATA0EVEN for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1261 | #define _USB_DIEP_CTL_DPIDEOF_DATA1ODD 0x00000001UL /**< Mode DATA1ODD for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1262 | #define USB_DIEP_CTL_DPIDEOF_DEFAULT (_USB_DIEP_CTL_DPIDEOF_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1263 | #define USB_DIEP_CTL_DPIDEOF_DATA0EVEN (_USB_DIEP_CTL_DPIDEOF_DATA0EVEN << 16) /**< Shifted mode DATA0EVEN for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1264 | #define USB_DIEP_CTL_DPIDEOF_DATA1ODD (_USB_DIEP_CTL_DPIDEOF_DATA1ODD << 16) /**< Shifted mode DATA1ODD for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1265 | #define USB_DIEP_CTL_NAKSTS (0x1UL << 17) /**< NAK Status */ |
Kojto | 98:8ab26030e058 | 1266 | #define _USB_DIEP_CTL_NAKSTS_SHIFT 17 /**< Shift value for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1267 | #define _USB_DIEP_CTL_NAKSTS_MASK 0x20000UL /**< Bit mask for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1268 | #define _USB_DIEP_CTL_NAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1269 | #define USB_DIEP_CTL_NAKSTS_DEFAULT (_USB_DIEP_CTL_NAKSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1270 | #define _USB_DIEP_CTL_EPTYPE_SHIFT 18 /**< Shift value for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1271 | #define _USB_DIEP_CTL_EPTYPE_MASK 0xC0000UL /**< Bit mask for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1272 | #define _USB_DIEP_CTL_EPTYPE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1273 | #define _USB_DIEP_CTL_EPTYPE_CONTROL 0x00000000UL /**< Mode CONTROL for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1274 | #define _USB_DIEP_CTL_EPTYPE_ISO 0x00000001UL /**< Mode ISO for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1275 | #define _USB_DIEP_CTL_EPTYPE_BULK 0x00000002UL /**< Mode BULK for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1276 | #define _USB_DIEP_CTL_EPTYPE_INT 0x00000003UL /**< Mode INT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1277 | #define USB_DIEP_CTL_EPTYPE_DEFAULT (_USB_DIEP_CTL_EPTYPE_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1278 | #define USB_DIEP_CTL_EPTYPE_CONTROL (_USB_DIEP_CTL_EPTYPE_CONTROL << 18) /**< Shifted mode CONTROL for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1279 | #define USB_DIEP_CTL_EPTYPE_ISO (_USB_DIEP_CTL_EPTYPE_ISO << 18) /**< Shifted mode ISO for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1280 | #define USB_DIEP_CTL_EPTYPE_BULK (_USB_DIEP_CTL_EPTYPE_BULK << 18) /**< Shifted mode BULK for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1281 | #define USB_DIEP_CTL_EPTYPE_INT (_USB_DIEP_CTL_EPTYPE_INT << 18) /**< Shifted mode INT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1282 | #define USB_DIEP_CTL_STALL (0x1UL << 21) /**< Handshake */ |
Kojto | 98:8ab26030e058 | 1283 | #define _USB_DIEP_CTL_STALL_SHIFT 21 /**< Shift value for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1284 | #define _USB_DIEP_CTL_STALL_MASK 0x200000UL /**< Bit mask for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1285 | #define _USB_DIEP_CTL_STALL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1286 | #define USB_DIEP_CTL_STALL_DEFAULT (_USB_DIEP_CTL_STALL_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1287 | #define _USB_DIEP_CTL_TXFNUM_SHIFT 22 /**< Shift value for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 1288 | #define _USB_DIEP_CTL_TXFNUM_MASK 0x3C00000UL /**< Bit mask for USB_TXFNUM */ |
Kojto | 98:8ab26030e058 | 1289 | #define _USB_DIEP_CTL_TXFNUM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1290 | #define USB_DIEP_CTL_TXFNUM_DEFAULT (_USB_DIEP_CTL_TXFNUM_DEFAULT << 22) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1291 | #define USB_DIEP_CTL_CNAK (0x1UL << 26) /**< Clear NAK */ |
Kojto | 98:8ab26030e058 | 1292 | #define _USB_DIEP_CTL_CNAK_SHIFT 26 /**< Shift value for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1293 | #define _USB_DIEP_CTL_CNAK_MASK 0x4000000UL /**< Bit mask for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1294 | #define _USB_DIEP_CTL_CNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1295 | #define USB_DIEP_CTL_CNAK_DEFAULT (_USB_DIEP_CTL_CNAK_DEFAULT << 26) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1296 | #define USB_DIEP_CTL_SNAK (0x1UL << 27) /**< Set NAK */ |
Kojto | 98:8ab26030e058 | 1297 | #define _USB_DIEP_CTL_SNAK_SHIFT 27 /**< Shift value for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1298 | #define _USB_DIEP_CTL_SNAK_MASK 0x8000000UL /**< Bit mask for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1299 | #define _USB_DIEP_CTL_SNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1300 | #define USB_DIEP_CTL_SNAK_DEFAULT (_USB_DIEP_CTL_SNAK_DEFAULT << 27) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1301 | #define USB_DIEP_CTL_SETD0PIDEF (0x1UL << 28) /**< Set DATA0 PID / Even Frame */ |
Kojto | 98:8ab26030e058 | 1302 | #define _USB_DIEP_CTL_SETD0PIDEF_SHIFT 28 /**< Shift value for USB_SETD0PIDEF */ |
Kojto | 98:8ab26030e058 | 1303 | #define _USB_DIEP_CTL_SETD0PIDEF_MASK 0x10000000UL /**< Bit mask for USB_SETD0PIDEF */ |
Kojto | 98:8ab26030e058 | 1304 | #define _USB_DIEP_CTL_SETD0PIDEF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1305 | #define USB_DIEP_CTL_SETD0PIDEF_DEFAULT (_USB_DIEP_CTL_SETD0PIDEF_DEFAULT << 28) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1306 | #define USB_DIEP_CTL_SETD1PIDOF (0x1UL << 29) /**< Set DATA1 PID / Odd Frame */ |
Kojto | 98:8ab26030e058 | 1307 | #define _USB_DIEP_CTL_SETD1PIDOF_SHIFT 29 /**< Shift value for USB_SETD1PIDOF */ |
Kojto | 98:8ab26030e058 | 1308 | #define _USB_DIEP_CTL_SETD1PIDOF_MASK 0x20000000UL /**< Bit mask for USB_SETD1PIDOF */ |
Kojto | 98:8ab26030e058 | 1309 | #define _USB_DIEP_CTL_SETD1PIDOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1310 | #define USB_DIEP_CTL_SETD1PIDOF_DEFAULT (_USB_DIEP_CTL_SETD1PIDOF_DEFAULT << 29) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1311 | #define USB_DIEP_CTL_EPDIS (0x1UL << 30) /**< Endpoint Disable */ |
Kojto | 98:8ab26030e058 | 1312 | #define _USB_DIEP_CTL_EPDIS_SHIFT 30 /**< Shift value for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1313 | #define _USB_DIEP_CTL_EPDIS_MASK 0x40000000UL /**< Bit mask for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1314 | #define _USB_DIEP_CTL_EPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1315 | #define USB_DIEP_CTL_EPDIS_DEFAULT (_USB_DIEP_CTL_EPDIS_DEFAULT << 30) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1316 | #define USB_DIEP_CTL_EPENA (0x1UL << 31) /**< Endpoint Enable */ |
Kojto | 98:8ab26030e058 | 1317 | #define _USB_DIEP_CTL_EPENA_SHIFT 31 /**< Shift value for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1318 | #define _USB_DIEP_CTL_EPENA_MASK 0x80000000UL /**< Bit mask for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1319 | #define _USB_DIEP_CTL_EPENA_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1320 | #define USB_DIEP_CTL_EPENA_DEFAULT (_USB_DIEP_CTL_EPENA_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_DIEP_CTL */ |
Kojto | 98:8ab26030e058 | 1321 | |
Kojto | 98:8ab26030e058 | 1322 | /* Bit fields for USB DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1323 | #define _USB_DIEP_INT_RESETVALUE 0x00000080UL /**< Default value for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1324 | #define _USB_DIEP_INT_MASK 0x000038DFUL /**< Mask for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1325 | #define USB_DIEP_INT_XFERCOMPL (0x1UL << 0) /**< Transfer Completed Interrupt */ |
Kojto | 98:8ab26030e058 | 1326 | #define _USB_DIEP_INT_XFERCOMPL_SHIFT 0 /**< Shift value for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1327 | #define _USB_DIEP_INT_XFERCOMPL_MASK 0x1UL /**< Bit mask for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1328 | #define _USB_DIEP_INT_XFERCOMPL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1329 | #define USB_DIEP_INT_XFERCOMPL_DEFAULT (_USB_DIEP_INT_XFERCOMPL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1330 | #define USB_DIEP_INT_EPDISBLD (0x1UL << 1) /**< Endpoint Disabled Interrupt */ |
Kojto | 98:8ab26030e058 | 1331 | #define _USB_DIEP_INT_EPDISBLD_SHIFT 1 /**< Shift value for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1332 | #define _USB_DIEP_INT_EPDISBLD_MASK 0x2UL /**< Bit mask for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1333 | #define _USB_DIEP_INT_EPDISBLD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1334 | #define USB_DIEP_INT_EPDISBLD_DEFAULT (_USB_DIEP_INT_EPDISBLD_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1335 | #define USB_DIEP_INT_AHBERR (0x1UL << 2) /**< AHB Error */ |
Kojto | 98:8ab26030e058 | 1336 | #define _USB_DIEP_INT_AHBERR_SHIFT 2 /**< Shift value for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1337 | #define _USB_DIEP_INT_AHBERR_MASK 0x4UL /**< Bit mask for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1338 | #define _USB_DIEP_INT_AHBERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1339 | #define USB_DIEP_INT_AHBERR_DEFAULT (_USB_DIEP_INT_AHBERR_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1340 | #define USB_DIEP_INT_TIMEOUT (0x1UL << 3) /**< Timeout Condition */ |
Kojto | 98:8ab26030e058 | 1341 | #define _USB_DIEP_INT_TIMEOUT_SHIFT 3 /**< Shift value for USB_TIMEOUT */ |
Kojto | 98:8ab26030e058 | 1342 | #define _USB_DIEP_INT_TIMEOUT_MASK 0x8UL /**< Bit mask for USB_TIMEOUT */ |
Kojto | 98:8ab26030e058 | 1343 | #define _USB_DIEP_INT_TIMEOUT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1344 | #define USB_DIEP_INT_TIMEOUT_DEFAULT (_USB_DIEP_INT_TIMEOUT_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1345 | #define USB_DIEP_INT_INTKNTXFEMP (0x1UL << 4) /**< IN Token Received When TxFIFO is Empty */ |
Kojto | 98:8ab26030e058 | 1346 | #define _USB_DIEP_INT_INTKNTXFEMP_SHIFT 4 /**< Shift value for USB_INTKNTXFEMP */ |
Kojto | 98:8ab26030e058 | 1347 | #define _USB_DIEP_INT_INTKNTXFEMP_MASK 0x10UL /**< Bit mask for USB_INTKNTXFEMP */ |
Kojto | 98:8ab26030e058 | 1348 | #define _USB_DIEP_INT_INTKNTXFEMP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1349 | #define USB_DIEP_INT_INTKNTXFEMP_DEFAULT (_USB_DIEP_INT_INTKNTXFEMP_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1350 | #define USB_DIEP_INT_INEPNAKEFF (0x1UL << 6) /**< IN Endpoint NAK Effective */ |
Kojto | 98:8ab26030e058 | 1351 | #define _USB_DIEP_INT_INEPNAKEFF_SHIFT 6 /**< Shift value for USB_INEPNAKEFF */ |
Kojto | 98:8ab26030e058 | 1352 | #define _USB_DIEP_INT_INEPNAKEFF_MASK 0x40UL /**< Bit mask for USB_INEPNAKEFF */ |
Kojto | 98:8ab26030e058 | 1353 | #define _USB_DIEP_INT_INEPNAKEFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1354 | #define USB_DIEP_INT_INEPNAKEFF_DEFAULT (_USB_DIEP_INT_INEPNAKEFF_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1355 | #define USB_DIEP_INT_TXFEMP (0x1UL << 7) /**< Transmit FIFO Empty */ |
Kojto | 98:8ab26030e058 | 1356 | #define _USB_DIEP_INT_TXFEMP_SHIFT 7 /**< Shift value for USB_TXFEMP */ |
Kojto | 98:8ab26030e058 | 1357 | #define _USB_DIEP_INT_TXFEMP_MASK 0x80UL /**< Bit mask for USB_TXFEMP */ |
Kojto | 98:8ab26030e058 | 1358 | #define _USB_DIEP_INT_TXFEMP_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1359 | #define USB_DIEP_INT_TXFEMP_DEFAULT (_USB_DIEP_INT_TXFEMP_DEFAULT << 7) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1360 | #define USB_DIEP_INT_PKTDRPSTS (0x1UL << 11) /**< Packet Drop Status */ |
Kojto | 98:8ab26030e058 | 1361 | #define _USB_DIEP_INT_PKTDRPSTS_SHIFT 11 /**< Shift value for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1362 | #define _USB_DIEP_INT_PKTDRPSTS_MASK 0x800UL /**< Bit mask for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1363 | #define _USB_DIEP_INT_PKTDRPSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1364 | #define USB_DIEP_INT_PKTDRPSTS_DEFAULT (_USB_DIEP_INT_PKTDRPSTS_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1365 | #define USB_DIEP_INT_BBLEERR (0x1UL << 12) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1366 | #define _USB_DIEP_INT_BBLEERR_SHIFT 12 /**< Shift value for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1367 | #define _USB_DIEP_INT_BBLEERR_MASK 0x1000UL /**< Bit mask for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1368 | #define _USB_DIEP_INT_BBLEERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1369 | #define USB_DIEP_INT_BBLEERR_DEFAULT (_USB_DIEP_INT_BBLEERR_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1370 | #define USB_DIEP_INT_NAKINTRPT (0x1UL << 13) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1371 | #define _USB_DIEP_INT_NAKINTRPT_SHIFT 13 /**< Shift value for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1372 | #define _USB_DIEP_INT_NAKINTRPT_MASK 0x2000UL /**< Bit mask for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1373 | #define _USB_DIEP_INT_NAKINTRPT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1374 | #define USB_DIEP_INT_NAKINTRPT_DEFAULT (_USB_DIEP_INT_NAKINTRPT_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DIEP_INT */ |
Kojto | 98:8ab26030e058 | 1375 | |
Kojto | 98:8ab26030e058 | 1376 | /* Bit fields for USB DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1377 | #define _USB_DIEP_TSIZ_RESETVALUE 0x00000000UL /**< Default value for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1378 | #define _USB_DIEP_TSIZ_MASK 0x7FFFFFFFUL /**< Mask for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1379 | #define _USB_DIEP_TSIZ_XFERSIZE_SHIFT 0 /**< Shift value for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1380 | #define _USB_DIEP_TSIZ_XFERSIZE_MASK 0x7FFFFUL /**< Bit mask for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1381 | #define _USB_DIEP_TSIZ_XFERSIZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1382 | #define USB_DIEP_TSIZ_XFERSIZE_DEFAULT (_USB_DIEP_TSIZ_XFERSIZE_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1383 | #define _USB_DIEP_TSIZ_PKTCNT_SHIFT 19 /**< Shift value for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1384 | #define _USB_DIEP_TSIZ_PKTCNT_MASK 0x1FF80000UL /**< Bit mask for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1385 | #define _USB_DIEP_TSIZ_PKTCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1386 | #define USB_DIEP_TSIZ_PKTCNT_DEFAULT (_USB_DIEP_TSIZ_PKTCNT_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1387 | #define _USB_DIEP_TSIZ_MC_SHIFT 29 /**< Shift value for USB_MC */ |
Kojto | 98:8ab26030e058 | 1388 | #define _USB_DIEP_TSIZ_MC_MASK 0x60000000UL /**< Bit mask for USB_MC */ |
Kojto | 98:8ab26030e058 | 1389 | #define _USB_DIEP_TSIZ_MC_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1390 | #define USB_DIEP_TSIZ_MC_DEFAULT (_USB_DIEP_TSIZ_MC_DEFAULT << 29) /**< Shifted mode DEFAULT for USB_DIEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1391 | |
Kojto | 98:8ab26030e058 | 1392 | /* Bit fields for USB DIEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1393 | #define _USB_DIEP_DMAADDR_RESETVALUE 0x00000000UL /**< Default value for USB_DIEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1394 | #define _USB_DIEP_DMAADDR_MASK 0xFFFFFFFFUL /**< Mask for USB_DIEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1395 | #define _USB_DIEP_DMAADDR_DMAADDR_SHIFT 0 /**< Shift value for USB_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1396 | #define _USB_DIEP_DMAADDR_DMAADDR_MASK 0xFFFFFFFFUL /**< Bit mask for USB_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1397 | #define _USB_DIEP_DMAADDR_DMAADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DIEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1398 | #define USB_DIEP_DMAADDR_DMAADDR_DEFAULT (_USB_DIEP_DMAADDR_DMAADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1399 | |
Kojto | 98:8ab26030e058 | 1400 | /* Bit fields for USB DIEP_TXFSTS */ |
Kojto | 98:8ab26030e058 | 1401 | #define _USB_DIEP_TXFSTS_RESETVALUE 0x00000200UL /**< Default value for USB_DIEP_TXFSTS */ |
Kojto | 98:8ab26030e058 | 1402 | #define _USB_DIEP_TXFSTS_MASK 0x0000FFFFUL /**< Mask for USB_DIEP_TXFSTS */ |
Kojto | 98:8ab26030e058 | 1403 | #define _USB_DIEP_TXFSTS_SPCAVAIL_SHIFT 0 /**< Shift value for USB_SPCAVAIL */ |
Kojto | 98:8ab26030e058 | 1404 | #define _USB_DIEP_TXFSTS_SPCAVAIL_MASK 0xFFFFUL /**< Bit mask for USB_SPCAVAIL */ |
Kojto | 98:8ab26030e058 | 1405 | #define _USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT 0x00000200UL /**< Mode DEFAULT for USB_DIEP_TXFSTS */ |
Kojto | 98:8ab26030e058 | 1406 | #define USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT (_USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DIEP_TXFSTS */ |
Kojto | 98:8ab26030e058 | 1407 | |
Kojto | 98:8ab26030e058 | 1408 | /* Bit fields for USB DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1409 | #define _USB_DOEP0CTL_RESETVALUE 0x00008000UL /**< Default value for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1410 | #define _USB_DOEP0CTL_MASK 0xCC3E8003UL /**< Mask for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1411 | #define _USB_DOEP0CTL_MPS_SHIFT 0 /**< Shift value for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1412 | #define _USB_DOEP0CTL_MPS_MASK 0x3UL /**< Bit mask for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1413 | #define _USB_DOEP0CTL_MPS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1414 | #define _USB_DOEP0CTL_MPS_64B 0x00000000UL /**< Mode 64B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1415 | #define _USB_DOEP0CTL_MPS_32B 0x00000001UL /**< Mode 32B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1416 | #define _USB_DOEP0CTL_MPS_16B 0x00000002UL /**< Mode 16B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1417 | #define _USB_DOEP0CTL_MPS_8B 0x00000003UL /**< Mode 8B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1418 | #define USB_DOEP0CTL_MPS_DEFAULT (_USB_DOEP0CTL_MPS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1419 | #define USB_DOEP0CTL_MPS_64B (_USB_DOEP0CTL_MPS_64B << 0) /**< Shifted mode 64B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1420 | #define USB_DOEP0CTL_MPS_32B (_USB_DOEP0CTL_MPS_32B << 0) /**< Shifted mode 32B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1421 | #define USB_DOEP0CTL_MPS_16B (_USB_DOEP0CTL_MPS_16B << 0) /**< Shifted mode 16B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1422 | #define USB_DOEP0CTL_MPS_8B (_USB_DOEP0CTL_MPS_8B << 0) /**< Shifted mode 8B for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1423 | #define USB_DOEP0CTL_USBACTEP (0x1UL << 15) /**< USB Active Endpoint */ |
Kojto | 98:8ab26030e058 | 1424 | #define _USB_DOEP0CTL_USBACTEP_SHIFT 15 /**< Shift value for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1425 | #define _USB_DOEP0CTL_USBACTEP_MASK 0x8000UL /**< Bit mask for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1426 | #define _USB_DOEP0CTL_USBACTEP_DEFAULT 0x00000001UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1427 | #define USB_DOEP0CTL_USBACTEP_DEFAULT (_USB_DOEP0CTL_USBACTEP_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1428 | #define USB_DOEP0CTL_NAKSTS (0x1UL << 17) /**< NAK Status */ |
Kojto | 98:8ab26030e058 | 1429 | #define _USB_DOEP0CTL_NAKSTS_SHIFT 17 /**< Shift value for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1430 | #define _USB_DOEP0CTL_NAKSTS_MASK 0x20000UL /**< Bit mask for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1431 | #define _USB_DOEP0CTL_NAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1432 | #define USB_DOEP0CTL_NAKSTS_DEFAULT (_USB_DOEP0CTL_NAKSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1433 | #define _USB_DOEP0CTL_EPTYPE_SHIFT 18 /**< Shift value for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1434 | #define _USB_DOEP0CTL_EPTYPE_MASK 0xC0000UL /**< Bit mask for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1435 | #define _USB_DOEP0CTL_EPTYPE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1436 | #define USB_DOEP0CTL_EPTYPE_DEFAULT (_USB_DOEP0CTL_EPTYPE_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1437 | #define USB_DOEP0CTL_SNP (0x1UL << 20) /**< Snoop Mode */ |
Kojto | 98:8ab26030e058 | 1438 | #define _USB_DOEP0CTL_SNP_SHIFT 20 /**< Shift value for USB_SNP */ |
Kojto | 98:8ab26030e058 | 1439 | #define _USB_DOEP0CTL_SNP_MASK 0x100000UL /**< Bit mask for USB_SNP */ |
Kojto | 98:8ab26030e058 | 1440 | #define _USB_DOEP0CTL_SNP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1441 | #define USB_DOEP0CTL_SNP_DEFAULT (_USB_DOEP0CTL_SNP_DEFAULT << 20) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1442 | #define USB_DOEP0CTL_STALL (0x1UL << 21) /**< Handshake */ |
Kojto | 98:8ab26030e058 | 1443 | #define _USB_DOEP0CTL_STALL_SHIFT 21 /**< Shift value for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1444 | #define _USB_DOEP0CTL_STALL_MASK 0x200000UL /**< Bit mask for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1445 | #define _USB_DOEP0CTL_STALL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1446 | #define USB_DOEP0CTL_STALL_DEFAULT (_USB_DOEP0CTL_STALL_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1447 | #define USB_DOEP0CTL_CNAK (0x1UL << 26) /**< Clear NAK */ |
Kojto | 98:8ab26030e058 | 1448 | #define _USB_DOEP0CTL_CNAK_SHIFT 26 /**< Shift value for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1449 | #define _USB_DOEP0CTL_CNAK_MASK 0x4000000UL /**< Bit mask for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1450 | #define _USB_DOEP0CTL_CNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1451 | #define USB_DOEP0CTL_CNAK_DEFAULT (_USB_DOEP0CTL_CNAK_DEFAULT << 26) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1452 | #define USB_DOEP0CTL_SNAK (0x1UL << 27) /**< Set NAK */ |
Kojto | 98:8ab26030e058 | 1453 | #define _USB_DOEP0CTL_SNAK_SHIFT 27 /**< Shift value for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1454 | #define _USB_DOEP0CTL_SNAK_MASK 0x8000000UL /**< Bit mask for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1455 | #define _USB_DOEP0CTL_SNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1456 | #define USB_DOEP0CTL_SNAK_DEFAULT (_USB_DOEP0CTL_SNAK_DEFAULT << 27) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1457 | #define USB_DOEP0CTL_EPDIS (0x1UL << 30) /**< Endpoint Disable */ |
Kojto | 98:8ab26030e058 | 1458 | #define _USB_DOEP0CTL_EPDIS_SHIFT 30 /**< Shift value for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1459 | #define _USB_DOEP0CTL_EPDIS_MASK 0x40000000UL /**< Bit mask for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1460 | #define _USB_DOEP0CTL_EPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1461 | #define USB_DOEP0CTL_EPDIS_DEFAULT (_USB_DOEP0CTL_EPDIS_DEFAULT << 30) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1462 | #define USB_DOEP0CTL_EPENA (0x1UL << 31) /**< Endpoint Enable */ |
Kojto | 98:8ab26030e058 | 1463 | #define _USB_DOEP0CTL_EPENA_SHIFT 31 /**< Shift value for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1464 | #define _USB_DOEP0CTL_EPENA_MASK 0x80000000UL /**< Bit mask for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1465 | #define _USB_DOEP0CTL_EPENA_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1466 | #define USB_DOEP0CTL_EPENA_DEFAULT (_USB_DOEP0CTL_EPENA_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_DOEP0CTL */ |
Kojto | 98:8ab26030e058 | 1467 | |
Kojto | 98:8ab26030e058 | 1468 | /* Bit fields for USB DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1469 | #define _USB_DOEP0INT_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1470 | #define _USB_DOEP0INT_MASK 0x0000B87FUL /**< Mask for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1471 | #define USB_DOEP0INT_XFERCOMPL (0x1UL << 0) /**< Transfer Completed Interrupt */ |
Kojto | 98:8ab26030e058 | 1472 | #define _USB_DOEP0INT_XFERCOMPL_SHIFT 0 /**< Shift value for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1473 | #define _USB_DOEP0INT_XFERCOMPL_MASK 0x1UL /**< Bit mask for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1474 | #define _USB_DOEP0INT_XFERCOMPL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1475 | #define USB_DOEP0INT_XFERCOMPL_DEFAULT (_USB_DOEP0INT_XFERCOMPL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1476 | #define USB_DOEP0INT_EPDISBLD (0x1UL << 1) /**< Endpoint Disabled Interrupt */ |
Kojto | 98:8ab26030e058 | 1477 | #define _USB_DOEP0INT_EPDISBLD_SHIFT 1 /**< Shift value for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1478 | #define _USB_DOEP0INT_EPDISBLD_MASK 0x2UL /**< Bit mask for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1479 | #define _USB_DOEP0INT_EPDISBLD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1480 | #define USB_DOEP0INT_EPDISBLD_DEFAULT (_USB_DOEP0INT_EPDISBLD_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1481 | #define USB_DOEP0INT_AHBERR (0x1UL << 2) /**< AHB Error */ |
Kojto | 98:8ab26030e058 | 1482 | #define _USB_DOEP0INT_AHBERR_SHIFT 2 /**< Shift value for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1483 | #define _USB_DOEP0INT_AHBERR_MASK 0x4UL /**< Bit mask for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1484 | #define _USB_DOEP0INT_AHBERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1485 | #define USB_DOEP0INT_AHBERR_DEFAULT (_USB_DOEP0INT_AHBERR_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1486 | #define USB_DOEP0INT_SETUP (0x1UL << 3) /**< Setup Phase Done */ |
Kojto | 98:8ab26030e058 | 1487 | #define _USB_DOEP0INT_SETUP_SHIFT 3 /**< Shift value for USB_SETUP */ |
Kojto | 98:8ab26030e058 | 1488 | #define _USB_DOEP0INT_SETUP_MASK 0x8UL /**< Bit mask for USB_SETUP */ |
Kojto | 98:8ab26030e058 | 1489 | #define _USB_DOEP0INT_SETUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1490 | #define USB_DOEP0INT_SETUP_DEFAULT (_USB_DOEP0INT_SETUP_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1491 | #define USB_DOEP0INT_OUTTKNEPDIS (0x1UL << 4) /**< OUT Token Received When Endpoint Disabled */ |
Kojto | 98:8ab26030e058 | 1492 | #define _USB_DOEP0INT_OUTTKNEPDIS_SHIFT 4 /**< Shift value for USB_OUTTKNEPDIS */ |
Kojto | 98:8ab26030e058 | 1493 | #define _USB_DOEP0INT_OUTTKNEPDIS_MASK 0x10UL /**< Bit mask for USB_OUTTKNEPDIS */ |
Kojto | 98:8ab26030e058 | 1494 | #define _USB_DOEP0INT_OUTTKNEPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1495 | #define USB_DOEP0INT_OUTTKNEPDIS_DEFAULT (_USB_DOEP0INT_OUTTKNEPDIS_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1496 | #define USB_DOEP0INT_STSPHSERCVD (0x1UL << 5) /**< Status Phase Received For Control Write */ |
Kojto | 98:8ab26030e058 | 1497 | #define _USB_DOEP0INT_STSPHSERCVD_SHIFT 5 /**< Shift value for USB_STSPHSERCVD */ |
Kojto | 98:8ab26030e058 | 1498 | #define _USB_DOEP0INT_STSPHSERCVD_MASK 0x20UL /**< Bit mask for USB_STSPHSERCVD */ |
Kojto | 98:8ab26030e058 | 1499 | #define _USB_DOEP0INT_STSPHSERCVD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1500 | #define USB_DOEP0INT_STSPHSERCVD_DEFAULT (_USB_DOEP0INT_STSPHSERCVD_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1501 | #define USB_DOEP0INT_BACK2BACKSETUP (0x1UL << 6) /**< Back-to-Back SETUP Packets Received */ |
Kojto | 98:8ab26030e058 | 1502 | #define _USB_DOEP0INT_BACK2BACKSETUP_SHIFT 6 /**< Shift value for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 1503 | #define _USB_DOEP0INT_BACK2BACKSETUP_MASK 0x40UL /**< Bit mask for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 1504 | #define _USB_DOEP0INT_BACK2BACKSETUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1505 | #define USB_DOEP0INT_BACK2BACKSETUP_DEFAULT (_USB_DOEP0INT_BACK2BACKSETUP_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1506 | #define USB_DOEP0INT_PKTDRPSTS (0x1UL << 11) /**< Packet Drop Status */ |
Kojto | 98:8ab26030e058 | 1507 | #define _USB_DOEP0INT_PKTDRPSTS_SHIFT 11 /**< Shift value for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1508 | #define _USB_DOEP0INT_PKTDRPSTS_MASK 0x800UL /**< Bit mask for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1509 | #define _USB_DOEP0INT_PKTDRPSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1510 | #define USB_DOEP0INT_PKTDRPSTS_DEFAULT (_USB_DOEP0INT_PKTDRPSTS_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1511 | #define USB_DOEP0INT_BBLEERR (0x1UL << 12) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1512 | #define _USB_DOEP0INT_BBLEERR_SHIFT 12 /**< Shift value for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1513 | #define _USB_DOEP0INT_BBLEERR_MASK 0x1000UL /**< Bit mask for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1514 | #define _USB_DOEP0INT_BBLEERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1515 | #define USB_DOEP0INT_BBLEERR_DEFAULT (_USB_DOEP0INT_BBLEERR_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1516 | #define USB_DOEP0INT_NAKINTRPT (0x1UL << 13) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1517 | #define _USB_DOEP0INT_NAKINTRPT_SHIFT 13 /**< Shift value for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1518 | #define _USB_DOEP0INT_NAKINTRPT_MASK 0x2000UL /**< Bit mask for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1519 | #define _USB_DOEP0INT_NAKINTRPT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1520 | #define USB_DOEP0INT_NAKINTRPT_DEFAULT (_USB_DOEP0INT_NAKINTRPT_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1521 | #define USB_DOEP0INT_STUPPKTRCVD (0x1UL << 15) /**< Setup Packet Received */ |
Kojto | 98:8ab26030e058 | 1522 | #define _USB_DOEP0INT_STUPPKTRCVD_SHIFT 15 /**< Shift value for USB_STUPPKTRCVD */ |
Kojto | 98:8ab26030e058 | 1523 | #define _USB_DOEP0INT_STUPPKTRCVD_MASK 0x8000UL /**< Bit mask for USB_STUPPKTRCVD */ |
Kojto | 98:8ab26030e058 | 1524 | #define _USB_DOEP0INT_STUPPKTRCVD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1525 | #define USB_DOEP0INT_STUPPKTRCVD_DEFAULT (_USB_DOEP0INT_STUPPKTRCVD_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DOEP0INT */ |
Kojto | 98:8ab26030e058 | 1526 | |
Kojto | 98:8ab26030e058 | 1527 | /* Bit fields for USB DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1528 | #define _USB_DOEP0TSIZ_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1529 | #define _USB_DOEP0TSIZ_MASK 0x6008007FUL /**< Mask for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1530 | #define _USB_DOEP0TSIZ_XFERSIZE_SHIFT 0 /**< Shift value for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1531 | #define _USB_DOEP0TSIZ_XFERSIZE_MASK 0x7FUL /**< Bit mask for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1532 | #define _USB_DOEP0TSIZ_XFERSIZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1533 | #define USB_DOEP0TSIZ_XFERSIZE_DEFAULT (_USB_DOEP0TSIZ_XFERSIZE_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1534 | #define USB_DOEP0TSIZ_PKTCNT (0x1UL << 19) /**< Packet Count */ |
Kojto | 98:8ab26030e058 | 1535 | #define _USB_DOEP0TSIZ_PKTCNT_SHIFT 19 /**< Shift value for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1536 | #define _USB_DOEP0TSIZ_PKTCNT_MASK 0x80000UL /**< Bit mask for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1537 | #define _USB_DOEP0TSIZ_PKTCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1538 | #define USB_DOEP0TSIZ_PKTCNT_DEFAULT (_USB_DOEP0TSIZ_PKTCNT_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1539 | #define _USB_DOEP0TSIZ_SUPCNT_SHIFT 29 /**< Shift value for USB_SUPCNT */ |
Kojto | 98:8ab26030e058 | 1540 | #define _USB_DOEP0TSIZ_SUPCNT_MASK 0x60000000UL /**< Bit mask for USB_SUPCNT */ |
Kojto | 98:8ab26030e058 | 1541 | #define _USB_DOEP0TSIZ_SUPCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1542 | #define USB_DOEP0TSIZ_SUPCNT_DEFAULT (_USB_DOEP0TSIZ_SUPCNT_DEFAULT << 29) /**< Shifted mode DEFAULT for USB_DOEP0TSIZ */ |
Kojto | 98:8ab26030e058 | 1543 | |
Kojto | 98:8ab26030e058 | 1544 | /* Bit fields for USB DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1545 | #define _USB_DOEP0DMAADDR_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1546 | #define _USB_DOEP0DMAADDR_MASK 0xFFFFFFFFUL /**< Mask for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1547 | #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_SHIFT 0 /**< Shift value for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1548 | #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_MASK 0xFFFFFFFFUL /**< Bit mask for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1549 | #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1550 | #define USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT (_USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP0DMAADDR */ |
Kojto | 98:8ab26030e058 | 1551 | |
Kojto | 98:8ab26030e058 | 1552 | /* Bit fields for USB DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1553 | #define _USB_DOEP_CTL_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1554 | #define _USB_DOEP_CTL_MASK 0xFC3F87FFUL /**< Mask for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1555 | #define _USB_DOEP_CTL_MPS_SHIFT 0 /**< Shift value for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1556 | #define _USB_DOEP_CTL_MPS_MASK 0x7FFUL /**< Bit mask for USB_MPS */ |
Kojto | 98:8ab26030e058 | 1557 | #define _USB_DOEP_CTL_MPS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1558 | #define USB_DOEP_CTL_MPS_DEFAULT (_USB_DOEP_CTL_MPS_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1559 | #define USB_DOEP_CTL_USBACTEP (0x1UL << 15) /**< USB Active Endpoint */ |
Kojto | 98:8ab26030e058 | 1560 | #define _USB_DOEP_CTL_USBACTEP_SHIFT 15 /**< Shift value for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1561 | #define _USB_DOEP_CTL_USBACTEP_MASK 0x8000UL /**< Bit mask for USB_USBACTEP */ |
Kojto | 98:8ab26030e058 | 1562 | #define _USB_DOEP_CTL_USBACTEP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1563 | #define USB_DOEP_CTL_USBACTEP_DEFAULT (_USB_DOEP_CTL_USBACTEP_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1564 | #define USB_DOEP_CTL_DPIDEOF (0x1UL << 16) /**< Endpoint Data PID / Even-odd Frame */ |
Kojto | 98:8ab26030e058 | 1565 | #define _USB_DOEP_CTL_DPIDEOF_SHIFT 16 /**< Shift value for USB_DPIDEOF */ |
Kojto | 98:8ab26030e058 | 1566 | #define _USB_DOEP_CTL_DPIDEOF_MASK 0x10000UL /**< Bit mask for USB_DPIDEOF */ |
Kojto | 98:8ab26030e058 | 1567 | #define _USB_DOEP_CTL_DPIDEOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1568 | #define _USB_DOEP_CTL_DPIDEOF_DATA0EVEN 0x00000000UL /**< Mode DATA0EVEN for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1569 | #define _USB_DOEP_CTL_DPIDEOF_DATA1ODD 0x00000001UL /**< Mode DATA1ODD for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1570 | #define USB_DOEP_CTL_DPIDEOF_DEFAULT (_USB_DOEP_CTL_DPIDEOF_DEFAULT << 16) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1571 | #define USB_DOEP_CTL_DPIDEOF_DATA0EVEN (_USB_DOEP_CTL_DPIDEOF_DATA0EVEN << 16) /**< Shifted mode DATA0EVEN for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1572 | #define USB_DOEP_CTL_DPIDEOF_DATA1ODD (_USB_DOEP_CTL_DPIDEOF_DATA1ODD << 16) /**< Shifted mode DATA1ODD for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1573 | #define USB_DOEP_CTL_NAKSTS (0x1UL << 17) /**< NAK Status */ |
Kojto | 98:8ab26030e058 | 1574 | #define _USB_DOEP_CTL_NAKSTS_SHIFT 17 /**< Shift value for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1575 | #define _USB_DOEP_CTL_NAKSTS_MASK 0x20000UL /**< Bit mask for USB_NAKSTS */ |
Kojto | 98:8ab26030e058 | 1576 | #define _USB_DOEP_CTL_NAKSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1577 | #define USB_DOEP_CTL_NAKSTS_DEFAULT (_USB_DOEP_CTL_NAKSTS_DEFAULT << 17) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1578 | #define _USB_DOEP_CTL_EPTYPE_SHIFT 18 /**< Shift value for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1579 | #define _USB_DOEP_CTL_EPTYPE_MASK 0xC0000UL /**< Bit mask for USB_EPTYPE */ |
Kojto | 98:8ab26030e058 | 1580 | #define _USB_DOEP_CTL_EPTYPE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1581 | #define _USB_DOEP_CTL_EPTYPE_CONTROL 0x00000000UL /**< Mode CONTROL for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1582 | #define _USB_DOEP_CTL_EPTYPE_ISO 0x00000001UL /**< Mode ISO for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1583 | #define _USB_DOEP_CTL_EPTYPE_BULK 0x00000002UL /**< Mode BULK for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1584 | #define _USB_DOEP_CTL_EPTYPE_INT 0x00000003UL /**< Mode INT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1585 | #define USB_DOEP_CTL_EPTYPE_DEFAULT (_USB_DOEP_CTL_EPTYPE_DEFAULT << 18) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1586 | #define USB_DOEP_CTL_EPTYPE_CONTROL (_USB_DOEP_CTL_EPTYPE_CONTROL << 18) /**< Shifted mode CONTROL for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1587 | #define USB_DOEP_CTL_EPTYPE_ISO (_USB_DOEP_CTL_EPTYPE_ISO << 18) /**< Shifted mode ISO for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1588 | #define USB_DOEP_CTL_EPTYPE_BULK (_USB_DOEP_CTL_EPTYPE_BULK << 18) /**< Shifted mode BULK for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1589 | #define USB_DOEP_CTL_EPTYPE_INT (_USB_DOEP_CTL_EPTYPE_INT << 18) /**< Shifted mode INT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1590 | #define USB_DOEP_CTL_SNP (0x1UL << 20) /**< Snoop Mode */ |
Kojto | 98:8ab26030e058 | 1591 | #define _USB_DOEP_CTL_SNP_SHIFT 20 /**< Shift value for USB_SNP */ |
Kojto | 98:8ab26030e058 | 1592 | #define _USB_DOEP_CTL_SNP_MASK 0x100000UL /**< Bit mask for USB_SNP */ |
Kojto | 98:8ab26030e058 | 1593 | #define _USB_DOEP_CTL_SNP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1594 | #define USB_DOEP_CTL_SNP_DEFAULT (_USB_DOEP_CTL_SNP_DEFAULT << 20) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1595 | #define USB_DOEP_CTL_STALL (0x1UL << 21) /**< STALL Handshake */ |
Kojto | 98:8ab26030e058 | 1596 | #define _USB_DOEP_CTL_STALL_SHIFT 21 /**< Shift value for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1597 | #define _USB_DOEP_CTL_STALL_MASK 0x200000UL /**< Bit mask for USB_STALL */ |
Kojto | 98:8ab26030e058 | 1598 | #define _USB_DOEP_CTL_STALL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1599 | #define USB_DOEP_CTL_STALL_DEFAULT (_USB_DOEP_CTL_STALL_DEFAULT << 21) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1600 | #define USB_DOEP_CTL_CNAK (0x1UL << 26) /**< Clear NAK */ |
Kojto | 98:8ab26030e058 | 1601 | #define _USB_DOEP_CTL_CNAK_SHIFT 26 /**< Shift value for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1602 | #define _USB_DOEP_CTL_CNAK_MASK 0x4000000UL /**< Bit mask for USB_CNAK */ |
Kojto | 98:8ab26030e058 | 1603 | #define _USB_DOEP_CTL_CNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1604 | #define USB_DOEP_CTL_CNAK_DEFAULT (_USB_DOEP_CTL_CNAK_DEFAULT << 26) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1605 | #define USB_DOEP_CTL_SNAK (0x1UL << 27) /**< Set NAK */ |
Kojto | 98:8ab26030e058 | 1606 | #define _USB_DOEP_CTL_SNAK_SHIFT 27 /**< Shift value for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1607 | #define _USB_DOEP_CTL_SNAK_MASK 0x8000000UL /**< Bit mask for USB_SNAK */ |
Kojto | 98:8ab26030e058 | 1608 | #define _USB_DOEP_CTL_SNAK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1609 | #define USB_DOEP_CTL_SNAK_DEFAULT (_USB_DOEP_CTL_SNAK_DEFAULT << 27) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1610 | #define USB_DOEP_CTL_SETD0PIDEF (0x1UL << 28) /**< Set DATA0 PID / Even Frame */ |
Kojto | 98:8ab26030e058 | 1611 | #define _USB_DOEP_CTL_SETD0PIDEF_SHIFT 28 /**< Shift value for USB_SETD0PIDEF */ |
Kojto | 98:8ab26030e058 | 1612 | #define _USB_DOEP_CTL_SETD0PIDEF_MASK 0x10000000UL /**< Bit mask for USB_SETD0PIDEF */ |
Kojto | 98:8ab26030e058 | 1613 | #define _USB_DOEP_CTL_SETD0PIDEF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1614 | #define USB_DOEP_CTL_SETD0PIDEF_DEFAULT (_USB_DOEP_CTL_SETD0PIDEF_DEFAULT << 28) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1615 | #define USB_DOEP_CTL_SETD1PIDOF (0x1UL << 29) /**< Set DATA1 PID / Odd Frame */ |
Kojto | 98:8ab26030e058 | 1616 | #define _USB_DOEP_CTL_SETD1PIDOF_SHIFT 29 /**< Shift value for USB_SETD1PIDOF */ |
Kojto | 98:8ab26030e058 | 1617 | #define _USB_DOEP_CTL_SETD1PIDOF_MASK 0x20000000UL /**< Bit mask for USB_SETD1PIDOF */ |
Kojto | 98:8ab26030e058 | 1618 | #define _USB_DOEP_CTL_SETD1PIDOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1619 | #define USB_DOEP_CTL_SETD1PIDOF_DEFAULT (_USB_DOEP_CTL_SETD1PIDOF_DEFAULT << 29) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1620 | #define USB_DOEP_CTL_EPDIS (0x1UL << 30) /**< Endpoint Disable */ |
Kojto | 98:8ab26030e058 | 1621 | #define _USB_DOEP_CTL_EPDIS_SHIFT 30 /**< Shift value for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1622 | #define _USB_DOEP_CTL_EPDIS_MASK 0x40000000UL /**< Bit mask for USB_EPDIS */ |
Kojto | 98:8ab26030e058 | 1623 | #define _USB_DOEP_CTL_EPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1624 | #define USB_DOEP_CTL_EPDIS_DEFAULT (_USB_DOEP_CTL_EPDIS_DEFAULT << 30) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1625 | #define USB_DOEP_CTL_EPENA (0x1UL << 31) /**< Endpoint Enable */ |
Kojto | 98:8ab26030e058 | 1626 | #define _USB_DOEP_CTL_EPENA_SHIFT 31 /**< Shift value for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1627 | #define _USB_DOEP_CTL_EPENA_MASK 0x80000000UL /**< Bit mask for USB_EPENA */ |
Kojto | 98:8ab26030e058 | 1628 | #define _USB_DOEP_CTL_EPENA_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1629 | #define USB_DOEP_CTL_EPENA_DEFAULT (_USB_DOEP_CTL_EPENA_DEFAULT << 31) /**< Shifted mode DEFAULT for USB_DOEP_CTL */ |
Kojto | 98:8ab26030e058 | 1630 | |
Kojto | 98:8ab26030e058 | 1631 | /* Bit fields for USB DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1632 | #define _USB_DOEP_INT_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1633 | #define _USB_DOEP_INT_MASK 0x0000B87FUL /**< Mask for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1634 | #define USB_DOEP_INT_XFERCOMPL (0x1UL << 0) /**< Transfer Completed Interrupt */ |
Kojto | 98:8ab26030e058 | 1635 | #define _USB_DOEP_INT_XFERCOMPL_SHIFT 0 /**< Shift value for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1636 | #define _USB_DOEP_INT_XFERCOMPL_MASK 0x1UL /**< Bit mask for USB_XFERCOMPL */ |
Kojto | 98:8ab26030e058 | 1637 | #define _USB_DOEP_INT_XFERCOMPL_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1638 | #define USB_DOEP_INT_XFERCOMPL_DEFAULT (_USB_DOEP_INT_XFERCOMPL_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1639 | #define USB_DOEP_INT_EPDISBLD (0x1UL << 1) /**< Endpoint Disabled Interrupt */ |
Kojto | 98:8ab26030e058 | 1640 | #define _USB_DOEP_INT_EPDISBLD_SHIFT 1 /**< Shift value for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1641 | #define _USB_DOEP_INT_EPDISBLD_MASK 0x2UL /**< Bit mask for USB_EPDISBLD */ |
Kojto | 98:8ab26030e058 | 1642 | #define _USB_DOEP_INT_EPDISBLD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1643 | #define USB_DOEP_INT_EPDISBLD_DEFAULT (_USB_DOEP_INT_EPDISBLD_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1644 | #define USB_DOEP_INT_AHBERR (0x1UL << 2) /**< AHB Error */ |
Kojto | 98:8ab26030e058 | 1645 | #define _USB_DOEP_INT_AHBERR_SHIFT 2 /**< Shift value for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1646 | #define _USB_DOEP_INT_AHBERR_MASK 0x4UL /**< Bit mask for USB_AHBERR */ |
Kojto | 98:8ab26030e058 | 1647 | #define _USB_DOEP_INT_AHBERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1648 | #define USB_DOEP_INT_AHBERR_DEFAULT (_USB_DOEP_INT_AHBERR_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1649 | #define USB_DOEP_INT_SETUP (0x1UL << 3) /**< Setup Phase Done */ |
Kojto | 98:8ab26030e058 | 1650 | #define _USB_DOEP_INT_SETUP_SHIFT 3 /**< Shift value for USB_SETUP */ |
Kojto | 98:8ab26030e058 | 1651 | #define _USB_DOEP_INT_SETUP_MASK 0x8UL /**< Bit mask for USB_SETUP */ |
Kojto | 98:8ab26030e058 | 1652 | #define _USB_DOEP_INT_SETUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1653 | #define USB_DOEP_INT_SETUP_DEFAULT (_USB_DOEP_INT_SETUP_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1654 | #define USB_DOEP_INT_OUTTKNEPDIS (0x1UL << 4) /**< OUT Token Received When Endpoint Disabled */ |
Kojto | 98:8ab26030e058 | 1655 | #define _USB_DOEP_INT_OUTTKNEPDIS_SHIFT 4 /**< Shift value for USB_OUTTKNEPDIS */ |
Kojto | 98:8ab26030e058 | 1656 | #define _USB_DOEP_INT_OUTTKNEPDIS_MASK 0x10UL /**< Bit mask for USB_OUTTKNEPDIS */ |
Kojto | 98:8ab26030e058 | 1657 | #define _USB_DOEP_INT_OUTTKNEPDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1658 | #define USB_DOEP_INT_OUTTKNEPDIS_DEFAULT (_USB_DOEP_INT_OUTTKNEPDIS_DEFAULT << 4) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1659 | #define USB_DOEP_INT_STSPHSERCVD (0x1UL << 5) /**< Status Phase Received For Control Write */ |
Kojto | 98:8ab26030e058 | 1660 | #define _USB_DOEP_INT_STSPHSERCVD_SHIFT 5 /**< Shift value for USB_STSPHSERCVD */ |
Kojto | 98:8ab26030e058 | 1661 | #define _USB_DOEP_INT_STSPHSERCVD_MASK 0x20UL /**< Bit mask for USB_STSPHSERCVD */ |
Kojto | 98:8ab26030e058 | 1662 | #define _USB_DOEP_INT_STSPHSERCVD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1663 | #define USB_DOEP_INT_STSPHSERCVD_DEFAULT (_USB_DOEP_INT_STSPHSERCVD_DEFAULT << 5) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1664 | #define USB_DOEP_INT_BACK2BACKSETUP (0x1UL << 6) /**< Back-to-Back SETUP Packets Received */ |
Kojto | 98:8ab26030e058 | 1665 | #define _USB_DOEP_INT_BACK2BACKSETUP_SHIFT 6 /**< Shift value for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 1666 | #define _USB_DOEP_INT_BACK2BACKSETUP_MASK 0x40UL /**< Bit mask for USB_BACK2BACKSETUP */ |
Kojto | 98:8ab26030e058 | 1667 | #define _USB_DOEP_INT_BACK2BACKSETUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1668 | #define USB_DOEP_INT_BACK2BACKSETUP_DEFAULT (_USB_DOEP_INT_BACK2BACKSETUP_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1669 | #define USB_DOEP_INT_PKTDRPSTS (0x1UL << 11) /**< Packet Drop Status */ |
Kojto | 98:8ab26030e058 | 1670 | #define _USB_DOEP_INT_PKTDRPSTS_SHIFT 11 /**< Shift value for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1671 | #define _USB_DOEP_INT_PKTDRPSTS_MASK 0x800UL /**< Bit mask for USB_PKTDRPSTS */ |
Kojto | 98:8ab26030e058 | 1672 | #define _USB_DOEP_INT_PKTDRPSTS_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1673 | #define USB_DOEP_INT_PKTDRPSTS_DEFAULT (_USB_DOEP_INT_PKTDRPSTS_DEFAULT << 11) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1674 | #define USB_DOEP_INT_BBLEERR (0x1UL << 12) /**< Babble Error */ |
Kojto | 98:8ab26030e058 | 1675 | #define _USB_DOEP_INT_BBLEERR_SHIFT 12 /**< Shift value for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1676 | #define _USB_DOEP_INT_BBLEERR_MASK 0x1000UL /**< Bit mask for USB_BBLEERR */ |
Kojto | 98:8ab26030e058 | 1677 | #define _USB_DOEP_INT_BBLEERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1678 | #define USB_DOEP_INT_BBLEERR_DEFAULT (_USB_DOEP_INT_BBLEERR_DEFAULT << 12) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1679 | #define USB_DOEP_INT_NAKINTRPT (0x1UL << 13) /**< NAK Interrupt */ |
Kojto | 98:8ab26030e058 | 1680 | #define _USB_DOEP_INT_NAKINTRPT_SHIFT 13 /**< Shift value for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1681 | #define _USB_DOEP_INT_NAKINTRPT_MASK 0x2000UL /**< Bit mask for USB_NAKINTRPT */ |
Kojto | 98:8ab26030e058 | 1682 | #define _USB_DOEP_INT_NAKINTRPT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1683 | #define USB_DOEP_INT_NAKINTRPT_DEFAULT (_USB_DOEP_INT_NAKINTRPT_DEFAULT << 13) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1684 | #define USB_DOEP_INT_STUPPKTRCVD (0x1UL << 15) /**< Setup Packet Received */ |
Kojto | 98:8ab26030e058 | 1685 | #define _USB_DOEP_INT_STUPPKTRCVD_SHIFT 15 /**< Shift value for USB_STUPPKTRCVD */ |
Kojto | 98:8ab26030e058 | 1686 | #define _USB_DOEP_INT_STUPPKTRCVD_MASK 0x8000UL /**< Bit mask for USB_STUPPKTRCVD */ |
Kojto | 98:8ab26030e058 | 1687 | #define _USB_DOEP_INT_STUPPKTRCVD_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1688 | #define USB_DOEP_INT_STUPPKTRCVD_DEFAULT (_USB_DOEP_INT_STUPPKTRCVD_DEFAULT << 15) /**< Shifted mode DEFAULT for USB_DOEP_INT */ |
Kojto | 98:8ab26030e058 | 1689 | |
Kojto | 98:8ab26030e058 | 1690 | /* Bit fields for USB DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1691 | #define _USB_DOEP_TSIZ_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1692 | #define _USB_DOEP_TSIZ_MASK 0x7FFFFFFFUL /**< Mask for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1693 | #define _USB_DOEP_TSIZ_XFERSIZE_SHIFT 0 /**< Shift value for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1694 | #define _USB_DOEP_TSIZ_XFERSIZE_MASK 0x7FFFFUL /**< Bit mask for USB_XFERSIZE */ |
Kojto | 98:8ab26030e058 | 1695 | #define _USB_DOEP_TSIZ_XFERSIZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1696 | #define USB_DOEP_TSIZ_XFERSIZE_DEFAULT (_USB_DOEP_TSIZ_XFERSIZE_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1697 | #define _USB_DOEP_TSIZ_PKTCNT_SHIFT 19 /**< Shift value for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1698 | #define _USB_DOEP_TSIZ_PKTCNT_MASK 0x1FF80000UL /**< Bit mask for USB_PKTCNT */ |
Kojto | 98:8ab26030e058 | 1699 | #define _USB_DOEP_TSIZ_PKTCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1700 | #define USB_DOEP_TSIZ_PKTCNT_DEFAULT (_USB_DOEP_TSIZ_PKTCNT_DEFAULT << 19) /**< Shifted mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1701 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_SHIFT 29 /**< Shift value for USB_RXDPIDSUPCNT */ |
Kojto | 98:8ab26030e058 | 1702 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_MASK 0x60000000UL /**< Bit mask for USB_RXDPIDSUPCNT */ |
Kojto | 98:8ab26030e058 | 1703 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1704 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 0x00000000UL /**< Mode DATA0 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1705 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 0x00000001UL /**< Mode DATA2 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1706 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 0x00000002UL /**< Mode DATA1 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1707 | #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA 0x00000003UL /**< Mode MDATA for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1708 | #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT << 29) /**< Shifted mode DEFAULT for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1709 | #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 << 29) /**< Shifted mode DATA0 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1710 | #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 << 29) /**< Shifted mode DATA2 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1711 | #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 << 29) /**< Shifted mode DATA1 for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1712 | #define USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA (_USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA << 29) /**< Shifted mode MDATA for USB_DOEP_TSIZ */ |
Kojto | 98:8ab26030e058 | 1713 | |
Kojto | 98:8ab26030e058 | 1714 | /* Bit fields for USB DOEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1715 | #define _USB_DOEP_DMAADDR_RESETVALUE 0x00000000UL /**< Default value for USB_DOEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1716 | #define _USB_DOEP_DMAADDR_MASK 0xFFFFFFFFUL /**< Mask for USB_DOEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1717 | #define _USB_DOEP_DMAADDR_DMAADDR_SHIFT 0 /**< Shift value for USB_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1718 | #define _USB_DOEP_DMAADDR_DMAADDR_MASK 0xFFFFFFFFUL /**< Bit mask for USB_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1719 | #define _USB_DOEP_DMAADDR_DMAADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_DOEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1720 | #define USB_DOEP_DMAADDR_DMAADDR_DEFAULT (_USB_DOEP_DMAADDR_DMAADDR_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_DOEP_DMAADDR */ |
Kojto | 98:8ab26030e058 | 1721 | |
Kojto | 98:8ab26030e058 | 1722 | /* Bit fields for USB PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1723 | #define _USB_PCGCCTL_RESETVALUE 0x00000000UL /**< Default value for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1724 | #define _USB_PCGCCTL_MASK 0x0000004FUL /**< Mask for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1725 | #define USB_PCGCCTL_STOPPCLK (0x1UL << 0) /**< Stop PHY clock */ |
Kojto | 98:8ab26030e058 | 1726 | #define _USB_PCGCCTL_STOPPCLK_SHIFT 0 /**< Shift value for USB_STOPPCLK */ |
Kojto | 98:8ab26030e058 | 1727 | #define _USB_PCGCCTL_STOPPCLK_MASK 0x1UL /**< Bit mask for USB_STOPPCLK */ |
Kojto | 98:8ab26030e058 | 1728 | #define _USB_PCGCCTL_STOPPCLK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1729 | #define USB_PCGCCTL_STOPPCLK_DEFAULT (_USB_PCGCCTL_STOPPCLK_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1730 | #define USB_PCGCCTL_GATEHCLK (0x1UL << 1) /**< Gate HCLK */ |
Kojto | 98:8ab26030e058 | 1731 | #define _USB_PCGCCTL_GATEHCLK_SHIFT 1 /**< Shift value for USB_GATEHCLK */ |
Kojto | 98:8ab26030e058 | 1732 | #define _USB_PCGCCTL_GATEHCLK_MASK 0x2UL /**< Bit mask for USB_GATEHCLK */ |
Kojto | 98:8ab26030e058 | 1733 | #define _USB_PCGCCTL_GATEHCLK_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1734 | #define USB_PCGCCTL_GATEHCLK_DEFAULT (_USB_PCGCCTL_GATEHCLK_DEFAULT << 1) /**< Shifted mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1735 | #define USB_PCGCCTL_PWRCLMP (0x1UL << 2) /**< Power Clamp */ |
Kojto | 98:8ab26030e058 | 1736 | #define _USB_PCGCCTL_PWRCLMP_SHIFT 2 /**< Shift value for USB_PWRCLMP */ |
Kojto | 98:8ab26030e058 | 1737 | #define _USB_PCGCCTL_PWRCLMP_MASK 0x4UL /**< Bit mask for USB_PWRCLMP */ |
Kojto | 98:8ab26030e058 | 1738 | #define _USB_PCGCCTL_PWRCLMP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1739 | #define USB_PCGCCTL_PWRCLMP_DEFAULT (_USB_PCGCCTL_PWRCLMP_DEFAULT << 2) /**< Shifted mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1740 | #define USB_PCGCCTL_RSTPDWNMODULE (0x1UL << 3) /**< Reset Power-Down Modules */ |
Kojto | 98:8ab26030e058 | 1741 | #define _USB_PCGCCTL_RSTPDWNMODULE_SHIFT 3 /**< Shift value for USB_RSTPDWNMODULE */ |
Kojto | 98:8ab26030e058 | 1742 | #define _USB_PCGCCTL_RSTPDWNMODULE_MASK 0x8UL /**< Bit mask for USB_RSTPDWNMODULE */ |
Kojto | 98:8ab26030e058 | 1743 | #define _USB_PCGCCTL_RSTPDWNMODULE_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1744 | #define USB_PCGCCTL_RSTPDWNMODULE_DEFAULT (_USB_PCGCCTL_RSTPDWNMODULE_DEFAULT << 3) /**< Shifted mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1745 | #define USB_PCGCCTL_PHYSLEEP (0x1UL << 6) /**< PHY In Sleep */ |
Kojto | 98:8ab26030e058 | 1746 | #define _USB_PCGCCTL_PHYSLEEP_SHIFT 6 /**< Shift value for USB_PHYSLEEP */ |
Kojto | 98:8ab26030e058 | 1747 | #define _USB_PCGCCTL_PHYSLEEP_MASK 0x40UL /**< Bit mask for USB_PHYSLEEP */ |
Kojto | 98:8ab26030e058 | 1748 | #define _USB_PCGCCTL_PHYSLEEP_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1749 | #define USB_PCGCCTL_PHYSLEEP_DEFAULT (_USB_PCGCCTL_PHYSLEEP_DEFAULT << 6) /**< Shifted mode DEFAULT for USB_PCGCCTL */ |
Kojto | 98:8ab26030e058 | 1750 | |
Kojto | 98:8ab26030e058 | 1751 | /* Bit fields for USB FIFO0D */ |
Kojto | 98:8ab26030e058 | 1752 | #define _USB_FIFO0D_RESETVALUE 0x00000000UL /**< Default value for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1753 | #define _USB_FIFO0D_MASK 0xFFFFFFFFUL /**< Mask for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1754 | #define _USB_FIFO0D_FIFO0D_SHIFT 0 /**< Shift value for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1755 | #define _USB_FIFO0D_FIFO0D_MASK 0xFFFFFFFFUL /**< Bit mask for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1756 | #define _USB_FIFO0D_FIFO0D_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1757 | #define USB_FIFO0D_FIFO0D_DEFAULT (_USB_FIFO0D_FIFO0D_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_FIFO0D */ |
Kojto | 98:8ab26030e058 | 1758 | |
Kojto | 98:8ab26030e058 | 1759 | /* Bit fields for USB FIFO1D */ |
Kojto | 98:8ab26030e058 | 1760 | #define _USB_FIFO1D_RESETVALUE 0x00000000UL /**< Default value for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1761 | #define _USB_FIFO1D_MASK 0xFFFFFFFFUL /**< Mask for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1762 | #define _USB_FIFO1D_FIFO1D_SHIFT 0 /**< Shift value for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1763 | #define _USB_FIFO1D_FIFO1D_MASK 0xFFFFFFFFUL /**< Bit mask for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1764 | #define _USB_FIFO1D_FIFO1D_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1765 | #define USB_FIFO1D_FIFO1D_DEFAULT (_USB_FIFO1D_FIFO1D_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_FIFO1D */ |
Kojto | 98:8ab26030e058 | 1766 | |
Kojto | 98:8ab26030e058 | 1767 | /* Bit fields for USB FIFO2D */ |
Kojto | 98:8ab26030e058 | 1768 | #define _USB_FIFO2D_RESETVALUE 0x00000000UL /**< Default value for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1769 | #define _USB_FIFO2D_MASK 0xFFFFFFFFUL /**< Mask for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1770 | #define _USB_FIFO2D_FIFO2D_SHIFT 0 /**< Shift value for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1771 | #define _USB_FIFO2D_FIFO2D_MASK 0xFFFFFFFFUL /**< Bit mask for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1772 | #define _USB_FIFO2D_FIFO2D_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1773 | #define USB_FIFO2D_FIFO2D_DEFAULT (_USB_FIFO2D_FIFO2D_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_FIFO2D */ |
Kojto | 98:8ab26030e058 | 1774 | |
Kojto | 98:8ab26030e058 | 1775 | /* Bit fields for USB FIFO3D */ |
Kojto | 98:8ab26030e058 | 1776 | #define _USB_FIFO3D_RESETVALUE 0x00000000UL /**< Default value for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1777 | #define _USB_FIFO3D_MASK 0xFFFFFFFFUL /**< Mask for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1778 | #define _USB_FIFO3D_FIFO3D_SHIFT 0 /**< Shift value for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1779 | #define _USB_FIFO3D_FIFO3D_MASK 0xFFFFFFFFUL /**< Bit mask for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1780 | #define _USB_FIFO3D_FIFO3D_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1781 | #define USB_FIFO3D_FIFO3D_DEFAULT (_USB_FIFO3D_FIFO3D_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_FIFO3D */ |
Kojto | 98:8ab26030e058 | 1782 | |
Kojto | 98:8ab26030e058 | 1783 | /* Bit fields for USB FIFORAM */ |
Kojto | 98:8ab26030e058 | 1784 | #define _USB_FIFORAM_RESETVALUE 0x00000000UL /**< Default value for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1785 | #define _USB_FIFORAM_MASK 0xFFFFFFFFUL /**< Mask for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1786 | #define _USB_FIFORAM_FIFORAM_SHIFT 0 /**< Shift value for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1787 | #define _USB_FIFORAM_FIFORAM_MASK 0xFFFFFFFFUL /**< Bit mask for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1788 | #define _USB_FIFORAM_FIFORAM_DEFAULT 0x00000000UL /**< Mode DEFAULT for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1789 | #define USB_FIFORAM_FIFORAM_DEFAULT (_USB_FIFORAM_FIFORAM_DEFAULT << 0) /**< Shifted mode DEFAULT for USB_FIFORAM */ |
Kojto | 98:8ab26030e058 | 1790 | |
Kojto | 98:8ab26030e058 | 1791 | /** @} End of group EFM32HG_USB */ |
Kojto | 98:8ab26030e058 | 1792 | |
Kojto | 98:8ab26030e058 | 1793 |