Create a new Common module documentation group for the new Global Interrupt macros.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / PipeStream.h
index 86c544e..c914fc1 100644 (file)
 */\r
  \r
 /** \file\r
- *  \brief USB host pipe stream function definitions.\r
- *\r
- *  This file contains structures, function prototypes and macros related to the sending and receiving of\r
- *  arbitrary data streams through the device's data pipes when the library is initialized in USB host mode.\r
+ *  \brief Pipe data stream transmission and reception management.\r
+ *  \copydetails Group_PipeStreamRW\r
  *\r
  *  \note This file should not be included directly. It is automatically included as needed by the USB driver\r
  *        dispatch header located in LUFA/Drivers/USB/USB.h.\r
@@ -40,6 +38,7 @@
 \r
 /** \ingroup Group_PipeRW  \r
  *  \defgroup Group_PipeStreamRW Read/Write of Multi-Byte Streams\r
+ *  \brief Pipe data stream transmission and reception management.\r
  *\r
  *  Functions, macros, variables, enums and types related to data reading and writing of data streams from\r
  *  and to pipes.\r
@@ -52,6 +51,7 @@
 \r
        /* Includes: */\r
                #include "../../../Common/Common.h"\r
+               #include "USBMode.h"            \r
                #include "USBTask.h"\r
                \r
        /* Enable C linkage for C++ Compilers: */\r
                        /** \name Stream functions for EEPROM source/destination data */\r
                        //@{\r
                        \r
+                       #if defined(ARCH_HAS_EEPROM_ADDRESS_SPACE) || defined(__DOXYGEN__)\r
                        /** EEPROM buffer source version of \ref Pipe_Write_Stream_LE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        \r
                        /** EEPROM buffer source version of \ref Pipe_Write_Stream_BE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
 \r
                        /** EEPROM buffer source version of \ref Pipe_Read_Stream_LE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[out] Buffer          Pointer to the source data buffer to write to.\r
                         *  \param[in]  Length          Number of bytes to read for the currently selected pipe to read from.\r
                         *  \param[in]  BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        \r
                        /** EEPROM buffer source version of \ref Pipe_Read_Stream_BE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[out] Buffer          Pointer to the source data buffer to write to.\r
                         *  \param[in]  Length          Number of bytes to read for the currently selected pipe to read from.\r
                         *  \param[in]  BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        uint8_t Pipe_Read_EStream_BE(void* const Buffer,\r
                                                     uint16_t Length,\r
                                                     uint16_t* const BytesProcessed) ATTR_NON_NULL_PTR_ARG(1);\r
+                       #endif\r
                        //@}\r
 \r
                        /** \name Stream functions for PROGMEM source/destination data */\r
                        //@{\r
                        \r
+                       #if defined(ARCH_HAS_FLASH_ADDRESS_SPACE) || defined(__DOXYGEN__)\r
                        /** FLASH buffer source version of \ref Pipe_Write_Stream_LE().\r
                         *\r
                         *  \pre The FLASH data must be located in the first 64KB of FLASH for this function to work correctly.\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                         *\r
                         *  \pre The FLASH data must be located in the first 64KB of FLASH for this function to work correctly.\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        uint8_t Pipe_Write_PStream_BE(const void* const Buffer,\r
                                                      uint16_t Length,\r
                                                      uint16_t* const BytesProcessed) ATTR_NON_NULL_PTR_ARG(1);\r
+                       #endif\r
                        //@}\r
 \r
        /* Disable C linkage for C++ Compilers: */\r