\r
/** \ingroup Group_PipeManagement\r
* \defgroup Group_PipeRW Pipe Data Reading and Writing\r
- * \brief Common USB Pipe definitions for all architectures.\r
+ * \brief Pipe data read/write definitions.\r
*\r
* Functions, macros, variables, enums and types related to data reading and writing from and to pipes.\r
*/\r
\r
/** \ingroup Group_PipeRW\r
* \defgroup Group_PipePrimitiveRW Read/Write of Primitive Data Types\r
+ * \brief Pipe data primitive read/write definitions.\r
*\r
* Functions, macros, variables, enums and types related to data reading and writing of primitive data types\r
* from and to pipes.\r
\r
/** \ingroup Group_PipeManagement\r
* \defgroup Group_PipePacketManagement Pipe Packet Management\r
+ * \brief Pipe packet management definitions.\r
*\r
* Functions, macros, variables, enums and types related to packet management of pipes.\r
*/\r
\r
/** \ingroup Group_PipeManagement\r
* \defgroup Group_PipeControlReq Pipe Control Request Management\r
+ * \brief Pipe control request definitions.\r
*\r
* Module for host mode request processing. This module allows for the transmission of standard, class and\r
* vendor control requests to the default control endpoint of an attached device while in host mode.\r
\r
/** \ingroup Group_USB\r
* \defgroup Group_PipeManagement Pipe Management\r
+ * \brief Pipe management definitions.\r
*\r
* This module contains functions, macros and enums related to pipe management when in USB Host mode. This\r
* module contains the pipe management macros, as well as pipe interrupt and data send/receive functions\r
\r
/* Includes: */\r
#include "../../../Common/Common.h"\r
+ #include "USBMode.h"\r
\r
- #if (ARCH == ARCH_AVR8)\r
- #include "AVR8/Pipe.h"\r
+ /* Enable C linkage for C++ Compilers: */\r
+ #if defined(__cplusplus)\r
+ extern "C" {\r
#endif\r
\r
/* Preprocessor Checks: */\r
#error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
#endif\r
\r
+ /* Public Interface - May be used in end-application: */\r
+ /* Macros: */\r
+ /** Pipe address for the default control pipe, which always resides in address 0. This is\r
+ * defined for convenience to give more readable code when used with the pipe macros.\r
+ */\r
+ #define PIPE_CONTROLPIPE 0\r
+\r
+ /** Pipe number mask, for masking against pipe addresses to retrieve the pipe's numerical address\r
+ * in the device.\r
+ */\r
+ #define PIPE_PIPENUM_MASK 0x07\r
+\r
+ /** Endpoint number mask, for masking against endpoint addresses to retrieve the endpoint's\r
+ * numerical address in the attached device.\r
+ */\r
+ #define PIPE_EPNUM_MASK 0x0F\r
+\r
+ /** Endpoint direction mask, for masking against endpoint addresses to retrieve the endpoint's\r
+ * direction for comparing with the \c ENDPOINT_DESCRIPTOR_DIR_* masks.\r
+ */\r
+ #define PIPE_EPDIR_MASK 0x80\r
+\r
+ /* Architecture Includes: */\r
+ #if (ARCH == ARCH_AVR8)\r
+ #include "AVR8/Pipe_AVR8.h"\r
+ #elif (ARCH == ARCH_UC3)\r
+ #include "UC3/Pipe_UC3.h"\r
+ #endif\r
+\r
+ /* Disable C linkage for C++ Compilers: */\r
+ #if defined(__cplusplus)\r
+ }\r
+ #endif\r
+\r
#endif\r
\r
/** @} */\r