Replace blind interface descriptor search in the incomplete AndroidAccessoryHost...
[pub/USBasp.git] / Demos / Host / Incomplete / AndroidAccessoryHost / ConfigDescriptor.h
index 92c0d99..4989d9d 100644 (file)
        /* Macros: */
                #define ANDROID_DATA_IN_PIPE         1
                #define ANDROID_DATA_OUT_PIPE        2
+               
+               #define ANDROID_INTERFACE_CLASS      0xFF
+               #define ANDROID_INTERFACE_SUBCLASS   0x42
+               #define ANDROID_INTERFACE_PROTOCOL   0x01               
 
        /* Enums: */
                /** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */
@@ -57,6 +61,7 @@
        /* Function Prototypes: */
                uint8_t ProcessConfigurationDescriptor(void);
 
+               uint8_t DCOMP_NextAndroidAccessoryInterface(void* const CurrentDescriptor);
                uint8_t DCOMP_NextInterfaceBulkEndpoint(void* CurrentDescriptor);
 
 #endif