From 55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 10 Jul 2011 07:15:57 +0000 Subject: Replace blind interface descriptor search in the incomplete AndroidAccessoryHost demo with an intelligent search for the correct interface in the device matching the correct class/subclass/protocol values. --- Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h') diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h index 92c0d99a9..4989d9d88 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h @@ -42,6 +42,10 @@ /* 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 -- cgit v1.2.3