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