More endianness porting of the LUFA host mode class drivers.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / Device.h
index be3dfd1..85fdfac 100644 (file)
                #include "USBInterrupt.h"\r
                #include "Endpoint.h"\r
 \r
+       /* Enable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       extern "C" {\r
+               #endif\r
+\r
        /* Preprocessor Checks: */\r
                #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
                        #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
 \r
        /* Public Interface - May be used in end-application: */\r
                /* Enums: */\r
+                       /** Enum for the various states of the USB Device state machine. Only some states are\r
+                        *  implemented in the LUFA library - other states are left to the user to implement.\r
+                        *\r
+                        *  For information on each possible USB device state, refer to the USB 2.0 specification.\r
+                        *\r
+                        *  \see \ref USB_DeviceState, which stores the current device state machine state.\r
+                        */\r
                        enum USB_Device_States_t\r
                        {\r
                                DEVICE_STATE_Unattached                   = 0, /**< Internally implemented by the library. This state indicates\r
                        #include "UC3/Device_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