123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef _CONFIGDESCRIPTOR_H_
- #define _CONFIGDESCRIPTOR_H_
-
- #include <LUFA/Drivers/USB/USB.h>
- #include "MissileLauncher.h"
-
-
- #define HID_CLASS 0x03
-
- #define HID_DATA_IN_PIPE (PIPE_DIR_IN | 1)
-
- #define HID_DATA_OUT_PIPE (PIPE_DIR_OUT | 2)
-
-
- enum GenericHIDHost_GetConfigDescriptorDataCodes_t
- {
- SuccessfulConfigRead = 0,
- ControlError = 1,
- DescriptorTooLarge = 2,
- InvalidConfigDataReturned = 3,
- NoCompatibleInterfaceFound = 4,
- };
-
- uint8_t ProcessConfigurationDescriptor(void);
- uint8_t DComp_NextHIDInterface(void* CurrentDescriptor);
- uint8_t DComp_NextHIDInterfaceDataEndpoint(void* CurrentDescriptor);
- #endif
|