Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent problems with...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / DevChapter9.h
index 543c1a9..49795e5 100644 (file)
   this software.\r
 */\r
 \r
-/** \file\r
- *\r
- *  Module for device mode request processing. This module allows for the processing of standard control\r
- *  requests to the default control endpoint while in device mode.\r
- *\r
- *  \see Chapter 9 of the USB 2.0 specification.\r
- */\r
-\r
 #ifndef __DEVCHAPTER9_H__\r
 #define __DEVCHAPTER9_H__\r
 \r
@@ -46,8 +38,9 @@
                \r
                #include "../HighLevel/StdDescriptors.h"\r
                #include "../HighLevel/Events.h"\r
+               #include "../HighLevel/StdRequestType.h"\r
+               #include "../HighLevel/USBTask.h"\r
                #include "LowLevel.h"\r
-               #include "StdRequestType.h"\r
 \r
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r
@@ -66,6 +59,8 @@
                         *\r
                         *  \note This variable should be treated as read-only in the user application, and never manually\r
                         *        changed in value.\r
+                        *\r
+                        *  \ingroup Group_Device\r
                         */\r
                        extern uint8_t USB_ConfigurationNumber;\r
                        \r
                         *\r
                         *  \note This variable should be treated as read-only in the user application, and never manually\r
                         *        changed in value.\r
+                        *\r
+                        *  \ingroup Group_Device\r
                         */\r
                        extern bool USB_RemoteWakeupEnabled;\r
                        \r
                        /** Indicates if the device is currently being powered by its own power supply, rather than being\r
                         *  powered by the host's USB supply. This flag should remain cleared if the device does not\r
                         *  support self powered mode, as indicated in the device descriptors.\r
+                        *\r
+                        *  \ingroup Group_Device\r
                         */\r
                        extern bool USB_CurrentlySelfPowered;\r
 \r
                /* Throwable Events: */\r
-                       /** This module raises the USB_UnhandledControlPacket event when a request to the default control\r
+                       /** This module raises the \ref USB_UnhandledControlPacket event when a request to the default control\r
                         *  endpoint has been received, but the library does not implement an internal handler for it.\r
                         *\r
-                        *  \see Events.h for more information on this event.\r
+                        *  \see \ref Group_Events for more information on this event.\r
                         */\r
                        RAISES_EVENT(USB_UnhandledControlPacket);\r
 \r
-                       /** This module raises the USB_ConfigurationChanged event when the host issues a REQ_SetConfiguration\r
+                       /** This module raises the \ref USB_ConfigurationChanged event when the host issues a \ref REQ_SetConfiguration\r
                         *  device request, to change the currently selected configuration number.\r
                         *\r
-                        *  \see Events.h for more information on this event.\r
+                        *  \see \ref Group_Events for more information on this event.\r
                         */\r
                        RAISES_EVENT(USB_ConfigurationChanged);\r
 \r
-                       /** This module raises the USB_DeviceEnumerationComplete event when the host has completed its\r
-                        *  enumeration of the device (i.e. when a REQ_SetConfiguration request changes the current configuration\r
+                       /** This module raises the \ref USB_DeviceEnumerationComplete event when the host has completed its\r
+                        *  enumeration of the device (i.e. when a \ref REQ_SetConfiguration request changes the current configuration\r
                         *  number from 0 to a non-zero value).\r
                         *\r
-                        *  \see Events.h for more information on this event.\r
+                        *  \see \ref Group_Events for more information on this event.\r
                         */\r
                        RAISES_EVENT(USB_DeviceEnumerationComplete);\r
        \r
                                static void USB_Device_SetConfiguration(void);\r
                                static void USB_Device_GetConfiguration(void);\r
                                static void USB_Device_GetDescriptor(void);\r
-                               static void USB_Device_GetStatus(const uint8_t bmRequestType);\r
-                               #if !defined(FEATURELESS_CONTROL_ONLY_DEVICE)\r
-                               static void USB_Device_ClearSetFeature(const uint8_t bRequest, const uint8_t bmRequestType);\r
-                               #endif\r
+                               static void USB_Device_GetStatus(void);\r
+                               static void USB_Device_ClearSetFeature(void);\r
                        #endif\r
        #endif\r
 \r