diff options
author | Dean Camera <[email protected]> | 2011-07-10 07:15:57 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2011-07-10 07:15:57 +0000 |
commit | 55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e (patch) | |
tree | 768f8ff0fd860d20715f45b65b246035be037830 /Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h | |
parent | d9c16402b9059628a9c45a129a99cae86b48aa5d (diff) | |
download | qmk_firmware-55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e.tar.gz qmk_firmware-55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e.zip |
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.
Diffstat (limited to 'Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h')
-rw-r--r-- | Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.h index 92c0d99a92..4989d9d888 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 |