H2M Teststand
/
Pruefprogramm_Motorteststand
Kalibriersoftware Stromwerte
USBDevice/USBEndpoints.h@0:5e35c180ed4a, 2015-11-23 (annotated)
- Committer:
- Racer01014
- Date:
- Mon Nov 23 16:09:54 2015 +0000
- Revision:
- 0:5e35c180ed4a
-
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Racer01014 | 0:5e35c180ed4a | 1 | /* Copyright (c) 2010-2011 mbed.org, MIT License |
Racer01014 | 0:5e35c180ed4a | 2 | * |
Racer01014 | 0:5e35c180ed4a | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
Racer01014 | 0:5e35c180ed4a | 4 | * and associated documentation files (the "Software"), to deal in the Software without |
Racer01014 | 0:5e35c180ed4a | 5 | * restriction, including without limitation the rights to use, copy, modify, merge, publish, |
Racer01014 | 0:5e35c180ed4a | 6 | * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the |
Racer01014 | 0:5e35c180ed4a | 7 | * Software is furnished to do so, subject to the following conditions: |
Racer01014 | 0:5e35c180ed4a | 8 | * |
Racer01014 | 0:5e35c180ed4a | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
Racer01014 | 0:5e35c180ed4a | 10 | * substantial portions of the Software. |
Racer01014 | 0:5e35c180ed4a | 11 | * |
Racer01014 | 0:5e35c180ed4a | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
Racer01014 | 0:5e35c180ed4a | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
Racer01014 | 0:5e35c180ed4a | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
Racer01014 | 0:5e35c180ed4a | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
Racer01014 | 0:5e35c180ed4a | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Racer01014 | 0:5e35c180ed4a | 17 | */ |
Racer01014 | 0:5e35c180ed4a | 18 | |
Racer01014 | 0:5e35c180ed4a | 19 | #ifndef USBENDPOINTS_H |
Racer01014 | 0:5e35c180ed4a | 20 | #define USBENDPOINTS_H |
Racer01014 | 0:5e35c180ed4a | 21 | |
Racer01014 | 0:5e35c180ed4a | 22 | /* SETUP packet size */ |
Racer01014 | 0:5e35c180ed4a | 23 | #define SETUP_PACKET_SIZE (8) |
Racer01014 | 0:5e35c180ed4a | 24 | |
Racer01014 | 0:5e35c180ed4a | 25 | /* Options flags for configuring endpoints */ |
Racer01014 | 0:5e35c180ed4a | 26 | #define DEFAULT_OPTIONS (0) |
Racer01014 | 0:5e35c180ed4a | 27 | #define SINGLE_BUFFERED (1U << 0) |
Racer01014 | 0:5e35c180ed4a | 28 | #define ISOCHRONOUS (1U << 1) |
Racer01014 | 0:5e35c180ed4a | 29 | #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */ |
Racer01014 | 0:5e35c180ed4a | 30 | |
Racer01014 | 0:5e35c180ed4a | 31 | /* Endpoint transfer status, for endpoints > 0 */ |
Racer01014 | 0:5e35c180ed4a | 32 | typedef enum { |
Racer01014 | 0:5e35c180ed4a | 33 | EP_COMPLETED, /* Transfer completed */ |
Racer01014 | 0:5e35c180ed4a | 34 | EP_PENDING, /* Transfer in progress */ |
Racer01014 | 0:5e35c180ed4a | 35 | EP_INVALID, /* Invalid parameter */ |
Racer01014 | 0:5e35c180ed4a | 36 | EP_STALLED, /* Endpoint stalled */ |
Racer01014 | 0:5e35c180ed4a | 37 | } EP_STATUS; |
Racer01014 | 0:5e35c180ed4a | 38 | |
Racer01014 | 0:5e35c180ed4a | 39 | /* Include configuration for specific target */ |
Racer01014 | 0:5e35c180ed4a | 40 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) |
Racer01014 | 0:5e35c180ed4a | 41 | #include "USBEndpoints_LPC17_LPC23.h" |
Racer01014 | 0:5e35c180ed4a | 42 | #elif defined(TARGET_LPC11U24) |
Racer01014 | 0:5e35c180ed4a | 43 | #include "USBEndpoints_LPC11U.h" |
Racer01014 | 0:5e35c180ed4a | 44 | #elif defined(TARGET_KL25Z) |
Racer01014 | 0:5e35c180ed4a | 45 | #include "USBEndpoints_KL25Z.h" |
Racer01014 | 0:5e35c180ed4a | 46 | #else |
Racer01014 | 0:5e35c180ed4a | 47 | #error "Unknown target type" |
Racer01014 | 0:5e35c180ed4a | 48 | #endif |
Racer01014 | 0:5e35c180ed4a | 49 | |
Racer01014 | 0:5e35c180ed4a | 50 | #endif |