meh
Fork of mbed by
TARGET_RZ_A1H/usb_iobitmask.h@118:16969dd821af, 2016-04-05 (annotated)
- Committer:
- ricardobtez
- Date:
- Tue Apr 05 23:51:21 2016 +0000
- Revision:
- 118:16969dd821af
- Parent:
- 92:4fc01daae5a5
dgdgr
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 92:4fc01daae5a5 | 1 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 2 | * DISCLAIMER |
bogdanm | 92:4fc01daae5a5 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
bogdanm | 92:4fc01daae5a5 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
bogdanm | 92:4fc01daae5a5 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
bogdanm | 92:4fc01daae5a5 | 6 | * all applicable laws, including copyright laws. |
bogdanm | 92:4fc01daae5a5 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
bogdanm | 92:4fc01daae5a5 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
bogdanm | 92:4fc01daae5a5 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
bogdanm | 92:4fc01daae5a5 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
bogdanm | 92:4fc01daae5a5 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
bogdanm | 92:4fc01daae5a5 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
bogdanm | 92:4fc01daae5a5 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
bogdanm | 92:4fc01daae5a5 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
bogdanm | 92:4fc01daae5a5 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
bogdanm | 92:4fc01daae5a5 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
bogdanm | 92:4fc01daae5a5 | 17 | * and to discontinue the availability of this software. By using this software, |
bogdanm | 92:4fc01daae5a5 | 18 | * you agree to the additional terms and conditions found by accessing the |
bogdanm | 92:4fc01daae5a5 | 19 | * following link: |
bogdanm | 92:4fc01daae5a5 | 20 | * http://www.renesas.com/disclaimer |
bogdanm | 92:4fc01daae5a5 | 21 | * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved. |
bogdanm | 92:4fc01daae5a5 | 22 | *******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 23 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 24 | * File Name : usb_iobitmask.h |
bogdanm | 92:4fc01daae5a5 | 25 | * $Rev: 1116 $ |
bogdanm | 92:4fc01daae5a5 | 26 | * $Date:: 2014-07-09 16:29:19 +0900#$ |
bogdanm | 92:4fc01daae5a5 | 27 | * Description : USB register define header |
bogdanm | 92:4fc01daae5a5 | 28 | *******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 29 | #ifndef USB_IOBITMASK_H |
bogdanm | 92:4fc01daae5a5 | 30 | #define USB_IOBITMASK_H |
bogdanm | 92:4fc01daae5a5 | 31 | |
bogdanm | 92:4fc01daae5a5 | 32 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 33 | /* SYSCFG */ |
bogdanm | 92:4fc01daae5a5 | 34 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 35 | #define USB_SYSCFG_USBE (0x0001u) |
bogdanm | 92:4fc01daae5a5 | 36 | #define USB_SYSCFG_UPLLE (0x0002u) |
bogdanm | 92:4fc01daae5a5 | 37 | #define USB_SYSCFG_UCKSEL (0x0004u) |
bogdanm | 92:4fc01daae5a5 | 38 | /* #define USB_SYSCFG_RESERVED1 (0x0008u) */ |
bogdanm | 92:4fc01daae5a5 | 39 | #define USB_SYSCFG_DPRPU (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 40 | #define USB_SYSCFG_DRPD (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 41 | #define USB_SYSCFG_DCFM (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 42 | #define USB_SYSCFG_HSE (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 43 | /* #define USB_SYSCFG_RESERVED2 (0xFF00u) */ |
bogdanm | 92:4fc01daae5a5 | 44 | |
bogdanm | 92:4fc01daae5a5 | 45 | #define USB_SYSCFG_USBE_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 46 | #define USB_SYSCFG_UPLLE_SHIFT (1) |
bogdanm | 92:4fc01daae5a5 | 47 | #define USB_SYSCFG_UCKSEL_SHIFT (2) |
bogdanm | 92:4fc01daae5a5 | 48 | /* #define USB_SYSCFG_RESERVED1_SHIFT (3) */ |
bogdanm | 92:4fc01daae5a5 | 49 | #define USB_SYSCFG_DPRPU_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 50 | #define USB_SYSCFG_DRPD_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 51 | #define USB_SYSCFG_DCFM_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 52 | #define USB_SYSCFG_HSE_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 53 | /* #define USB_SYSCFG_RESERVED2_SHIFT (8) */ |
bogdanm | 92:4fc01daae5a5 | 54 | |
bogdanm | 92:4fc01daae5a5 | 55 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 56 | /* BUSWAIT */ |
bogdanm | 92:4fc01daae5a5 | 57 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 58 | #define USB_BUSWAIT_BWAIT (0x003Fu) |
bogdanm | 92:4fc01daae5a5 | 59 | |
bogdanm | 92:4fc01daae5a5 | 60 | #define USB_BUSWAIT_BWAIT_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 61 | |
bogdanm | 92:4fc01daae5a5 | 62 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 63 | /* SYSSTS0 */ |
bogdanm | 92:4fc01daae5a5 | 64 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 65 | #define USB_SYSSTS0_LNST (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 66 | #define USB_SYSSTS0_SOFEA (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 67 | #define USB_SYSSTS0_HTACT (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 68 | |
bogdanm | 92:4fc01daae5a5 | 69 | #define USB_SYSSTS0_LNST_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 70 | #define USB_SYSSTS0_SOFEA_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 71 | #define USB_SYSSTS0_HTACT_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 72 | |
bogdanm | 92:4fc01daae5a5 | 73 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 74 | /* DVSTCTR0 */ |
bogdanm | 92:4fc01daae5a5 | 75 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 76 | #define USB_DVSTCTR0_RHST (0x0007u) |
bogdanm | 92:4fc01daae5a5 | 77 | /* #define USB_DVSTCTR0_RESERVED (0x0008u) */ |
bogdanm | 92:4fc01daae5a5 | 78 | #define USB_DVSTCTR0_UACT (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 79 | #define USB_DVSTCTR0_RESUME (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 80 | #define USB_DVSTCTR0_USBRST (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 81 | #define USB_DVSTCTR0_RWUPE (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 82 | #define USB_DVSTCTR0_WKUP (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 83 | |
bogdanm | 92:4fc01daae5a5 | 84 | #define USB_DVSTCTR0_RHST_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 85 | /* #define USB_DVSTCTR0_RESERVED_SHIFT (3) */ |
bogdanm | 92:4fc01daae5a5 | 86 | #define USB_DVSTCTR0_UACT_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 87 | #define USB_DVSTCTR0_RESUME_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 88 | #define USB_DVSTCTR0_USBRST_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 89 | #define USB_DVSTCTR0_RWUPE_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 90 | #define USB_DVSTCTR0_WKUP_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 91 | |
bogdanm | 92:4fc01daae5a5 | 92 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 93 | /* TESTMODE */ |
bogdanm | 92:4fc01daae5a5 | 94 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 95 | #define USB_TESTMODE_UTST (0x000Fu) |
bogdanm | 92:4fc01daae5a5 | 96 | /* #define USB_TESTMODE_RESERVED (0xFFF0u) */ |
bogdanm | 92:4fc01daae5a5 | 97 | |
bogdanm | 92:4fc01daae5a5 | 98 | #define USB_TESTMODE_UTST_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 99 | /* #define USB_TESTMODE_RESERVED_SHIFT (4) */ |
bogdanm | 92:4fc01daae5a5 | 100 | |
bogdanm | 92:4fc01daae5a5 | 101 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 102 | /* DnFBCFG */ |
bogdanm | 92:4fc01daae5a5 | 103 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 104 | /* #define USB_DnFBCFG_RESERVED1 (0x000Fu) */ |
bogdanm | 92:4fc01daae5a5 | 105 | #define USB_DnFBCFG_TENDE (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 106 | /* #define USB_DnFBCFG_RESERVED2 (0x0FE0u) */ |
bogdanm | 92:4fc01daae5a5 | 107 | #define USB_DnFBCFG_DFACC (0x3000u) |
bogdanm | 92:4fc01daae5a5 | 108 | /* #define USB_DnFBCFG_RESERVED3 (0xC000u) */ |
bogdanm | 92:4fc01daae5a5 | 109 | |
bogdanm | 92:4fc01daae5a5 | 110 | /* #define USB_DnFBCFG_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 111 | #define USB_DnFBCFG_TENDE_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 112 | /* #define USB_DnFBCFG_RESERVED2_SHIFT (5) */ |
bogdanm | 92:4fc01daae5a5 | 113 | #define USB_DnFBCFG_DFACC_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 114 | /* #define USB_DnFBCFG_RESERVED3_SHIFT (14) */ |
bogdanm | 92:4fc01daae5a5 | 115 | |
bogdanm | 92:4fc01daae5a5 | 116 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 117 | /* CFIFO */ |
bogdanm | 92:4fc01daae5a5 | 118 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 119 | #define USB_CFIFO_FIFOPORT (0xFFFFFFFFuL) |
bogdanm | 92:4fc01daae5a5 | 120 | |
bogdanm | 92:4fc01daae5a5 | 121 | #define USB_CFIFO_FIFOPORT_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 122 | |
bogdanm | 92:4fc01daae5a5 | 123 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 124 | /* DnFIFO */ |
bogdanm | 92:4fc01daae5a5 | 125 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 126 | #define USB_DnFIFO_FIFOPORT (0xFFFFFFFFuL) |
bogdanm | 92:4fc01daae5a5 | 127 | |
bogdanm | 92:4fc01daae5a5 | 128 | #define USB_DnFIFO_FIFOPORT_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 129 | |
bogdanm | 92:4fc01daae5a5 | 130 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 131 | /* CFIFOSEL */ |
bogdanm | 92:4fc01daae5a5 | 132 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 133 | #define USB_CFIFOSEL_CURPIPE (0x000Fu) |
bogdanm | 92:4fc01daae5a5 | 134 | /* #define USB_CFIFOSEL_RESERVED1 (0x0010u) */ |
bogdanm | 92:4fc01daae5a5 | 135 | #define USB_CFIFOSEL_ISEL_ (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 136 | /* #define USB_CFIFOSEL_RESERVED2 (0x00C0u) */ |
bogdanm | 92:4fc01daae5a5 | 137 | #define USB_CFIFOSEL_BIGEND (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 138 | /* #define USB_CFIFOSEL_RESERVED3 (0x0200u) */ |
bogdanm | 92:4fc01daae5a5 | 139 | #define USB_CFIFOSEL_MBW (0x0C00u) |
bogdanm | 92:4fc01daae5a5 | 140 | /* #define USB_CFIFOSEL_RESERVED4 (0x3000u) */ |
bogdanm | 92:4fc01daae5a5 | 141 | #define USB_CFIFOSEL_REW (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 142 | #define USB_CFIFOSEL_RCNT (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 143 | |
bogdanm | 92:4fc01daae5a5 | 144 | #define USB_CFIFOSEL_CURPIPE_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 145 | /* #define USB_CFIFOSEL_RESERVED1_SHIFT (4) */ |
bogdanm | 92:4fc01daae5a5 | 146 | #define USB_CFIFOSEL_ISEL_SHIFT_ (5) |
bogdanm | 92:4fc01daae5a5 | 147 | /* #define USB_CFIFOSEL_RESERVED2_SHIFT (6) */ |
bogdanm | 92:4fc01daae5a5 | 148 | #define USB_CFIFOSEL_BIGEND_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 149 | /* #define USB_CFIFOSEL_RESERVED3_SHIFT (9) */ |
bogdanm | 92:4fc01daae5a5 | 150 | #define USB_CFIFOSEL_MBW_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 151 | /* #define USB_CFIFOSEL_RESERVED4_SHIFT (12) */ |
bogdanm | 92:4fc01daae5a5 | 152 | #define USB_CFIFOSEL_REW_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 153 | #define USB_CFIFOSEL_RCNT_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 154 | |
bogdanm | 92:4fc01daae5a5 | 155 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 156 | /* DnFIFOSEL */ |
bogdanm | 92:4fc01daae5a5 | 157 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 158 | #define USB_DnFIFOSEL_CURPIPE (0x000Fu) |
bogdanm | 92:4fc01daae5a5 | 159 | /* #define USB_DnFIFOSEL_RESERVED1 (0x00F0u) */ |
bogdanm | 92:4fc01daae5a5 | 160 | #define USB_DnFIFOSEL_BIGEND (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 161 | /* #define USB_DnFIFOSEL_RESERVED2 (0x0200u) */ |
bogdanm | 92:4fc01daae5a5 | 162 | #define USB_DnFIFOSEL_MBW (0x0C00u) |
bogdanm | 92:4fc01daae5a5 | 163 | #define USB_DnFIFOSEL_DREQE (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 164 | #define USB_DnFIFOSEL_DCLRM (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 165 | #define USB_DnFIFOSEL_REW (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 166 | #define USB_DnFIFOSEL_RCNT (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 167 | |
bogdanm | 92:4fc01daae5a5 | 168 | #define USB_DnFIFOSEL_CURPIPE_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 169 | /* #define USB_DnFIFOSEL_RESERVED1_SHIFT (4) */ |
bogdanm | 92:4fc01daae5a5 | 170 | #define USB_DnFIFOSEL_BIGEND_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 171 | /* #define USB_DnFIFOSEL_RESERVED2_SHIFT (9) */ |
bogdanm | 92:4fc01daae5a5 | 172 | #define USB_DnFIFOSEL_MBW_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 173 | #define USB_DnFIFOSEL_DREQE_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 174 | #define USB_DnFIFOSEL_DCLRM_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 175 | #define USB_DnFIFOSEL_REW_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 176 | #define USB_DnFIFOSEL_RCNT_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 177 | |
bogdanm | 92:4fc01daae5a5 | 178 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 179 | /* CFIFOCTR */ |
bogdanm | 92:4fc01daae5a5 | 180 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 181 | #define USB_CFIFOCTR_DTLN (0x0FFFu) |
bogdanm | 92:4fc01daae5a5 | 182 | /* #define USB_CFIFOCTR_RESERVED (0x1000u) */ |
bogdanm | 92:4fc01daae5a5 | 183 | #define USB_CFIFOCTR_FRDY (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 184 | #define USB_CFIFOCTR_BCLR (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 185 | #define USB_CFIFOCTR_BVAL (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 186 | |
bogdanm | 92:4fc01daae5a5 | 187 | #define USB_CFIFOCTR_DTLN_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 188 | /* #define USB_CFIFOCTR_RESERVED_SHIFT (12) */ |
bogdanm | 92:4fc01daae5a5 | 189 | #define USB_CFIFOCTR_FRDY_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 190 | #define USB_CFIFOCTR_BCLR_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 191 | #define USB_CFIFOCTR_BVAL_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 192 | |
bogdanm | 92:4fc01daae5a5 | 193 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 194 | /* DnFIFOCTR */ |
bogdanm | 92:4fc01daae5a5 | 195 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 196 | #define USB_DnFIFOCTR_DTLN (0x0FFFu) |
bogdanm | 92:4fc01daae5a5 | 197 | /* #define USB_DnFIFOCTR_RESERVED (0x1000u) */ |
bogdanm | 92:4fc01daae5a5 | 198 | #define USB_DnFIFOCTR_FRDY (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 199 | #define USB_DnFIFOCTR_BCLR (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 200 | #define USB_DnFIFOCTR_BVAL (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 201 | |
bogdanm | 92:4fc01daae5a5 | 202 | #define USB_DnFIFOCTR_DTLN_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 203 | /* #define USB_DnFIFOCTR_RESERVED_SHIFT (12) */ |
bogdanm | 92:4fc01daae5a5 | 204 | #define USB_DnFIFOCTR_FRDY_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 205 | #define USB_DnFIFOCTR_BCLR_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 206 | #define USB_DnFIFOCTR_BVAL_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 207 | |
bogdanm | 92:4fc01daae5a5 | 208 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 209 | /* INTENB0 */ |
bogdanm | 92:4fc01daae5a5 | 210 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 211 | /* #define USB_INTENB0_RESERVED (0x00FFu) */ |
bogdanm | 92:4fc01daae5a5 | 212 | #define USB_INTENB0_BRDYE (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 213 | #define USB_INTENB0_NRDYE (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 214 | #define USB_INTENB0_BEMPE (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 215 | #define USB_INTENB0_CTRE (0x0800u) |
bogdanm | 92:4fc01daae5a5 | 216 | #define USB_INTENB0_DVSE (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 217 | #define USB_INTENB0_SOFE (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 218 | #define USB_INTENB0_RSME (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 219 | #define USB_INTENB0_VBSE (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 220 | |
bogdanm | 92:4fc01daae5a5 | 221 | /* #define USB_INTENB0_RESERVED_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 222 | #define USB_INTENB0_BRDYE_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 223 | #define USB_INTENB0_NRDYE_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 224 | #define USB_INTENB0_BEMPE_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 225 | #define USB_INTENB0_CTRE_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 226 | #define USB_INTENB0_DVSE_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 227 | #define USB_INTENB0_SOFE_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 228 | #define USB_INTENB0_RSME_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 229 | #define USB_INTENB0_VBSE_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 230 | |
bogdanm | 92:4fc01daae5a5 | 231 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 232 | /* INTENB1 */ |
bogdanm | 92:4fc01daae5a5 | 233 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 234 | /* #define USB_INTENB1_RESERVED1 (0x000Fu) */ |
bogdanm | 92:4fc01daae5a5 | 235 | #define USB_INTENB1_SACKE (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 236 | #define USB_INTENB1_SIGNE (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 237 | #define USB_INTENB1_EOFERRE (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 238 | /* #define USB_INTENB1_RESERVED2 (0x0780u) */ |
bogdanm | 92:4fc01daae5a5 | 239 | #define USB_INTENB1_ATTCHE (0x0800u) |
bogdanm | 92:4fc01daae5a5 | 240 | #define USB_INTENB1_DTCHE (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 241 | /* #define USB_INTENB1_RESERVED3 (0x2000u) */ |
bogdanm | 92:4fc01daae5a5 | 242 | #define USB_INTENB1_BCHGE (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 243 | /* #define USB_INTENB1_RESERVED4 (0x8000u) */ |
bogdanm | 92:4fc01daae5a5 | 244 | |
bogdanm | 92:4fc01daae5a5 | 245 | /* #define USB_INTENB1_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 246 | #define USB_INTENB1_SACKE_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 247 | #define USB_INTENB1_SIGNE_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 248 | #define USB_INTENB1_EOFERRE_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 249 | /* #define USB_INTENB1_RESERVED2_SHIFT (7) */ |
bogdanm | 92:4fc01daae5a5 | 250 | #define USB_INTENB1_ATTCHE_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 251 | #define USB_INTENB1_DTCHE_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 252 | /* #define USB_INTENB1_RESERVED3_SHIFT (13) */ |
bogdanm | 92:4fc01daae5a5 | 253 | #define USB_INTENB1_BCHGE_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 254 | /* #define USB_INTENB1_RESERVED4_SHIFT (15) */ |
bogdanm | 92:4fc01daae5a5 | 255 | |
bogdanm | 92:4fc01daae5a5 | 256 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 257 | /* BRDYENB */ |
bogdanm | 92:4fc01daae5a5 | 258 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 259 | #define USB_BRDYENB (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 260 | |
bogdanm | 92:4fc01daae5a5 | 261 | #define USB_BRDYENB_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 262 | |
bogdanm | 92:4fc01daae5a5 | 263 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 264 | /* NRDYENB */ |
bogdanm | 92:4fc01daae5a5 | 265 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 266 | #define USB_NRDYENB (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 267 | |
bogdanm | 92:4fc01daae5a5 | 268 | #define USB_NRDYENB_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 269 | |
bogdanm | 92:4fc01daae5a5 | 270 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 271 | /* BEMPENB */ |
bogdanm | 92:4fc01daae5a5 | 272 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 273 | #define USB_BEMPENB (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 274 | |
bogdanm | 92:4fc01daae5a5 | 275 | #define USB_BEMPENB_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 276 | |
bogdanm | 92:4fc01daae5a5 | 277 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 278 | /* SOFCFG */ |
bogdanm | 92:4fc01daae5a5 | 279 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 280 | /* #define USB_SOFCFG_RESERVED1 (0x003Fu) */ |
bogdanm | 92:4fc01daae5a5 | 281 | #define USB_SOFCFG_BRDYM (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 282 | /* #define USB_SOFCFG_RESERVED2 (0x0080u) */ |
bogdanm | 92:4fc01daae5a5 | 283 | #define USB_SOFCFG_TRNENSEL (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 284 | /* #define USB_SOFCFG_RESERVED3 (0xFE00u) */ |
bogdanm | 92:4fc01daae5a5 | 285 | |
bogdanm | 92:4fc01daae5a5 | 286 | /* #define USB_SOFCFG_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 287 | #define USB_SOFCFG_BRDYM_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 288 | /* #define USB_SOFCFG_RESERVED2_SHIFT (7) */ |
bogdanm | 92:4fc01daae5a5 | 289 | #define USB_SOFCFG_TRNENSEL_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 290 | /* #define USB_SOFCFG_RESERVED3_SHIFT (9) */ |
bogdanm | 92:4fc01daae5a5 | 291 | |
bogdanm | 92:4fc01daae5a5 | 292 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 293 | /* INTSTS0 */ |
bogdanm | 92:4fc01daae5a5 | 294 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 295 | #define USB_INTSTS0_CTSQ (0x0007u) |
bogdanm | 92:4fc01daae5a5 | 296 | #define USB_INTSTS0_VALID (0x0008u) |
bogdanm | 92:4fc01daae5a5 | 297 | #define USB_INTSTS0_DVSQ (0x0070u) |
bogdanm | 92:4fc01daae5a5 | 298 | #define USB_INTSTS0_VBSTS (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 299 | #define USB_INTSTS0_BRDY (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 300 | #define USB_INTSTS0_NRDY (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 301 | #define USB_INTSTS0_BEMP (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 302 | #define USB_INTSTS0_CTRT (0x0800u) |
bogdanm | 92:4fc01daae5a5 | 303 | #define USB_INTSTS0_DVST (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 304 | #define USB_INTSTS0_SOFR (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 305 | #define USB_INTSTS0_RESM (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 306 | #define USB_INTSTS0_VBINT (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 307 | |
bogdanm | 92:4fc01daae5a5 | 308 | #define USB_INTSTS0_CTSQ_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 309 | #define USB_INTSTS0_VALID_SHIFT (3) |
bogdanm | 92:4fc01daae5a5 | 310 | #define USB_INTSTS0_DVSQ_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 311 | #define USB_INTSTS0_VBSTS_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 312 | #define USB_INTSTS0_BRDY_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 313 | #define USB_INTSTS0_NRDY_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 314 | #define USB_INTSTS0_BEMP_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 315 | #define USB_INTSTS0_CTRT_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 316 | #define USB_INTSTS0_DVST_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 317 | #define USB_INTSTS0_SOFR_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 318 | #define USB_INTSTS0_RESM_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 319 | #define USB_INTSTS0_VBINT_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 320 | |
bogdanm | 92:4fc01daae5a5 | 321 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 322 | /* INTSTS1 */ |
bogdanm | 92:4fc01daae5a5 | 323 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 324 | /* #define USB_INTSTS1_RESERVED1 (0x000Fu) */ |
bogdanm | 92:4fc01daae5a5 | 325 | #define USB_INTSTS1_SACK (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 326 | #define USB_INTSTS1_SIGN (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 327 | #define USB_INTSTS1_EOFERR (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 328 | /* #define USB_INTSTS1_RESERVED2 (0x0780u) */ |
bogdanm | 92:4fc01daae5a5 | 329 | #define USB_INTSTS1_ATTCH (0x0800u) |
bogdanm | 92:4fc01daae5a5 | 330 | #define USB_INTSTS1_DTCH (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 331 | /* #define USB_INTSTS1_RESERVED3 (0x2000u) */ |
bogdanm | 92:4fc01daae5a5 | 332 | #define USB_INTSTS1_BCHG (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 333 | /* #define USB_INTSTS1_RESERVED4 (0x8000u) */ |
bogdanm | 92:4fc01daae5a5 | 334 | |
bogdanm | 92:4fc01daae5a5 | 335 | /* #define USB_INTSTS1_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 336 | #define USB_INTSTS1_SACK_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 337 | #define USB_INTSTS1_SIGN_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 338 | #define USB_INTSTS1_EOFERR_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 339 | /* #define USB_INTSTS1_RESERVED2_SHIFT (7) */ |
bogdanm | 92:4fc01daae5a5 | 340 | #define USB_INTSTS1_ATTCH_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 341 | #define USB_INTSTS1_DTCH_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 342 | /* #define USB_INTSTS1_RESERVED3_SHIFT (13) */ |
bogdanm | 92:4fc01daae5a5 | 343 | #define USB_INTSTS1_BCHG_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 344 | /* #define USB_INTSTS1_RESERVED4_SHIFT (15) */ |
bogdanm | 92:4fc01daae5a5 | 345 | |
bogdanm | 92:4fc01daae5a5 | 346 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 347 | /* BRDYSTS */ |
bogdanm | 92:4fc01daae5a5 | 348 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 349 | #define USB_BRDYSTS (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 350 | |
bogdanm | 92:4fc01daae5a5 | 351 | #define USB_BRDYSTS_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 352 | |
bogdanm | 92:4fc01daae5a5 | 353 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 354 | /* NRDYSTS */ |
bogdanm | 92:4fc01daae5a5 | 355 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 356 | #define USB_NRDYSTS (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 357 | |
bogdanm | 92:4fc01daae5a5 | 358 | #define USB_NRDYSTS_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 359 | |
bogdanm | 92:4fc01daae5a5 | 360 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 361 | /* BEMPSTS */ |
bogdanm | 92:4fc01daae5a5 | 362 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 363 | #define USB_BEMPSTS (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 364 | |
bogdanm | 92:4fc01daae5a5 | 365 | #define USB_BEMPSTS_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 366 | |
bogdanm | 92:4fc01daae5a5 | 367 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 368 | /* FRMNUM */ |
bogdanm | 92:4fc01daae5a5 | 369 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 370 | #define USB_FRMNUM_FRNM (0x07FFu) |
bogdanm | 92:4fc01daae5a5 | 371 | /* #define USB_FRMNUM_RESERVED (0x3800u) */ |
bogdanm | 92:4fc01daae5a5 | 372 | #define USB_FRMNUM_CRCE (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 373 | #define USB_FRMNUM_OVRN (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 374 | |
bogdanm | 92:4fc01daae5a5 | 375 | #define USB_FRMNUM_FRNM_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 376 | /* #define USB_FRMNUM_RESERVED_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 377 | #define USB_FRMNUM_CRCE_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 378 | #define USB_FRMNUM_OVRN_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 379 | |
bogdanm | 92:4fc01daae5a5 | 380 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 381 | /* UFRMNUM */ |
bogdanm | 92:4fc01daae5a5 | 382 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 383 | #define USB_UFRMNUM_UFRNM (0x0007u) |
bogdanm | 92:4fc01daae5a5 | 384 | /* #define USB_UFRMNUM_RESERVED (0xFFF8u) */ |
bogdanm | 92:4fc01daae5a5 | 385 | |
bogdanm | 92:4fc01daae5a5 | 386 | #define USB_UFRMNUM_UFRNM_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 387 | /* #define USB_UFRMNUM_RESERVED_SHIFT (3) */ |
bogdanm | 92:4fc01daae5a5 | 388 | |
bogdanm | 92:4fc01daae5a5 | 389 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 390 | /* USBADDR */ |
bogdanm | 92:4fc01daae5a5 | 391 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 392 | #define USB_USBADDR_USBADDR (0x007Fu) |
bogdanm | 92:4fc01daae5a5 | 393 | /* #define USB_USBADDR_RESERVED (0xFF80u) */ |
bogdanm | 92:4fc01daae5a5 | 394 | |
bogdanm | 92:4fc01daae5a5 | 395 | #define USB_USBADDR_USBADDR_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 396 | /* #define USB_USBADDR_RESERVED_SHIFT (7) */ |
bogdanm | 92:4fc01daae5a5 | 397 | |
bogdanm | 92:4fc01daae5a5 | 398 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 399 | /* USBREQ */ |
bogdanm | 92:4fc01daae5a5 | 400 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 401 | #define USB_USBREQ_BMREQUESTTYPE (0x00FFu) |
bogdanm | 92:4fc01daae5a5 | 402 | #define USB_USBREQ_BREQUEST (0xFF00u) |
bogdanm | 92:4fc01daae5a5 | 403 | |
bogdanm | 92:4fc01daae5a5 | 404 | #define USB_USBREQ_BMREQUESTTYPE_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 405 | #define USB_USBREQ_BREQUEST_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 406 | |
bogdanm | 92:4fc01daae5a5 | 407 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 408 | /* USBVAL */ |
bogdanm | 92:4fc01daae5a5 | 409 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 410 | #define USB_USBVAL (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 411 | |
bogdanm | 92:4fc01daae5a5 | 412 | #define USB_USBVAL_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 413 | |
bogdanm | 92:4fc01daae5a5 | 414 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 415 | /* USBINDX */ |
bogdanm | 92:4fc01daae5a5 | 416 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 417 | #define USB_USBINDX (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 418 | |
bogdanm | 92:4fc01daae5a5 | 419 | #define USB_USBINDX_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 420 | |
bogdanm | 92:4fc01daae5a5 | 421 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 422 | /* USBLENG */ |
bogdanm | 92:4fc01daae5a5 | 423 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 424 | #define USB_USBLENG (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 425 | |
bogdanm | 92:4fc01daae5a5 | 426 | #define USB_USBLENG_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 427 | |
bogdanm | 92:4fc01daae5a5 | 428 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 429 | /* DCPCFG */ |
bogdanm | 92:4fc01daae5a5 | 430 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 431 | /* #define USB_DCPCFG_RESERVED1 (0x000Fu) */ |
bogdanm | 92:4fc01daae5a5 | 432 | #define USB_DCPCFG_DIR (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 433 | /* #define USB_DCPCFG_RESERVED2 (0x0060u) */ |
bogdanm | 92:4fc01daae5a5 | 434 | #define USB_DCPCFG_SHTNAK (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 435 | #define USB_DCPCFG_CNTMD (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 436 | /* #define USB_DCPCFG_RESERVED3 (0xFE00u) */ |
bogdanm | 92:4fc01daae5a5 | 437 | |
bogdanm | 92:4fc01daae5a5 | 438 | /* #define USB_DCPCFG_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 439 | #define USB_DCPCFG_DIR_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 440 | /* #define USB_DCPCFG_RESERVED2_SHIFT (5) */ |
bogdanm | 92:4fc01daae5a5 | 441 | #define USB_DCPCFG_SHTNK_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 442 | #define USB_DCPCFG_CNTMD_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 443 | /* #define USB_DCPCFG_RESERVED3 (9) */ |
bogdanm | 92:4fc01daae5a5 | 444 | |
bogdanm | 92:4fc01daae5a5 | 445 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 446 | /* DCPMAXP */ |
bogdanm | 92:4fc01daae5a5 | 447 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 448 | #define USB_DCPMAXP_MXPS (0x007Fu) |
bogdanm | 92:4fc01daae5a5 | 449 | /* #define USB_DCPMAXP_RESERVED (0x0F80u) */ |
bogdanm | 92:4fc01daae5a5 | 450 | #define USB_DCPMAXP_DEVSEL (0xF000u) |
bogdanm | 92:4fc01daae5a5 | 451 | |
bogdanm | 92:4fc01daae5a5 | 452 | #define USB_DCPMAXP_MXPS_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 453 | /* #define USB_DCPMAXP_RESERVED_SHIFT (7) */ |
bogdanm | 92:4fc01daae5a5 | 454 | #define USB_DCPMAXP_DEVSEL_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 455 | |
bogdanm | 92:4fc01daae5a5 | 456 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 457 | /* DCPCTR */ |
bogdanm | 92:4fc01daae5a5 | 458 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 459 | #define USB_DCPCTR_PID (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 460 | #define USB_DCPCTR_CCPL (0x0004u) |
bogdanm | 92:4fc01daae5a5 | 461 | /* #define USB_DCPCTR_RESERVED1 (0x0008u) */ |
bogdanm | 92:4fc01daae5a5 | 462 | #define USB_DCPCTR_PINGE (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 463 | #define USB_DCPCTR_PBUSY (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 464 | #define USB_DCPCTR_SQMON (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 465 | #define USB_DCPCTR_SQSET (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 466 | #define USB_DCPCTR_SQCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 467 | /* #define USB_DCPCTR_RESERVED2 (0x0600u) */ |
bogdanm | 92:4fc01daae5a5 | 468 | #define USB_DCPCTR_SUREQCLR (0x0800u) |
bogdanm | 92:4fc01daae5a5 | 469 | #define USB_DCPCTR_CSSTS (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 470 | #define USB_DCPCTR_CSCLR (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 471 | #define USB_DCPCTR_SUREQ (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 472 | #define USB_DCPCTR_BSTS (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 473 | |
bogdanm | 92:4fc01daae5a5 | 474 | #define USB_DCPCTR_PID_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 475 | #define USB_DCPCTR_CCPL_SHIFT (2) |
bogdanm | 92:4fc01daae5a5 | 476 | /* #define USB_DCPCTR_RESERVED1_SHIFT (3) */ |
bogdanm | 92:4fc01daae5a5 | 477 | #define USB_DCPCTR_PINGE_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 478 | #define USB_DCPCTR_PBUSY_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 479 | #define USB_DCPCTR_SQMON_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 480 | #define USB_DCPCTR_SQSET_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 481 | #define USB_DCPCTR_SQCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 482 | /* #define USB_DCPCTR_RESERVED2_SHIFT (9) */ |
bogdanm | 92:4fc01daae5a5 | 483 | #define USB_DCPCTR_SUREQCLR_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 484 | #define USB_DCPCTR_CSSTS_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 485 | #define USB_DCPCTR_CSCLR_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 486 | #define USB_DCPCTR_SUREQ_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 487 | #define USB_DCPCTR_BSTS_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 488 | |
bogdanm | 92:4fc01daae5a5 | 489 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 490 | /* PIPESEL */ |
bogdanm | 92:4fc01daae5a5 | 491 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 492 | #define USB_PIPESEL_PIPESEL (0x000Fu) |
bogdanm | 92:4fc01daae5a5 | 493 | /* #define USB_PIPESEL_RESERVED (0xFFF0u) */ |
bogdanm | 92:4fc01daae5a5 | 494 | |
bogdanm | 92:4fc01daae5a5 | 495 | #define USB_PIPESEL_PIPESEL_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 496 | /* #define USB_PIPESEL_RESERVED_SHIFT (4) */ |
bogdanm | 92:4fc01daae5a5 | 497 | |
bogdanm | 92:4fc01daae5a5 | 498 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 499 | /* PIPECFG */ |
bogdanm | 92:4fc01daae5a5 | 500 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 501 | #define USB_PIPECFG_EPNUM (0x000Fu) |
bogdanm | 92:4fc01daae5a5 | 502 | #define USB_PIPECFG_DIR (0x0010u) |
bogdanm | 92:4fc01daae5a5 | 503 | /* #define USB_PIPECFG_RESERVED1 (0x0060u) */ |
bogdanm | 92:4fc01daae5a5 | 504 | #define USB_PIPECFG_SHTNAK (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 505 | #define USB_PIPECFG_CNTMD (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 506 | #define USB_PIPECFG_DBLB (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 507 | #define USB_PIPECFG_BFRE (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 508 | /* #define USB_PIPECFG_RESERVED2 (0x3800u) */ |
bogdanm | 92:4fc01daae5a5 | 509 | #define USB_PIPECFG_TYPE (0xC000u) |
bogdanm | 92:4fc01daae5a5 | 510 | |
bogdanm | 92:4fc01daae5a5 | 511 | #define USB_PIPECFG_EPNUM_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 512 | #define USB_PIPECFG_DIR_SHIFT (4) |
bogdanm | 92:4fc01daae5a5 | 513 | /* #define USB_PIPECFG_RESERVED1_SHIFT (5) */ |
bogdanm | 92:4fc01daae5a5 | 514 | #define USB_PIPECFG_SHTNAK_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 515 | #define USB_PIPECFG_CNTMD_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 516 | #define USB_PIPECFG_DBLB_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 517 | #define USB_PIPECFG_BFRE_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 518 | /* #define USB_PIPECFG_RESERVED2_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 519 | #define USB_PIPECFG_TYPE_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 520 | |
bogdanm | 92:4fc01daae5a5 | 521 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 522 | /* PIPEBUF */ |
bogdanm | 92:4fc01daae5a5 | 523 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 524 | #define USB_PIPEBUF_BUFNMB (0x00FFu) |
bogdanm | 92:4fc01daae5a5 | 525 | /* #define USB_PIPEBUF_RESERVED1 (0x0300u) */ |
bogdanm | 92:4fc01daae5a5 | 526 | #define USB_PIPEBUF_BUFSIZE (0x7C00u) |
bogdanm | 92:4fc01daae5a5 | 527 | /* #define USB_PIPEBUF_RESERVED2 (0x8000u) */ |
bogdanm | 92:4fc01daae5a5 | 528 | |
bogdanm | 92:4fc01daae5a5 | 529 | #define USB_PIPEBUF_BUFNMB_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 530 | /* #define USB_PIPEBUF_RESERVED1_SHIFT (8) */ |
bogdanm | 92:4fc01daae5a5 | 531 | #define USB_PIPEBUF_BUFSIZE_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 532 | /* #define USB_PIPEBUF_RESERVED2_SHIFT (15) */ |
bogdanm | 92:4fc01daae5a5 | 533 | |
bogdanm | 92:4fc01daae5a5 | 534 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 535 | /* PIPEMAXP */ |
bogdanm | 92:4fc01daae5a5 | 536 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 537 | #define USB_PIPEMAXP_MXPS (0x07FFu) |
bogdanm | 92:4fc01daae5a5 | 538 | /* #define USB_PIPEMAXP_RESERVED (0x0800u) */ |
bogdanm | 92:4fc01daae5a5 | 539 | #define USB_PIPEMAXP_DEVSEL (0xF000u) |
bogdanm | 92:4fc01daae5a5 | 540 | |
bogdanm | 92:4fc01daae5a5 | 541 | #define USB_PIPEMAXP_MXPS_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 542 | /* #define USB_PIPEMAXP_RESERVED_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 543 | #define USB_PIPEMAXP_DEVSEL_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 544 | |
bogdanm | 92:4fc01daae5a5 | 545 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 546 | /* PIPEPERI */ |
bogdanm | 92:4fc01daae5a5 | 547 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 548 | #define USB_PIPEPERI_IITV (0x0007u) |
bogdanm | 92:4fc01daae5a5 | 549 | /* #define USB_PIPEPERI_RESERVED1 (0x0FF8u) */ |
bogdanm | 92:4fc01daae5a5 | 550 | #define USB_PIPEPERI_IFIS (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 551 | /* #define USB_PIPEPERI_RESERVED2 (0xE000u) */ |
bogdanm | 92:4fc01daae5a5 | 552 | |
bogdanm | 92:4fc01daae5a5 | 553 | #define USB_PIPEPERI_IITV_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 554 | /* #define USB_PIPEPERI_RESERVED1_SHIFT (3) */ |
bogdanm | 92:4fc01daae5a5 | 555 | #define USB_PIPEPERI_IFIS_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 556 | /* #define USB_PIPEPERI_RESERVED2_SHIFT (13) */ |
bogdanm | 92:4fc01daae5a5 | 557 | |
bogdanm | 92:4fc01daae5a5 | 558 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 559 | /* PIPEnCTR_1_5 */ |
bogdanm | 92:4fc01daae5a5 | 560 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 561 | #define USB_PIPEnCTR_1_5_PID (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 562 | /* #define USB_PIPEnCTR_1_5_RESERVED1 (0x001Cu) */ |
bogdanm | 92:4fc01daae5a5 | 563 | #define USB_PIPEnCTR_1_5_PBUSY (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 564 | #define USB_PIPEnCTR_1_5_SQMON (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 565 | #define USB_PIPEnCTR_1_5_SQSET (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 566 | #define USB_PIPEnCTR_1_5_SQCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 567 | #define USB_PIPEnCTR_1_5_ACLRM (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 568 | #define USB_PIPEnCTR_1_5_ATREPM (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 569 | /* #define USB_PIPEnCTR_1_5_RESERVED2 (0x0800u) */ |
bogdanm | 92:4fc01daae5a5 | 570 | #define USB_PIPEnCTR_1_5_CSSTS (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 571 | #define USB_PIPEnCTR_1_5_CSCLR (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 572 | #define USB_PIPEnCTR_1_5_INBUFM (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 573 | #define USB_PIPEnCTR_1_5_BSTS (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 574 | |
bogdanm | 92:4fc01daae5a5 | 575 | #define USB_PIPEnCTR_1_5_PID_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 576 | /* #define USB_PIPEnCTR_1_5_RESERVED1_SHIFT (2) */ |
bogdanm | 92:4fc01daae5a5 | 577 | #define USB_PIPEnCTR_1_5_PBUSY_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 578 | #define USB_PIPEnCTR_1_5_SQMON_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 579 | #define USB_PIPEnCTR_1_5_SQSET_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 580 | #define USB_PIPEnCTR_1_5_SQCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 581 | #define USB_PIPEnCTR_1_5_ACLRM_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 582 | #define USB_PIPEnCTR_1_5_ATREPM_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 583 | /* #define USB_PIPEnCTR_1_5_RESERVED2_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 584 | #define USB_PIPEnCTR_1_5_CSSTS_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 585 | #define USB_PIPEnCTR_1_5_CSCLR_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 586 | #define USB_PIPEnCTR_1_5_INBUFM_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 587 | #define USB_PIPEnCTR_1_5_BSTS_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 588 | |
bogdanm | 92:4fc01daae5a5 | 589 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 590 | /* PIPEnCTR_6_8 */ |
bogdanm | 92:4fc01daae5a5 | 591 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 592 | #define USB_PIPEnCTR_6_8_PID (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 593 | /* #define USB_PIPEnCTR_6_8_RESERVED1 (0x001Cu) */ |
bogdanm | 92:4fc01daae5a5 | 594 | #define USB_PIPEnCTR_6_8_PBUSY (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 595 | #define USB_PIPEnCTR_6_8_SQMON (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 596 | #define USB_PIPEnCTR_6_8_SQSET (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 597 | #define USB_PIPEnCTR_6_8_SQCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 598 | #define USB_PIPEnCTR_6_8_ACLRM (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 599 | /* #define USB_PIPEnCTR_6_8_RESERVED2 (0x0C00u) */ |
bogdanm | 92:4fc01daae5a5 | 600 | #define USB_PIPEnCTR_6_8_CSSTS (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 601 | #define USB_PIPEnCTR_6_8_CSCLR (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 602 | /* #define USB_PIPEnCTR_6_8_RESERVED3 (0x4000u) */ |
bogdanm | 92:4fc01daae5a5 | 603 | #define USB_PIPEnCTR_6_8_BSTS (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 604 | |
bogdanm | 92:4fc01daae5a5 | 605 | #define USB_PIPEnCTR_6_8_PID_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 606 | /* #define USB_PIPEnCTR_6_8_RESERVED1_SHIFT (2) */ |
bogdanm | 92:4fc01daae5a5 | 607 | #define USB_PIPEnCTR_6_8_PBUSY_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 608 | #define USB_PIPEnCTR_6_8_SQMON_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 609 | #define USB_PIPEnCTR_6_8_SQSET_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 610 | #define USB_PIPEnCTR_6_8_SQCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 611 | #define USB_PIPEnCTR_6_8_ACLRM_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 612 | /* #define USB_PIPEnCTR_6_8_RESERVED2_SHIFT (10) */ |
bogdanm | 92:4fc01daae5a5 | 613 | #define USB_PIPEnCTR_6_8_CSSTS_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 614 | #define USB_PIPEnCTR_6_8_CSCLR_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 615 | /* #define USB_PIPEnCTR_6_8_RESERVED3_SHIFT (14) */ |
bogdanm | 92:4fc01daae5a5 | 616 | #define USB_PIPEnCTR_6_8_BSTS_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 617 | |
bogdanm | 92:4fc01daae5a5 | 618 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 619 | /* PIPEnCTR_9 */ |
bogdanm | 92:4fc01daae5a5 | 620 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 621 | #define USB_PIPEnCTR_9_PID (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 622 | /* #define USB_PIPEnCTR_9_RESERVED1 (0x001Cu) */ |
bogdanm | 92:4fc01daae5a5 | 623 | #define USB_PIPEnCTR_9_PBUSY (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 624 | #define USB_PIPEnCTR_9_SQMON (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 625 | #define USB_PIPEnCTR_9_SQSET (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 626 | #define USB_PIPEnCTR_9_SQCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 627 | #define USB_PIPEnCTR_9_ACLRM (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 628 | #define USB_PIPEnCTR_9_ATREPM (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 629 | /* #define USB_PIPEnCTR_9_RESERVED2 (0x0800u) */ |
bogdanm | 92:4fc01daae5a5 | 630 | #define USB_PIPEnCTR_9_CSSTS (0x1000u) |
bogdanm | 92:4fc01daae5a5 | 631 | #define USB_PIPEnCTR_9_CSCLR (0x2000u) |
bogdanm | 92:4fc01daae5a5 | 632 | #define USB_PIPEnCTR_9_INBUFM (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 633 | #define USB_PIPEnCTR_9_BSTS (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 634 | |
bogdanm | 92:4fc01daae5a5 | 635 | #define USB_PIPEnCTR_9_PID_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 636 | /* #define USB_PIPEnCTR_9_RESERVED1_SHIFT (2) */ |
bogdanm | 92:4fc01daae5a5 | 637 | #define USB_PIPEnCTR_9_PBUSY_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 638 | #define USB_PIPEnCTR_9_SQMON_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 639 | #define USB_PIPEnCTR_9_SQSET_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 640 | #define USB_PIPEnCTR_9_SQCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 641 | #define USB_PIPEnCTR_9_ACLRM_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 642 | #define USB_PIPEnCTR_9_ATREPM_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 643 | /* #define USB_PIPEnCTR_9_RESERVED2_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 644 | #define USB_PIPEnCTR_9_CSSTS_SHIFT (12) |
bogdanm | 92:4fc01daae5a5 | 645 | #define USB_PIPEnCTR_9_CSCLR_SHIFT (13) |
bogdanm | 92:4fc01daae5a5 | 646 | #define USB_PIPEnCTR_9_INBUFM_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 647 | #define USB_PIPEnCTR_9_BSTS_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 648 | |
bogdanm | 92:4fc01daae5a5 | 649 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 650 | /* PIPEnCTR_A_F */ |
bogdanm | 92:4fc01daae5a5 | 651 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 652 | #define USB_PIPEnCTR_A_F_PID (0x0003u) |
bogdanm | 92:4fc01daae5a5 | 653 | /* #define USB_PIPEnCTR_A_F_RESERVED1 (0x001Cu) */ |
bogdanm | 92:4fc01daae5a5 | 654 | #define USB_PIPEnCTR_A_F_PBUSY (0x0020u) |
bogdanm | 92:4fc01daae5a5 | 655 | #define USB_PIPEnCTR_A_F_SQMON (0x0040u) |
bogdanm | 92:4fc01daae5a5 | 656 | #define USB_PIPEnCTR_A_F_SQSET (0x0080u) |
bogdanm | 92:4fc01daae5a5 | 657 | #define USB_PIPEnCTR_A_F_SQCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 658 | #define USB_PIPEnCTR_A_F_ACLRM (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 659 | #define USB_PIPEnCTR_A_F_ATREPM (0x0400u) |
bogdanm | 92:4fc01daae5a5 | 660 | /* #define USB_PIPEnCTR_A_F_RESERVED2 (0x3800u) */ |
bogdanm | 92:4fc01daae5a5 | 661 | #define USB_PIPEnCTR_A_F_INBUFM (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 662 | #define USB_PIPEnCTR_A_F_BSTS (0x8000u) |
bogdanm | 92:4fc01daae5a5 | 663 | |
bogdanm | 92:4fc01daae5a5 | 664 | #define USB_PIPEnCTR_A_F_PID_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 665 | /* #define USB_PIPEnCTR_A_F_RESERVED1_SHIFT (2) */ |
bogdanm | 92:4fc01daae5a5 | 666 | #define USB_PIPEnCTR_A_F_PBUSY_SHIFT (5) |
bogdanm | 92:4fc01daae5a5 | 667 | #define USB_PIPEnCTR_A_F_SQMON_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 668 | #define USB_PIPEnCTR_A_F_SQSET_SHIFT (7) |
bogdanm | 92:4fc01daae5a5 | 669 | #define USB_PIPEnCTR_A_F_SQCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 670 | #define USB_PIPEnCTR_A_F_ACLRM_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 671 | #define USB_PIPEnCTR_A_F_ATREPM_SHIFT (10) |
bogdanm | 92:4fc01daae5a5 | 672 | /* #define USB_PIPEnCTR_A_F_RESERVED2_SHIFT (11) */ |
bogdanm | 92:4fc01daae5a5 | 673 | #define USB_PIPEnCTR_A_F_INBUFM_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 674 | #define USB_PIPEnCTR_A_F_BSTS_SHIFT (15) |
bogdanm | 92:4fc01daae5a5 | 675 | |
bogdanm | 92:4fc01daae5a5 | 676 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 677 | /* PIPEnTRE */ |
bogdanm | 92:4fc01daae5a5 | 678 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 679 | /* #define USB_PIPEnTRE_RESERVED1 (0x00FFu) */ |
bogdanm | 92:4fc01daae5a5 | 680 | #define USB_PIPEnTRE_TRCLR (0x0100u) |
bogdanm | 92:4fc01daae5a5 | 681 | #define USB_PIPEnTRE_TRENB (0x0200u) |
bogdanm | 92:4fc01daae5a5 | 682 | /* #define USB_PIPEnTRE_RESERVED2 (0xFC00u) */ |
bogdanm | 92:4fc01daae5a5 | 683 | |
bogdanm | 92:4fc01daae5a5 | 684 | /* #define USB_PIPEnTRE_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 685 | #define USB_PIPEnTRE_TRCLR_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 686 | #define USB_PIPEnTRE_TRENB_SHIFT (9) |
bogdanm | 92:4fc01daae5a5 | 687 | /* #define USB_PIPEnTRE_RESERVED2_SHIFT (10) */ |
bogdanm | 92:4fc01daae5a5 | 688 | |
bogdanm | 92:4fc01daae5a5 | 689 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 690 | /* PIPEnTRN */ |
bogdanm | 92:4fc01daae5a5 | 691 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 692 | #define USB_PIPEnTRN (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 693 | |
bogdanm | 92:4fc01daae5a5 | 694 | #define USB_PIPEnTRN_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 695 | |
bogdanm | 92:4fc01daae5a5 | 696 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 697 | /* DEVADDn */ |
bogdanm | 92:4fc01daae5a5 | 698 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 699 | /* #define USB_DEVADDn_RESERVED1 (0x003Fu) */ |
bogdanm | 92:4fc01daae5a5 | 700 | #define USB_DEVADDn_USBSPD (0x00C0u) |
bogdanm | 92:4fc01daae5a5 | 701 | #define USB_DEVADDn_HUBPORT (0x0700u) |
bogdanm | 92:4fc01daae5a5 | 702 | #define USB_DEVADDn_UPPHUB (0x7800u) |
bogdanm | 92:4fc01daae5a5 | 703 | /* #define USB_DEVADDn_RESERVED2 (0x8000u) */ |
bogdanm | 92:4fc01daae5a5 | 704 | |
bogdanm | 92:4fc01daae5a5 | 705 | /* #define USB_DEVADDn_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 706 | #define USB_DEVADDn_USBSPD_SHIFT (6) |
bogdanm | 92:4fc01daae5a5 | 707 | #define USB_DEVADDn_HUBPORT_SHIFT (8) |
bogdanm | 92:4fc01daae5a5 | 708 | #define USB_DEVADDn_UPPHUB_SHIFT (11) |
bogdanm | 92:4fc01daae5a5 | 709 | /* #define USB_DEVADDn_RESERVED2_SHIFT (15) */ |
bogdanm | 92:4fc01daae5a5 | 710 | |
bogdanm | 92:4fc01daae5a5 | 711 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 712 | /* SUSPMODE */ |
bogdanm | 92:4fc01daae5a5 | 713 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 714 | /* #define USB_SUSPMODE_RESERVED1 (0x3FFFu) */ |
bogdanm | 92:4fc01daae5a5 | 715 | #define USB_SUSPMODE_SUSPM (0x4000u) |
bogdanm | 92:4fc01daae5a5 | 716 | /* #define USB_SUSPMODE_RESERVED2 (0x8000u) */ |
bogdanm | 92:4fc01daae5a5 | 717 | |
bogdanm | 92:4fc01daae5a5 | 718 | /* #define USB_SUSPMODE_RESERVED1_SHIFT (0) */ |
bogdanm | 92:4fc01daae5a5 | 719 | #define USB_SUSPMODE_SUSPM_SHIFT (14) |
bogdanm | 92:4fc01daae5a5 | 720 | /* #define USB_SUSPMODE_RESERVED2_SHIFT (15) */ |
bogdanm | 92:4fc01daae5a5 | 721 | |
bogdanm | 92:4fc01daae5a5 | 722 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 723 | /* DnFIFOBm */ |
bogdanm | 92:4fc01daae5a5 | 724 | /*==============================================*/ |
bogdanm | 92:4fc01daae5a5 | 725 | #define USB_DnFIFOBm (0xFFFFu) |
bogdanm | 92:4fc01daae5a5 | 726 | |
bogdanm | 92:4fc01daae5a5 | 727 | #define USB_DnFIFOBm_SHIFT (0) |
bogdanm | 92:4fc01daae5a5 | 728 | |
bogdanm | 92:4fc01daae5a5 | 729 | #endif /* USB_IOBITMASK_H */ |
bogdanm | 92:4fc01daae5a5 | 730 | |
bogdanm | 92:4fc01daae5a5 | 731 | /* End of File */ |