From cb3305fa8b746a3ccb6cc779a2af07e44c289e75 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 19 Jul 2011 02:15:36 +0000 Subject: Move out the EP_TYPE_* macros to the base USBController.h header, as these are used in the device descriptors as well and thus must not be changed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1892 d5102386-fcda-11dd-9fdb-3debd5008f28 --- LUFA/Drivers/USB/Core/USBController.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'LUFA/Drivers/USB/Core/USBController.h') diff --git a/LUFA/Drivers/USB/Core/USBController.h b/LUFA/Drivers/USB/Core/USBController.h index 28faee5b..49fbb41f 100644 --- a/LUFA/Drivers/USB/Core/USBController.h +++ b/LUFA/Drivers/USB/Core/USBController.h @@ -62,6 +62,34 @@ #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. #endif + /* Defines: */ + /** \name Endpoint/Pipe Type Masks */ + //@{ + /** Mask for a CONTROL type endpoint or pipe. + * + * \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. + */ + #define EP_TYPE_CONTROL 0x00 + + /** Mask for an ISOCHRONOUS type endpoint or pipe. + * + * \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. + */ + #define EP_TYPE_ISOCHRONOUS 0x01 + + /** Mask for a BULK type endpoint or pipe. + * + * \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. + */ + #define EP_TYPE_BULK 0x02 + + /** Mask for an INTERRUPT type endpoint or pipe. + * + * \note See \ref Group_EndpointManagement and \ref Group_PipeManagement for endpoint/pipe functions. + */ + #define EP_TYPE_INTERRUPT 0x03 + //@} + /* Architecture Includes: */ #if (ARCH == ARCH_AVR8) #include "AVR8/USBController_AVR8.h" -- cgit v1.2.3