Break device mode class driver interfaces into seperate config and state structs...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Common / HID.h
index 07ed94b..54403d4 100644 (file)
                 */\r
                typedef struct\r
                {\r
-                       USB_Descriptor_Header_t               Header;\r
+                       USB_Descriptor_Header_t  Header;\r
                                \r
-                       uint16_t                              HIDSpec;\r
-                       uint8_t                               CountryCode;\r
+                       uint16_t                 HIDSpec;\r
+                       uint8_t                  CountryCode;\r
                \r
-                       uint8_t                               TotalReportDescriptors;\r
+                       uint8_t                  TotalReportDescriptors;\r
 \r
-                       uint8_t                               HIDReportType;\r
-                       uint16_t                              HIDReportLength;\r
+                       uint8_t                  HIDReportType;\r
+                       uint16_t                 HIDReportLength;\r
                } USB_Descriptor_HID_t;\r
 \r
                /** Type define for the data type used to store HID report descriptor elements. */\r
                typedef uint8_t USB_Descriptor_HIDReport_Datatype_t;\r
 \r
-               /** Class state structure. An instance of this structure should be made for each HID interface\r
-                *  within the user application, and passed to each of the HID class driver functions as the\r
-                *  HIDInterfaceInfo parameter. The contents of this structure should be set to their correct\r
-                *  values when used, or ommitted to force the library to use default values.\r
-                *\r
-                *  Note that for the HID class driver, host-to-device reports are received via HID class requests\r
-                *  rather than a dedicated endpoint to simplify the driver and its interface.\r
-                */\r
-               typedef struct\r
-               {\r
-                       uint8_t  InterfaceNumber; /**< Interface number of the HID interface within the device */\r
-\r
-                       uint8_t  ReportINEndpointNumber; /**< Endpoint number of the HID interface's IN report endpoint */\r
-                       uint16_t ReportINEndpointSize; /**< Size in bytes of the HID interface's IN report endpoint */\r
-                       \r
-                       uint8_t  ReportINBufferSize; /**< Size of the largest possible report to send to the host, for buffer allocation purposes */\r
-\r
-                       bool     UsingReportProtocol; /**< Indicates if the HID interface is set to Boot or Report protocol mode */\r
-                       uint16_t IdleCount; /**< Report idle period, in ms, set by the host */\r
-                       uint16_t IdleMSRemaining; /**< Total number of ms remaining before the idle period elapses */\r
-               } USB_ClassInfo_HID_t;\r
-\r
 #endif\r
 \r
 /** @} */\r