diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 51e51f996..fc4ee1620 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -42,9 +42,9 @@ jobs: - name: Configure CMake run: | rm -rf build install - cmake -B build/shared -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/shared -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" - cmake -B build/static -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/static -DBUILD_SHARED_LIBS=FALSE -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" - cmake -B build/framework -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/framework -DCMAKE_FRAMEWORK=ON -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" + cmake -B build/shared -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install/shared -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" + cmake -B build/static -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install/static -DBUILD_SHARED_LIBS=FALSE -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" + cmake -B build/framework -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install/framework -DCMAKE_FRAMEWORK=ON -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" - name: Build CMake Shared working-directory: build/shared run: make install @@ -110,8 +110,8 @@ jobs: - name: Configure CMake run: | rm -rf build install - cmake -B build/shared -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/shared -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" - cmake -B build/static -S hidapisrc -DCMAKE_INSTALL_PREFIX=install/static -DBUILD_SHARED_LIBS=FALSE -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" + cmake -B build/shared -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install/shared -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" + cmake -B build/static -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install/static -DBUILD_SHARED_LIBS=FALSE -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=${NIX_COMPILE_FLAGS}" - name: Build CMake Shared working-directory: build/shared run: make install @@ -173,10 +173,10 @@ jobs: - name: Configure CMake MSVC shell: cmd run: | - cmake -B build\msvc -S hidapisrc -DCMAKE_INSTALL_PREFIX=install\msvc -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" + cmake -B build\msvc -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install\msvc -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" - name: Build CMake MSVC working-directory: build/msvc - run: cmake --build . --target install + run: cmake --build . --config RelWithDebInfo --target install - name: Check artifacts MSVC uses: andstor/file-existence-action@v2 with: @@ -196,12 +196,16 @@ jobs: "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" cd build\msvc_test cmake --build . --target install + - name: Run CTest MSVC + shell: cmd + working-directory: build/msvc + run: ctest -C RelWithDebInfo --rerun-failed --output-on-failure - name: Configure CMake NMake shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - cmake -G"NMake Makefiles" -B build\nmake -S hidapisrc -DCMAKE_INSTALL_PREFIX=install\nmake -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" + cmake -G"NMake Makefiles" -B build\nmake -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install\nmake -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" - name: Build CMake NMake working-directory: build\nmake shell: cmd @@ -229,11 +233,14 @@ jobs: "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%" cd build\nmake_test nmake install + - name: Run CTest NMake + working-directory: build\nmake + run: ctest --rerun-failed --output-on-failure - name: Configure CMake MinGW shell: cmd run: | - cmake -G"MinGW Makefiles" -B build\mingw -S hidapisrc -DCMAKE_INSTALL_PREFIX=install\mingw -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%NIX_COMPILE_FLAGS%" + cmake -G"MinGW Makefiles" -B build\mingw -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DCMAKE_INSTALL_PREFIX=install\mingw -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%NIX_COMPILE_FLAGS%" - name: Build CMake MinGW working-directory: build\mingw run: cmake --build . --target install @@ -257,6 +264,9 @@ jobs: "-DCMAKE_C_FLAGS=%NIX_COMPILE_FLAGS%" cd build\mingw_test cmake --build . --target install + - name: Run CTest MinGW + working-directory: build\mingw + run: ctest --rerun-failed --output-on-failure - name: Check Meson build shell: cmd diff --git a/BUILD.cmake.md b/BUILD.cmake.md index 364c815e3..743a95f19 100644 --- a/BUILD.cmake.md +++ b/BUILD.cmake.md @@ -88,6 +88,8 @@ Some of the [standard](https://cmake.org/cmake/help/latest/manual/cmake-variable HIDAPI-specific CMake variables: - `HIDAPI_BUILD_HIDTEST` - when set to TRUE, build a small test application `hidtest`; +- `HIDAPI_WITH_TESTS` - when set to TRUE, build all (unit-)tests; +currently this option is only available on Windows, since only Windows backend has tests;
Linux-specific variables diff --git a/CMakeLists.txt b/CMakeLists.txt index b279a3601..7d747a8a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,13 +49,57 @@ option(BUILD_SHARED_LIBS "Build shared version of the libraries, otherwise build set(HIDAPI_INSTALL_TARGETS ON) set(HIDAPI_PRINT_VERSION ON) -add_subdirectory(src) - -set(BUILD_HIDTEST_DEFAULT OFF) +set(IS_DEBUG_BUILD OFF) if(CMAKE_BUILD_TYPE STREQUAL "Debug") - set(BUILD_HIDTEST_DEFAULT ON) + set(IS_DEBUG_BUILD ON) +endif() + +option(HIDAPI_ENABLE_ASAN "Build HIDAPI with ASAN address sanitizer instrumentation" OFF) + +if(HIDAPI_ENABLE_ASAN) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") + if(MSVC) + # the default is to have "/INCREMENTAL" which causes a warning when "-fsanitize=address" is present + set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO") + set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO") + set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} /INCREMENTAL:NO") + set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO} /INCREMENTAL:NO") + endif() +endif() + +if(WIN32) + # so far only Windows has tests + option(HIDAPI_WITH_TESTS "Build HIDAPI (unit-)tests" ${IS_DEBUG_BUILD}) +else() + set(HIDAPI_WITH_TESTS OFF) +endif() + +if(HIDAPI_WITH_TESTS) + enable_testing() +endif() + +if(WIN32) + option(HIDAPI_BUILD_PP_DATA_DUMP "Build small Windows console application pp_data_dump.exe" ${IS_DEBUG_BUILD}) endif() -option(HIDAPI_BUILD_HIDTEST "Build small console test application hidtest" ${BUILD_HIDTEST_DEFAULT}) + +add_subdirectory(src) + +option(HIDAPI_BUILD_HIDTEST "Build small console test application hidtest" ${IS_DEBUG_BUILD}) if(HIDAPI_BUILD_HIDTEST) add_subdirectory(hidtest) endif() + +if(HIDAPI_ENABLE_ASAN) + if(NOT MSVC) + # MSVC doesn't recognize those options, other compilers - requiring it + foreach(HIDAPI_TARGET hidapi_winapi hidapi_darwin hidapi_hidraw hidapi_libusb hidtest_hidraw hidtest_libusb hidtest) + if(TARGET ${HIDAPI_TARGET}) + if(BUILD_SHARED_LIBS) + target_link_options(${HIDAPI_TARGET} PRIVATE -fsanitize=address) + else() + target_link_options(${HIDAPI_TARGET} PUBLIC -fsanitize=address) + endif() + endif() + endforeach() + endif() +endif() diff --git a/hidapi/hidapi.h b/hidapi/hidapi.h index 0d4925843..604c41ebf 100644 --- a/hidapi/hidapi.h +++ b/hidapi/hidapi.h @@ -550,6 +550,21 @@ extern "C" { */ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index, wchar_t *string, size_t maxlen); + /** @brief Get a report descriptor from a HID device. + + User has to provide a preallocated buffer where descriptor will be copied to. + The recommended size for preallocated buffer is @ref HID_API_MAX_REPORT_DESCRIPTOR_SIZE bytes. + + @ingroup API + @param dev A device handle returned from hid_open(). + @param buf The buffer to copy descriptor into. + @param buf_size The size of the buffer in bytes. + + @returns + This function returns non-negative number of bytes actually copied, or -1 on error. + */ + int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char *buf, size_t buf_size); + /** @brief Get a string describing the last error which occurred. This function is intended for logging/debugging purposes. diff --git a/hidtest/test.c b/hidtest/test.c index 4aab76b51..1b6819280 100644 --- a/hidtest/test.c +++ b/hidtest/test.c @@ -64,10 +64,48 @@ void print_device(struct hid_device_info *cur_dev) { printf("\n"); } +void print_hid_report_descriptor_from_device(hid_device *device) { + unsigned char descriptor[HID_API_MAX_REPORT_DESCRIPTOR_SIZE]; + int res = 0; + + printf(" Report Descriptor: "); + res = hid_get_report_descriptor(device, descriptor, sizeof(descriptor)); + if (res < 0) { + printf("error getting: %ls", hid_error(device)); + } + else { + printf("(%d bytes)", res); + } + for (int i = 0; i < res; i++) { + if (i % 10 == 0) { + printf("\n"); + } + printf("0x%02x, ", descriptor[i]); + } + printf("\n"); +} + +void print_hid_report_descriptor_from_path(const char *path) { + hid_device *device = hid_open_path(path); + if (device) { + print_hid_report_descriptor_from_device(device); + hid_close(device); + } + else { + printf(" Report Descriptor: Unable to open device by path\n"); + } +} + void print_devices(struct hid_device_info *cur_dev) { - while (cur_dev) { + for (; cur_dev; cur_dev = cur_dev->next) { + print_device(cur_dev); + } +} + +void print_devices_with_descriptor(struct hid_device_info *cur_dev) { + for (; cur_dev; cur_dev = cur_dev->next) { print_device(cur_dev); - cur_dev = cur_dev->next; + print_hid_report_descriptor_from_path(cur_dev->path); } } @@ -103,7 +141,7 @@ int main(int argc, char* argv[]) #endif devs = hid_enumerate(0x0, 0x0); - print_devices(devs); + print_devices_with_descriptor(devs); hid_free_enumeration(devs); // Set up the command buffer. @@ -141,8 +179,9 @@ int main(int argc, char* argv[]) res = hid_get_serial_number_string(handle, wstr, MAX_STR); if (res < 0) printf("Unable to read serial number string\n"); - printf("Serial Number String: (%d) %ls", wstr[0], wstr); - printf("\n"); + printf("Serial Number String: (%d) %ls\n", wstr[0], wstr); + + print_hid_report_descriptor_from_device(handle); struct hid_device_info* info = hid_get_device_info(handle); if (info == NULL) { diff --git a/libusb/hid.c b/libusb/hid.c index b46b1c781..caa558333 100644 --- a/libusb/hid.c +++ b/libusb/hid.c @@ -1631,6 +1631,12 @@ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index } +int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char *buf, size_t buf_size) +{ + return hid_get_report_descriptor_libusb(dev->device_handle, dev->interface, dev->report_descriptor_size, buf, buf_size); +} + + HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) { (void)dev; diff --git a/linux/hid.c b/linux/hid.c index 1b1d2c0b2..5f98968ed 100644 --- a/linux/hid.c +++ b/linux/hid.c @@ -481,6 +481,28 @@ static int parse_hid_vid_pid_from_sysfs(const char *sysfs_path, unsigned *bus_ty return res; } +static int get_hid_report_descriptor_from_hidraw(hid_device *dev, struct hidraw_report_descriptor *rpt_desc) +{ + int desc_size = 0; + + /* Get Report Descriptor Size */ + int res = ioctl(dev->device_handle, HIDIOCGRDESCSIZE, &desc_size); + if (res < 0) { + register_device_error_format(dev, "ioctl(GRDESCSIZE): %s", strerror(errno)); + return res; + } + + /* Get Report Descriptor */ + memset(rpt_desc, 0x0, sizeof(*rpt_desc)); + rpt_desc->size = desc_size; + res = ioctl(dev->device_handle, HIDIOCGRDESC, rpt_desc); + if (res < 0) { + register_device_error_format(dev, "ioctl(GRDESC): %s", strerror(errno)); + } + + return res; +} + /* * The caller is responsible for free()ing the (newly-allocated) character * strings pointed to by serial_number_utf8 and product_name_utf8 after use. @@ -1236,6 +1258,25 @@ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index } +int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char *buf, size_t buf_size) +{ + struct hidraw_report_descriptor rpt_desc; + int res = get_hid_report_descriptor_from_hidraw(dev, &rpt_desc); + if (res < 0) { + /* error already registered */ + return res; + } + + if (rpt_desc.size < buf_size) { + buf_size = (size_t) rpt_desc.size; + } + + memcpy(buf, rpt_desc.value, buf_size); + + return (int) buf_size; +} + + /* Passing in NULL means asking for the last global error message. */ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) { diff --git a/mac/hid.c b/mac/hid.c index fbdc6fee0..ab7e6c12c 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -1442,6 +1442,33 @@ int HID_API_EXPORT_CALL hid_darwin_is_device_open_exclusive(hid_device *dev) return (dev->open_options == kIOHIDOptionsTypeSeizeDevice) ? 1 : 0; } +int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char *buf, size_t buf_size) +{ + CFTypeRef ref = IOHIDDeviceGetProperty(dev->device_handle, CFSTR(kIOHIDReportDescriptorKey)); + if (ref != NULL && CFGetTypeID(ref) == CFDataGetTypeID()) { + CFDataRef report_descriptor = (CFDataRef) ref; + const UInt8 *descriptor_buf = CFDataGetBytePtr(report_descriptor); + CFIndex descriptor_buf_len = CFDataGetLength(report_descriptor); + size_t copy_len = (size_t) descriptor_buf_len; + + if (descriptor_buf == NULL || descriptor_buf_len < 0) { + register_device_error(dev, "Zero buffer/length"); + return -1; + } + + if (buf_size < copy_len) { + copy_len = buf_size; + } + + memcpy(buf, descriptor_buf, copy_len); + return copy_len; + } + else { + register_device_error(dev, "Failed to get kIOHIDReportDescriptorKey property"); + return -1; + } +} + HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) { if (dev) { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 29238592b..3e95e7b2e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,6 +26,9 @@ project(hidapi VERSION "${VERSION}" LANGUAGES C) # Defaults and required options +if(NOT DEFINED HIDAPI_WITH_TESTS) + set(HIDAPI_WITH_TESTS OFF) +endif() if(NOT DEFINED BUILD_SHARED_LIBS) set(BUILD_SHARED_LIBS ON) endif() diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 304b6fc59..d32959c22 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -3,6 +3,8 @@ list(APPEND HIDAPI_PUBLIC_HEADERS "hidapi_winapi.h") set(SOURCES hid.c hidapi_cfgmgr32.h + hidapi_descriptor_reconstruct.c + hidapi_descriptor_reconstruct.h hidapi_hidclass.h hidapi_hidpi.h hidapi_hidsdi.h @@ -51,3 +53,11 @@ if(HIDAPI_INSTALL_TARGETS) endif() hidapi_configure_pc("${PROJECT_ROOT}/pc/hidapi.pc.in") + +if(HIDAPI_WITH_TESTS) + add_subdirectory(test) +endif() + +if(DEFINED HIDAPI_BUILD_PP_DATA_DUMP AND HIDAPI_BUILD_PP_DATA_DUMP) + add_subdirectory(pp_data_dump) +endif() diff --git a/windows/hid.c b/windows/hid.c index 376927667..1b725b32c 100644 --- a/windows/hid.c +++ b/windows/hid.c @@ -30,7 +30,7 @@ extern "C" { #endif -#include "hidapi.h" +#include "hidapi_winapi.h" #include @@ -1307,6 +1307,22 @@ int HID_API_EXPORT_CALL hid_winapi_get_container_id(hid_device *dev, GUID *conta } +int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char *buf, size_t buf_size) +{ + PHIDP_PREPARSED_DATA pp_data = NULL; + + if (!HidD_GetPreparsedData(dev->device_handle, &pp_data) || pp_data == NULL) { + register_string_error(dev, L"HidD_GetPreparsedData"); + return -1; + } + + int res = hid_winapi_descriptor_reconstruct_pp_data(pp_data, buf, buf_size); + + HidD_FreePreparsedData(pp_data); + + return res; +} + HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) { if (dev) { @@ -1320,6 +1336,10 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) return last_global_error_str; } +#ifndef hidapi_winapi_EXPORTS +#include "hidapi_descriptor_reconstruct.c" +#endif + #ifdef __cplusplus } /* extern "C" */ #endif diff --git a/windows/hidapi_descriptor_reconstruct.c b/windows/hidapi_descriptor_reconstruct.c new file mode 100644 index 000000000..b310b1b59 --- /dev/null +++ b/windows/hidapi_descriptor_reconstruct.c @@ -0,0 +1,988 @@ +/******************************************************* + HIDAPI - Multi-Platform library for + communication with HID devices. + + libusb/hidapi Team + + Copyright 2022, All Rights Reserved. + + At the discretion of the user of this library, + this software may be licensed under the terms of the + GNU General Public License v3, a BSD-Style license, or the + original HIDAPI license as outlined in the LICENSE.txt, + LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt + files located at the root of the source distribution. + These files may also be found in the public source + code repository located at: + https://github.com/libusb/hidapi . +********************************************************/ +#include "hidapi_descriptor_reconstruct.h" + +/** + * @brief References to report descriptor buffer. + * + */ +struct rd_buffer { + unsigned char* buf; /* Pointer to the array which stores the reconstructed descriptor */ + size_t buf_size; /* Size of the buffer in bytes */ + size_t byte_idx; /* Index of the next report byte to write to buf array */ +}; + +/** + * @brief Function that appends a byte to encoded report descriptor buffer. + * + * @param[in] byte Single byte to append. + * @param rpt_desc Pointer to report descriptor buffer struct. + */ +static void rd_append_byte(unsigned char byte, struct rd_buffer* rpt_desc) { + if (rpt_desc->byte_idx < rpt_desc->buf_size) { + rpt_desc->buf[rpt_desc->byte_idx] = byte; + rpt_desc->byte_idx++; + } +} + +/** + * @brief Writes a short report descriptor item according USB HID spec 1.11 chapter 6.2.2.2. + * + * @param[in] rd_item Enumeration identifying type (Main, Global, Local) and function (e.g Usage or Report Count) of the item. + * @param[in] data Data (Size depends on rd_item 0,1,2 or 4bytes). + * @param list Chained list of report descriptor bytes. + * + * @return Returns 0 if successful, -1 for error. + */ +static int rd_write_short_item(rd_items rd_item, LONG64 data, struct rd_buffer* rpt_desc) { + if (rd_item & 0x03) { + // Invalid input data, last to bits are reserved for data size + return -1; + } + + if (rd_item == rd_main_collection_end) { + // Item without data (1Byte prefix only) + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x00; + rd_append_byte(oneBytePrefix, rpt_desc); + } + else if ((rd_item == rd_global_logical_minimum) || + (rd_item == rd_global_logical_maximum) || + (rd_item == rd_global_physical_minimum) || + (rd_item == rd_global_physical_maximum)) { + // Item with signed integer data + if ((data >= -128) && (data <= 127)) { + // 1Byte prefix + 1Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x01; + char localData = (char)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + } + else if ((data >= -32768) && (data <= 32767)) { + // 1Byte prefix + 2Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x02; + INT16 localData = (INT16)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + rd_append_byte(localData >> 8 & 0xFF, rpt_desc); + } + else if ((data >= -2147483648LL) && (data <= 2147483647)) { + // 1Byte prefix + 4Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x03; + INT32 localData = (INT32)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + rd_append_byte(localData >> 8 & 0xFF, rpt_desc); + rd_append_byte(localData >> 16 & 0xFF, rpt_desc); + rd_append_byte(localData >> 24 & 0xFF, rpt_desc); + } + else { + // Data out of 32 bit signed integer range + return -1; + } + } + else { + // Item with unsigned integer data + if ((data >= 0) && (data <= 0xFF)) { + // 1Byte prefix + 1Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x01; + unsigned char localData = (unsigned char)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + } + else if ((data >= 0) && (data <= 0xFFFF)) { + // 1Byte prefix + 2Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x02; + UINT16 localData = (UINT16)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + rd_append_byte(localData >> 8 & 0xFF, rpt_desc); + } + else if ((data >= 0) && (data <= 0xFFFFFFFF)) { + // 1Byte prefix + 4Byte data + unsigned char oneBytePrefix = (unsigned char) rd_item + 0x03; + UINT32 localData = (UINT32)data; + rd_append_byte(oneBytePrefix, rpt_desc); + rd_append_byte(localData & 0xFF, rpt_desc); + rd_append_byte(localData >> 8 & 0xFF, rpt_desc); + rd_append_byte(localData >> 16 & 0xFF, rpt_desc); + rd_append_byte(localData >> 24 & 0xFF, rpt_desc); + } + else { + // Data out of 32 bit unsigned integer range + return -1; + } + } + return 0; +} + +static struct rd_main_item_node * rd_append_main_item_node(int first_bit, int last_bit, rd_node_type type_of_node, int caps_index, int collection_index, rd_main_items main_item_type, unsigned char report_id, struct rd_main_item_node **list) { + struct rd_main_item_node *new_list_node; + + // Determine last node in the list + while (*list != NULL) + { + list = &(*list)->next; + } + + new_list_node = malloc(sizeof(*new_list_node)); // Create new list entry + new_list_node->FirstBit = first_bit; + new_list_node->LastBit = last_bit; + new_list_node->TypeOfNode = type_of_node; + new_list_node->CapsIndex = caps_index; + new_list_node->CollectionIndex = collection_index; + new_list_node->MainItemType = main_item_type; + new_list_node->ReportID = report_id; + new_list_node->next = NULL; // NULL marks last node in the list + + *list = new_list_node; + return new_list_node; +} + +static struct rd_main_item_node * rd_insert_main_item_node(int first_bit, int last_bit, rd_node_type type_of_node, int caps_index, int collection_index, rd_main_items main_item_type, unsigned char report_id, struct rd_main_item_node **list) { + // Insert item after the main item node referenced by list + struct rd_main_item_node *next_item = (*list)->next; + (*list)->next = NULL; + rd_append_main_item_node(first_bit, last_bit, type_of_node, caps_index, collection_index, main_item_type, report_id, list); + (*list)->next->next = next_item; + return (*list)->next; +} + +static struct rd_main_item_node * rd_search_main_item_list_for_bit_position(int search_bit, rd_main_items main_item_type, unsigned char report_id, struct rd_main_item_node **list) { + // Determine first INPUT/OUTPUT/FEATURE main item, where the last bit position is equal or greater than the search bit position + + while (((*list)->next->MainItemType != rd_collection) && + ((*list)->next->MainItemType != rd_collection_end) && + !(((*list)->next->LastBit >= search_bit) && + ((*list)->next->ReportID == report_id) && + ((*list)->next->MainItemType == main_item_type)) + ) + { + list = &(*list)->next; + } + return *list; +} + +int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned char *buf, size_t buf_size) +{ + hidp_preparsed_data *pp_data = (hidp_preparsed_data *) preparsed_data; + + // Check if MagicKey is correct, to ensure that pp_data points to an valid preparse data structure + if (memcmp(pp_data->MagicKey, "HidP KDR", 8) != 0) { + return -1; + } + + struct rd_buffer rpt_desc = { + .buf = buf, + .buf_size = buf_size, + .byte_idx = 0 + }; + + // Set pointer to the first node of link_collection_nodes + phid_pp_link_collection_node link_collection_nodes = (phid_pp_link_collection_node)(((unsigned char*)&pp_data->caps[0]) + pp_data->FirstByteOfLinkCollectionArray); + + // **************************************************************************************************************************** + // Create lookup tables for the bit range of each report per collection (position of first bit and last bit in each collection) + // coll_bit_range[COLLECTION_INDEX][REPORT_ID][INPUT/OUTPUT/FEATURE] + // **************************************************************************************************************************** + + // Allocate memory and initialize lookup table + rd_bit_range ****coll_bit_range; + coll_bit_range = malloc(pp_data->NumberLinkCollectionNodes * sizeof(*coll_bit_range)); + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + coll_bit_range[collection_node_idx] = malloc(256 * sizeof(coll_bit_range[0])); // 256 possible report IDs (incl. 0x00) + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + coll_bit_range[collection_node_idx][reportid_idx] = malloc(NUM_OF_HIDP_REPORT_TYPES * sizeof(coll_bit_range[0][0])); + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + coll_bit_range[collection_node_idx][reportid_idx][rt_idx] = malloc(sizeof(rd_bit_range)); + coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->FirstBit = -1; + coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->LastBit = -1; + } + } + } + + // Fill the lookup table where caps exist + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + for (USHORT caps_idx = pp_data->caps_info[rt_idx].FirstCap; caps_idx < pp_data->caps_info[rt_idx].LastCap; caps_idx++) { + int first_bit, last_bit; + first_bit = (pp_data->caps[caps_idx].BytePosition - 1) * 8 + + pp_data->caps[caps_idx].BitPosition; + last_bit = first_bit + pp_data->caps[caps_idx].ReportSize + * pp_data->caps[caps_idx].ReportCount - 1; + if (coll_bit_range[pp_data->caps[caps_idx].LinkCollection][pp_data->caps[caps_idx].ReportID][rt_idx]->FirstBit == -1 || + coll_bit_range[pp_data->caps[caps_idx].LinkCollection][pp_data->caps[caps_idx].ReportID][rt_idx]->FirstBit > first_bit) { + coll_bit_range[pp_data->caps[caps_idx].LinkCollection][pp_data->caps[caps_idx].ReportID][rt_idx]->FirstBit = first_bit; + } + if (coll_bit_range[pp_data->caps[caps_idx].LinkCollection][pp_data->caps[caps_idx].ReportID][rt_idx]->LastBit < last_bit) { + coll_bit_range[pp_data->caps[caps_idx].LinkCollection][pp_data->caps[caps_idx].ReportID][rt_idx]->LastBit = last_bit; + } + } + } + + // ************************************************************************* + // -Determine hierachy levels of each collections and store it in: + // coll_levels[COLLECTION_INDEX] + // -Determine number of direct childs of each collections and store it in: + // coll_number_of_direct_childs[COLLECTION_INDEX] + // ************************************************************************* + int max_coll_level = 0; + int *coll_levels = malloc(pp_data->NumberLinkCollectionNodes * sizeof(coll_levels[0])); + int *coll_number_of_direct_childs = malloc(pp_data->NumberLinkCollectionNodes * sizeof(coll_number_of_direct_childs[0])); + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + coll_levels[collection_node_idx] = -1; + coll_number_of_direct_childs[collection_node_idx] = 0; + } + + { + int actual_coll_level = 0; + USHORT collection_node_idx = 0; + while (actual_coll_level >= 0) { + coll_levels[collection_node_idx] = actual_coll_level; + if ((link_collection_nodes[collection_node_idx].NumberOfChildren > 0) && + (coll_levels[link_collection_nodes[collection_node_idx].FirstChild] == -1)) { + actual_coll_level++; + coll_levels[collection_node_idx] = actual_coll_level; + if (max_coll_level < actual_coll_level) { + max_coll_level = actual_coll_level; + } + coll_number_of_direct_childs[collection_node_idx]++; + collection_node_idx = link_collection_nodes[collection_node_idx].FirstChild; + } + else if (link_collection_nodes[collection_node_idx].NextSibling != 0) { + coll_number_of_direct_childs[link_collection_nodes[collection_node_idx].Parent]++; + collection_node_idx = link_collection_nodes[collection_node_idx].NextSibling; + } + else { + actual_coll_level--; + if (actual_coll_level >= 0) { + collection_node_idx = link_collection_nodes[collection_node_idx].Parent; + } + } + } + } + + // ********************************************************************************* + // Propagate the bit range of each report from the child collections to their parent + // and store the merged result for the parent + // ********************************************************************************* + for (int actual_coll_level = max_coll_level - 1; actual_coll_level >= 0; actual_coll_level--) { + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + if (coll_levels[collection_node_idx] == actual_coll_level) { + USHORT child_idx = link_collection_nodes[collection_node_idx].FirstChild; + while (child_idx) { + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + // Merge bit range from childs + if ((coll_bit_range[child_idx][reportid_idx][rt_idx]->FirstBit != -1) && + (coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->FirstBit > coll_bit_range[child_idx][reportid_idx][rt_idx]->FirstBit)) { + coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->FirstBit = coll_bit_range[child_idx][reportid_idx][rt_idx]->FirstBit; + } + if (coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->LastBit < coll_bit_range[child_idx][reportid_idx][rt_idx]->LastBit) { + coll_bit_range[collection_node_idx][reportid_idx][rt_idx]->LastBit = coll_bit_range[child_idx][reportid_idx][rt_idx]->LastBit; + } + child_idx = link_collection_nodes[child_idx].NextSibling; + } + } + } + } + } + } + + // ************************************************************************************************* + // Determine child collection order of the whole hierachy, based on previously determined bit ranges + // and store it this index coll_child_order[COLLECTION_INDEX][DIRECT_CHILD_INDEX] + // ************************************************************************************************* + USHORT **coll_child_order; + coll_child_order = malloc(pp_data->NumberLinkCollectionNodes * sizeof(*coll_child_order)); + { + BOOLEAN *coll_parsed_flag; + coll_parsed_flag = malloc(pp_data->NumberLinkCollectionNodes * sizeof(coll_parsed_flag[0])); + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + coll_parsed_flag[collection_node_idx] = FALSE; + } + int actual_coll_level = 0; + USHORT collection_node_idx = 0; + while (actual_coll_level >= 0) { + if ((coll_number_of_direct_childs[collection_node_idx] != 0) && + (coll_parsed_flag[link_collection_nodes[collection_node_idx].FirstChild] == FALSE)) { + coll_parsed_flag[link_collection_nodes[collection_node_idx].FirstChild] = TRUE; + coll_child_order[collection_node_idx] = malloc((coll_number_of_direct_childs[collection_node_idx]) * sizeof(coll_child_order[0])); + + { + // Create list of child collection indices + // sorted reverse to the order returned to HidP_GetLinkCollectionNodeschild + // which seems to match teh original order, as long as no bit position needs to be considered + USHORT child_idx = link_collection_nodes[collection_node_idx].FirstChild; + int child_count = coll_number_of_direct_childs[collection_node_idx] - 1; + coll_child_order[collection_node_idx][child_count] = child_idx; + while (link_collection_nodes[child_idx].NextSibling) { + child_count--; + child_idx = link_collection_nodes[child_idx].NextSibling; + coll_child_order[collection_node_idx][child_count] = child_idx; + } + } + + if (coll_number_of_direct_childs[collection_node_idx] > 1) { + // Sort child collections indices by bit positions + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + for (int child_idx = 1; child_idx < coll_number_of_direct_childs[collection_node_idx]; child_idx++) { + // since the coll_bit_range array is not sorted, we need to reference the collection index in + // our sorted coll_child_order array, and look up the corresponding bit ranges for comparing values to sort + int prev_coll_idx = coll_child_order[collection_node_idx][child_idx - 1]; + int cur_coll_idx = coll_child_order[collection_node_idx][child_idx]; + if ((coll_bit_range[prev_coll_idx][reportid_idx][rt_idx]->FirstBit != -1) && + (coll_bit_range[cur_coll_idx][reportid_idx][rt_idx]->FirstBit != -1) && + (coll_bit_range[prev_coll_idx][reportid_idx][rt_idx]->FirstBit > coll_bit_range[cur_coll_idx][reportid_idx][rt_idx]->FirstBit)) { + // Swap position indices of the two compared child collections + USHORT idx_latch = coll_child_order[collection_node_idx][child_idx - 1]; + coll_child_order[collection_node_idx][child_idx - 1] = coll_child_order[collection_node_idx][child_idx]; + coll_child_order[collection_node_idx][child_idx] = idx_latch; + } + } + } + } + } + actual_coll_level++; + collection_node_idx = link_collection_nodes[collection_node_idx].FirstChild; + } + else if (link_collection_nodes[collection_node_idx].NextSibling != 0) { + collection_node_idx = link_collection_nodes[collection_node_idx].NextSibling; + } + else { + actual_coll_level--; + if (actual_coll_level >= 0) { + collection_node_idx = link_collection_nodes[collection_node_idx].Parent; + } + } + } + free(coll_parsed_flag); + } + + + // *************************************************************************************** + // Create sorted main_item_list containing all the Collection and CollectionEnd main items + // *************************************************************************************** + struct rd_main_item_node *main_item_list = (struct rd_main_item_node*)malloc(sizeof(main_item_list)); + main_item_list = NULL; // List root + // Lookup table to find the Collection items in the list by index + struct rd_main_item_node **coll_begin_lookup = malloc(pp_data->NumberLinkCollectionNodes * sizeof(*coll_begin_lookup)); + struct rd_main_item_node **coll_end_lookup = malloc(pp_data->NumberLinkCollectionNodes * sizeof(*coll_end_lookup)); + { + int *coll_last_written_child = malloc(pp_data->NumberLinkCollectionNodes * sizeof(coll_last_written_child[0])); + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + coll_last_written_child[collection_node_idx] = -1; + } + + int actual_coll_level = 0; + USHORT collection_node_idx = 0; + struct rd_main_item_node *firstDelimiterNode = NULL; + struct rd_main_item_node *delimiterCloseNode = NULL; + coll_begin_lookup[0] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_collection, 0, &main_item_list); + while (actual_coll_level >= 0) { + if ((coll_number_of_direct_childs[collection_node_idx] != 0) && + (coll_last_written_child[collection_node_idx] == -1)) { + // Collection has child collections, but none is written to the list yet + + coll_last_written_child[collection_node_idx] = coll_child_order[collection_node_idx][0]; + collection_node_idx = coll_child_order[collection_node_idx][0]; + + // In a HID Report Descriptor, the first usage declared is the most preferred usage for the control. + // While the order in the WIN32 capabiliy strutures is the opposite: + // Here the preferred usage is the last aliased usage in the sequence. + + if (link_collection_nodes[collection_node_idx].IsAlias && (firstDelimiterNode == NULL)) { + // Alliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output) + firstDelimiterNode = main_item_list; + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_usage, 0, &main_item_list); + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_close, 0, &main_item_list); + delimiterCloseNode = main_item_list; + } + else { + // Normal not aliased collection + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_collection, 0, &main_item_list); + actual_coll_level++; + } + + + } + else if ((coll_number_of_direct_childs[collection_node_idx] > 1) && + (coll_last_written_child[collection_node_idx] != coll_child_order[collection_node_idx][coll_number_of_direct_childs[collection_node_idx] - 1])) { + // Collection has child collections, and this is not the first child + + int nextChild = 1; + while (coll_last_written_child[collection_node_idx] != coll_child_order[collection_node_idx][nextChild - 1]) { + nextChild++; + } + coll_last_written_child[collection_node_idx] = coll_child_order[collection_node_idx][nextChild]; + collection_node_idx = coll_child_order[collection_node_idx][nextChild]; + + if (link_collection_nodes[collection_node_idx].IsAlias && (firstDelimiterNode == NULL)) { + // Alliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output) + firstDelimiterNode = main_item_list; + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_usage, 0, &main_item_list); + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_close, 0, &main_item_list); + delimiterCloseNode = main_item_list; + } + else if (link_collection_nodes[collection_node_idx].IsAlias && (firstDelimiterNode != NULL)) { + coll_begin_lookup[collection_node_idx] = rd_insert_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_usage, 0, &firstDelimiterNode); + } + else if (!link_collection_nodes[collection_node_idx].IsAlias && (firstDelimiterNode != NULL)) { + coll_begin_lookup[collection_node_idx] = rd_insert_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_usage, 0, &firstDelimiterNode); + coll_begin_lookup[collection_node_idx] = rd_insert_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_delimiter_open, 0, &firstDelimiterNode); + firstDelimiterNode = NULL; + main_item_list = delimiterCloseNode; + delimiterCloseNode = NULL; // Last entry of alias has .IsAlias == FALSE + } + if (!link_collection_nodes[collection_node_idx].IsAlias) { + coll_begin_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_collection, 0, &main_item_list); + actual_coll_level++; + } + } + else { + actual_coll_level--; + coll_end_lookup[collection_node_idx] = rd_append_main_item_node(0, 0, rd_item_node_collection, 0, collection_node_idx, rd_collection_end, 0, &main_item_list); + collection_node_idx = link_collection_nodes[collection_node_idx].Parent; + } + } + free(coll_last_written_child); + } + + + // **************************************************************** + // Inserted Input/Output/Feature main items into the main_item_list + // in order of reconstructed bit positions + // **************************************************************** + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + // Add all value caps to node list + struct rd_main_item_node *firstDelimiterNode = NULL; + struct rd_main_item_node *delimiterCloseNode = NULL; + for (USHORT caps_idx = pp_data->caps_info[rt_idx].FirstCap; caps_idx < pp_data->caps_info[rt_idx].LastCap; caps_idx++) { + struct rd_main_item_node *coll_begin = coll_begin_lookup[pp_data->caps[caps_idx].LinkCollection]; + int first_bit, last_bit; + first_bit = (pp_data->caps[caps_idx].BytePosition - 1) * 8 + + pp_data->caps[caps_idx].BitPosition; + last_bit = first_bit + pp_data->caps[caps_idx].ReportSize * + pp_data->caps[caps_idx].ReportCount - 1; + + for (int child_idx = 0; child_idx < coll_number_of_direct_childs[pp_data->caps[caps_idx].LinkCollection]; child_idx++) { + // Determine in which section before/between/after child collection the item should be inserted + if (first_bit < coll_bit_range[coll_child_order[pp_data->caps[caps_idx].LinkCollection][child_idx]][pp_data->caps[caps_idx].ReportID][rt_idx]->FirstBit) + { + // Note, that the default value for undefined coll_bit_range is -1, which can't be greater than the bit position + break; + } + coll_begin = coll_end_lookup[coll_child_order[pp_data->caps[caps_idx].LinkCollection][child_idx]]; + } + struct rd_main_item_node *list_node; + list_node = rd_search_main_item_list_for_bit_position(first_bit, (rd_main_items) rt_idx, pp_data->caps[caps_idx].ReportID, &coll_begin); + + // In a HID Report Descriptor, the first usage declared is the most preferred usage for the control. + // While the order in the WIN32 capabiliy strutures is the opposite: + // Here the preferred usage is the last aliased usage in the sequence. + + if (pp_data->caps[caps_idx].IsAlias && (firstDelimiterNode == NULL)) { + // Alliased Usage (First node in pp_data->caps -> Last entry in report descriptor output) + firstDelimiterNode = list_node; + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, rd_delimiter_usage, pp_data->caps[caps_idx].ReportID, &list_node); + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, rd_delimiter_close, pp_data->caps[caps_idx].ReportID, &list_node); + delimiterCloseNode = list_node; + } else if (pp_data->caps[caps_idx].IsAlias && (firstDelimiterNode != NULL)) { + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, rd_delimiter_usage, pp_data->caps[caps_idx].ReportID, &list_node); + } + else if (!pp_data->caps[caps_idx].IsAlias && (firstDelimiterNode != NULL)) { + // Alliased Collection (Last node in pp_data->caps -> First entry in report descriptor output) + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, rd_delimiter_usage, pp_data->caps[caps_idx].ReportID, &list_node); + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, rd_delimiter_open, pp_data->caps[caps_idx].ReportID, &list_node); + firstDelimiterNode = NULL; + list_node = delimiterCloseNode; + delimiterCloseNode = NULL; // Last entry of alias has .IsAlias == FALSE + } + if (!pp_data->caps[caps_idx].IsAlias) { + rd_insert_main_item_node(first_bit, last_bit, rd_item_node_cap, caps_idx, pp_data->caps[caps_idx].LinkCollection, (rd_main_items) rt_idx, pp_data->caps[caps_idx].ReportID, &list_node); + } + } + } + + + // *********************************************************** + // Add const main items for padding to main_item_list + // -To fill all bit gaps + // -At each report end for 8bit padding + // Note that information about the padding at the report end, + // is not stored in the preparsed data, but in practice all + // report descriptors seem to have it, as assumed here. + // *********************************************************** + { + int last_bit_position[NUM_OF_HIDP_REPORT_TYPES][256]; + struct rd_main_item_node *last_report_item_lookup[NUM_OF_HIDP_REPORT_TYPES][256]; + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + last_bit_position[rt_idx][reportid_idx] = -1; + last_report_item_lookup[rt_idx][reportid_idx] = NULL; + } + } + + struct rd_main_item_node *list = main_item_list; // List root; + + while (list->next != NULL) + { + if ((list->MainItemType >= rd_input) && + (list->MainItemType <= rd_feature)) { + // INPUT, OUTPUT or FEATURE + if (list->FirstBit != -1) { + if ((last_bit_position[list->MainItemType][list->ReportID] + 1 != list->FirstBit) && + (last_report_item_lookup[list->MainItemType][list->ReportID] != NULL) && + (last_report_item_lookup[list->MainItemType][list->ReportID]->FirstBit != list->FirstBit) // Happens in case of IsMultipleItemsForArray for multiple dedicated usages for a multi-button array + ) { + struct rd_main_item_node *list_node = rd_search_main_item_list_for_bit_position(last_bit_position[list->MainItemType][list->ReportID], list->MainItemType, list->ReportID, &last_report_item_lookup[list->MainItemType][list->ReportID]); + rd_insert_main_item_node(last_bit_position[list->MainItemType][list->ReportID] + 1, list->FirstBit - 1, rd_item_node_padding, -1, 0, list->MainItemType, list->ReportID, &list_node); + } + last_bit_position[list->MainItemType][list->ReportID] = list->LastBit; + last_report_item_lookup[list->MainItemType][list->ReportID] = list; + } + } + list = list->next; + } + // Add 8 bit padding at each report end + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + if (last_bit_position[rt_idx][reportid_idx] != -1) { + int padding = 8 - ((last_bit_position[rt_idx][reportid_idx] + 1) % 8); + if (padding < 8) { + // Insert padding item after item referenced in last_report_item_lookup + rd_insert_main_item_node(last_bit_position[rt_idx][reportid_idx] + 1, last_bit_position[rt_idx][reportid_idx] + padding, rd_item_node_padding, -1, 0, (rd_main_items) rt_idx, (unsigned char) reportid_idx, &last_report_item_lookup[rt_idx][reportid_idx]); + } + } + } + } + } + + + // *********************************** + // Encode the report descriptor output + // *********************************** + UCHAR last_report_id = 0; + USAGE last_usage_page = 0; + LONG last_physical_min = 0;// If both, Physical Minimum and Physical Maximum are 0, the logical limits should be taken as physical limits according USB HID spec 1.11 chapter 6.2.2.7 + LONG last_physical_max = 0; + ULONG last_unit_exponent = 0; // If Unit Exponent is Undefined it should be considered as 0 according USB HID spec 1.11 chapter 6.2.2.7 + ULONG last_unit = 0; // If the first nibble is 7, or second nibble of Unit is 0, the unit is None according USB HID spec 1.11 chapter 6.2.2.7 + BOOLEAN inhibit_write_of_usage = FALSE; // Needed in case of delimited usage print, before the normal collection or cap + int report_count = 0; + while (main_item_list != NULL) + { + int rt_idx = main_item_list->MainItemType; + int caps_idx = main_item_list->CapsIndex; + if (main_item_list->MainItemType == rd_collection) { + if (last_usage_page != link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage) { + // Write "Usage Page" at the begin of a collection - except it refers the same table as wrote last + rd_write_short_item(rd_global_usage_page, link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage, &rpt_desc); + last_usage_page = link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage; + } + if (inhibit_write_of_usage) { + // Inhibit only once after DELIMITER statement + inhibit_write_of_usage = FALSE; + } + else { + // Write "Usage" of collection + rd_write_short_item(rd_local_usage, link_collection_nodes[main_item_list->CollectionIndex].LinkUsage, &rpt_desc); + } + // Write begin of "Collection" + rd_write_short_item(rd_main_collection, link_collection_nodes[main_item_list->CollectionIndex].CollectionType, &rpt_desc); + } + else if (main_item_list->MainItemType == rd_collection_end) { + // Write "End Collection" + rd_write_short_item(rd_main_collection_end, 0, &rpt_desc); + } + else if (main_item_list->MainItemType == rd_delimiter_open) { + if (main_item_list->CollectionIndex != -1) { + // Write "Usage Page" inside of a collection delmiter section + if (last_usage_page != link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage) { + rd_write_short_item(rd_global_usage_page, link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage, &rpt_desc); + last_usage_page = link_collection_nodes[main_item_list->CollectionIndex].LinkUsagePage; + } + } + else if (main_item_list->CapsIndex != 0) { + // Write "Usage Page" inside of a main item delmiter section + if (pp_data->caps[caps_idx].UsagePage != last_usage_page) { + rd_write_short_item(rd_global_usage_page, pp_data->caps[caps_idx].UsagePage, &rpt_desc); + last_usage_page = pp_data->caps[caps_idx].UsagePage; + } + } + // Write "Delimiter Open" + rd_write_short_item(rd_local_delimiter, 1, &rpt_desc); // 1 = open set of aliased usages + } + else if (main_item_list->MainItemType == rd_delimiter_usage) { + if (main_item_list->CollectionIndex != -1) { + // Write aliased collection "Usage" + rd_write_short_item(rd_local_usage, link_collection_nodes[main_item_list->CollectionIndex].LinkUsage, &rpt_desc); + } if (main_item_list->CapsIndex != 0) { + // Write aliased main item range from "Usage Minimum" to "Usage Maximum" + if (pp_data->caps[caps_idx].IsRange) { + rd_write_short_item(rd_local_usage_minimum, pp_data->caps[caps_idx].Range.UsageMin, &rpt_desc); + rd_write_short_item(rd_local_usage_maximum, pp_data->caps[caps_idx].Range.UsageMax, &rpt_desc); + } + else { + // Write single aliased main item "Usage" + rd_write_short_item(rd_local_usage, pp_data->caps[caps_idx].NotRange.Usage, &rpt_desc); + } + } + } + else if (main_item_list->MainItemType == rd_delimiter_close) { + // Write "Delimiter Close" + rd_write_short_item(rd_local_delimiter, 0, &rpt_desc); // 0 = close set of aliased usages + // Inhibit next usage write + inhibit_write_of_usage = TRUE; + } + else if (main_item_list->TypeOfNode == rd_item_node_padding) { + // Padding + // The preparsed data doesn't contain any information about padding. Therefore all undefined gaps + // in the reports are filled with the same style of constant padding. + + // Write "Report Size" with number of padding bits + rd_write_short_item(rd_global_report_size, (main_item_list->LastBit - main_item_list->FirstBit + 1), &rpt_desc); + + // Write "Report Count" for padding always as 1 + rd_write_short_item(rd_global_report_count, 1, &rpt_desc); + + if (rt_idx == HidP_Input) { + // Write "Input" main item - We know it's Constant - We can only guess the other bits, but they don't matter in case of const + rd_write_short_item(rd_main_input, 0x03, &rpt_desc); // Const / Abs + } + else if (rt_idx == HidP_Output) { + // Write "Output" main item - We know it's Constant - We can only guess the other bits, but they don't matter in case of const + rd_write_short_item(rd_main_output, 0x03, &rpt_desc); // Const / Abs + } + else if (rt_idx == HidP_Feature) { + // Write "Feature" main item - We know it's Constant - We can only guess the other bits, but they don't matter in case of const + rd_write_short_item(rd_main_feature, 0x03, &rpt_desc); // Const / Abs + } + report_count = 0; + } + else if (pp_data->caps[caps_idx].IsButtonCap) { + // Button + // (The preparsed data contain different data for 1 bit Button caps, than for parametric Value caps) + + if (last_report_id != pp_data->caps[caps_idx].ReportID) { + // Write "Report ID" if changed + rd_write_short_item(rd_global_report_id, pp_data->caps[caps_idx].ReportID, &rpt_desc); + last_report_id = pp_data->caps[caps_idx].ReportID; + } + + // Write "Usage Page" when changed + if (pp_data->caps[caps_idx].UsagePage != last_usage_page) { + rd_write_short_item(rd_global_usage_page, pp_data->caps[caps_idx].UsagePage, &rpt_desc); + last_usage_page = pp_data->caps[caps_idx].UsagePage; + } + + // Write only local report items for each cap, if ReportCount > 1 + if (pp_data->caps[caps_idx].IsRange) { + report_count += (pp_data->caps[caps_idx].Range.DataIndexMax - pp_data->caps[caps_idx].Range.DataIndexMin); + } + + if (inhibit_write_of_usage) { + // Inhibit only once after Delimiter - Reset flag + inhibit_write_of_usage = FALSE; + } + else { + if (pp_data->caps[caps_idx].IsRange) { + // Write range from "Usage Minimum" to "Usage Maximum" + rd_write_short_item(rd_local_usage_minimum, pp_data->caps[caps_idx].Range.UsageMin, &rpt_desc); + rd_write_short_item(rd_local_usage_maximum, pp_data->caps[caps_idx].Range.UsageMax, &rpt_desc); + } + else { + // Write single "Usage" + rd_write_short_item(rd_local_usage, pp_data->caps[caps_idx].NotRange.Usage, &rpt_desc); + } + } + + if (pp_data->caps[caps_idx].IsDesignatorRange) { + // Write physical descriptor indices range from "Designator Minimum" to "Designator Maximum" + rd_write_short_item(rd_local_designator_minimum, pp_data->caps[caps_idx].Range.DesignatorMin, &rpt_desc); + rd_write_short_item(rd_local_designator_maximum, pp_data->caps[caps_idx].Range.DesignatorMax, &rpt_desc); + } + else if (pp_data->caps[caps_idx].NotRange.DesignatorIndex != 0) { + // Designator set 0 is a special descriptor set (of the HID Physical Descriptor), + // that specifies the number of additional descriptor sets. + // Therefore Designator Index 0 can never be a useful reference for a control and we can inhibit it. + // Write single "Designator Index" + rd_write_short_item(rd_local_designator_index, pp_data->caps[caps_idx].NotRange.DesignatorIndex, &rpt_desc); + } + + if (pp_data->caps[caps_idx].IsStringRange) { + // Write range of indices of the USB string descriptor, from "String Minimum" to "String Maximum" + rd_write_short_item(rd_local_string_minimum, pp_data->caps[caps_idx].Range.StringMin, &rpt_desc); + rd_write_short_item(rd_local_string_maximum, pp_data->caps[caps_idx].Range.StringMax, &rpt_desc); + } + else if (pp_data->caps[caps_idx].NotRange.StringIndex != 0) { + // String Index 0 is a special entry of the USB string descriptor, that contains a list of supported languages, + // therefore Designator Index 0 can never be a useful reference for a control and we can inhibit it. + // Write single "String Index" + rd_write_short_item(rd_local_string, pp_data->caps[caps_idx].NotRange.StringIndex, &rpt_desc); + } + + if ((main_item_list->next != NULL) && + ((int)main_item_list->next->MainItemType == rt_idx) && + (main_item_list->next->TypeOfNode == rd_item_node_cap) && + (pp_data->caps[main_item_list->next->CapsIndex].IsButtonCap) && + (!pp_data->caps[caps_idx].IsRange) && // This node in list is no array + (!pp_data->caps[main_item_list->next->CapsIndex].IsRange) && // Next node in list is no array + (pp_data->caps[main_item_list->next->CapsIndex].UsagePage == pp_data->caps[caps_idx].UsagePage) && + (pp_data->caps[main_item_list->next->CapsIndex].ReportID == pp_data->caps[caps_idx].ReportID) && + (pp_data->caps[main_item_list->next->CapsIndex].BitField == pp_data->caps[caps_idx].BitField) + ) { + if (main_item_list->next->FirstBit != main_item_list->FirstBit) { + // In case of IsMultipleItemsForArray for multiple dedicated usages for a multi-button array, the report count should be incremented + + // Skip global items until any of them changes, than use ReportCount item to write the count of identical report fields + report_count++; + } + } + else { + + if ((pp_data->caps[caps_idx].Button.LogicalMin == 0) && + (pp_data->caps[caps_idx].Button.LogicalMax == 0)) { + // While a HID report descriptor must always contain LogicalMinimum and LogicalMaximum, + // the preparsed data contain both fields set to zero, for the case of simple buttons + // Write "Logical Minimum" set to 0 and "Logical Maximum" set to 1 + rd_write_short_item(rd_global_logical_minimum, 0, &rpt_desc); + rd_write_short_item(rd_global_logical_maximum, 1, &rpt_desc); + } + else { + // Write logical range from "Logical Minimum" to "Logical Maximum" + rd_write_short_item(rd_global_logical_minimum, pp_data->caps[caps_idx].Button.LogicalMin, &rpt_desc); + rd_write_short_item(rd_global_logical_maximum, pp_data->caps[caps_idx].Button.LogicalMax, &rpt_desc); + } + + // Write "Report Size" + rd_write_short_item(rd_global_report_size, pp_data->caps[caps_idx].ReportSize, &rpt_desc); + + // Write "Report Count" + if (!pp_data->caps[caps_idx].IsRange) { + // Variable bit field with one bit per button + // In case of multiple usages with the same items, only "Usage" is written per cap, and "Report Count" is incremented + rd_write_short_item(rd_global_report_count, pp_data->caps[caps_idx].ReportCount + report_count, &rpt_desc); + } + else { + // Button array of "Report Size" x "Report Count + rd_write_short_item(rd_global_report_count, pp_data->caps[caps_idx].ReportCount, &rpt_desc); + } + + + // Buttons have only 1 bit and therefore no physical limits/units -> Set to undefined state + if (last_physical_min != 0) { + // Write "Physical Minimum", but only if changed + last_physical_min = 0; + rd_write_short_item(rd_global_physical_minimum, last_physical_min, &rpt_desc); + } + if (last_physical_max != 0) { + // Write "Physical Maximum", but only if changed + last_physical_max = 0; + rd_write_short_item(rd_global_physical_maximum, last_physical_max, &rpt_desc); + } + if (last_unit_exponent != 0) { + // Write "Unit Exponent", but only if changed + last_unit_exponent = 0; + rd_write_short_item(rd_global_unit_exponent, last_unit_exponent, &rpt_desc); + } + if (last_unit != 0) { + // Write "Unit",but only if changed + last_unit = 0; + rd_write_short_item(rd_global_unit, last_unit, &rpt_desc); + } + + // Write "Input" main item + if (rt_idx == HidP_Input) { + rd_write_short_item(rd_main_input, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + // Write "Output" main item + else if (rt_idx == HidP_Output) { + rd_write_short_item(rd_main_output, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + // Write "Feature" main item + else if (rt_idx == HidP_Feature) { + rd_write_short_item(rd_main_feature, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + report_count = 0; + } + } + else { + + if (last_report_id != pp_data->caps[caps_idx].ReportID) { + // Write "Report ID" if changed + rd_write_short_item(rd_global_report_id, pp_data->caps[caps_idx].ReportID, &rpt_desc); + last_report_id = pp_data->caps[caps_idx].ReportID; + } + + // Write "Usage Page" if changed + if (pp_data->caps[caps_idx].UsagePage != last_usage_page) { + rd_write_short_item(rd_global_usage_page, pp_data->caps[caps_idx].UsagePage, &rpt_desc); + last_usage_page = pp_data->caps[caps_idx].UsagePage; + } + + if (inhibit_write_of_usage) { + // Inhibit only once after Delimiter - Reset flag + inhibit_write_of_usage = FALSE; + } + else { + if (pp_data->caps[caps_idx].IsRange) { + // Write usage range from "Usage Minimum" to "Usage Maximum" + rd_write_short_item(rd_local_usage_minimum, pp_data->caps[caps_idx].Range.UsageMin, &rpt_desc); + rd_write_short_item(rd_local_usage_maximum, pp_data->caps[caps_idx].Range.UsageMax, &rpt_desc); + } + else { + // Write single "Usage" + rd_write_short_item(rd_local_usage, pp_data->caps[caps_idx].NotRange.Usage, &rpt_desc); + } + } + + if (pp_data->caps[caps_idx].IsDesignatorRange) { + // Write physical descriptor indices range from "Designator Minimum" to "Designator Maximum" + rd_write_short_item(rd_local_designator_minimum, pp_data->caps[caps_idx].Range.DesignatorMin, &rpt_desc); + rd_write_short_item(rd_local_designator_maximum, pp_data->caps[caps_idx].Range.DesignatorMax, &rpt_desc); + } + else if (pp_data->caps[caps_idx].NotRange.DesignatorIndex != 0) { + // Designator set 0 is a special descriptor set (of the HID Physical Descriptor), + // that specifies the number of additional descriptor sets. + // Therefore Designator Index 0 can never be a useful reference for a control and we can inhibit it. + // Write single "Designator Index" + rd_write_short_item(rd_local_designator_index, pp_data->caps[caps_idx].NotRange.DesignatorIndex, &rpt_desc); + } + + if (pp_data->caps[caps_idx].IsStringRange) { + // Write range of indices of the USB string descriptor, from "String Minimum" to "String Maximum" + rd_write_short_item(rd_local_string_minimum, pp_data->caps[caps_idx].Range.StringMin, &rpt_desc); + rd_write_short_item(rd_local_string_maximum, pp_data->caps[caps_idx].Range.StringMax, &rpt_desc); + } + else if (pp_data->caps[caps_idx].NotRange.StringIndex != 0) { + // String Index 0 is a special entry of the USB string descriptor, that contains a list of supported languages, + // therefore Designator Index 0 can never be a useful reference for a control and we can inhibit it. + // Write single "String Index" + rd_write_short_item(rd_local_string, pp_data->caps[caps_idx].NotRange.StringIndex, &rpt_desc); + } + + if ((pp_data->caps[caps_idx].BitField & 0x02) != 0x02) { + // In case of an value array overwrite "Report Count" + pp_data->caps[caps_idx].ReportCount = pp_data->caps[caps_idx].Range.DataIndexMax - pp_data->caps[caps_idx].Range.DataIndexMin + 1; + } + + + // Print only local report items for each cap, if ReportCount > 1 + if ((main_item_list->next != NULL) && + ((int) main_item_list->next->MainItemType == rt_idx) && + (main_item_list->next->TypeOfNode == rd_item_node_cap) && + (!pp_data->caps[main_item_list->next->CapsIndex].IsButtonCap) && + (!pp_data->caps[caps_idx].IsRange) && // This node in list is no array + (!pp_data->caps[main_item_list->next->CapsIndex].IsRange) && // Next node in list is no array + (pp_data->caps[main_item_list->next->CapsIndex].UsagePage == pp_data->caps[caps_idx].UsagePage) && + (pp_data->caps[main_item_list->next->CapsIndex].NotButton.LogicalMin == pp_data->caps[caps_idx].NotButton.LogicalMin) && + (pp_data->caps[main_item_list->next->CapsIndex].NotButton.LogicalMax == pp_data->caps[caps_idx].NotButton.LogicalMax) && + (pp_data->caps[main_item_list->next->CapsIndex].NotButton.PhysicalMin == pp_data->caps[caps_idx].NotButton.PhysicalMin) && + (pp_data->caps[main_item_list->next->CapsIndex].NotButton.PhysicalMax == pp_data->caps[caps_idx].NotButton.PhysicalMax) && + (pp_data->caps[main_item_list->next->CapsIndex].UnitsExp == pp_data->caps[caps_idx].UnitsExp) && + (pp_data->caps[main_item_list->next->CapsIndex].Units == pp_data->caps[caps_idx].Units) && + (pp_data->caps[main_item_list->next->CapsIndex].ReportSize == pp_data->caps[caps_idx].ReportSize) && + (pp_data->caps[main_item_list->next->CapsIndex].ReportID == pp_data->caps[caps_idx].ReportID) && + (pp_data->caps[main_item_list->next->CapsIndex].BitField == pp_data->caps[caps_idx].BitField) && + (pp_data->caps[main_item_list->next->CapsIndex].ReportCount == 1) && + (pp_data->caps[caps_idx].ReportCount == 1) + ) { + // Skip global items until any of them changes, than use ReportCount item to write the count of identical report fields + report_count++; + } + else { + // Value + + // Write logical range from "Logical Minimum" to "Logical Maximum" + rd_write_short_item(rd_global_logical_minimum, pp_data->caps[caps_idx].NotButton.LogicalMin, &rpt_desc); + rd_write_short_item(rd_global_logical_maximum, pp_data->caps[caps_idx].NotButton.LogicalMax, &rpt_desc); + + if ((last_physical_min != pp_data->caps[caps_idx].NotButton.PhysicalMin) || + (last_physical_max != pp_data->caps[caps_idx].NotButton.PhysicalMax)) { + // Write range from "Physical Minimum" to " Physical Maximum", but only if one of them changed + rd_write_short_item(rd_global_physical_minimum, pp_data->caps[caps_idx].NotButton.PhysicalMin, &rpt_desc); + last_physical_min = pp_data->caps[caps_idx].NotButton.PhysicalMin; + rd_write_short_item(rd_global_physical_maximum, pp_data->caps[caps_idx].NotButton.PhysicalMax, &rpt_desc); + last_physical_max = pp_data->caps[caps_idx].NotButton.PhysicalMax; + } + + + if (last_unit_exponent != pp_data->caps[caps_idx].UnitsExp) { + // Write "Unit Exponent", but only if changed + rd_write_short_item(rd_global_unit_exponent, pp_data->caps[caps_idx].UnitsExp, &rpt_desc); + last_unit_exponent = pp_data->caps[caps_idx].UnitsExp; + } + + if (last_unit != pp_data->caps[caps_idx].Units) { + // Write physical "Unit", but only if changed + rd_write_short_item(rd_global_unit, pp_data->caps[caps_idx].Units, &rpt_desc); + last_unit = pp_data->caps[caps_idx].Units; + } + + // Write "Report Size" + rd_write_short_item(rd_global_report_size, pp_data->caps[caps_idx].ReportSize, &rpt_desc); + + // Write "Report Count" + rd_write_short_item(rd_global_report_count, pp_data->caps[caps_idx].ReportCount + report_count, &rpt_desc); + + if (rt_idx == HidP_Input) { + // Write "Input" main item + rd_write_short_item(rd_main_input, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + else if (rt_idx == HidP_Output) { + // Write "Output" main item + rd_write_short_item(rd_main_output, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + else if (rt_idx == HidP_Feature) { + // Write "Feature" main item + rd_write_short_item(rd_main_feature, pp_data->caps[caps_idx].BitField, &rpt_desc); + } + report_count = 0; + } + } + + // Go to next item in main_item_list and free the memory of the actual item + struct rd_main_item_node *main_item_list_prev = main_item_list; + main_item_list = main_item_list->next; + free(main_item_list_prev); + } + + // Free multidimensionable array: coll_bit_range[COLLECTION_INDEX][REPORT_ID][INPUT/OUTPUT/FEATURE] + // Free multidimensionable array: coll_child_order[COLLECTION_INDEX][DIRECT_CHILD_INDEX] + for (USHORT collection_node_idx = 0; collection_node_idx < pp_data->NumberLinkCollectionNodes; collection_node_idx++) { + for (int reportid_idx = 0; reportid_idx < 256; reportid_idx++) { + for (HIDP_REPORT_TYPE rt_idx = 0; rt_idx < NUM_OF_HIDP_REPORT_TYPES; rt_idx++) { + free(coll_bit_range[collection_node_idx][reportid_idx][rt_idx]); + } + free(coll_bit_range[collection_node_idx][reportid_idx]); + } + free(coll_bit_range[collection_node_idx]); + if (coll_number_of_direct_childs[collection_node_idx] != 0) free(coll_child_order[collection_node_idx]); + } + free(coll_bit_range); + free(coll_child_order); + + // Free one dimensional arrays + free(coll_begin_lookup); + free(coll_end_lookup); + free(coll_levels); + free(coll_number_of_direct_childs); + + return (int) rpt_desc.byte_idx; +} diff --git a/windows/hidapi_descriptor_reconstruct.h b/windows/hidapi_descriptor_reconstruct.h new file mode 100644 index 000000000..2ec8b2081 --- /dev/null +++ b/windows/hidapi_descriptor_reconstruct.h @@ -0,0 +1,238 @@ +/******************************************************* + HIDAPI - Multi-Platform library for + communication with HID devices. + + libusb/hidapi Team + + Copyright 2022, All Rights Reserved. + + At the discretion of the user of this library, + this software may be licensed under the terms of the + GNU General Public License v3, a BSD-Style license, or the + original HIDAPI license as outlined in the LICENSE.txt, + LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt + files located at the root of the source distribution. + These files may also be found in the public source + code repository located at: + https://github.com/libusb/hidapi . +********************************************************/ +#ifndef HIDAPI_DESCRIPTOR_RECONSTRUCT_H__ +#define HIDAPI_DESCRIPTOR_RECONSTRUCT_H__ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +/* Do not warn about wcsncpy usage. + https://docs.microsoft.com/cpp/c-runtime-library/security-features-in-the-crt */ +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "hidapi_winapi.h" + +#if _MSC_VER +#pragma warning(push) +#pragma warning(disable: 4200) +#pragma warning(disable: 4201) +#endif + +#include + +#include "hidapi_hidsdi.h" + +#define NUM_OF_HIDP_REPORT_TYPES 3 + +typedef enum rd_items_ { + rd_main_input = 0x80, /* 1000 00 nn */ + rd_main_output = 0x90, /* 1001 00 nn */ + rd_main_feature = 0xB0, /* 1011 00 nn */ + rd_main_collection = 0xA0, /* 1010 00 nn */ + rd_main_collection_end = 0xC0, /* 1100 00 nn */ + rd_global_usage_page = 0x04, /* 0000 01 nn */ + rd_global_logical_minimum = 0x14, /* 0001 01 nn */ + rd_global_logical_maximum = 0x24, /* 0010 01 nn */ + rd_global_physical_minimum = 0x34, /* 0011 01 nn */ + rd_global_physical_maximum = 0x44, /* 0100 01 nn */ + rd_global_unit_exponent = 0x54, /* 0101 01 nn */ + rd_global_unit = 0x64, /* 0110 01 nn */ + rd_global_report_size = 0x74, /* 0111 01 nn */ + rd_global_report_id = 0x84, /* 1000 01 nn */ + rd_global_report_count = 0x94, /* 1001 01 nn */ + rd_global_push = 0xA4, /* 1010 01 nn */ + rd_global_pop = 0xB4, /* 1011 01 nn */ + rd_local_usage = 0x08, /* 0000 10 nn */ + rd_local_usage_minimum = 0x18, /* 0001 10 nn */ + rd_local_usage_maximum = 0x28, /* 0010 10 nn */ + rd_local_designator_index = 0x38, /* 0011 10 nn */ + rd_local_designator_minimum = 0x48, /* 0100 10 nn */ + rd_local_designator_maximum = 0x58, /* 0101 10 nn */ + rd_local_string = 0x78, /* 0111 10 nn */ + rd_local_string_minimum = 0x88, /* 1000 10 nn */ + rd_local_string_maximum = 0x98, /* 1001 10 nn */ + rd_local_delimiter = 0xA8 /* 1010 10 nn */ +} rd_items; + +typedef enum rd_main_items_ { + rd_input = HidP_Input, + rd_output = HidP_Output, + rd_feature = HidP_Feature, + rd_collection, + rd_collection_end, + rd_delimiter_open, + rd_delimiter_usage, + rd_delimiter_close, +} rd_main_items; + +typedef struct rd_bit_range_ { + int FirstBit; + int LastBit; +} rd_bit_range; + +typedef enum rd_item_node_type_ { + rd_item_node_cap, + rd_item_node_padding, + rd_item_node_collection, +} rd_node_type; + +struct rd_main_item_node { + int FirstBit; /* Position of first bit in report (counting from 0) */ + int LastBit; /* Position of last bit in report (counting from 0) */ + rd_node_type TypeOfNode; /* Information if caps index refers to the array of button caps, value caps, + or if the node is just a padding element to fill unused bit positions. + The node can also be a collection node without any bits in the report. */ + int CapsIndex; /* Index in the array of caps */ + int CollectionIndex; /* Index in the array of link collections */ + rd_main_items MainItemType; /* Input, Output, Feature, Collection or Collection End */ + unsigned char ReportID; + struct rd_main_item_node* next; +}; + +typedef struct hid_pp_caps_info_ { + USHORT FirstCap; + USHORT NumberOfCaps; // Includes empty caps after LastCap + USHORT LastCap; + USHORT ReportByteLength; +} hid_pp_caps_info, *phid_pp_caps_info; + +typedef struct hid_pp_link_collection_node_ { + USAGE LinkUsage; + USAGE LinkUsagePage; + USHORT Parent; + USHORT NumberOfChildren; + USHORT NextSibling; + USHORT FirstChild; + ULONG CollectionType : 8; + ULONG IsAlias : 1; + ULONG Reserved : 23; + // Same as the public API structure HIDP_LINK_COLLECTION_NODE, but without PVOID UserContext at the end +} hid_pp_link_collection_node, *phid_pp_link_collection_node; + +typedef struct hidp_unknown_token_ { + UCHAR Token; /* Specifies the one-byte prefix of a global item. */ + UCHAR Reserved[3]; + ULONG BitField; /* Specifies the data part of the global item. */ +} hidp_unknown_token, * phidp_unknown_token; + +typedef struct hid_pp_cap_ { + USAGE UsagePage; + UCHAR ReportID; + UCHAR BitPosition; + USHORT ReportSize; // WIN32 term for this is BitSize + USHORT ReportCount; + USHORT BytePosition; + USHORT BitCount; + ULONG BitField; + USHORT NextBytePosition; + USHORT LinkCollection; + USAGE LinkUsagePage; + USAGE LinkUsage; + + // Start of 8 Flags in one byte + BOOLEAN IsMultipleItemsForArray:1; + + BOOLEAN IsPadding:1; + BOOLEAN IsButtonCap:1; + BOOLEAN IsAbsolute:1; + BOOLEAN IsRange:1; + BOOLEAN IsAlias:1; // IsAlias is set to TRUE in the first n-1 capability structures added to the capability array. IsAlias set to FALSE in the nth capability structure. + BOOLEAN IsStringRange:1; + BOOLEAN IsDesignatorRange:1; + // End of 8 Flags in one byte + BOOLEAN Reserved1[3]; + + hidp_unknown_token UnknownTokens[4]; // 4 x 8 Byte + + union { + struct { + USAGE UsageMin; + USAGE UsageMax; + USHORT StringMin; + USHORT StringMax; + USHORT DesignatorMin; + USHORT DesignatorMax; + USHORT DataIndexMin; + USHORT DataIndexMax; + } Range; + struct { + USAGE Usage; + USAGE Reserved1; + USHORT StringIndex; + USHORT Reserved2; + USHORT DesignatorIndex; + USHORT Reserved3; + USHORT DataIndex; + USHORT Reserved4; + } NotRange; + }; + union { + struct { + LONG LogicalMin; + LONG LogicalMax; + } Button; + struct { + BOOLEAN HasNull; + UCHAR Reserved4[3]; + LONG LogicalMin; + LONG LogicalMax; + LONG PhysicalMin; + LONG PhysicalMax; + } NotButton; + }; + ULONG Units; + ULONG UnitsExp; + +} hid_pp_cap, *phid_pp_cap; + +typedef struct hidp_preparsed_data_ { + UCHAR MagicKey[8]; + USAGE Usage; + USAGE UsagePage; + USHORT Reserved[2]; + + // CAPS structure for Input, Output and Feature + hid_pp_caps_info caps_info[3]; + + USHORT FirstByteOfLinkCollectionArray; + USHORT NumberLinkCollectionNodes; + +#if defined(__MINGW32__) || defined(__CYGWIN__) + // MINGW fails with: Flexible array member in union not supported + // Solution: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html + union { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" + hid_pp_cap caps[0]; + hid_pp_link_collection_node LinkCollectionArray[0]; +#pragma GCC diagnostic pop + }; +#else + union { + hid_pp_cap caps[]; + hid_pp_link_collection_node LinkCollectionArray[]; + }; +#endif + +} hidp_preparsed_data; + +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#endif diff --git a/windows/hidapi_hidpi.h b/windows/hidapi_hidpi.h index 343ddeb05..75a5812c9 100644 --- a/windows/hidapi_hidpi.h +++ b/windows/hidapi_hidpi.h @@ -29,6 +29,13 @@ /* This part of the header mimics hidpi.h, but only what is used by HIDAPI */ +typedef enum _HIDP_REPORT_TYPE +{ + HidP_Input, + HidP_Output, + HidP_Feature +} HIDP_REPORT_TYPE; + typedef struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA; typedef struct _HIDP_CAPS diff --git a/windows/hidapi_winapi.h b/windows/hidapi_winapi.h index 884712af8..43071f57a 100644 --- a/windows/hidapi_winapi.h +++ b/windows/hidapi_winapi.h @@ -26,6 +26,8 @@ #ifndef HIDAPI_WINAPI_H__ #define HIDAPI_WINAPI_H__ +#include + #include #include "hidapi.h" @@ -51,6 +53,20 @@ extern "C" { */ int HID_API_EXPORT_CALL hid_winapi_get_container_id(hid_device *dev, GUID *container_id); + /** + * @brief Reconstructs a HID Report Descriptor from a Win32 HIDP_PREPARSED_DATA structure. + * This reconstructed report descriptor is logical identical to the real report descriptor, + * but not byte wise identical. + * + * @param[in] hidp_preparsed_data Pointer to the HIDP_PREPARSED_DATA to read, i.e.: the value of PHIDP_PREPARSED_DATA, + * as returned by HidD_GetPreparsedData WinAPI function. + * @param buf Pointer to the buffer where the report descriptor should be stored. + * @param[in] buf_size Size of the buffer. The recommended size for the buffer is @ref HID_API_MAX_REPORT_DESCRIPTOR_SIZE bytes. + * + * @return Returns size of reconstructed report descriptor if successful, -1 for error. + */ + int HID_API_EXPORT_CALL hid_winapi_descriptor_reconstruct_pp_data(void *hidp_preparsed_data, unsigned char *buf, size_t buf_size); + #ifdef __cplusplus } #endif diff --git a/windows/pp_data_dump/CMakeLists.txt b/windows/pp_data_dump/CMakeLists.txt new file mode 100644 index 000000000..f017de993 --- /dev/null +++ b/windows/pp_data_dump/CMakeLists.txt @@ -0,0 +1,15 @@ +project(pp_data_dump C) + +add_executable(pp_data_dump pp_data_dump.c) +set_target_properties(pp_data_dump + PROPERTIES + C_STANDARD 11 + C_STANDARD_REQUIRED TRUE +) +target_link_libraries(pp_data_dump + PRIVATE hidapi_winapi +) + +install(TARGETS pp_data_dump + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" +) diff --git a/windows/pp_data_dump/README.md b/windows/pp_data_dump/README.md new file mode 100644 index 000000000..a0989cd00 --- /dev/null +++ b/windows/pp_data_dump/README.md @@ -0,0 +1,122 @@ +## pp_data_dump.exe for Windows + + +pp_data_dump.exe is a small command line tool for Windows, which dumps the content of the [Preparsed Data](https://learn.microsoft.com/en-us/windows-hardware/drivers/hid/preparsed-data) structure, provided by the Windows HID subsystem, into a file. + +The generated file is in a text format, which is readable for human, as by the hid_report_reconstructor_test.exe unit test executable of the HIDAPI project. This unit test allows it to test the HIDAPIs report descriptor reconstructor - offline, without the hardware device connected. + +pp_data_dump.exe has no arguments, just connect you HID device and execute pp_data_dump.exe. It will generate one file with the name +``` +___.pp_data +``` +for each top-level collection, of each connected HID device. + + +## File content + +The content of such a .pp_data file looks like the struct, which HIDAPI uses internally to represent the Preparsed Data. + +*NOTE: +Windows parses HID report descriptors into opaque `_HIDP_PREPARSED_DATA` objects. +The internal structure of `_HIDP_PREPARSED_DATA` is reserved for internal system use.\ +Microsoft doesn't document this structure. [hid_preparsed_data.cc](https://chromium.googlesource.com/chromium/src/+/73fdaaf605bb60caf34d5f30bb84a417688aa528/services/device/hid/hid_preparsed_data.cc) is taken as a reference for its parsing.* + +``` +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col02#8&1cf1c1b9&3&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 2 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 1 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 1 +pp_data->caps_info[2]->LastCap = 1 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0068 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0006 +pp_data->cap[0]->ReportID = 0x03 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0020 +pp_data->cap[0]->NotRange.Reserved1 = 0x0020 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = 100 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +``` \ No newline at end of file diff --git a/windows/pp_data_dump/pp_data_dump.c b/windows/pp_data_dump/pp_data_dump.c new file mode 100644 index 000000000..561dc96af --- /dev/null +++ b/windows/pp_data_dump/pp_data_dump.c @@ -0,0 +1,238 @@ + + +#include +#include <../windows/hidapi_descriptor_reconstruct.h> + +#include + +#if defined(__MINGW32__) +#pragma GCC diagnostic ignored "-Wformat" +#pragma GCC diagnostic ignored "-Wformat-extra-args" +#endif + +void dump_hid_pp_cap(FILE* file, phid_pp_cap pp_cap, unsigned int cap_idx) { + fprintf(file, "pp_data->cap[%d]->UsagePage = 0x%04hX\n", cap_idx, pp_cap->UsagePage); + fprintf(file, "pp_data->cap[%d]->ReportID = 0x%02hhX\n", cap_idx, pp_cap->ReportID); + fprintf(file, "pp_data->cap[%d]->BitPosition = %hhu\n", cap_idx, pp_cap->BitPosition); + fprintf(file, "pp_data->cap[%d]->BitSize = %hu\n", cap_idx, pp_cap->ReportSize); + fprintf(file, "pp_data->cap[%d]->ReportCount = %hu\n", cap_idx, pp_cap->ReportCount); + fprintf(file, "pp_data->cap[%d]->BytePosition = 0x%04hX\n", cap_idx, pp_cap->BytePosition); + fprintf(file, "pp_data->cap[%d]->BitCount = %hu\n", cap_idx, pp_cap->BitCount); + fprintf(file, "pp_data->cap[%d]->BitField = 0x%02lX\n", cap_idx, pp_cap->BitField); + fprintf(file, "pp_data->cap[%d]->NextBytePosition = 0x%04hX\n", cap_idx, pp_cap->NextBytePosition); + fprintf(file, "pp_data->cap[%d]->LinkCollection = 0x%04hX\n", cap_idx, pp_cap->LinkCollection); + fprintf(file, "pp_data->cap[%d]->LinkUsagePage = 0x%04hX\n", cap_idx, pp_cap->LinkUsagePage); + fprintf(file, "pp_data->cap[%d]->LinkUsage = 0x%04hX\n", cap_idx, pp_cap->LinkUsage); + + // 8 Flags in one byte + fprintf(file, "pp_data->cap[%d]->IsMultipleItemsForArray = %hhu\n", cap_idx, pp_cap->IsMultipleItemsForArray); + fprintf(file, "pp_data->cap[%d]->IsButtonCap = %hhu\n", cap_idx, pp_cap->IsButtonCap); + fprintf(file, "pp_data->cap[%d]->IsPadding = %hhu\n", cap_idx, pp_cap->IsPadding); + fprintf(file, "pp_data->cap[%d]->IsAbsolute = %hhu\n", cap_idx, pp_cap->IsAbsolute); + fprintf(file, "pp_data->cap[%d]->IsRange = %hhu\n", cap_idx, pp_cap->IsRange); + fprintf(file, "pp_data->cap[%d]->IsAlias = %hhu\n", cap_idx, pp_cap->IsAlias); + fprintf(file, "pp_data->cap[%d]->IsStringRange = %hhu\n", cap_idx, pp_cap->IsStringRange); + fprintf(file, "pp_data->cap[%d]->IsDesignatorRange = %hhu\n", cap_idx, pp_cap->IsDesignatorRange); + + fprintf(file, "pp_data->cap[%d]->Reserved1 = 0x%02hhX%02hhX%02hhX\n", cap_idx, pp_cap->Reserved1[0], pp_cap->Reserved1[1], pp_cap->Reserved1[2]); + + for (int token_idx = 0; token_idx < 4; token_idx++) { + fprintf(file, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].Token = 0x%02hhX\n", cap_idx, token_idx, pp_cap->UnknownTokens[token_idx].Token); + fprintf(file, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].Reserved = 0x%02hhX%02hhX%02hhX\n", cap_idx, token_idx, pp_cap->UnknownTokens[token_idx].Reserved[0], pp_cap->UnknownTokens[token_idx].Reserved[1], pp_cap->UnknownTokens[token_idx].Reserved[2]); + fprintf(file, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].BitField = 0x%08lX\n", cap_idx, token_idx, pp_cap->UnknownTokens[token_idx].BitField); + } + + if (pp_cap->IsRange) { + fprintf(file, "pp_data->cap[%d]->Range.UsageMin = 0x%04hX\n", cap_idx, pp_cap->Range.UsageMin); + fprintf(file, "pp_data->cap[%d]->Range.UsageMax = 0x%04hX\n", cap_idx, pp_cap->Range.UsageMax); + fprintf(file, "pp_data->cap[%d]->Range.StringMin = %hu\n", cap_idx, pp_cap->Range.StringMin); + fprintf(file, "pp_data->cap[%d]->Range.StringMax = %hu\n", cap_idx, pp_cap->Range.StringMax); + fprintf(file, "pp_data->cap[%d]->Range.DesignatorMin = %hu\n", cap_idx, pp_cap->Range.DesignatorMin); + fprintf(file, "pp_data->cap[%d]->Range.DesignatorMax = %hu\n", cap_idx, pp_cap->Range.DesignatorMax); + fprintf(file, "pp_data->cap[%d]->Range.DataIndexMin = %hu\n", cap_idx, pp_cap->Range.DataIndexMin); + fprintf(file, "pp_data->cap[%d]->Range.DataIndexMax = %hu\n", cap_idx, pp_cap->Range.DataIndexMax); + } + else { + fprintf(file, "pp_data->cap[%d]->NotRange.Usage = 0x%04hX\n", cap_idx, pp_cap->NotRange.Usage); + fprintf(file, "pp_data->cap[%d]->NotRange.Reserved1 = 0x%04hX\n", cap_idx, pp_cap->NotRange.Reserved1); + fprintf(file, "pp_data->cap[%d]->NotRange.StringIndex = %hu\n", cap_idx, pp_cap->NotRange.StringIndex); + fprintf(file, "pp_data->cap[%d]->NotRange.Reserved2 = %hu\n", cap_idx, pp_cap->NotRange.Reserved2); + fprintf(file, "pp_data->cap[%d]->NotRange.DesignatorIndex = %hu\n", cap_idx, pp_cap->NotRange.DesignatorIndex); + fprintf(file, "pp_data->cap[%d]->NotRange.Reserved3 = %hu\n", cap_idx, pp_cap->NotRange.Reserved3); + fprintf(file, "pp_data->cap[%d]->NotRange.DataIndex = %hu\n", cap_idx, pp_cap->NotRange.DataIndex); + fprintf(file, "pp_data->cap[%d]->NotRange.Reserved4 = %hu\n", cap_idx, pp_cap->NotRange.Reserved4); + } + + if (pp_cap->IsButtonCap) { + fprintf(file, "pp_data->cap[%d]->Button.LogicalMin = %ld\n", cap_idx, pp_cap->Button.LogicalMin); + fprintf(file, "pp_data->cap[%d]->Button.LogicalMax = %ld\n", cap_idx, pp_cap->Button.LogicalMax); + } + else + { + fprintf(file, "pp_data->cap[%d]->NotButton.HasNull = %hhu\n", cap_idx, pp_cap->NotButton.HasNull); + fprintf(file, "pp_data->cap[%d]->NotButton.Reserved4 = 0x%02hhX%02hhX%02hhX\n", cap_idx, pp_cap->NotButton.Reserved4[0], pp_cap->NotButton.Reserved4[1], pp_cap->NotButton.Reserved4[2]); + fprintf(file, "pp_data->cap[%d]->NotButton.LogicalMin = %ld\n", cap_idx, pp_cap->NotButton.LogicalMin); + fprintf(file, "pp_data->cap[%d]->NotButton.LogicalMax = %ld\n", cap_idx, pp_cap->NotButton.LogicalMax); + fprintf(file, "pp_data->cap[%d]->NotButton.PhysicalMin = %ld\n", cap_idx, pp_cap->NotButton.PhysicalMin); + fprintf(file, "pp_data->cap[%d]->NotButton.PhysicalMax = %ld\n", cap_idx, pp_cap->NotButton.PhysicalMax); + }; + fprintf(file, "pp_data->cap[%d]->Units = %lu\n", cap_idx, pp_cap->Units); + fprintf(file, "pp_data->cap[%d]->UnitsExp = %lu\n", cap_idx, pp_cap->UnitsExp); +} + +void dump_hidp_link_collection_node(FILE* file, phid_pp_link_collection_node pcoll, unsigned int coll_idx) { + fprintf(file, "pp_data->LinkCollectionArray[%d]->LinkUsage = 0x%04hX\n", coll_idx, pcoll->LinkUsage); + fprintf(file, "pp_data->LinkCollectionArray[%d]->LinkUsagePage = 0x%04hX\n", coll_idx, pcoll->LinkUsagePage); + fprintf(file, "pp_data->LinkCollectionArray[%d]->Parent = %hu\n", coll_idx, pcoll->Parent); + fprintf(file, "pp_data->LinkCollectionArray[%d]->NumberOfChildren = %hu\n", coll_idx, pcoll->NumberOfChildren); + fprintf(file, "pp_data->LinkCollectionArray[%d]->NextSibling = %hu\n", coll_idx, pcoll->NextSibling); + fprintf(file, "pp_data->LinkCollectionArray[%d]->FirstChild = %hu\n", coll_idx, pcoll->FirstChild); + fprintf(file, "pp_data->LinkCollectionArray[%d]->CollectionType = %d\n", coll_idx, pcoll->CollectionType); + fprintf(file, "pp_data->LinkCollectionArray[%d]->IsAlias = %d\n", coll_idx, pcoll->IsAlias); + fprintf(file, "pp_data->LinkCollectionArray[%d]->Reserved = 0x%08X\n", coll_idx, pcoll->Reserved); +} + +int dump_pp_data(FILE* file, hid_device* dev) +{ + BOOL res; + hidp_preparsed_data* pp_data = NULL; + + res = HidD_GetPreparsedData(dev->device_handle, (PHIDP_PREPARSED_DATA*) &pp_data); + if (!res) { + printf("ERROR: HidD_GetPreparsedData failed!"); + return -1; + } + else { + fprintf(file, "pp_data->MagicKey = 0x%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX\n", pp_data->MagicKey[0], pp_data->MagicKey[1], pp_data->MagicKey[2], pp_data->MagicKey[3], pp_data->MagicKey[4], pp_data->MagicKey[5], pp_data->MagicKey[6], pp_data->MagicKey[7]); + fprintf(file, "pp_data->Usage = 0x%04hX\n", pp_data->Usage); + fprintf(file, "pp_data->UsagePage = 0x%04hX\n", pp_data->UsagePage); + fprintf(file, "pp_data->Reserved = 0x%04hX%04hX\n", pp_data->Reserved[0], pp_data->Reserved[1]); + fprintf(file, "# Input caps_info struct:\n"); + fprintf(file, "pp_data->caps_info[0]->FirstCap = %hu\n", pp_data->caps_info[0].FirstCap); + fprintf(file, "pp_data->caps_info[0]->LastCap = %hu\n", pp_data->caps_info[0].LastCap); + fprintf(file, "pp_data->caps_info[0]->NumberOfCaps = %hu\n", pp_data->caps_info[0].NumberOfCaps); + fprintf(file, "pp_data->caps_info[0]->ReportByteLength = %hu\n", pp_data->caps_info[0].ReportByteLength); + fprintf(file, "# Output caps_info struct:\n"); + fprintf(file, "pp_data->caps_info[1]->FirstCap = %hu\n", pp_data->caps_info[1].FirstCap); + fprintf(file, "pp_data->caps_info[1]->LastCap = %hu\n", pp_data->caps_info[1].LastCap); + fprintf(file, "pp_data->caps_info[1]->NumberOfCaps = %hu\n", pp_data->caps_info[1].NumberOfCaps); + fprintf(file, "pp_data->caps_info[1]->ReportByteLength = %hu\n", pp_data->caps_info[1].ReportByteLength); + fprintf(file, "# Feature caps_info struct:\n"); + fprintf(file, "pp_data->caps_info[2]->FirstCap = %hu\n", pp_data->caps_info[2].FirstCap); + fprintf(file, "pp_data->caps_info[2]->LastCap = %hu\n", pp_data->caps_info[2].LastCap); + fprintf(file, "pp_data->caps_info[2]->NumberOfCaps = %hu\n", pp_data->caps_info[2].NumberOfCaps); + fprintf(file, "pp_data->caps_info[2]->ReportByteLength = %hu\n", pp_data->caps_info[2].ReportByteLength); + fprintf(file, "# LinkCollectionArray Offset & Size:\n"); + fprintf(file, "pp_data->FirstByteOfLinkCollectionArray = 0x%04hX\n", pp_data->FirstByteOfLinkCollectionArray); + fprintf(file, "pp_data->NumberLinkCollectionNodes = %hu\n", pp_data->NumberLinkCollectionNodes); + + + phid_pp_cap pcap = (phid_pp_cap)(((unsigned char*)pp_data) + offsetof(hidp_preparsed_data, caps)); + fprintf(file, "# Input hid_pp_cap struct:\n"); + for (int caps_idx = pp_data->caps_info[0].FirstCap; caps_idx < pp_data->caps_info[0].LastCap; caps_idx++) { + dump_hid_pp_cap(file, pcap + caps_idx, caps_idx); + fprintf(file, "\n"); + } + fprintf(file, "# Output hid_pp_cap struct:\n"); + for (int caps_idx = pp_data->caps_info[1].FirstCap; caps_idx < pp_data->caps_info[1].LastCap; caps_idx++) { + dump_hid_pp_cap(file, pcap + caps_idx, caps_idx); + fprintf(file, "\n"); + } + fprintf(file, "# Feature hid_pp_cap struct:\n"); + for (int caps_idx = pp_data->caps_info[2].FirstCap; caps_idx < pp_data->caps_info[2].LastCap; caps_idx++) { + dump_hid_pp_cap(file, pcap + caps_idx, caps_idx); + fprintf(file, "\n"); + } + + phid_pp_link_collection_node pcoll = (phid_pp_link_collection_node)(((unsigned char*)pcap) + pp_data->FirstByteOfLinkCollectionArray); + fprintf(file, "# Link Collections:\n"); + for (int coll_idx = 0; coll_idx < pp_data->NumberLinkCollectionNodes; coll_idx++) { + dump_hidp_link_collection_node(file, pcoll + coll_idx, coll_idx); + } + + HidD_FreePreparsedData((PHIDP_PREPARSED_DATA) pp_data); + return 0; + } +} + +int main(int argc, char* argv[]) +{ + (void)argc; + (void)argv; + + #define MAX_STR 255 + + struct hid_device_info *devs, *cur_dev; + + printf("pp_data_dump tool. Compiled with hidapi version %s, runtime version %s.\n", HID_API_VERSION_STR, hid_version_str()); + if (hid_version()->major == HID_API_VERSION_MAJOR && hid_version()->minor == HID_API_VERSION_MINOR && hid_version()->patch == HID_API_VERSION_PATCH) { + printf("Compile-time version matches runtime version of hidapi.\n\n"); + } + else { + printf("Compile-time version is different than runtime version of hidapi.\n]n"); + } + + if (hid_init()) + return -1; + + devs = hid_enumerate(0x0, 0x0); + cur_dev = devs; + while (cur_dev) { + printf("Device Found\n type: %04hx %04hx\n path: %s\n serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, cur_dev->serial_number); + printf("\n"); + printf(" Manufacturer: %ls\n", cur_dev->manufacturer_string); + printf(" Product: %ls\n", cur_dev->product_string); + printf(" Release: %hX\n", cur_dev->release_number); + printf(" Interface: %d\n", cur_dev->interface_number); + printf(" Usage (page): %02X (%02X)\n", cur_dev->usage, cur_dev->usage_page); + + hid_device *device = hid_open_path(cur_dev->path); + if (device) { + char filename[MAX_STR]; + FILE* file; + + sprintf_s(filename, MAX_STR, "%04X_%04X_%04X_%04X.pp_data", cur_dev->vendor_id, cur_dev->product_id, cur_dev->usage, cur_dev->usage_page); + errno_t err = fopen_s(&file, filename, "w"); + if (err == 0) { + fprintf(file, "# HIDAPI device info struct:\n"); + fprintf(file, "dev->vendor_id = 0x%04hX\n", cur_dev->vendor_id); + fprintf(file, "dev->product_id = 0x%04hX\n", cur_dev->product_id); + fprintf(file, "dev->manufacturer_string = \"%ls\"\n", cur_dev->manufacturer_string); + fprintf(file, "dev->product_string = \"%ls\"\n", cur_dev->product_string); + fprintf(file, "dev->release_number = 0x%04hX\n", cur_dev->release_number); + fprintf(file, "dev->interface_number = %d\n", cur_dev->interface_number); + fprintf(file, "dev->usage = 0x%04hX\n", cur_dev->usage); + fprintf(file, "dev->usage_page = 0x%04hX\n", cur_dev->usage_page); + fprintf(file, "dev->path = \"%s\"\n", cur_dev->path); + fprintf(file, "\n# Preparsed Data struct:\n"); + int res = dump_pp_data(file, device); + + if (res == 0) { + printf("Dumped Preparsed Data to %s\n", filename); + } + else { + printf("ERROR: Dump Preparsed Data to %s failed!\n", filename); + } + + fclose(file); + } + + hid_close(device); + } + else { + printf(" Device: not available.\n"); + } + + printf("\n"); + cur_dev = cur_dev->next; + } + hid_free_enumeration(devs); + + + /* Free static HIDAPI objects. */ + hid_exit(); + + //system("pause"); + + return 0; +} diff --git a/windows/test/CMakeLists.txt b/windows/test/CMakeLists.txt new file mode 100644 index 000000000..eae3217ed --- /dev/null +++ b/windows/test/CMakeLists.txt @@ -0,0 +1,76 @@ +add_executable(hid_report_reconstructor_test hid_report_reconstructor_test.c) +set_target_properties(hid_report_reconstructor_test + PROPERTIES + C_STANDARD 11 + C_STANDARD_REQUIRED TRUE +) + +target_link_libraries(hid_report_reconstructor_test + PRIVATE hidapi_include hidapi_winapi +) + +# Each test case requires 2 files: +# .pp_data - textual representation of HIDP_PREPARSED_DATA; +# _expected.rpt_desc - reconstructed HID Report Descriptor out of .pp_data file; +# +# (Non-required by test): +# _real.dpt_desc - the original report rescriptor used to create a test case; +set(HID_DESCRIPTOR_RECONSTRUCT_TEST_CASES + 046D_C52F_0001_000C + 046D_C52F_0001_FF00 + 046D_C52F_0002_0001 + 046D_C52F_0002_FF00 + 17CC_1130_0000_FF01 + 046D_0A37_0001_000C + 046A_0011_0006_0001 + 046D_C077_0002_0001 + 046D_C283_0004_0001 + 046D_B010_0006_0001 + 046D_B010_0002_FF00 + 046D_B010_0002_0001 + 046D_B010_0001_FF00 + 046D_B010_0001_000C + 046D_C534_0001_000C + 046D_C534_0001_FF00 + 046D_C534_0002_0001 + 046D_C534_0002_FF00 + 046D_C534_0006_0001 + 046D_C534_0080_0001 + 047F_C056_0001_000C + 047F_C056_0003_FFA0 + 047F_C056_0005_000B + 045E_02FF_0005_0001 +) + +set(CMAKE_VERSION_SUPPORTS_ENVIRONMENT_MODIFICATION "3.22") + +if(HIDAPI_ENABLE_ASAN AND MSVC) + if(CMAKE_VERSION VERSION_LESS CMAKE_VERSION_SUPPORTS_ENVIRONMENT_MODIFICATION) + message("CTest/ASAN: Make sure to run ctest from MSVC Command Prompt") + endif() +endif() + +foreach(TEST_CASE ${HID_DESCRIPTOR_RECONSTRUCT_TEST_CASES}) + set(TEST_PP_DATA "${CMAKE_CURRENT_LIST_DIR}/data/${TEST_CASE}.pp_data") + if(NOT EXISTS "${TEST_PP_DATA}") + message(FATAL_ERROR "Missing '${TEST_PP_DATA}' file for '${TEST_CASE}' test case") + endif() + set(TEST_EXPECTED_DESCRIPTOR "${CMAKE_CURRENT_LIST_DIR}/data/${TEST_CASE}_expected.rpt_desc") + if(NOT EXISTS "${TEST_EXPECTED_DESCRIPTOR}") + message(FATAL_ERROR "Missing '${TEST_EXPECTED_DESCRIPTOR}' file for '${TEST_CASE}' test case") + endif() + + add_test(NAME "WinHidReportReconstructTest_${TEST_CASE}" + COMMAND hid_report_reconstructor_test "${TEST_PP_DATA}" "${TEST_EXPECTED_DESCRIPTOR}" + WORKING_DIRECTORY "$" + ) + if(HIDAPI_ENABLE_ASAN) + if(MSVC) + if(NOT CMAKE_VERSION VERSION_LESS CMAKE_VERSION_SUPPORTS_ENVIRONMENT_MODIFICATION) + get_filename_component(MSVC_BUILD_TOOLS_DIR "${CMAKE_LINKER}" DIRECTORY) + set_property(TEST "WinHidReportReconstructTest_${TEST_CASE}" PROPERTY ENVIRONMENT_MODIFICATION "PATH=path_list_append:${MSVC_BUILD_TOOLS_DIR}") + endif() + endif() + set_property(TEST "WinHidReportReconstructTest_${TEST_CASE}" PROPERTY ENVIRONMENT "ASAN_SAVE_DUMPS=AsanDump_${TEST_CASE}.dmp") + endif() +endforeach() diff --git a/windows/test/data/045E_02FF_0005_0001.pp_data b/windows/test/data/045E_02FF_0005_0001.pp_data new file mode 100644 index 000000000..622699600 --- /dev/null +++ b/windows/test/data/045E_02FF_0005_0001.pp_data @@ -0,0 +1,420 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x045E +dev->product_id = 0x02FF +dev->manufacturer_string = "" +dev->product_string = "Controller (Xbox One For Windows)" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0005 +dev->usage_page = 0x0001 +dev->path = "\\?\HID#VID_045E&PID_02FF&IG_00#7&5ea4a81&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0005 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 7 +pp_data->caps_info[0]->NumberOfCaps = 7 +pp_data->caps_info[0]->ReportByteLength = 16 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 7 +pp_data->caps_info[1]->LastCap = 7 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 7 +pp_data->caps_info[2]->LastCap = 7 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x02D8 +pp_data->NumberLinkCollectionNodes = 4 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0001 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 16 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0003 +pp_data->cap[0]->BitCount = 16 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0005 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0000 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0031 +pp_data->cap[0]->NotRange.Reserved1 = 0x0031 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = -1 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = -1 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 16 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 16 +pp_data->cap[1]->BitField = 0x02 +pp_data->cap[1]->NextBytePosition = 0x0003 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0000 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0030 +pp_data->cap[1]->NotRange.Reserved1 = 0x0030 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = 0 +pp_data->cap[1]->NotButton.LogicalMax = -1 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = -1 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 16 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0007 +pp_data->cap[2]->BitCount = 16 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0009 +pp_data->cap[2]->LinkCollection = 0x0002 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0000 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0034 +pp_data->cap[2]->NotRange.Reserved1 = 0x0034 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = 0 +pp_data->cap[2]->NotButton.LogicalMax = -1 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = -1 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x00 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 16 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0005 +pp_data->cap[3]->BitCount = 16 +pp_data->cap[3]->BitField = 0x02 +pp_data->cap[3]->NextBytePosition = 0x0007 +pp_data->cap[3]->LinkCollection = 0x0002 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0000 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0033 +pp_data->cap[3]->NotRange.Reserved1 = 0x0033 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 3 +pp_data->cap[3]->NotRange.Reserved4 = 3 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = 0 +pp_data->cap[3]->NotButton.LogicalMax = -1 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = -1 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x0001 +pp_data->cap[4]->ReportID = 0x00 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 16 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0009 +pp_data->cap[4]->BitCount = 16 +pp_data->cap[4]->BitField = 0x02 +pp_data->cap[4]->NextBytePosition = 0x000B +pp_data->cap[4]->LinkCollection = 0x0003 +pp_data->cap[4]->LinkUsagePage = 0x0001 +pp_data->cap[4]->LinkUsage = 0x0000 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0032 +pp_data->cap[4]->NotRange.Reserved1 = 0x0032 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 4 +pp_data->cap[4]->NotRange.Reserved4 = 4 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = 0 +pp_data->cap[4]->NotButton.LogicalMax = -1 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = -1 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0x0009 +pp_data->cap[5]->ReportID = 0x00 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 1 +pp_data->cap[5]->ReportCount = 16 +pp_data->cap[5]->BytePosition = 0x000B +pp_data->cap[5]->BitCount = 16 +pp_data->cap[5]->BitField = 0x02 +pp_data->cap[5]->NextBytePosition = 0x000D +pp_data->cap[5]->LinkCollection = 0x0000 +pp_data->cap[5]->LinkUsagePage = 0x0001 +pp_data->cap[5]->LinkUsage = 0x0005 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 1 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 1 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->Range.UsageMin = 0x0001 +pp_data->cap[5]->Range.UsageMax = 0x0010 +pp_data->cap[5]->Range.StringMin = 0 +pp_data->cap[5]->Range.StringMax = 0 +pp_data->cap[5]->Range.DesignatorMin = 0 +pp_data->cap[5]->Range.DesignatorMax = 0 +pp_data->cap[5]->Range.DataIndexMin = 5 +pp_data->cap[5]->Range.DataIndexMax = 20 +pp_data->cap[5]->Button.LogicalMin = 0 +pp_data->cap[5]->Button.LogicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0x0001 +pp_data->cap[6]->ReportID = 0x00 +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 4 +pp_data->cap[6]->ReportCount = 1 +pp_data->cap[6]->BytePosition = 0x000D +pp_data->cap[6]->BitCount = 4 +pp_data->cap[6]->BitField = 0x42 +pp_data->cap[6]->NextBytePosition = 0x000E +pp_data->cap[6]->LinkCollection = 0x0000 +pp_data->cap[6]->LinkUsagePage = 0x0001 +pp_data->cap[6]->LinkUsage = 0x0005 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 0 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x0039 +pp_data->cap[6]->NotRange.Reserved1 = 0x0039 +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 21 +pp_data->cap[6]->NotRange.Reserved4 = 21 +pp_data->cap[6]->NotButton.HasNull = 1 +pp_data->cap[6]->NotButton.Reserved4 = 0x000000 +pp_data->cap[6]->NotButton.LogicalMin = 1 +pp_data->cap[6]->NotButton.LogicalMax = 8 +pp_data->cap[6]->NotButton.PhysicalMin = 0 +pp_data->cap[6]->NotButton.PhysicalMax = 4155 +pp_data->cap[6]->Units = 14 +pp_data->cap[6]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0005 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 3 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 3 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 0 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[2]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[2]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[2]->Parent = 0 +pp_data->LinkCollectionArray[2]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[2]->NextSibling = 1 +pp_data->LinkCollectionArray[2]->FirstChild = 0 +pp_data->LinkCollectionArray[2]->CollectionType = 0 +pp_data->LinkCollectionArray[2]->IsAlias = 0 +pp_data->LinkCollectionArray[2]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[3]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[3]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[3]->Parent = 0 +pp_data->LinkCollectionArray[3]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[3]->NextSibling = 2 +pp_data->LinkCollectionArray[3]->FirstChild = 0 +pp_data->LinkCollectionArray[3]->CollectionType = 0 +pp_data->LinkCollectionArray[3]->IsAlias = 0 +pp_data->LinkCollectionArray[3]->Reserved = 0x00000000 \ No newline at end of file diff --git a/windows/test/data/045E_02FF_0005_0001_expected.rpt_desc b/windows/test/data/045E_02FF_0005_0001_expected.rpt_desc new file mode 100644 index 000000000..58f80e482 --- /dev/null +++ b/windows/test/data/045E_02FF_0005_0001_expected.rpt_desc @@ -0,0 +1,12 @@ +0x05, 0x01, 0x09, 0x05, 0xA1, 0x01, 0x09, 0x00, 0xA1, 0x00, +0x09, 0x30, 0x09, 0x31, 0x15, 0x00, 0x25, 0xFF, 0x35, 0x00, +0x45, 0xFF, 0x75, 0x10, 0x95, 0x02, 0x81, 0x02, 0xC0, 0x09, +0x00, 0xA1, 0x00, 0x09, 0x33, 0x09, 0x34, 0x15, 0x00, 0x25, +0xFF, 0x75, 0x10, 0x95, 0x02, 0x81, 0x02, 0xC0, 0x09, 0x00, +0xA1, 0x00, 0x09, 0x32, 0x15, 0x00, 0x25, 0xFF, 0x75, 0x10, +0x95, 0x01, 0x81, 0x02, 0xC0, 0x05, 0x09, 0x19, 0x01, 0x29, +0x10, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x10, 0x45, +0x00, 0x81, 0x02, 0x05, 0x01, 0x09, 0x39, 0x15, 0x01, 0x25, +0x08, 0x35, 0x00, 0x46, 0x3B, 0x10, 0x65, 0x0E, 0x75, 0x04, +0x95, 0x01, 0x81, 0x42, 0x75, 0x04, 0x95, 0x01, 0x81, 0x03, +0xC0, \ No newline at end of file diff --git a/windows/test/data/045E_02FF_0005_0001_real.rpt_desc b/windows/test/data/045E_02FF_0005_0001_real.rpt_desc new file mode 100644 index 000000000..11cc78b18 --- /dev/null +++ b/windows/test/data/045E_02FF_0005_0001_real.rpt_desc @@ -0,0 +1,64 @@ +// Special cases of this device: +// 2 full padding bytes at the end +// Multiple child collections inside of the same report (byte position of Input items defines collection order) + +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x05, // Usage (Game Pad) +0xA1, 0x01, // Collection (Application) +0xA1, 0x00, // Collection (Physical) +0x09, 0x30, // Usage (X) +0x09, 0x31, // Usage (Y) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0xFF, // Logical Maximum (-1) +0x35, 0x00, // Physical Minimum (0) +0x46, 0xFF, 0xFF, // Physical Maximum (-1) +0x95, 0x02, // Report Count (2) +0x75, 0x10, // Report Size (16) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection +0xA1, 0x00, // Collection (Physical) +0x09, 0x33, // Usage (Rx) +0x09, 0x34, // Usage (Ry) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0xFF, // Logical Maximum (-1) +0x35, 0x00, // Physical Minimum (0) +0x46, 0xFF, 0xFF, // Physical Maximum (-1) +0x95, 0x02, // Report Count (2) +0x75, 0x10, // Report Size (16) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection +0xA1, 0x00, // Collection (Physical) +0x09, 0x32, // Usage (Z) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0xFF, // Logical Maximum (-1) +0x35, 0x00, // Physical Minimum (0) +0x46, 0xFF, 0xFF, // Physical Maximum (-1) +0x95, 0x01, // Report Count (1) +0x75, 0x10, // Report Size (16) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection +0x05, 0x09, // Usage Page (Button) +0x19, 0x01, // Usage Minimum (0x01) +0x29, 0x10, // Usage Maximum (0x10) +0x95, 0x10, // Report Count (16) +0x75, 0x01, // Report Size (1) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x39, // Usage (Hat switch) +0x15, 0x01, // Logical Minimum (1) +0x25, 0x08, // Logical Maximum (8) +0x35, 0x00, // Physical Minimum (0) +0x46, 0x3B, 0x10, // Physical Maximum (4155) +0x66, 0x0E, 0x00, // Unit (None) +0x75, 0x04, // Report Size (4) +0x95, 0x01, // Report Count (1) +0x81, 0x42, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,Null State) +0x75, 0x04, // Report Size (4) +0x95, 0x01, // Report Count (1) +0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x75, 0x08, // Report Size (8) +0x95, 0x02, // Report Count (2) +0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection + +// 120 bytes \ No newline at end of file diff --git a/windows/test/data/046A_0011_0006_0001.pp_data b/windows/test/data/046A_0011_0006_0001.pp_data new file mode 100644 index 000000000..59eb60026 --- /dev/null +++ b/windows/test/data/046A_0011_0006_0001.pp_data @@ -0,0 +1,183 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046A +dev->product_id = 0x0011 +dev->manufacturer_string = "dev->product_string = "dev->release_number = 0x0100 +dev->interface_number = -1 +dev->usage = 0x0006 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046a&pid_0011#7&2c7fd0a5&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0006 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 2 +pp_data->caps_info[0]->NumberOfCaps = 2 +pp_data->caps_info[0]->ReportByteLength = 9 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 2 +pp_data->caps_info[1]->LastCap = 3 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 2 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 3 +pp_data->caps_info[2]->LastCap = 3 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0138 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0007 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 8 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0006 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x00E0 +pp_data->cap[0]->Range.UsageMax = 0x00E7 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 7 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0007 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0003 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0009 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0006 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 1 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->Range.UsageMin = 0x0000 +pp_data->cap[1]->Range.UsageMax = 0x00DD +pp_data->cap[1]->Range.StringMin = 0 +pp_data->cap[1]->Range.StringMax = 0 +pp_data->cap[1]->Range.DesignatorMin = 0 +pp_data->cap[1]->Range.DesignatorMax = 0 +pp_data->cap[1]->Range.DataIndexMin = 8 +pp_data->cap[1]->Range.DataIndexMax = 229 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 221 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[2]->UsagePage = 0x0008 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 3 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 3 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0006 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 1 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->Range.UsageMin = 0x0001 +pp_data->cap[2]->Range.UsageMax = 0x0003 +pp_data->cap[2]->Range.StringMin = 0 +pp_data->cap[2]->Range.StringMax = 0 +pp_data->cap[2]->Range.DesignatorMin = 0 +pp_data->cap[2]->Range.DesignatorMax = 0 +pp_data->cap[2]->Range.DataIndexMin = 0 +pp_data->cap[2]->Range.DataIndexMax = 2 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0006 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046A_0011_0006_0001_expected.rpt_desc b/windows/test/data/046A_0011_0006_0001_expected.rpt_desc new file mode 100644 index 000000000..e9bc5013c --- /dev/null +++ b/windows/test/data/046A_0011_0006_0001_expected.rpt_desc @@ -0,0 +1,7 @@ +0x05, 0x01, 0x09, 0x06, 0xA1, 0x01, 0x05, 0x07, 0x19, 0xE0, +0x29, 0xE7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, +0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, 0x19, 0x00, +0x29, 0xDD, 0x15, 0x00, 0x26, 0xDD, 0x00, 0x75, 0x08, 0x95, +0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, 0x03, 0x15, +0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x91, 0x02, 0x75, +0x05, 0x95, 0x01, 0x91, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046A_0011_0006_0001_real.rpt_desc b/windows/test/data/046A_0011_0006_0001_real.rpt_desc new file mode 100644 index 000000000..e9bc5013c --- /dev/null +++ b/windows/test/data/046A_0011_0006_0001_real.rpt_desc @@ -0,0 +1,7 @@ +0x05, 0x01, 0x09, 0x06, 0xA1, 0x01, 0x05, 0x07, 0x19, 0xE0, +0x29, 0xE7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, +0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, 0x19, 0x00, +0x29, 0xDD, 0x15, 0x00, 0x26, 0xDD, 0x00, 0x75, 0x08, 0x95, +0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, 0x03, 0x15, +0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03, 0x91, 0x02, 0x75, +0x05, 0x95, 0x01, 0x91, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_0A37_0001_000C.pp_data b/windows/test/data/046D_0A37_0001_000C.pp_data new file mode 100644 index 000000000..3bc7aadba --- /dev/null +++ b/windows/test/data/046D_0A37_0001_000C.pp_data @@ -0,0 +1,532 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0x0A37 +dev->manufacturer_string = "Logitech Inc " +dev->product_string = "Logitech USB Headset H540" +dev->release_number = 0x0122 +dev->interface_number = 3 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#vid_046d&pid_0a37&mi_03#8&1717f300&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 7 +pp_data->caps_info[0]->NumberOfCaps = 9 +pp_data->caps_info[0]->ReportByteLength = 33 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 9 +pp_data->caps_info[1]->LastCap = 12 +pp_data->caps_info[1]->NumberOfCaps = 3 +pp_data->caps_info[1]->ReportByteLength = 37 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 12 +pp_data->caps_info[2]->LastCap = 12 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x04E0 +pp_data->NumberLinkCollectionNodes = 2 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x000C +pp_data->cap[0]->ReportID = 0x01 +pp_data->cap[0]->BitPosition = 1 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 1 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x00EA +pp_data->cap[0]->NotRange.Reserved1 = 0x00EA +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x000C +pp_data->cap[1]->ReportID = 0x01 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 1 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 1 +pp_data->cap[1]->BitField = 0x02 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x000C +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x00E9 +pp_data->cap[1]->NotRange.Reserved1 = 0x00E9 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x000C +pp_data->cap[2]->ReportID = 0x01 +pp_data->cap[2]->BitPosition = 2 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 1 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x000C +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x00E2 +pp_data->cap[2]->NotRange.Reserved1 = 0x00E2 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0009 +pp_data->cap[3]->ReportID = 0x01 +pp_data->cap[3]->BitPosition = 5 +pp_data->cap[3]->BitSize = 2 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0001 +pp_data->cap[3]->BitCount = 2 +pp_data->cap[3]->BitField = 0x40 +pp_data->cap[3]->NextBytePosition = 0x0002 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0x000C +pp_data->cap[3]->LinkUsage = 0x0036 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 1 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 1 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->Range.UsageMin = 0x0001 +pp_data->cap[3]->Range.UsageMax = 0x0002 +pp_data->cap[3]->Range.StringMin = 0 +pp_data->cap[3]->Range.StringMax = 0 +pp_data->cap[3]->Range.DesignatorMin = 0 +pp_data->cap[3]->Range.DesignatorMax = 0 +pp_data->cap[3]->Range.DataIndexMin = 3 +pp_data->cap[3]->Range.DataIndexMax = 4 +pp_data->cap[3]->Button.LogicalMin = 1 +pp_data->cap[3]->Button.LogicalMax = 2 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x000C +pp_data->cap[4]->ReportID = 0x02 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 1 +pp_data->cap[4]->ReportCount = 16 +pp_data->cap[4]->BytePosition = 0x0001 +pp_data->cap[4]->BitCount = 16 +pp_data->cap[4]->BitField = 0x02 +pp_data->cap[4]->NextBytePosition = 0x0003 +pp_data->cap[4]->LinkCollection = 0x0000 +pp_data->cap[4]->LinkUsagePage = 0x000C +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 1 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0000 +pp_data->cap[4]->NotRange.Reserved1 = 0x0000 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 5 +pp_data->cap[4]->NotRange.Reserved4 = 5 +pp_data->cap[4]->Button.LogicalMin = 0 +pp_data->cap[4]->Button.LogicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0x000C +pp_data->cap[5]->ReportID = 0x05 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 8 +pp_data->cap[5]->ReportCount = 32 +pp_data->cap[5]->BytePosition = 0x0001 +pp_data->cap[5]->BitCount = 256 +pp_data->cap[5]->BitField = 0x02 +pp_data->cap[5]->NextBytePosition = 0x0021 +pp_data->cap[5]->LinkCollection = 0x0000 +pp_data->cap[5]->LinkUsagePage = 0x000C +pp_data->cap[5]->LinkUsage = 0x0001 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 0 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 0 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->NotRange.Usage = 0x0000 +pp_data->cap[5]->NotRange.Reserved1 = 0x0000 +pp_data->cap[5]->NotRange.StringIndex = 0 +pp_data->cap[5]->NotRange.Reserved2 = 0 +pp_data->cap[5]->NotRange.DesignatorIndex = 0 +pp_data->cap[5]->NotRange.Reserved3 = 0 +pp_data->cap[5]->NotRange.DataIndex = 6 +pp_data->cap[5]->NotRange.Reserved4 = 6 +pp_data->cap[5]->NotButton.HasNull = 0 +pp_data->cap[5]->NotButton.Reserved4 = 0x000000 +pp_data->cap[5]->NotButton.LogicalMin = 0 +pp_data->cap[5]->NotButton.LogicalMax = 1 +pp_data->cap[5]->NotButton.PhysicalMin = 0 +pp_data->cap[5]->NotButton.PhysicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0x000C +pp_data->cap[6]->ReportID = 0x07 +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 8 +pp_data->cap[6]->ReportCount = 32 +pp_data->cap[6]->BytePosition = 0x0001 +pp_data->cap[6]->BitCount = 256 +pp_data->cap[6]->BitField = 0x02 +pp_data->cap[6]->NextBytePosition = 0x0021 +pp_data->cap[6]->LinkCollection = 0x0000 +pp_data->cap[6]->LinkUsagePage = 0x000C +pp_data->cap[6]->LinkUsage = 0x0001 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 0 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x0000 +pp_data->cap[6]->NotRange.Reserved1 = 0x0000 +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 7 +pp_data->cap[6]->NotRange.Reserved4 = 7 +pp_data->cap[6]->NotButton.HasNull = 0 +pp_data->cap[6]->NotButton.Reserved4 = 0x000000 +pp_data->cap[6]->NotButton.LogicalMin = 0 +pp_data->cap[6]->NotButton.LogicalMax = 1 +pp_data->cap[6]->NotButton.PhysicalMin = 0 +pp_data->cap[6]->NotButton.PhysicalMax = 0 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[9]->UsagePage = 0x000C +pp_data->cap[9]->ReportID = 0x03 +pp_data->cap[9]->BitPosition = 0 +pp_data->cap[9]->BitSize = 1 +pp_data->cap[9]->ReportCount = 16 +pp_data->cap[9]->BytePosition = 0x0001 +pp_data->cap[9]->BitCount = 16 +pp_data->cap[9]->BitField = 0x02 +pp_data->cap[9]->NextBytePosition = 0x0003 +pp_data->cap[9]->LinkCollection = 0x0000 +pp_data->cap[9]->LinkUsagePage = 0x000C +pp_data->cap[9]->LinkUsage = 0x0001 +pp_data->cap[9]->IsMultipleItemsForArray = 0 +pp_data->cap[9]->IsButtonCap = 1 +pp_data->cap[9]->IsPadding = 0 +pp_data->cap[9]->IsAbsolute = 1 +pp_data->cap[9]->IsRange = 0 +pp_data->cap[9]->IsAlias = 0 +pp_data->cap[9]->IsStringRange = 0 +pp_data->cap[9]->IsDesignatorRange = 0 +pp_data->cap[9]->Reserved1 = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[9]->NotRange.Usage = 0x0000 +pp_data->cap[9]->NotRange.Reserved1 = 0x0000 +pp_data->cap[9]->NotRange.StringIndex = 0 +pp_data->cap[9]->NotRange.Reserved2 = 0 +pp_data->cap[9]->NotRange.DesignatorIndex = 0 +pp_data->cap[9]->NotRange.Reserved3 = 0 +pp_data->cap[9]->NotRange.DataIndex = 0 +pp_data->cap[9]->NotRange.Reserved4 = 0 +pp_data->cap[9]->Button.LogicalMin = 0 +pp_data->cap[9]->Button.LogicalMax = 0 +pp_data->cap[9]->Units = 0 +pp_data->cap[9]->UnitsExp = 0 + +pp_data->cap[10]->UsagePage = 0x000C +pp_data->cap[10]->ReportID = 0x04 +pp_data->cap[10]->BitPosition = 0 +pp_data->cap[10]->BitSize = 8 +pp_data->cap[10]->ReportCount = 36 +pp_data->cap[10]->BytePosition = 0x0001 +pp_data->cap[10]->BitCount = 288 +pp_data->cap[10]->BitField = 0x02 +pp_data->cap[10]->NextBytePosition = 0x0025 +pp_data->cap[10]->LinkCollection = 0x0000 +pp_data->cap[10]->LinkUsagePage = 0x000C +pp_data->cap[10]->LinkUsage = 0x0001 +pp_data->cap[10]->IsMultipleItemsForArray = 0 +pp_data->cap[10]->IsButtonCap = 0 +pp_data->cap[10]->IsPadding = 0 +pp_data->cap[10]->IsAbsolute = 1 +pp_data->cap[10]->IsRange = 0 +pp_data->cap[10]->IsAlias = 0 +pp_data->cap[10]->IsStringRange = 0 +pp_data->cap[10]->IsDesignatorRange = 0 +pp_data->cap[10]->Reserved1 = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[10]->NotRange.Usage = 0x0000 +pp_data->cap[10]->NotRange.Reserved1 = 0x0000 +pp_data->cap[10]->NotRange.StringIndex = 0 +pp_data->cap[10]->NotRange.Reserved2 = 0 +pp_data->cap[10]->NotRange.DesignatorIndex = 0 +pp_data->cap[10]->NotRange.Reserved3 = 0 +pp_data->cap[10]->NotRange.DataIndex = 1 +pp_data->cap[10]->NotRange.Reserved4 = 1 +pp_data->cap[10]->NotButton.HasNull = 0 +pp_data->cap[10]->NotButton.Reserved4 = 0x000000 +pp_data->cap[10]->NotButton.LogicalMin = 0 +pp_data->cap[10]->NotButton.LogicalMax = 1 +pp_data->cap[10]->NotButton.PhysicalMin = 0 +pp_data->cap[10]->NotButton.PhysicalMax = 0 +pp_data->cap[10]->Units = 0 +pp_data->cap[10]->UnitsExp = 0 + +pp_data->cap[11]->UsagePage = 0x000C +pp_data->cap[11]->ReportID = 0x06 +pp_data->cap[11]->BitPosition = 0 +pp_data->cap[11]->BitSize = 8 +pp_data->cap[11]->ReportCount = 36 +pp_data->cap[11]->BytePosition = 0x0001 +pp_data->cap[11]->BitCount = 288 +pp_data->cap[11]->BitField = 0x02 +pp_data->cap[11]->NextBytePosition = 0x0025 +pp_data->cap[11]->LinkCollection = 0x0000 +pp_data->cap[11]->LinkUsagePage = 0x000C +pp_data->cap[11]->LinkUsage = 0x0001 +pp_data->cap[11]->IsMultipleItemsForArray = 0 +pp_data->cap[11]->IsButtonCap = 0 +pp_data->cap[11]->IsPadding = 0 +pp_data->cap[11]->IsAbsolute = 1 +pp_data->cap[11]->IsRange = 0 +pp_data->cap[11]->IsAlias = 0 +pp_data->cap[11]->IsStringRange = 0 +pp_data->cap[11]->IsDesignatorRange = 0 +pp_data->cap[11]->Reserved1 = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[11]->NotRange.Usage = 0x0000 +pp_data->cap[11]->NotRange.Reserved1 = 0x0000 +pp_data->cap[11]->NotRange.StringIndex = 0 +pp_data->cap[11]->NotRange.Reserved2 = 0 +pp_data->cap[11]->NotRange.DesignatorIndex = 0 +pp_data->cap[11]->NotRange.Reserved3 = 0 +pp_data->cap[11]->NotRange.DataIndex = 2 +pp_data->cap[11]->NotRange.Reserved4 = 2 +pp_data->cap[11]->NotButton.HasNull = 0 +pp_data->cap[11]->NotButton.Reserved4 = 0x000000 +pp_data->cap[11]->NotButton.LogicalMin = 0 +pp_data->cap[11]->NotButton.LogicalMax = 1 +pp_data->cap[11]->NotButton.PhysicalMin = 0 +pp_data->cap[11]->NotButton.PhysicalMax = 0 +pp_data->cap[11]->Units = 0 +pp_data->cap[11]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 1 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0036 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 2 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_0A37_0001_000C_expected.rpt_desc b/windows/test/data/046D_0A37_0001_000C_expected.rpt_desc new file mode 100644 index 000000000..363a8f54e --- /dev/null +++ b/windows/test/data/046D_0A37_0001_000C_expected.rpt_desc @@ -0,0 +1,16 @@ +0x05, 0x0C, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x01, 0x09, 0xE9, +0x09, 0xEA, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02, +0x81, 0x02, 0x09, 0xE2, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, +0x95, 0x01, 0x81, 0x06, 0x75, 0x02, 0x95, 0x01, 0x81, 0x03, +0x09, 0x36, 0xA1, 0x02, 0x05, 0x09, 0x19, 0x01, 0x29, 0x02, +0x15, 0x01, 0x25, 0x02, 0x75, 0x02, 0x95, 0x01, 0x81, 0x40, +0x75, 0x01, 0x95, 0x01, 0x81, 0x03, 0xC0, 0x85, 0x02, 0x05, +0x0C, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, +0x10, 0x81, 0x02, 0x85, 0x05, 0x09, 0x00, 0x15, 0x00, 0x25, +0x01, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x07, 0x09, +0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, +0x02, 0x85, 0x03, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, +0x01, 0x95, 0x10, 0x91, 0x02, 0x85, 0x04, 0x09, 0x00, 0x15, +0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0x85, +0x06, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, +0x24, 0x91, 0x02, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_0A37_0001_000C_real.rpt_desc b/windows/test/data/046D_0A37_0001_000C_real.rpt_desc new file mode 100644 index 000000000..c78474349 --- /dev/null +++ b/windows/test/data/046D_0A37_0001_000C_real.rpt_desc @@ -0,0 +1,61 @@ +Usage Page (Consumer Devices) 05 0C +Usage (Consumer Control) 09 01 +Collection (Application) A1 01 + Report ID (1) 85 01 + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Usage (Volume Increment) 09 E9 + Usage (Volume Decrement) 09 EA + Report Size (1) 75 01 + Report Count (2) 95 02 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Usage (Mute) 09 E2 + Report Count (1) 95 01 + Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 + Usage (Undefined) 09 00 + Report Count (2) 95 02 + Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 03 + Usage (Function Buttons) 09 36 + Collection (Logical) A1 02 + Usage Page (Button) 05 09 + Usage Minimum (Button 1) 19 01 + Usage Maximum (Button 2) 29 02 + Report Size (2) 75 02 + Report Count (1) 95 01 + Logical Minimum (1) 15 01 + Logical Maximum (2) 25 02 + Input (Data,Ary,Abs) 81 40 + End Collection C0 + Usage Page (Consumer Devices) 05 0C + Usage (Undefined) 09 00 + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Report Size (1) 75 01 + Report Count (1) 95 01 + Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 03 + Report ID (2) 85 02 + Usage Page (Consumer Devices) 05 0C + Usage (Undefined) 09 00 + Report Count (16) 95 10 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Report ID (3) 85 03 + Usage (Undefined) 09 00 + Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02 + Report ID (4) 85 04 + Usage (Undefined) 09 00 + Report Size (8) 75 08 + Report Count (36) 95 24 + Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02 + Report ID (5) 85 05 + Usage (Undefined) 09 00 + Report Count (32) 95 20 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Report ID (6) 85 06 + Usage (Undefined) 09 00 + Report Count (36) 95 24 + Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02 + Report ID (7) 85 07 + Usage (Undefined) 09 00 + Report Count (32) 95 20 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 +End Collection C0 diff --git a/windows/test/data/046D_B010_0001_000C.pp_data b/windows/test/data/046D_B010_0001_000C.pp_data new file mode 100644 index 000000000..047445b3b --- /dev/null +++ b/windows/test/data/046D_B010_0001_000C.pp_data @@ -0,0 +1,97 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col02#8&1cf1c1b9&3&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 2 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 1 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 1 +pp_data->caps_info[2]->LastCap = 1 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0068 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0006 +pp_data->cap[0]->ReportID = 0x03 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0020 +pp_data->cap[0]->NotRange.Reserved1 = 0x0020 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = 100 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_B010_0001_000C_expected.rpt_desc b/windows/test/data/046D_B010_0001_000C_expected.rpt_desc new file mode 100644 index 000000000..c80dd13cd --- /dev/null +++ b/windows/test/data/046D_B010_0001_000C_expected.rpt_desc @@ -0,0 +1,3 @@ +0x05, 0x0C, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x03, 0x05, 0x06, +0x09, 0x20, 0x15, 0x00, 0x25, 0x64, 0x75, 0x08, 0x95, 0x01, +0x81, 0x02, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_B010_0001_000C_real.rpt_desc b/windows/test/data/046D_B010_0001_000C_real.rpt_desc new file mode 100644 index 000000000..ff019a9fd --- /dev/null +++ b/windows/test/data/046D_B010_0001_000C_real.rpt_desc @@ -0,0 +1,38 @@ + +mac-hid-dump on  main ❯ ./mac-hid-dump +mac-hid-dump: +... +046D B010: Unknown - Bluetooth Mouse M557 +DESCRIPTOR: + 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 + 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 + 09 31 16 01 f8 26 ff 07 75 0c 95 02 81 06 09 38 + 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02 75 + 08 95 01 81 06 c0 c0 05 0c 09 01 a1 01 85 03 05 + 06 09 20 15 00 26 64 00 75 08 95 01 81 02 c0 06 + 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff + 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 + 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 + 09 02 91 00 c0 05 01 09 06 a1 01 85 04 75 01 95 + 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 + 08 81 03 95 05 75 01 05 08 19 01 29 05 91 02 95 + 01 75 03 91 03 95 06 75 08 15 00 26 ff 00 05 07 + 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 05 15 + 00 25 01 75 01 95 02 0a 25 02 0a 24 02 81 02 95 + 01 75 06 81 03 c0 + (246 bytes) + +Parser output: + +0x05, 0x0C, // Usage Page (Consumer) +0x09, 0x01, // Usage (Consumer Control) +0xA1, 0x01, // Collection (Application) +0x85, 0x03, // Report ID (3) +0x05, 0x06, // Usage Page (Generic Dev Ctrls) +0x09, 0x20, // Usage (Battery Strength) +0x15, 0x00, // Logical Minimum (0) +0x26, 0x64, 0x00, // Logical Maximum (100) +0x75, 0x08, // Report Size (8) +0x95, 0x01, // Report Count (1) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection diff --git a/windows/test/data/046D_B010_0001_FF00.pp_data b/windows/test/data/046D_B010_0001_FF00.pp_data new file mode 100644 index 000000000..13b27da08 --- /dev/null +++ b/windows/test/data/046D_B010_0001_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0001 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col03#8&1cf1c1b9&3&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 7 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 7 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x10 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 6 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 48 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0007 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0001 +pp_data->cap[0]->NotRange.Reserved1 = 0x0001 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x10 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0007 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0001 +pp_data->cap[1]->NotRange.Reserved1 = 0x0001 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_B010_0001_FF00_expected.rpt_desc b/windows/test/data/046D_B010_0001_FF00_expected.rpt_desc new file mode 100644 index 000000000..812bd2a8f --- /dev/null +++ b/windows/test/data/046D_B010_0001_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x10, 0x09, +0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x06, +0x81, 0x00, 0x09, 0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x06, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_B010_0001_FF00_real.rpt_desc b/windows/test/data/046D_B010_0001_FF00_real.rpt_desc new file mode 100644 index 000000000..340d08dae --- /dev/null +++ b/windows/test/data/046D_B010_0001_FF00_real.rpt_desc @@ -0,0 +1,39 @@ + +mac-hid-dump on  main ❯ ./mac-hid-dump +mac-hid-dump: +... +046D B010: Unknown - Bluetooth Mouse M557 +DESCRIPTOR: + 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 + 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 + 09 31 16 01 f8 26 ff 07 75 0c 95 02 81 06 09 38 + 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02 75 + 08 95 01 81 06 c0 c0 05 0c 09 01 a1 01 85 03 05 + 06 09 20 15 00 26 64 00 75 08 95 01 81 02 c0 06 + 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff + 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 + 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 + 09 02 91 00 c0 05 01 09 06 a1 01 85 04 75 01 95 + 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 + 08 81 03 95 05 75 01 05 08 19 01 29 05 91 02 95 + 01 75 03 91 03 95 06 75 08 15 00 26 ff 00 05 07 + 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 05 15 + 00 25 01 75 01 95 02 0a 25 02 0a 24 02 81 02 95 + 01 75 06 81 03 c0 + (246 bytes) + +Parser output: + +0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00) +0x09, 0x01, // Usage (0x01) +0xA1, 0x01, // Collection (Application) +0x85, 0x10, // Report ID (16) +0x75, 0x08, // Report Size (8) +0x95, 0x06, // Report Count (6) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0x00, // Logical Maximum (255) +0x09, 0x01, // Usage (0x01) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x01, // Usage (0x01) +0x91, 0x00, // Output (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0xC0, // End Collection \ No newline at end of file diff --git a/windows/test/data/046D_B010_0002_0001.pp_data b/windows/test/data/046D_B010_0002_0001.pp_data new file mode 100644 index 000000000..1976766cd --- /dev/null +++ b/windows/test/data/046D_B010_0002_0001.pp_data @@ -0,0 +1,302 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0002 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col01#8&1cf1c1b9&3&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 5 +pp_data->caps_info[0]->NumberOfCaps = 5 +pp_data->caps_info[0]->ReportByteLength = 7 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 5 +pp_data->caps_info[1]->LastCap = 5 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 5 +pp_data->caps_info[2]->LastCap = 5 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0208 +pp_data->NumberLinkCollectionNodes = 2 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0009 +pp_data->cap[0]->ReportID = 0x02 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 8 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x0008 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 7 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x02 +pp_data->cap[1]->BitPosition = 4 +pp_data->cap[1]->BitSize = 12 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0003 +pp_data->cap[1]->BitCount = 12 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0005 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0031 +pp_data->cap[1]->NotRange.Reserved1 = 0x0031 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 8 +pp_data->cap[1]->NotRange.Reserved4 = 8 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = -2047 +pp_data->cap[1]->NotButton.LogicalMax = 2047 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x02 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 12 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0002 +pp_data->cap[2]->BitCount = 12 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0004 +pp_data->cap[2]->LinkCollection = 0x0001 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0030 +pp_data->cap[2]->NotRange.Reserved1 = 0x0030 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 9 +pp_data->cap[2]->NotRange.Reserved4 = 9 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = -2047 +pp_data->cap[2]->NotButton.LogicalMax = 2047 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x02 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 8 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0005 +pp_data->cap[3]->BitCount = 8 +pp_data->cap[3]->BitField = 0x06 +pp_data->cap[3]->NextBytePosition = 0x0006 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 0 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0038 +pp_data->cap[3]->NotRange.Reserved1 = 0x0038 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 10 +pp_data->cap[3]->NotRange.Reserved4 = 10 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = -127 +pp_data->cap[3]->NotButton.LogicalMax = 127 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x000C +pp_data->cap[4]->ReportID = 0x02 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 8 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0006 +pp_data->cap[4]->BitCount = 8 +pp_data->cap[4]->BitField = 0x06 +pp_data->cap[4]->NextBytePosition = 0x0007 +pp_data->cap[4]->LinkCollection = 0x0001 +pp_data->cap[4]->LinkUsagePage = 0x0001 +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 0 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0238 +pp_data->cap[4]->NotRange.Reserved1 = 0x0238 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 11 +pp_data->cap[4]->NotRange.Reserved4 = 11 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = -127 +pp_data->cap[4]->NotButton.LogicalMax = 127 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 1 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 0 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_B010_0002_0001_expected.rpt_desc b/windows/test/data/046D_B010_0002_0001_expected.rpt_desc new file mode 100644 index 000000000..d782fa173 --- /dev/null +++ b/windows/test/data/046D_B010_0002_0001_expected.rpt_desc @@ -0,0 +1,8 @@ +0x05, 0x01, 0x09, 0x02, 0xA1, 0x01, 0x09, 0x01, 0xA1, 0x00, +0x85, 0x02, 0x05, 0x09, 0x19, 0x01, 0x29, 0x08, 0x15, 0x00, +0x25, 0x01, 0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x05, 0x01, +0x09, 0x30, 0x09, 0x31, 0x16, 0x01, 0xF8, 0x26, 0xFF, 0x07, +0x75, 0x0C, 0x95, 0x02, 0x81, 0x06, 0x09, 0x38, 0x15, 0x81, +0x25, 0x7F, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0x05, 0x0C, +0x0A, 0x38, 0x02, 0x15, 0x81, 0x25, 0x7F, 0x75, 0x08, 0x95, +0x01, 0x81, 0x06, 0xC0, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_B010_0002_0001_real.rpt_desc b/windows/test/data/046D_B010_0002_0001_real.rpt_desc new file mode 100644 index 000000000..483f659d6 --- /dev/null +++ b/windows/test/data/046D_B010_0002_0001_real.rpt_desc @@ -0,0 +1,61 @@ + +mac-hid-dump on  main ❯ ./mac-hid-dump +mac-hid-dump: +... +046D B010: Unknown - Bluetooth Mouse M557 +DESCRIPTOR: + 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 + 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 + 09 31 16 01 f8 26 ff 07 75 0c 95 02 81 06 09 38 + 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02 75 + 08 95 01 81 06 c0 c0 05 0c 09 01 a1 01 85 03 05 + 06 09 20 15 00 26 64 00 75 08 95 01 81 02 c0 06 + 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff + 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 + 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 + 09 02 91 00 c0 05 01 09 06 a1 01 85 04 75 01 95 + 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 + 08 81 03 95 05 75 01 05 08 19 01 29 05 91 02 95 + 01 75 03 91 03 95 06 75 08 15 00 26 ff 00 05 07 + 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 05 15 + 00 25 01 75 01 95 02 0a 25 02 0a 24 02 81 02 95 + 01 75 06 81 03 c0 + (246 bytes) + +Parser output: + +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x02, // Usage (Mouse) +0xA1, 0x01, // Collection (Application) +0x85, 0x02, // Report ID (2) +0x09, 0x01, // Usage (Pointer) +0xA1, 0x00, // Collection (Physical) +0x05, 0x09, // Usage Page (Button) +0x19, 0x01, // Usage Minimum (0x01) +0x29, 0x08, // Usage Maximum (0x08) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x08, // Report Count (8) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x30, // Usage (X) +0x09, 0x31, // Usage (Y) +0x16, 0x01, 0xF8, // Logical Minimum (-2047) +0x26, 0xFF, 0x07, // Logical Maximum (2047) +0x75, 0x0C, // Report Size (12) +0x95, 0x02, // Report Count (2) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x38, // Usage (Wheel) +0x15, 0x81, // Logical Minimum (-127) +0x25, 0x7F, // Logical Maximum (127) +0x75, 0x08, // Report Size (8) +0x95, 0x01, // Report Count (1) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x0C, // Usage Page (Consumer) +0x0A, 0x38, 0x02, // Usage (AC Pan) +0x75, 0x08, // Report Size (8) +0x95, 0x01, // Report Count (1) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection +0xC0, // End Collection diff --git a/windows/test/data/046D_B010_0002_FF00.pp_data b/windows/test/data/046D_B010_0002_FF00.pp_data new file mode 100644 index 000000000..0dc64b254 --- /dev/null +++ b/windows/test/data/046D_B010_0002_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0002 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col04#8&1cf1c1b9&3&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 20 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 20 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x11 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 19 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 152 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0014 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0002 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0002 +pp_data->cap[0]->NotRange.Reserved1 = 0x0002 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x11 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 19 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 152 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0014 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0002 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0002 +pp_data->cap[1]->NotRange.Reserved1 = 0x0002 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_B010_0002_FF00_expected.rpt_desc b/windows/test/data/046D_B010_0002_FF00_expected.rpt_desc new file mode 100644 index 000000000..b1654e78c --- /dev/null +++ b/windows/test/data/046D_B010_0002_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x02, 0xA1, 0x01, 0x85, 0x11, 0x09, +0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x13, +0x81, 0x00, 0x09, 0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x13, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_B010_0002_FF00_real.rpt_desc b/windows/test/data/046D_B010_0002_FF00_real.rpt_desc new file mode 100644 index 000000000..8b8dbfcc2 --- /dev/null +++ b/windows/test/data/046D_B010_0002_FF00_real.rpt_desc @@ -0,0 +1,39 @@ + +mac-hid-dump on  main ❯ ./mac-hid-dump +mac-hid-dump: +... +046D B010: Unknown - Bluetooth Mouse M557 +DESCRIPTOR: + 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 + 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 + 09 31 16 01 f8 26 ff 07 75 0c 95 02 81 06 09 38 + 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02 75 + 08 95 01 81 06 c0 c0 05 0c 09 01 a1 01 85 03 05 + 06 09 20 15 00 26 64 00 75 08 95 01 81 02 c0 06 + 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff + 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 + 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 + 09 02 91 00 c0 05 01 09 06 a1 01 85 04 75 01 95 + 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 + 08 81 03 95 05 75 01 05 08 19 01 29 05 91 02 95 + 01 75 03 91 03 95 06 75 08 15 00 26 ff 00 05 07 + 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 05 15 + 00 25 01 75 01 95 02 0a 25 02 0a 24 02 81 02 95 + 01 75 06 81 03 c0 + (246 bytes) + +Parser output: + +0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00) +0x09, 0x02, // Usage (0x02) +0xA1, 0x01, // Collection (Application) +0x85, 0x11, // Report ID (17) +0x75, 0x08, // Report Size (8) +0x95, 0x13, // Report Count (19) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0x00, // Logical Maximum (255) +0x09, 0x02, // Usage (0x02) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x02, // Usage (0x02) +0x91, 0x00, // Output (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0xC0, // End Collection \ No newline at end of file diff --git a/windows/test/data/046D_B010_0006_0001.pp_data b/windows/test/data/046D_B010_0006_0001.pp_data new file mode 100644 index 000000000..7682a0d20 --- /dev/null +++ b/windows/test/data/046D_B010_0006_0001.pp_data @@ -0,0 +1,185 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xB010 +dev->manufacturer_string = "Logitech" +dev->product_string = "Logitech Bluetooth Wireless Mouse" +dev->release_number = 0x0000 +dev->interface_number = -1 +dev->usage = 0x0006 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002046d_pid&b010&col05#8&1cf1c1b9&3&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}\kbd" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0006 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 2 +pp_data->caps_info[0]->NumberOfCaps = 2 +pp_data->caps_info[0]->ReportByteLength = 9 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 2 +pp_data->caps_info[1]->LastCap = 3 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 2 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 3 +pp_data->caps_info[2]->LastCap = 3 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0138 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0007 +pp_data->cap[0]->ReportID = 0x04 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 8 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0006 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x00E0 +pp_data->cap[0]->Range.UsageMax = 0x00E7 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 7 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0007 +pp_data->cap[1]->ReportID = 0x04 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0003 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0009 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0006 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 1 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->Range.UsageMin = 0x0000 +pp_data->cap[1]->Range.UsageMax = 0x00FF +pp_data->cap[1]->Range.StringMin = 0 +pp_data->cap[1]->Range.StringMax = 0 +pp_data->cap[1]->Range.DesignatorMin = 0 +pp_data->cap[1]->Range.DesignatorMax = 0 +pp_data->cap[1]->Range.DataIndexMin = 8 +pp_data->cap[1]->Range.DataIndexMax = 263 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[2]->UsagePage = 0x0008 +pp_data->cap[2]->ReportID = 0x04 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 5 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 5 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0006 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 1 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->Range.UsageMin = 0x0001 +pp_data->cap[2]->Range.UsageMax = 0x0005 +pp_data->cap[2]->Range.StringMin = 0 +pp_data->cap[2]->Range.StringMax = 0 +pp_data->cap[2]->Range.DesignatorMin = 0 +pp_data->cap[2]->Range.DesignatorMax = 0 +pp_data->cap[2]->Range.DataIndexMin = 0 +pp_data->cap[2]->Range.DataIndexMax = 4 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0006 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_B010_0006_0001_expected.rpt_desc b/windows/test/data/046D_B010_0006_0001_expected.rpt_desc new file mode 100644 index 000000000..1ec0b16e1 --- /dev/null +++ b/windows/test/data/046D_B010_0006_0001_expected.rpt_desc @@ -0,0 +1,7 @@ +0x05, 0x01, 0x09, 0x06, 0xA1, 0x01, 0x85, 0x04, 0x05, 0x07, +0x19, 0xE0, 0x29, 0xE7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, +0x95, 0x08, 0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, +0x19, 0x00, 0x29, 0xFF, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, +0x05, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x91, +0x02, 0x75, 0x03, 0x95, 0x01, 0x91, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_B010_0006_0001_real.rpt_desc b/windows/test/data/046D_B010_0006_0001_real.rpt_desc new file mode 100644 index 000000000..59ab03d1b --- /dev/null +++ b/windows/test/data/046D_B010_0006_0001_real.rpt_desc @@ -0,0 +1,58 @@ + +mac-hid-dump on  main ❯ ./mac-hid-dump +mac-hid-dump: +... +046D B010: Unknown - Bluetooth Mouse M557 +DESCRIPTOR: + 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 + 29 08 15 00 25 01 75 01 95 08 81 02 05 01 09 30 + 09 31 16 01 f8 26 ff 07 75 0c 95 02 81 06 09 38 + 15 81 25 7f 75 08 95 01 81 06 05 0c 0a 38 02 75 + 08 95 01 81 06 c0 c0 05 0c 09 01 a1 01 85 03 05 + 06 09 20 15 00 26 64 00 75 08 95 01 81 02 c0 06 + 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff + 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 + 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 + 09 02 91 00 c0 05 01 09 06 a1 01 85 04 75 01 95 + 08 05 07 19 e0 29 e7 15 00 25 01 81 02 95 01 75 + 08 81 03 95 05 75 01 05 08 19 01 29 05 91 02 95 + 01 75 03 91 03 95 06 75 08 15 00 26 ff 00 05 07 + 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 05 15 + 00 25 01 75 01 95 02 0a 25 02 0a 24 02 81 02 95 + 01 75 06 81 03 c0 + (246 bytes) + +Parser output: +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x06, // Usage (Keyboard) +0xA1, 0x01, // Collection (Application) +0x85, 0x04, // Report ID (4) +0x75, 0x01, // Report Size (1) +0x95, 0x08, // Report Count (8) +0x05, 0x07, // Usage Page (Kbrd/Keypad) +0x19, 0xE0, // Usage Minimum (0xE0) +0x29, 0xE7, // Usage Maximum (0xE7) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x01, // Report Count (1) +0x75, 0x08, // Report Size (8) +0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x05, // Report Count (5) +0x75, 0x01, // Report Size (1) +0x05, 0x08, // Usage Page (LEDs) +0x19, 0x01, // Usage Minimum (Num Lock) +0x29, 0x05, // Usage Maximum (Kana) +0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x95, 0x01, // Report Count (1) +0x75, 0x03, // Report Size (3) +0x91, 0x03, // Output (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x95, 0x06, // Report Count (6) +0x75, 0x08, // Report Size (8) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0x00, // Logical Maximum (255) +0x05, 0x07, // Usage Page (Kbrd/Keypad) +0x19, 0x00, // Usage Minimum (0x00) +0x29, 0xFF, // Usage Maximum (0xFF) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection \ No newline at end of file diff --git a/windows/test/data/046D_C077_0002_0001.pp_data b/windows/test/data/046D_C077_0002_0001.pp_data new file mode 100644 index 000000000..3e9fcea81 --- /dev/null +++ b/windows/test/data/046D_C077_0002_0001.pp_data @@ -0,0 +1,252 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC077 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Optical Mouse" +dev->release_number = 0x7200 +dev->interface_number = -1 +dev->usage = 0x0002 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c077#7&1875dbae&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 4 +pp_data->caps_info[0]->NumberOfCaps = 4 +pp_data->caps_info[0]->ReportByteLength = 5 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 4 +pp_data->caps_info[1]->LastCap = 4 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 4 +pp_data->caps_info[2]->LastCap = 4 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x01A0 +pp_data->NumberLinkCollectionNodes = 2 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0009 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 8 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x0003 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 2 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0004 +pp_data->cap[1]->BitCount = 8 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0005 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0038 +pp_data->cap[1]->NotRange.Reserved1 = 0x0038 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 3 +pp_data->cap[1]->NotRange.Reserved4 = 3 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = -127 +pp_data->cap[1]->NotButton.LogicalMax = 127 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 8 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0003 +pp_data->cap[2]->BitCount = 8 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0004 +pp_data->cap[2]->LinkCollection = 0x0001 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0031 +pp_data->cap[2]->NotRange.Reserved1 = 0x0031 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 4 +pp_data->cap[2]->NotRange.Reserved4 = 4 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = -127 +pp_data->cap[2]->NotButton.LogicalMax = 127 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x00 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 8 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0002 +pp_data->cap[3]->BitCount = 8 +pp_data->cap[3]->BitField = 0x06 +pp_data->cap[3]->NextBytePosition = 0x0003 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 0 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0030 +pp_data->cap[3]->NotRange.Reserved1 = 0x0030 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 5 +pp_data->cap[3]->NotRange.Reserved4 = 5 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = -127 +pp_data->cap[3]->NotButton.LogicalMax = 127 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 1 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 0 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C077_0002_0001_expected.rpt_desc b/windows/test/data/046D_C077_0002_0001_expected.rpt_desc new file mode 100644 index 000000000..7e144b4bc --- /dev/null +++ b/windows/test/data/046D_C077_0002_0001_expected.rpt_desc @@ -0,0 +1,5 @@ +0x05, 0x01, 0x09, 0x02, 0xA1, 0x01, 0x09, 0x01, 0xA1, 0x00, +0x05, 0x09, 0x19, 0x01, 0x29, 0x03, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30, +0x09, 0x31, 0x09, 0x38, 0x15, 0x81, 0x25, 0x7F, 0x75, 0x08, +0x95, 0x03, 0x81, 0x06, 0xC0, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C077_0002_0001_real.rpt_desc b/windows/test/data/046D_C077_0002_0001_real.rpt_desc new file mode 100644 index 000000000..7604c55bc --- /dev/null +++ b/windows/test/data/046D_C077_0002_0001_real.rpt_desc @@ -0,0 +1,24 @@ +Usage Page (Generic Desktop) 05 01 +Usage (Mouse) 09 02 +Collection (Application) A1 01 + Usage (Pointer) 09 01 + Collection (Physical) A1 00 + Usage Page (Button) 05 09 + Usage Minimum (Button 1) 19 01 + Usage Maximum (Button 3) 29 03 + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Report Count (8) 95 08 + Report Size (1) 75 01 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Usage Page (Generic Desktop) 05 01 + Usage (X) 09 30 + Usage (Y) 09 31 + Usage (Wheel) 09 38 + Logical Minimum (-127) 15 81 + Logical Maximum (127) 25 7F + Report Size (8) 75 08 + Report Count (3) 95 03 + Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 + End Collection C0 +End Collection C0 diff --git a/windows/test/data/046D_C283_0004_0001.pp_data b/windows/test/data/046D_C283_0004_0001.pp_data new file mode 100644 index 000000000..0f70d06ff --- /dev/null +++ b/windows/test/data/046D_C283_0004_0001.pp_data @@ -0,0 +1,520 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC283 +dev->manufacturer_string = "Logitech Inc." +dev->product_string = "WingMan Force 3D" +dev->release_number = 0x0106 +dev->interface_number = -1 +dev->usage = 0x0004 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c283#7&d7fb4bf&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0004 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 8 +pp_data->caps_info[0]->NumberOfCaps = 8 +pp_data->caps_info[0]->ReportByteLength = 8 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 8 +pp_data->caps_info[1]->LastCap = 9 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 9 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 9 +pp_data->caps_info[2]->LastCap = 9 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x03A8 +pp_data->NumberLinkCollectionNodes = 4 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0001 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0002 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0003 +pp_data->cap[0]->LinkCollection = 0x0002 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0031 +pp_data->cap[0]->NotRange.Reserved1 = 0x0031 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = 255 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 8 +pp_data->cap[1]->BitField = 0x02 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0002 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0030 +pp_data->cap[1]->NotRange.Reserved1 = 0x0030 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = 0 +pp_data->cap[1]->NotButton.LogicalMax = 255 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0xFF00 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 4 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0003 +pp_data->cap[2]->BitCount = 4 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0004 +pp_data->cap[2]->LinkCollection = 0x0002 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0001 +pp_data->cap[2]->NotRange.Reserved1 = 0x0001 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = 0 +pp_data->cap[2]->NotButton.LogicalMax = 15 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 255 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x00 +pp_data->cap[3]->BitPosition = 4 +pp_data->cap[3]->BitSize = 4 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0003 +pp_data->cap[3]->BitCount = 4 +pp_data->cap[3]->BitField = 0x42 +pp_data->cap[3]->NextBytePosition = 0x0004 +pp_data->cap[3]->LinkCollection = 0x0002 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0039 +pp_data->cap[3]->NotRange.Reserved1 = 0x0039 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 3 +pp_data->cap[3]->NotRange.Reserved4 = 3 +pp_data->cap[3]->NotButton.HasNull = 1 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = 0 +pp_data->cap[3]->NotButton.LogicalMax = 7 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 315 +pp_data->cap[3]->Units = 20 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x0001 +pp_data->cap[4]->ReportID = 0x00 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 8 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0004 +pp_data->cap[4]->BitCount = 8 +pp_data->cap[4]->BitField = 0x02 +pp_data->cap[4]->NextBytePosition = 0x0005 +pp_data->cap[4]->LinkCollection = 0x0002 +pp_data->cap[4]->LinkUsagePage = 0x0001 +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0035 +pp_data->cap[4]->NotRange.Reserved1 = 0x0035 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 4 +pp_data->cap[4]->NotRange.Reserved4 = 4 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = 0 +pp_data->cap[4]->NotButton.LogicalMax = 255 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = 255 +pp_data->cap[4]->Units = 20 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0x0009 +pp_data->cap[5]->ReportID = 0x00 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 1 +pp_data->cap[5]->ReportCount = 7 +pp_data->cap[5]->BytePosition = 0x0005 +pp_data->cap[5]->BitCount = 7 +pp_data->cap[5]->BitField = 0x02 +pp_data->cap[5]->NextBytePosition = 0x0006 +pp_data->cap[5]->LinkCollection = 0x0001 +pp_data->cap[5]->LinkUsagePage = 0x0001 +pp_data->cap[5]->LinkUsage = 0x0000 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 1 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 1 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->Range.UsageMin = 0x0001 +pp_data->cap[5]->Range.UsageMax = 0x0007 +pp_data->cap[5]->Range.StringMin = 0 +pp_data->cap[5]->Range.StringMax = 0 +pp_data->cap[5]->Range.DesignatorMin = 0 +pp_data->cap[5]->Range.DesignatorMax = 0 +pp_data->cap[5]->Range.DataIndexMin = 5 +pp_data->cap[5]->Range.DataIndexMax = 11 +pp_data->cap[5]->Button.LogicalMin = 0 +pp_data->cap[5]->Button.LogicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0x0001 +pp_data->cap[6]->ReportID = 0x00 +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 8 +pp_data->cap[6]->ReportCount = 1 +pp_data->cap[6]->BytePosition = 0x0006 +pp_data->cap[6]->BitCount = 8 +pp_data->cap[6]->BitField = 0x02 +pp_data->cap[6]->NextBytePosition = 0x0007 +pp_data->cap[6]->LinkCollection = 0x0001 +pp_data->cap[6]->LinkUsagePage = 0x0001 +pp_data->cap[6]->LinkUsage = 0x0000 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 0 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x0036 +pp_data->cap[6]->NotRange.Reserved1 = 0x0036 +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 12 +pp_data->cap[6]->NotRange.Reserved4 = 12 +pp_data->cap[6]->NotButton.HasNull = 0 +pp_data->cap[6]->NotButton.Reserved4 = 0x000000 +pp_data->cap[6]->NotButton.LogicalMin = 0 +pp_data->cap[6]->NotButton.LogicalMax = 255 +pp_data->cap[6]->NotButton.PhysicalMin = 0 +pp_data->cap[6]->NotButton.PhysicalMax = 255 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +pp_data->cap[7]->UsagePage = 0xFF00 +pp_data->cap[7]->ReportID = 0x00 +pp_data->cap[7]->BitPosition = 0 +pp_data->cap[7]->BitSize = 8 +pp_data->cap[7]->ReportCount = 1 +pp_data->cap[7]->BytePosition = 0x0007 +pp_data->cap[7]->BitCount = 8 +pp_data->cap[7]->BitField = 0x02 +pp_data->cap[7]->NextBytePosition = 0x0008 +pp_data->cap[7]->LinkCollection = 0x0001 +pp_data->cap[7]->LinkUsagePage = 0x0001 +pp_data->cap[7]->LinkUsage = 0x0000 +pp_data->cap[7]->IsMultipleItemsForArray = 0 +pp_data->cap[7]->IsButtonCap = 0 +pp_data->cap[7]->IsPadding = 0 +pp_data->cap[7]->IsAbsolute = 1 +pp_data->cap[7]->IsRange = 0 +pp_data->cap[7]->IsAlias = 0 +pp_data->cap[7]->IsStringRange = 0 +pp_data->cap[7]->IsDesignatorRange = 0 +pp_data->cap[7]->Reserved1 = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[7]->NotRange.Usage = 0x0001 +pp_data->cap[7]->NotRange.Reserved1 = 0x0001 +pp_data->cap[7]->NotRange.StringIndex = 0 +pp_data->cap[7]->NotRange.Reserved2 = 0 +pp_data->cap[7]->NotRange.DesignatorIndex = 0 +pp_data->cap[7]->NotRange.Reserved3 = 0 +pp_data->cap[7]->NotRange.DataIndex = 13 +pp_data->cap[7]->NotRange.Reserved4 = 13 +pp_data->cap[7]->NotButton.HasNull = 0 +pp_data->cap[7]->NotButton.Reserved4 = 0x000000 +pp_data->cap[7]->NotButton.LogicalMin = 0 +pp_data->cap[7]->NotButton.LogicalMax = 255 +pp_data->cap[7]->NotButton.PhysicalMin = 0 +pp_data->cap[7]->NotButton.PhysicalMax = 255 +pp_data->cap[7]->Units = 0 +pp_data->cap[7]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[8]->UsagePage = 0xFF00 +pp_data->cap[8]->ReportID = 0x00 +pp_data->cap[8]->BitPosition = 0 +pp_data->cap[8]->BitSize = 8 +pp_data->cap[8]->ReportCount = 8 +pp_data->cap[8]->BytePosition = 0x0001 +pp_data->cap[8]->BitCount = 64 +pp_data->cap[8]->BitField = 0x02 +pp_data->cap[8]->NextBytePosition = 0x0009 +pp_data->cap[8]->LinkCollection = 0x0003 +pp_data->cap[8]->LinkUsagePage = 0xFF00 +pp_data->cap[8]->LinkUsage = 0x0000 +pp_data->cap[8]->IsMultipleItemsForArray = 0 +pp_data->cap[8]->IsButtonCap = 0 +pp_data->cap[8]->IsPadding = 0 +pp_data->cap[8]->IsAbsolute = 1 +pp_data->cap[8]->IsRange = 0 +pp_data->cap[8]->IsAlias = 0 +pp_data->cap[8]->IsStringRange = 0 +pp_data->cap[8]->IsDesignatorRange = 0 +pp_data->cap[8]->Reserved1 = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[8]->NotRange.Usage = 0x0002 +pp_data->cap[8]->NotRange.Reserved1 = 0x0002 +pp_data->cap[8]->NotRange.StringIndex = 0 +pp_data->cap[8]->NotRange.Reserved2 = 0 +pp_data->cap[8]->NotRange.DesignatorIndex = 0 +pp_data->cap[8]->NotRange.Reserved3 = 0 +pp_data->cap[8]->NotRange.DataIndex = 0 +pp_data->cap[8]->NotRange.Reserved4 = 0 +pp_data->cap[8]->NotButton.HasNull = 0 +pp_data->cap[8]->NotButton.Reserved4 = 0x000000 +pp_data->cap[8]->NotButton.LogicalMin = 0 +pp_data->cap[8]->NotButton.LogicalMax = 255 +pp_data->cap[8]->NotButton.PhysicalMin = 0 +pp_data->cap[8]->NotButton.PhysicalMax = 255 +pp_data->cap[8]->Units = 0 +pp_data->cap[8]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0004 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 2 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 3 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 2 +pp_data->LinkCollectionArray[1]->CollectionType = 2 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[2]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[2]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[2]->Parent = 1 +pp_data->LinkCollectionArray[2]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[2]->NextSibling = 0 +pp_data->LinkCollectionArray[2]->FirstChild = 0 +pp_data->LinkCollectionArray[2]->CollectionType = 0 +pp_data->LinkCollectionArray[2]->IsAlias = 0 +pp_data->LinkCollectionArray[2]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[3]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[3]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[3]->Parent = 0 +pp_data->LinkCollectionArray[3]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[3]->NextSibling = 1 +pp_data->LinkCollectionArray[3]->FirstChild = 0 +pp_data->LinkCollectionArray[3]->CollectionType = 2 +pp_data->LinkCollectionArray[3]->IsAlias = 0 +pp_data->LinkCollectionArray[3]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C283_0004_0001_expected.rpt_desc b/windows/test/data/046D_C283_0004_0001_expected.rpt_desc new file mode 100644 index 000000000..fca719a7d --- /dev/null +++ b/windows/test/data/046D_C283_0004_0001_expected.rpt_desc @@ -0,0 +1,18 @@ +0x05, 0x01, 0x09, 0x04, 0xA1, 0x01, 0x09, 0x00, 0xA1, 0x02, +0x09, 0x01, 0xA1, 0x00, 0x09, 0x30, 0x09, 0x31, 0x15, 0x00, +0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, 0xFF, 0x00, 0x75, 0x08, +0x95, 0x02, 0x81, 0x02, 0x06, 0x00, 0xFF, 0x09, 0x01, 0x15, +0x00, 0x25, 0x0F, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x05, +0x01, 0x09, 0x39, 0x15, 0x00, 0x25, 0x07, 0x35, 0x00, 0x46, +0x3B, 0x01, 0x65, 0x14, 0x75, 0x04, 0x95, 0x01, 0x81, 0x42, +0x09, 0x35, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, +0xFF, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0xC0, 0x05, +0x09, 0x19, 0x01, 0x29, 0x07, 0x15, 0x00, 0x25, 0x01, 0x75, +0x01, 0x95, 0x07, 0x45, 0x00, 0x65, 0x00, 0x81, 0x02, 0x75, +0x01, 0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x36, 0x15, +0x00, 0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x01, 0x81, 0x02, 0x06, 0x00, 0xFF, 0x09, 0x01, +0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, +0x02, 0xC0, 0x09, 0x00, 0xA1, 0x02, 0x09, 0x02, 0x15, 0x00, +0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x08, 0x91, 0x02, 0xC0, +0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C283_0004_0001_real.rpt_desc b/windows/test/data/046D_C283_0004_0001_real.rpt_desc new file mode 100644 index 000000000..fca719a7d --- /dev/null +++ b/windows/test/data/046D_C283_0004_0001_real.rpt_desc @@ -0,0 +1,18 @@ +0x05, 0x01, 0x09, 0x04, 0xA1, 0x01, 0x09, 0x00, 0xA1, 0x02, +0x09, 0x01, 0xA1, 0x00, 0x09, 0x30, 0x09, 0x31, 0x15, 0x00, +0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, 0xFF, 0x00, 0x75, 0x08, +0x95, 0x02, 0x81, 0x02, 0x06, 0x00, 0xFF, 0x09, 0x01, 0x15, +0x00, 0x25, 0x0F, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x05, +0x01, 0x09, 0x39, 0x15, 0x00, 0x25, 0x07, 0x35, 0x00, 0x46, +0x3B, 0x01, 0x65, 0x14, 0x75, 0x04, 0x95, 0x01, 0x81, 0x42, +0x09, 0x35, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, +0xFF, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0xC0, 0x05, +0x09, 0x19, 0x01, 0x29, 0x07, 0x15, 0x00, 0x25, 0x01, 0x75, +0x01, 0x95, 0x07, 0x45, 0x00, 0x65, 0x00, 0x81, 0x02, 0x75, +0x01, 0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x36, 0x15, +0x00, 0x26, 0xFF, 0x00, 0x35, 0x00, 0x46, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x01, 0x81, 0x02, 0x06, 0x00, 0xFF, 0x09, 0x01, +0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x01, 0x81, +0x02, 0xC0, 0x09, 0x00, 0xA1, 0x02, 0x09, 0x02, 0x15, 0x00, +0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x08, 0x91, 0x02, 0xC0, +0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C52F_0001_000C.pp_data b/windows/test/data/046D_C52F_0001_000C.pp_data new file mode 100644 index 000000000..7f6b369fe --- /dev/null +++ b/windows/test/data/046D_C52F_0001_000C.pp_data @@ -0,0 +1,93 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC52F +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2200 +dev->interface_number = 1 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#vid_046d&pid_c52f&mi_01&col01#8&28ca146b&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 5 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 1 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 1 +pp_data->caps_info[2]->LastCap = 1 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0068 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x000C +pp_data->cap[0]->ReportID = 0x03 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 16 +pp_data->cap[0]->ReportCount = 2 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 32 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0005 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x028C +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 651 +pp_data->cap[0]->Button.LogicalMin = 1 +pp_data->cap[0]->Button.LogicalMax = 652 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C52F_0001_000C_expected.rpt_desc b/windows/test/data/046D_C52F_0001_000C_expected.rpt_desc new file mode 100644 index 000000000..85953ae47 --- /dev/null +++ b/windows/test/data/046D_C52F_0001_000C_expected.rpt_desc @@ -0,0 +1,3 @@ +0x05, 0x0C, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x03, 0x19, 0x01, +0x2A, 0x8C, 0x02, 0x15, 0x01, 0x26, 0x8C, 0x02, 0x75, 0x10, +0x95, 0x02, 0x81, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C52F_0001_000C_real.rpt_desc b/windows/test/data/046D_C52F_0001_000C_real.rpt_desc new file mode 100644 index 000000000..280e58f44 --- /dev/null +++ b/windows/test/data/046D_C52F_0001_000C_real.rpt_desc @@ -0,0 +1,12 @@ +Usage Page (Consumer Devices) 05 0C +Usage (Consumer Control) 09 01 +Collection (Application) A1 01 + Report ID (3) 85 03 + Report Size (16) 75 10 + Report Count (2) 95 02 + Logical Minimum (1) 15 01 + Logical Maximum (652) 26 8C 02 + Usage Minimum (Consumer Control) 19 01 + Usage Maximum (AC Send) 2A 8C 02 + Input (Data,Ary,Abs) 81 00 +End Collection C0 diff --git a/windows/test/data/046D_C52F_0001_FF00.pp_data b/windows/test/data/046D_C52F_0001_FF00.pp_data new file mode 100644 index 000000000..5e8ece103 --- /dev/null +++ b/windows/test/data/046D_C52F_0001_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC52F +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2200 +dev->interface_number = 1 +dev->usage = 0x0001 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#vid_046d&pid_c52f&mi_01&col02#8&28ca146b&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 7 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 7 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x10 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 6 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 48 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0007 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0001 +pp_data->cap[0]->NotRange.Reserved1 = 0x0001 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x10 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0007 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0001 +pp_data->cap[1]->NotRange.Reserved1 = 0x0001 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C52F_0001_FF00_expected.rpt_desc b/windows/test/data/046D_C52F_0001_FF00_expected.rpt_desc new file mode 100644 index 000000000..812bd2a8f --- /dev/null +++ b/windows/test/data/046D_C52F_0001_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x10, 0x09, +0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x06, +0x81, 0x00, 0x09, 0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x06, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C52F_0001_FF00_real.rpt_desc b/windows/test/data/046D_C52F_0001_FF00_real.rpt_desc new file mode 100644 index 000000000..0db6898fe --- /dev/null +++ b/windows/test/data/046D_C52F_0001_FF00_real.rpt_desc @@ -0,0 +1,13 @@ +Usage Page (Vendor-Defined 1) 06 00 FF +Usage (Vendor-Defined 1) 09 01 +Collection (Application) A1 01 + Report ID (16) 85 10 + Report Size (8) 75 08 + Report Count (6) 95 06 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Usage (Vendor-Defined 1) 09 01 + Input (Data,Ary,Abs) 81 00 + Usage (Vendor-Defined 1) 09 01 + Output (Data,Ary,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 00 +End Collection C0 diff --git a/windows/test/data/046D_C52F_0002_0001.pp_data b/windows/test/data/046D_C52F_0002_0001.pp_data new file mode 100644 index 000000000..d90e666e0 --- /dev/null +++ b/windows/test/data/046D_C52F_0002_0001.pp_data @@ -0,0 +1,302 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC52F +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2200 +dev->interface_number = 0 +dev->usage = 0x0002 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c52f&mi_00#8&1599f82d&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 5 +pp_data->caps_info[0]->NumberOfCaps = 5 +pp_data->caps_info[0]->ReportByteLength = 9 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 5 +pp_data->caps_info[1]->LastCap = 5 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 5 +pp_data->caps_info[2]->LastCap = 5 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0208 +pp_data->NumberLinkCollectionNodes = 2 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0009 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 16 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 16 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0003 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x0010 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 15 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 16 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0005 +pp_data->cap[1]->BitCount = 16 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0007 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0031 +pp_data->cap[1]->NotRange.Reserved1 = 0x0031 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 16 +pp_data->cap[1]->NotRange.Reserved4 = 16 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = -32767 +pp_data->cap[1]->NotButton.LogicalMax = 32767 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 16 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0003 +pp_data->cap[2]->BitCount = 16 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0005 +pp_data->cap[2]->LinkCollection = 0x0001 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0030 +pp_data->cap[2]->NotRange.Reserved1 = 0x0030 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 17 +pp_data->cap[2]->NotRange.Reserved4 = 17 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = -32767 +pp_data->cap[2]->NotButton.LogicalMax = 32767 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x00 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 8 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0007 +pp_data->cap[3]->BitCount = 8 +pp_data->cap[3]->BitField = 0x06 +pp_data->cap[3]->NextBytePosition = 0x0008 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 0 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0038 +pp_data->cap[3]->NotRange.Reserved1 = 0x0038 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 18 +pp_data->cap[3]->NotRange.Reserved4 = 18 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = -127 +pp_data->cap[3]->NotButton.LogicalMax = 127 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x000C +pp_data->cap[4]->ReportID = 0x00 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 8 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0008 +pp_data->cap[4]->BitCount = 8 +pp_data->cap[4]->BitField = 0x06 +pp_data->cap[4]->NextBytePosition = 0x0009 +pp_data->cap[4]->LinkCollection = 0x0001 +pp_data->cap[4]->LinkUsagePage = 0x0001 +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 0 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0238 +pp_data->cap[4]->NotRange.Reserved1 = 0x0238 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 19 +pp_data->cap[4]->NotRange.Reserved4 = 19 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = -127 +pp_data->cap[4]->NotButton.LogicalMax = 127 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 1 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 0 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C52F_0002_0001_expected.rpt_desc b/windows/test/data/046D_C52F_0002_0001_expected.rpt_desc new file mode 100644 index 000000000..128c411ed --- /dev/null +++ b/windows/test/data/046D_C52F_0002_0001_expected.rpt_desc @@ -0,0 +1,8 @@ +0x05, 0x01, 0x09, 0x02, 0xA1, 0x01, 0x09, 0x01, 0xA1, 0x00, +0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x10, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30, +0x09, 0x31, 0x16, 0x01, 0x80, 0x26, 0xFF, 0x7F, 0x75, 0x10, +0x95, 0x02, 0x81, 0x06, 0x09, 0x38, 0x15, 0x81, 0x25, 0x7F, +0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0x05, 0x0C, 0x0A, 0x38, +0x02, 0x15, 0x81, 0x25, 0x7F, 0x75, 0x08, 0x95, 0x01, 0x81, +0x06, 0xC0, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C52F_0002_0001_real.rpt_desc b/windows/test/data/046D_C52F_0002_0001_real.rpt_desc new file mode 100644 index 000000000..9c0521df4 --- /dev/null +++ b/windows/test/data/046D_C52F_0002_0001_real.rpt_desc @@ -0,0 +1,33 @@ +Usage Page (Generic Desktop) 05 01 +Usage (Mouse) 09 02 +Collection (Application) A1 01 + Usage (Pointer) 09 01 + Collection (Physical) A1 00 + Usage Page (Button) 05 09 + Usage Minimum (Button 1) 19 01 + Usage Maximum (Button 16) 29 10 + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Report Count (16) 95 10 + Report Size (1) 75 01 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Usage Page (Generic Desktop) 05 01 + Logical Minimum (-32767) 16 01 80 + Logical Maximum (32767) 26 FF 7F + Report Size (16) 75 10 + Report Count (2) 95 02 + Usage (X) 09 30 + Usage (Y) 09 31 + Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 + Logical Minimum (-127) 15 81 + Logical Maximum (127) 25 7F + Report Size (8) 75 08 + Report Count (1) 95 01 + Usage (Wheel) 09 38 + Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 + Usage Page (Consumer Devices) 05 0C + Usage (AC Pan) 0A 38 02 + Report Count (1) 95 01 + Input (Data,Var,Rel,NWrp,Lin,Pref,NNul,Bit) 81 06 + End Collection C0 +End Collection C0 diff --git a/windows/test/data/046D_C52F_0002_FF00.pp_data b/windows/test/data/046D_C52F_0002_FF00.pp_data new file mode 100644 index 000000000..09a3689ac --- /dev/null +++ b/windows/test/data/046D_C52F_0002_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC52F +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2200 +dev->interface_number = 1 +dev->usage = 0x0002 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#vid_046d&pid_c52f&mi_01&col03#8&28ca146b&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 20 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 20 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x11 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 19 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 152 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0014 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0002 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0002 +pp_data->cap[0]->NotRange.Reserved1 = 0x0002 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x11 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 19 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 152 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0014 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0002 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0002 +pp_data->cap[1]->NotRange.Reserved1 = 0x0002 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C52F_0002_FF00_expected.rpt_desc b/windows/test/data/046D_C52F_0002_FF00_expected.rpt_desc new file mode 100644 index 000000000..b1654e78c --- /dev/null +++ b/windows/test/data/046D_C52F_0002_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x02, 0xA1, 0x01, 0x85, 0x11, 0x09, +0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x13, +0x81, 0x00, 0x09, 0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x13, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C52F_0002_FF00_real.rpt_desc b/windows/test/data/046D_C52F_0002_FF00_real.rpt_desc new file mode 100644 index 000000000..68043e15c --- /dev/null +++ b/windows/test/data/046D_C52F_0002_FF00_real.rpt_desc @@ -0,0 +1,13 @@ +Usage Page (Vendor-Defined 1) 06 00 FF +Usage (Vendor-Defined 2) 09 02 +Collection (Application) A1 01 + Report ID (17) 85 11 + Report Size (8) 75 08 + Report Count (19) 95 13 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Usage (Vendor-Defined 2) 09 02 + Input (Data,Ary,Abs) 81 00 + Usage (Vendor-Defined 2) 09 02 + Output (Data,Ary,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 00 +End Collection C0 diff --git a/windows/test/data/046D_C534_0001_000C.pp_data b/windows/test/data/046D_C534_0001_000C.pp_data new file mode 100644 index 000000000..5e44a319b --- /dev/null +++ b/windows/test/data/046D_C534_0001_000C.pp_data @@ -0,0 +1,93 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 1 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#vid_046d&pid_c534&mi_01&col02#7&1ebb799e&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 5 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 1 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 1 +pp_data->caps_info[2]->LastCap = 1 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0068 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x000C +pp_data->cap[0]->ReportID = 0x03 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 16 +pp_data->cap[0]->ReportCount = 2 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 32 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0005 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x028C +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 651 +pp_data->cap[0]->Button.LogicalMin = 1 +pp_data->cap[0]->Button.LogicalMax = 652 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0001_000C_expected.rpt_desc b/windows/test/data/046D_C534_0001_000C_expected.rpt_desc new file mode 100644 index 000000000..85953ae47 --- /dev/null +++ b/windows/test/data/046D_C534_0001_000C_expected.rpt_desc @@ -0,0 +1,3 @@ +0x05, 0x0C, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x03, 0x19, 0x01, +0x2A, 0x8C, 0x02, 0x15, 0x01, 0x26, 0x8C, 0x02, 0x75, 0x10, +0x95, 0x02, 0x81, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0001_000C_real.rpt_desc b/windows/test/data/046D_C534_0001_000C_real.rpt_desc new file mode 100644 index 000000000..e08f1f3fe --- /dev/null +++ b/windows/test/data/046D_C534_0001_000C_real.rpt_desc @@ -0,0 +1,18 @@ +macOS USB prober output for Logitech USB Receiver + 05 0C 09 01 A1 01 + 85 03 75 10 95 02 15 01 26 8C 02 19 01 2A 8C 02 81 00 + C0 + + Parser output: +0x05, 0x0C, // Usage Page (Consumer) +0x09, 0x01, // Usage (Consumer Control) +0xA1, 0x01, // Collection (Application) +0x85, 0x03, // Report ID (3) +0x75, 0x10, // Report Size (16) +0x95, 0x02, // Report Count (2) +0x15, 0x01, // Logical Minimum (1) +0x26, 0x8C, 0x02, // Logical Maximum (652) +0x19, 0x01, // Usage Minimum (Consumer Control) +0x2A, 0x8C, 0x02, // Usage Maximum (AC Send) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection \ No newline at end of file diff --git a/windows/test/data/046D_C534_0001_FF00.pp_data b/windows/test/data/046D_C534_0001_FF00.pp_data new file mode 100644 index 000000000..6d42a1577 --- /dev/null +++ b/windows/test/data/046D_C534_0001_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 1 +dev->usage = 0x0001 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#vid_046d&pid_c534&mi_01&col04#7&1ebb799e&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 7 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 7 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x10 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 6 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 48 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0007 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0001 +pp_data->cap[0]->NotRange.Reserved1 = 0x0001 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x10 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0007 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0001 +pp_data->cap[1]->NotRange.Reserved1 = 0x0001 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0001_FF00_expected.rpt_desc b/windows/test/data/046D_C534_0001_FF00_expected.rpt_desc new file mode 100644 index 000000000..812bd2a8f --- /dev/null +++ b/windows/test/data/046D_C534_0001_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x10, 0x09, +0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x06, +0x81, 0x00, 0x09, 0x01, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x06, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0001_FF00_real.rpt_desc b/windows/test/data/046D_C534_0001_FF00_real.rpt_desc new file mode 100644 index 000000000..953193c4b --- /dev/null +++ b/windows/test/data/046D_C534_0001_FF00_real.rpt_desc @@ -0,0 +1,20 @@ +macOS USB prober output for Logitech USB Receiver + +06 00 FF 09 01 A1 01 85 10 75 08 95 06 +15 00 26 FF 00 09 01 81 +00 09 01 91 00 C0 + +Parser Output: +0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00) +0x09, 0x01, // Usage (0x01) +0xA1, 0x01, // Collection (Application) +0x85, 0x10, // Report ID (16) +0x75, 0x08, // Report Size (8) +0x95, 0x06, // Report Count (6) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0x00, // Logical Maximum (255) +0x09, 0x01, // Usage (0x01) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x01, // Usage (0x01) +0x91, 0x00, // Output (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0xC0, // End Collection diff --git a/windows/test/data/046D_C534_0002_0001.pp_data b/windows/test/data/046D_C534_0002_0001.pp_data new file mode 100644 index 000000000..f50d8a224 --- /dev/null +++ b/windows/test/data/046D_C534_0002_0001.pp_data @@ -0,0 +1,302 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 1 +dev->usage = 0x0002 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c534&mi_01&col01#7&1ebb799e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 5 +pp_data->caps_info[0]->NumberOfCaps = 5 +pp_data->caps_info[0]->ReportByteLength = 8 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 5 +pp_data->caps_info[1]->LastCap = 5 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 5 +pp_data->caps_info[2]->LastCap = 5 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0208 +pp_data->NumberLinkCollectionNodes = 2 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0009 +pp_data->cap[0]->ReportID = 0x02 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 16 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 16 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0003 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x0001 +pp_data->cap[0]->Range.UsageMax = 0x0010 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 15 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x02 +pp_data->cap[1]->BitPosition = 4 +pp_data->cap[1]->BitSize = 12 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0004 +pp_data->cap[1]->BitCount = 12 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0006 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0031 +pp_data->cap[1]->NotRange.Reserved1 = 0x0031 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 16 +pp_data->cap[1]->NotRange.Reserved4 = 16 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = -2047 +pp_data->cap[1]->NotButton.LogicalMax = 2047 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x02 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 12 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0003 +pp_data->cap[2]->BitCount = 12 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0005 +pp_data->cap[2]->LinkCollection = 0x0001 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0030 +pp_data->cap[2]->NotRange.Reserved1 = 0x0030 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 17 +pp_data->cap[2]->NotRange.Reserved4 = 17 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = -2047 +pp_data->cap[2]->NotButton.LogicalMax = 2047 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x0001 +pp_data->cap[3]->ReportID = 0x02 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 8 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0006 +pp_data->cap[3]->BitCount = 8 +pp_data->cap[3]->BitField = 0x06 +pp_data->cap[3]->NextBytePosition = 0x0007 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0x0001 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 0 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0038 +pp_data->cap[3]->NotRange.Reserved1 = 0x0038 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 18 +pp_data->cap[3]->NotRange.Reserved4 = 18 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = -127 +pp_data->cap[3]->NotButton.LogicalMax = 127 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x000C +pp_data->cap[4]->ReportID = 0x02 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 8 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0007 +pp_data->cap[4]->BitCount = 8 +pp_data->cap[4]->BitField = 0x06 +pp_data->cap[4]->NextBytePosition = 0x0008 +pp_data->cap[4]->LinkCollection = 0x0001 +pp_data->cap[4]->LinkUsagePage = 0x0001 +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 0 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0238 +pp_data->cap[4]->NotRange.Reserved1 = 0x0238 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 19 +pp_data->cap[4]->NotRange.Reserved4 = 19 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = -127 +pp_data->cap[4]->NotButton.LogicalMax = 127 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 1 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 1 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 0 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0002_0001_expected.rpt_desc b/windows/test/data/046D_C534_0002_0001_expected.rpt_desc new file mode 100644 index 000000000..48701c6fb --- /dev/null +++ b/windows/test/data/046D_C534_0002_0001_expected.rpt_desc @@ -0,0 +1,8 @@ +0x05, 0x01, 0x09, 0x02, 0xA1, 0x01, 0x09, 0x01, 0xA1, 0x00, +0x85, 0x02, 0x05, 0x09, 0x19, 0x01, 0x29, 0x10, 0x15, 0x00, +0x25, 0x01, 0x75, 0x01, 0x95, 0x10, 0x81, 0x02, 0x05, 0x01, +0x09, 0x30, 0x09, 0x31, 0x16, 0x01, 0xF8, 0x26, 0xFF, 0x07, +0x75, 0x0C, 0x95, 0x02, 0x81, 0x06, 0x09, 0x38, 0x15, 0x81, +0x25, 0x7F, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0x05, 0x0C, +0x0A, 0x38, 0x02, 0x15, 0x81, 0x25, 0x7F, 0x75, 0x08, 0x95, +0x01, 0x81, 0x06, 0xC0, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0002_0001_real.rpt_desc b/windows/test/data/046D_C534_0002_0001_real.rpt_desc new file mode 100644 index 000000000..1c5dea978 --- /dev/null +++ b/windows/test/data/046D_C534_0002_0001_real.rpt_desc @@ -0,0 +1,44 @@ + +05 01 09 02 A1 01 85 02 09 01 A1 00 05 09 19 01 +29 10 15 00 25 01 95 10 75 01 81 02 05 01 16 01 +F8 26 FF 07 75 0C 95 02 09 30 09 31 81 06 15 81 +25 7F 75 08 95 01 09 38 81 06 05 0C 0A 38 02 95 +01 81 06 C0 C0 + +Parser Output: +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x02, // Usage (Mouse) +0xA1, 0x01, // Collection (Application) +0x85, 0x02, // Report ID (2) +0x09, 0x01, // Usage (Pointer) +0xA1, 0x00, // Collection (Physical) +0x05, 0x09, // Usage Page (Button) +0x19, 0x01, // Usage Minimum (0x01) +0x29, 0x10, // Usage Maximum (0x10) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x95, 0x10, // Report Count (16) +0x75, 0x01, // Report Size (1) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x16, 0x01, 0xF8, // Logical Minimum (-2047) +0x26, 0xFF, 0x07, // Logical Maximum (2047) +0x75, 0x0C, // Report Size (12) +0x95, 0x02, // Report Count (2) +0x09, 0x30, // Usage (X) +0x09, 0x31, // Usage (Y) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x15, 0x81, // Logical Minimum (-127) +0x25, 0x7F, // Logical Maximum (127) +0x75, 0x08, // Report Size (8) +0x95, 0x01, // Report Count (1) +0x09, 0x38, // Usage (Wheel) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x0C, // Usage Page (Consumer) +0x0A, 0x38, 0x02, // Usage (AC Pan) +0x95, 0x01, // Report Count (1) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection +0xC0, // End Collection + +// 69 bytes diff --git a/windows/test/data/046D_C534_0002_FF00.pp_data b/windows/test/data/046D_C534_0002_FF00.pp_data new file mode 100644 index 000000000..b5fae3a1d --- /dev/null +++ b/windows/test/data/046D_C534_0002_FF00.pp_data @@ -0,0 +1,139 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 1 +dev->usage = 0x0002 +dev->usage_page = 0xFF00 +dev->path = "\\?\hid#vid_046d&pid_c534&mi_01&col05#7&1ebb799e&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0002 +pp_data->UsagePage = 0xFF00 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 1 +pp_data->caps_info[0]->NumberOfCaps = 1 +pp_data->caps_info[0]->ReportByteLength = 20 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 1 +pp_data->caps_info[1]->LastCap = 2 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 20 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 2 +pp_data->caps_info[2]->LastCap = 2 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x00D0 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF00 +pp_data->cap[0]->ReportID = 0x11 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 19 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 152 +pp_data->cap[0]->BitField = 0x00 +pp_data->cap[0]->NextBytePosition = 0x0014 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFF00 +pp_data->cap[0]->LinkUsage = 0x0002 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0002 +pp_data->cap[0]->NotRange.Reserved1 = 0x0002 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 255 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[1]->UsagePage = 0xFF00 +pp_data->cap[1]->ReportID = 0x11 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 19 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 152 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0014 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFF00 +pp_data->cap[1]->LinkUsage = 0x0002 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0002 +pp_data->cap[1]->NotRange.Reserved1 = 0x0002 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 0 +pp_data->cap[1]->NotRange.Reserved4 = 0 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 255 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF00 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0002_FF00_expected.rpt_desc b/windows/test/data/046D_C534_0002_FF00_expected.rpt_desc new file mode 100644 index 000000000..b1654e78c --- /dev/null +++ b/windows/test/data/046D_C534_0002_FF00_expected.rpt_desc @@ -0,0 +1,4 @@ +0x06, 0x00, 0xFF, 0x09, 0x02, 0xA1, 0x01, 0x85, 0x11, 0x09, +0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, 0x08, 0x95, 0x13, +0x81, 0x00, 0x09, 0x02, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x13, 0x91, 0x00, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0002_FF00_real.rpt_desc b/windows/test/data/046D_C534_0002_FF00_real.rpt_desc new file mode 100644 index 000000000..42a0ad88c --- /dev/null +++ b/windows/test/data/046D_C534_0002_FF00_real.rpt_desc @@ -0,0 +1,22 @@ +macOS USB prober output for Logitech USB Receiver + +06 00 FF 09 02 A1 01 85 11 +75 08 95 13 15 00 26 FF +00 09 02 81 00 09 02 91 00 C0 + +Parser output: +0x06, 0x00, 0xFF, // Usage Page (Vendor Defined 0xFF00) +0x09, 0x02, // Usage (0x02) +0xA1, 0x01, // Collection (Application) +0x85, 0x11, // Report ID (17) +0x75, 0x08, // Report Size (8) +0x95, 0x13, // Report Count (19) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xFF, 0x00, // Logical Maximum (255) +0x09, 0x02, // Usage (0x02) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x02, // Usage (0x02) +0x91, 0x00, // Output (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0xC0, // End Collection + +// 27 bytes diff --git a/windows/test/data/046D_C534_0006_0001.pp_data b/windows/test/data/046D_C534_0006_0001.pp_data new file mode 100644 index 000000000..2b42d5fbf --- /dev/null +++ b/windows/test/data/046D_C534_0006_0001.pp_data @@ -0,0 +1,185 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 0 +dev->usage = 0x0006 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c534&mi_00#7&51bc424&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\kbd" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0006 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 2 +pp_data->caps_info[0]->NumberOfCaps = 2 +pp_data->caps_info[0]->ReportByteLength = 9 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 2 +pp_data->caps_info[1]->LastCap = 3 +pp_data->caps_info[1]->NumberOfCaps = 1 +pp_data->caps_info[1]->ReportByteLength = 2 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 3 +pp_data->caps_info[2]->LastCap = 3 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0138 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0007 +pp_data->cap[0]->ReportID = 0x00 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 8 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 8 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0006 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 1 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->Range.UsageMin = 0x00E0 +pp_data->cap[0]->Range.UsageMax = 0x00E7 +pp_data->cap[0]->Range.StringMin = 0 +pp_data->cap[0]->Range.StringMax = 0 +pp_data->cap[0]->Range.DesignatorMin = 0 +pp_data->cap[0]->Range.DesignatorMax = 0 +pp_data->cap[0]->Range.DataIndexMin = 0 +pp_data->cap[0]->Range.DataIndexMax = 7 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0007 +pp_data->cap[1]->ReportID = 0x00 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 8 +pp_data->cap[1]->ReportCount = 6 +pp_data->cap[1]->BytePosition = 0x0003 +pp_data->cap[1]->BitCount = 48 +pp_data->cap[1]->BitField = 0x00 +pp_data->cap[1]->NextBytePosition = 0x0009 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0006 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 1 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->Range.UsageMin = 0x0000 +pp_data->cap[1]->Range.UsageMax = 0x00A4 +pp_data->cap[1]->Range.StringMin = 0 +pp_data->cap[1]->Range.StringMax = 0 +pp_data->cap[1]->Range.DesignatorMin = 0 +pp_data->cap[1]->Range.DesignatorMax = 0 +pp_data->cap[1]->Range.DataIndexMin = 8 +pp_data->cap[1]->Range.DataIndexMax = 172 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 164 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[2]->UsagePage = 0x0008 +pp_data->cap[2]->ReportID = 0x00 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 5 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 5 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0006 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 1 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->Range.UsageMin = 0x0001 +pp_data->cap[2]->Range.UsageMax = 0x0005 +pp_data->cap[2]->Range.StringMin = 0 +pp_data->cap[2]->Range.StringMax = 0 +pp_data->cap[2]->Range.DesignatorMin = 0 +pp_data->cap[2]->Range.DesignatorMax = 0 +pp_data->cap[2]->Range.DataIndexMin = 0 +pp_data->cap[2]->Range.DataIndexMax = 4 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0006 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0006_0001_expected.rpt_desc b/windows/test/data/046D_C534_0006_0001_expected.rpt_desc new file mode 100644 index 000000000..d41d4712e --- /dev/null +++ b/windows/test/data/046D_C534_0006_0001_expected.rpt_desc @@ -0,0 +1,7 @@ +0x05, 0x01, 0x09, 0x06, 0xA1, 0x01, 0x05, 0x07, 0x19, 0xE0, +0x29, 0xE7, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, +0x81, 0x02, 0x75, 0x08, 0x95, 0x01, 0x81, 0x03, 0x19, 0x00, +0x29, 0xA4, 0x15, 0x00, 0x26, 0xA4, 0x00, 0x75, 0x08, 0x95, +0x06, 0x81, 0x00, 0x05, 0x08, 0x19, 0x01, 0x29, 0x05, 0x15, +0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x91, 0x02, 0x75, +0x03, 0x95, 0x01, 0x91, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0006_0001_real.rpt_desc b/windows/test/data/046D_C534_0006_0001_real.rpt_desc new file mode 100644 index 000000000..d65aa572a --- /dev/null +++ b/windows/test/data/046D_C534_0006_0001_real.rpt_desc @@ -0,0 +1,42 @@ +macOS USB prober output for Logitech USB Receiver + + +Type: 0x22 (Report Descriptor) +Length (and contents): 59 + Raw Descriptor (hex) 0000: 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01 + Raw Descriptor (hex) 0010: 75 01 95 08 81 02 81 03 95 05 05 08 19 01 29 05 + Raw Descriptor (hex) 0020: 91 02 95 01 75 03 91 01 95 06 75 08 15 00 26 A4 + Raw Descriptor (hex) 0030: 00 05 07 19 00 2A A4 00 81 00 C0 + +Parser output: +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x06, // Usage (Keyboard) +0xA1, 0x01, // Collection (Application) +0x05, 0x07, // Usage Page (Kbrd/Keypad) +0x19, 0xE0, // Usage Minimum (0xE0) +0x29, 0xE7, // Usage Maximum (0xE7) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x08, // Report Count (8) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x05, // Report Count (5) +0x05, 0x08, // Usage Page (LEDs) +0x19, 0x01, // Usage Minimum (Num Lock) +0x29, 0x05, // Usage Maximum (Kana) +0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x95, 0x01, // Report Count (1) +0x75, 0x03, // Report Size (3) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x95, 0x06, // Report Count (6) +0x75, 0x08, // Report Size (8) +0x15, 0x00, // Logical Minimum (0) +0x26, 0xA4, 0x00, // Logical Maximum (164) +0x05, 0x07, // Usage Page (Kbrd/Keypad) +0x19, 0x00, // Usage Minimum (0x00) +0x2A, 0xA4, 0x00, // Usage Maximum (0xA4) +0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection + +// 59 bytes diff --git a/windows/test/data/046D_C534_0080_0001.pp_data b/windows/test/data/046D_C534_0080_0001.pp_data new file mode 100644 index 000000000..a829f7012 --- /dev/null +++ b/windows/test/data/046D_C534_0080_0001.pp_data @@ -0,0 +1,185 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x046D +dev->product_id = 0xC534 +dev->manufacturer_string = "Logitech" +dev->product_string = "USB Receiver" +dev->release_number = 0x2901 +dev->interface_number = 1 +dev->usage = 0x0080 +dev->usage_page = 0x0001 +dev->path = "\\?\hid#vid_046d&pid_c534&mi_01&col03#7&1ebb799e&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0080 +pp_data->UsagePage = 0x0001 +pp_data->Reserved = 0x00038000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 3 +pp_data->caps_info[0]->NumberOfCaps = 3 +pp_data->caps_info[0]->ReportByteLength = 2 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 3 +pp_data->caps_info[1]->LastCap = 3 +pp_data->caps_info[1]->NumberOfCaps = 0 +pp_data->caps_info[1]->ReportByteLength = 0 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 3 +pp_data->caps_info[2]->LastCap = 3 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0138 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x0001 +pp_data->cap[0]->ReportID = 0x04 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 2 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 2 +pp_data->cap[0]->BitField = 0x60 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x0001 +pp_data->cap[0]->LinkUsage = 0x0080 +pp_data->cap[0]->IsMultipleItemsForArray = 1 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0083 +pp_data->cap[0]->NotRange.Reserved1 = 0x0083 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 2 +pp_data->cap[0]->NotRange.Reserved4 = 2 +pp_data->cap[0]->Button.LogicalMin = 1 +pp_data->cap[0]->Button.LogicalMax = 3 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x0001 +pp_data->cap[1]->ReportID = 0x04 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 2 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 2 +pp_data->cap[1]->BitField = 0x60 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x0001 +pp_data->cap[1]->LinkUsage = 0x0080 +pp_data->cap[1]->IsMultipleItemsForArray = 1 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0081 +pp_data->cap[1]->NotRange.Reserved1 = 0x0081 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->Button.LogicalMin = 1 +pp_data->cap[1]->Button.LogicalMax = 3 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x0001 +pp_data->cap[2]->ReportID = 0x04 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 2 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 2 +pp_data->cap[2]->BitField = 0x60 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x0001 +pp_data->cap[2]->LinkUsage = 0x0080 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0082 +pp_data->cap[2]->NotRange.Reserved1 = 0x0082 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 0 +pp_data->cap[2]->NotRange.Reserved4 = 0 +pp_data->cap[2]->Button.LogicalMin = 1 +pp_data->cap[2]->Button.LogicalMax = 3 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +# Output hid_pp_cap struct: +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0080 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x0001 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/046D_C534_0080_0001_expected.rpt_desc b/windows/test/data/046D_C534_0080_0001_expected.rpt_desc new file mode 100644 index 000000000..e7a9677a7 --- /dev/null +++ b/windows/test/data/046D_C534_0080_0001_expected.rpt_desc @@ -0,0 +1,4 @@ +0x05, 0x01, 0x09, 0x80, 0xA1, 0x01, 0x85, 0x04, 0x09, 0x82, +0x09, 0x81, 0x09, 0x83, 0x15, 0x01, 0x25, 0x03, 0x75, 0x02, +0x95, 0x01, 0x81, 0x60, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03, +0xC0, \ No newline at end of file diff --git a/windows/test/data/046D_C534_0080_0001_real.rpt_desc b/windows/test/data/046D_C534_0080_0001_real.rpt_desc new file mode 100644 index 000000000..7ebe8c954 --- /dev/null +++ b/windows/test/data/046D_C534_0080_0001_real.rpt_desc @@ -0,0 +1,22 @@ + +05 01 09 80 A1 01 85 04 75 02 95 01 15 01 25 03 +09 82 09 81 09 83 81 60 75 06 81 03 C0 + +Parser output: +0x05, 0x01, // Usage Page (Generic Desktop Ctrls) +0x09, 0x80, // Usage (Sys Control) +0xA1, 0x01, // Collection (Application) +0x85, 0x04, // Report ID (4) +0x75, 0x02, // Report Size (2) +0x95, 0x01, // Report Count (1) +0x15, 0x01, // Logical Minimum (1) +0x25, 0x03, // Logical Maximum (3) +0x09, 0x82, // Usage (Sys Sleep) +0x09, 0x81, // Usage (Sys Power Down) +0x09, 0x83, // Usage (Sys Wake Up) +0x81, 0x60, // Input (Data,Array,Abs,No Wrap,Linear,No Preferred State,Null State) +0x75, 0x06, // Report Size (6) +0x81, 0x03, // Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection + +// 29 bytes diff --git a/windows/test/data/047F_C056_0001_000C.pp_data b/windows/test/data/047F_C056_0001_000C.pp_data new file mode 100644 index 000000000..87da2b257 --- /dev/null +++ b/windows/test/data/047F_C056_0001_000C.pp_data @@ -0,0 +1,385 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x047F +dev->product_id = 0xC056 +dev->manufacturer_string = "Plantronics" +dev->product_string = "Plantronics Blackwire 3220 Series" +dev->release_number = 0x0210 +dev->interface_number = 3 +dev->usage = 0x0001 +dev->usage_page = 0x000C +dev->path = "\\?\hid#vid_047f&pid_c056&mi_03&col01#f&39e6f119&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0001 +pp_data->UsagePage = 0x000C +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 5 +pp_data->caps_info[0]->NumberOfCaps = 5 +pp_data->caps_info[0]->ReportByteLength = 33 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 5 +pp_data->caps_info[1]->LastCap = 7 +pp_data->caps_info[1]->NumberOfCaps = 2 +pp_data->caps_info[1]->ReportByteLength = 37 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 7 +pp_data->caps_info[2]->LastCap = 7 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x02D8 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x000C +pp_data->cap[0]->ReportID = 0x01 +pp_data->cap[0]->BitPosition = 1 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 1 +pp_data->cap[0]->BitField = 0x06 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000C +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 0 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x00EA +pp_data->cap[0]->NotRange.Reserved1 = 0x00EA +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x000C +pp_data->cap[1]->ReportID = 0x01 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 1 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 1 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x000C +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x00E9 +pp_data->cap[1]->NotRange.Reserved1 = 0x00E9 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x000C +pp_data->cap[2]->ReportID = 0x02 +pp_data->cap[2]->BitPosition = 0 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 16 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 16 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0003 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x000C +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0000 +pp_data->cap[2]->NotRange.Reserved1 = 0x0000 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0x000C +pp_data->cap[3]->ReportID = 0x05 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 8 +pp_data->cap[3]->ReportCount = 32 +pp_data->cap[3]->BytePosition = 0x0001 +pp_data->cap[3]->BitCount = 256 +pp_data->cap[3]->BitField = 0x02 +pp_data->cap[3]->NextBytePosition = 0x0021 +pp_data->cap[3]->LinkCollection = 0x0000 +pp_data->cap[3]->LinkUsagePage = 0x000C +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0000 +pp_data->cap[3]->NotRange.Reserved1 = 0x0000 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 3 +pp_data->cap[3]->NotRange.Reserved4 = 3 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = 0 +pp_data->cap[3]->NotButton.LogicalMax = 1 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x000C +pp_data->cap[4]->ReportID = 0x07 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 8 +pp_data->cap[4]->ReportCount = 32 +pp_data->cap[4]->BytePosition = 0x0001 +pp_data->cap[4]->BitCount = 256 +pp_data->cap[4]->BitField = 0x02 +pp_data->cap[4]->NextBytePosition = 0x0021 +pp_data->cap[4]->LinkCollection = 0x0000 +pp_data->cap[4]->LinkUsagePage = 0x000C +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 0 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0000 +pp_data->cap[4]->NotRange.Reserved1 = 0x0000 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 4 +pp_data->cap[4]->NotRange.Reserved4 = 4 +pp_data->cap[4]->NotButton.HasNull = 0 +pp_data->cap[4]->NotButton.Reserved4 = 0x000000 +pp_data->cap[4]->NotButton.LogicalMin = 0 +pp_data->cap[4]->NotButton.LogicalMax = 1 +pp_data->cap[4]->NotButton.PhysicalMin = 0 +pp_data->cap[4]->NotButton.PhysicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[5]->UsagePage = 0x000C +pp_data->cap[5]->ReportID = 0x04 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 8 +pp_data->cap[5]->ReportCount = 36 +pp_data->cap[5]->BytePosition = 0x0001 +pp_data->cap[5]->BitCount = 288 +pp_data->cap[5]->BitField = 0x02 +pp_data->cap[5]->NextBytePosition = 0x0025 +pp_data->cap[5]->LinkCollection = 0x0000 +pp_data->cap[5]->LinkUsagePage = 0x000C +pp_data->cap[5]->LinkUsage = 0x0001 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 0 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 0 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->NotRange.Usage = 0x0000 +pp_data->cap[5]->NotRange.Reserved1 = 0x0000 +pp_data->cap[5]->NotRange.StringIndex = 0 +pp_data->cap[5]->NotRange.Reserved2 = 0 +pp_data->cap[5]->NotRange.DesignatorIndex = 0 +pp_data->cap[5]->NotRange.Reserved3 = 0 +pp_data->cap[5]->NotRange.DataIndex = 0 +pp_data->cap[5]->NotRange.Reserved4 = 0 +pp_data->cap[5]->NotButton.HasNull = 0 +pp_data->cap[5]->NotButton.Reserved4 = 0x000000 +pp_data->cap[5]->NotButton.LogicalMin = 0 +pp_data->cap[5]->NotButton.LogicalMax = 1 +pp_data->cap[5]->NotButton.PhysicalMin = 0 +pp_data->cap[5]->NotButton.PhysicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0x000C +pp_data->cap[6]->ReportID = 0x06 +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 8 +pp_data->cap[6]->ReportCount = 36 +pp_data->cap[6]->BytePosition = 0x0001 +pp_data->cap[6]->BitCount = 288 +pp_data->cap[6]->BitField = 0x02 +pp_data->cap[6]->NextBytePosition = 0x0025 +pp_data->cap[6]->LinkCollection = 0x0000 +pp_data->cap[6]->LinkUsagePage = 0x000C +pp_data->cap[6]->LinkUsage = 0x0001 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 0 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x0000 +pp_data->cap[6]->NotRange.Reserved1 = 0x0000 +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 1 +pp_data->cap[6]->NotRange.Reserved4 = 1 +pp_data->cap[6]->NotButton.HasNull = 0 +pp_data->cap[6]->NotButton.Reserved4 = 0x000000 +pp_data->cap[6]->NotButton.LogicalMin = 0 +pp_data->cap[6]->NotButton.LogicalMax = 1 +pp_data->cap[6]->NotButton.PhysicalMin = 0 +pp_data->cap[6]->NotButton.PhysicalMax = 0 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000C +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/047F_C056_0001_000C_expected.rpt_desc b/windows/test/data/047F_C056_0001_000C_expected.rpt_desc new file mode 100644 index 000000000..d7ca0452e --- /dev/null +++ b/windows/test/data/047F_C056_0001_000C_expected.rpt_desc @@ -0,0 +1,10 @@ +0x05, 0x0C, 0x09, 0x01, 0xA1, 0x01, 0x85, 0x01, 0x09, 0xE9, +0x09, 0xEA, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02, +0x81, 0x06, 0x75, 0x06, 0x95, 0x01, 0x81, 0x03, 0x85, 0x02, +0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x10, +0x81, 0x02, 0x85, 0x05, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, +0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x85, 0x07, 0x09, 0x00, +0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, +0x85, 0x04, 0x09, 0x00, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, +0x95, 0x24, 0x91, 0x02, 0x85, 0x06, 0x09, 0x00, 0x15, 0x00, +0x25, 0x01, 0x75, 0x08, 0x95, 0x24, 0x91, 0x02, 0xC0, \ No newline at end of file diff --git a/windows/test/data/047F_C056_0001_000C_real.rpt_desc b/windows/test/data/047F_C056_0001_000C_real.rpt_desc new file mode 100644 index 000000000..ba0fc3a5f --- /dev/null +++ b/windows/test/data/047F_C056_0001_000C_real.rpt_desc @@ -0,0 +1,47 @@ +macOS USB Prober about 0x047F/0xC056 "Plantronics Blackwire 3220 Series" +05 0C 09 01 A1 01 85 01 15 00 25 01 09 E9 09 EA +75 01 95 02 81 06 95 06 81 01 85 02 05 0C 09 00 +95 10 81 02 85 04 09 00 75 08 95 24 91 02 85 05 +09 00 95 20 81 02 85 06 09 00 95 24 91 02 85 07 +09 00 95 20 81 02 C0 + +# Parser output: + +0x05, 0x0C, // Usage Page (Consumer) +0x09, 0x01, // Usage (Consumer Control) +0xA1, 0x01, // Collection (Application) +0x85, 0x01, // Report ID (1) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x09, 0xE9, // Usage (Volume Increment) +0x09, 0xEA, // Usage (Volume Decrement) +0x75, 0x01, // Report Size (1) +0x95, 0x02, // Report Count (2) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x06, // Report Count (6) +0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x85, 0x02, // Report ID (2) +0x05, 0x0C, // Usage Page (Consumer) +0x09, 0x00, // Usage (Unassigned) +0x95, 0x10, // Report Count (16) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x85, 0x04, // Report ID (4) +0x09, 0x00, // Usage (Unassigned) +0x75, 0x08, // Report Size (8) +0x95, 0x24, // Report Count (36) +0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x05, // Report ID (5) +0x09, 0x00, // Usage (Unassigned) +0x95, 0x20, // Report Count (32) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x85, 0x06, // Report ID (6) +0x09, 0x00, // Usage (Unassigned) +0x95, 0x24, // Report Count (36) +0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x07, // Report ID (7) +0x09, 0x00, // Usage (Unassigned) +0x95, 0x20, // Report Count (32) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection + +// 71 bytes diff --git a/windows/test/data/047F_C056_0003_FFA0.pp_data b/windows/test/data/047F_C056_0003_FFA0.pp_data new file mode 100644 index 000000000..6def73665 --- /dev/null +++ b/windows/test/data/047F_C056_0003_FFA0.pp_data @@ -0,0 +1,1255 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x047F +dev->product_id = 0xC056 +dev->manufacturer_string = "Plantronics" +dev->product_string = "Plantronics Blackwire 3220 Series" +dev->release_number = 0x0210 +dev->interface_number = 3 +dev->usage = 0x0003 +dev->usage_page = 0xFFA0 +dev->path = "\\?\hid#vid_047f&pid_c056&mi_03&col03#f&39e6f119&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0003 +pp_data->UsagePage = 0xFFA0 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 8 +pp_data->caps_info[0]->NumberOfCaps = 8 +pp_data->caps_info[0]->ReportByteLength = 33 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 8 +pp_data->caps_info[1]->LastCap = 16 +pp_data->caps_info[1]->NumberOfCaps = 8 +pp_data->caps_info[1]->ReportByteLength = 33 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 16 +pp_data->caps_info[2]->LastCap = 26 +pp_data->caps_info[2]->NumberOfCaps = 10 +pp_data->caps_info[2]->ReportByteLength = 3 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x0A90 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFFA0 +pp_data->cap[0]->ReportID = 0x03 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 8 +pp_data->cap[0]->ReportCount = 32 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 256 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0021 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0xFFA0 +pp_data->cap[0]->LinkUsage = 0x0003 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0030 +pp_data->cap[0]->NotRange.Reserved1 = 0x0030 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = 1 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0xFFA0 +pp_data->cap[1]->ReportID = 0x14 +pp_data->cap[1]->BitPosition = 4 +pp_data->cap[1]->BitSize = 1 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 1 +pp_data->cap[1]->BitField = 0x06 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0xFFA0 +pp_data->cap[1]->LinkUsage = 0x0003 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 0 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x00B3 +pp_data->cap[1]->NotRange.Reserved1 = 0x00B3 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0xFFA0 +pp_data->cap[2]->ReportID = 0x14 +pp_data->cap[2]->BitPosition = 3 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 1 +pp_data->cap[2]->BitField = 0x06 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0xFFA0 +pp_data->cap[2]->LinkUsage = 0x0003 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 0 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x00B7 +pp_data->cap[2]->NotRange.Reserved1 = 0x00B7 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0xFFA0 +pp_data->cap[3]->ReportID = 0x14 +pp_data->cap[3]->BitPosition = 2 +pp_data->cap[3]->BitSize = 1 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0001 +pp_data->cap[3]->BitCount = 1 +pp_data->cap[3]->BitField = 0x06 +pp_data->cap[3]->NextBytePosition = 0x0002 +pp_data->cap[3]->LinkCollection = 0x0000 +pp_data->cap[3]->LinkUsagePage = 0xFFA0 +pp_data->cap[3]->LinkUsage = 0x0003 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 1 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 0 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x00B5 +pp_data->cap[3]->NotRange.Reserved1 = 0x00B5 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 3 +pp_data->cap[3]->NotRange.Reserved4 = 3 +pp_data->cap[3]->Button.LogicalMin = 0 +pp_data->cap[3]->Button.LogicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0xFFA0 +pp_data->cap[4]->ReportID = 0x14 +pp_data->cap[4]->BitPosition = 1 +pp_data->cap[4]->BitSize = 1 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0001 +pp_data->cap[4]->BitCount = 1 +pp_data->cap[4]->BitField = 0x06 +pp_data->cap[4]->NextBytePosition = 0x0002 +pp_data->cap[4]->LinkCollection = 0x0000 +pp_data->cap[4]->LinkUsagePage = 0xFFA0 +pp_data->cap[4]->LinkUsage = 0x0003 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 1 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 0 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x00B2 +pp_data->cap[4]->NotRange.Reserved1 = 0x00B2 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 4 +pp_data->cap[4]->NotRange.Reserved4 = 4 +pp_data->cap[4]->Button.LogicalMin = 0 +pp_data->cap[4]->Button.LogicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0xFFA0 +pp_data->cap[5]->ReportID = 0x14 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 1 +pp_data->cap[5]->ReportCount = 1 +pp_data->cap[5]->BytePosition = 0x0001 +pp_data->cap[5]->BitCount = 1 +pp_data->cap[5]->BitField = 0x06 +pp_data->cap[5]->NextBytePosition = 0x0002 +pp_data->cap[5]->LinkCollection = 0x0000 +pp_data->cap[5]->LinkUsagePage = 0xFFA0 +pp_data->cap[5]->LinkUsage = 0x0003 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 1 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 0 +pp_data->cap[5]->IsRange = 0 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->NotRange.Usage = 0x00B1 +pp_data->cap[5]->NotRange.Reserved1 = 0x00B1 +pp_data->cap[5]->NotRange.StringIndex = 0 +pp_data->cap[5]->NotRange.Reserved2 = 0 +pp_data->cap[5]->NotRange.DesignatorIndex = 0 +pp_data->cap[5]->NotRange.Reserved3 = 0 +pp_data->cap[5]->NotRange.DataIndex = 5 +pp_data->cap[5]->NotRange.Reserved4 = 5 +pp_data->cap[5]->Button.LogicalMin = 0 +pp_data->cap[5]->Button.LogicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0xFFA0 +pp_data->cap[6]->ReportID = 0x15 +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 16 +pp_data->cap[6]->ReportCount = 1 +pp_data->cap[6]->BytePosition = 0x0001 +pp_data->cap[6]->BitCount = 16 +pp_data->cap[6]->BitField = 0x22 +pp_data->cap[6]->NextBytePosition = 0x0003 +pp_data->cap[6]->LinkCollection = 0x0000 +pp_data->cap[6]->LinkUsagePage = 0xFFA0 +pp_data->cap[6]->LinkUsage = 0x0003 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 0 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x008C +pp_data->cap[6]->NotRange.Reserved1 = 0x008C +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 6 +pp_data->cap[6]->NotRange.Reserved4 = 6 +pp_data->cap[6]->NotButton.HasNull = 0 +pp_data->cap[6]->NotButton.Reserved4 = 0x000000 +pp_data->cap[6]->NotButton.LogicalMin = 0 +pp_data->cap[6]->NotButton.LogicalMax = 65535 +pp_data->cap[6]->NotButton.PhysicalMin = 0 +pp_data->cap[6]->NotButton.PhysicalMax = 0 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +pp_data->cap[7]->UsagePage = 0xFFA0 +pp_data->cap[7]->ReportID = 0x1F +pp_data->cap[7]->BitPosition = 0 +pp_data->cap[7]->BitSize = 1 +pp_data->cap[7]->ReportCount = 1 +pp_data->cap[7]->BytePosition = 0x0001 +pp_data->cap[7]->BitCount = 1 +pp_data->cap[7]->BitField = 0x06 +pp_data->cap[7]->NextBytePosition = 0x0002 +pp_data->cap[7]->LinkCollection = 0x0000 +pp_data->cap[7]->LinkUsagePage = 0xFFA0 +pp_data->cap[7]->LinkUsage = 0x0003 +pp_data->cap[7]->IsMultipleItemsForArray = 0 +pp_data->cap[7]->IsButtonCap = 1 +pp_data->cap[7]->IsPadding = 0 +pp_data->cap[7]->IsAbsolute = 0 +pp_data->cap[7]->IsRange = 0 +pp_data->cap[7]->IsAlias = 0 +pp_data->cap[7]->IsStringRange = 0 +pp_data->cap[7]->IsDesignatorRange = 0 +pp_data->cap[7]->Reserved1 = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[7]->NotRange.Usage = 0x009C +pp_data->cap[7]->NotRange.Reserved1 = 0x009C +pp_data->cap[7]->NotRange.StringIndex = 0 +pp_data->cap[7]->NotRange.Reserved2 = 0 +pp_data->cap[7]->NotRange.DesignatorIndex = 0 +pp_data->cap[7]->NotRange.Reserved3 = 0 +pp_data->cap[7]->NotRange.DataIndex = 7 +pp_data->cap[7]->NotRange.Reserved4 = 7 +pp_data->cap[7]->Button.LogicalMin = 0 +pp_data->cap[7]->Button.LogicalMax = 0 +pp_data->cap[7]->Units = 0 +pp_data->cap[7]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[8]->UsagePage = 0xFFA0 +pp_data->cap[8]->ReportID = 0x03 +pp_data->cap[8]->BitPosition = 0 +pp_data->cap[8]->BitSize = 8 +pp_data->cap[8]->ReportCount = 32 +pp_data->cap[8]->BytePosition = 0x0001 +pp_data->cap[8]->BitCount = 256 +pp_data->cap[8]->BitField = 0x02 +pp_data->cap[8]->NextBytePosition = 0x0021 +pp_data->cap[8]->LinkCollection = 0x0000 +pp_data->cap[8]->LinkUsagePage = 0xFFA0 +pp_data->cap[8]->LinkUsage = 0x0003 +pp_data->cap[8]->IsMultipleItemsForArray = 0 +pp_data->cap[8]->IsButtonCap = 0 +pp_data->cap[8]->IsPadding = 0 +pp_data->cap[8]->IsAbsolute = 1 +pp_data->cap[8]->IsRange = 0 +pp_data->cap[8]->IsAlias = 0 +pp_data->cap[8]->IsStringRange = 0 +pp_data->cap[8]->IsDesignatorRange = 0 +pp_data->cap[8]->Reserved1 = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[8]->NotRange.Usage = 0x0030 +pp_data->cap[8]->NotRange.Reserved1 = 0x0030 +pp_data->cap[8]->NotRange.StringIndex = 0 +pp_data->cap[8]->NotRange.Reserved2 = 0 +pp_data->cap[8]->NotRange.DesignatorIndex = 0 +pp_data->cap[8]->NotRange.Reserved3 = 0 +pp_data->cap[8]->NotRange.DataIndex = 0 +pp_data->cap[8]->NotRange.Reserved4 = 0 +pp_data->cap[8]->NotButton.HasNull = 0 +pp_data->cap[8]->NotButton.Reserved4 = 0x000000 +pp_data->cap[8]->NotButton.LogicalMin = 0 +pp_data->cap[8]->NotButton.LogicalMax = 1 +pp_data->cap[8]->NotButton.PhysicalMin = 0 +pp_data->cap[8]->NotButton.PhysicalMax = 0 +pp_data->cap[8]->Units = 0 +pp_data->cap[8]->UnitsExp = 0 + +pp_data->cap[9]->UsagePage = 0xFFA0 +pp_data->cap[9]->ReportID = 0x19 +pp_data->cap[9]->BitPosition = 3 +pp_data->cap[9]->BitSize = 1 +pp_data->cap[9]->ReportCount = 1 +pp_data->cap[9]->BytePosition = 0x0001 +pp_data->cap[9]->BitCount = 1 +pp_data->cap[9]->BitField = 0x22 +pp_data->cap[9]->NextBytePosition = 0x0002 +pp_data->cap[9]->LinkCollection = 0x0000 +pp_data->cap[9]->LinkUsagePage = 0xFFA0 +pp_data->cap[9]->LinkUsage = 0x0003 +pp_data->cap[9]->IsMultipleItemsForArray = 0 +pp_data->cap[9]->IsButtonCap = 1 +pp_data->cap[9]->IsPadding = 0 +pp_data->cap[9]->IsAbsolute = 1 +pp_data->cap[9]->IsRange = 0 +pp_data->cap[9]->IsAlias = 0 +pp_data->cap[9]->IsStringRange = 0 +pp_data->cap[9]->IsDesignatorRange = 0 +pp_data->cap[9]->Reserved1 = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[9]->NotRange.Usage = 0x00DC +pp_data->cap[9]->NotRange.Reserved1 = 0x00DC +pp_data->cap[9]->NotRange.StringIndex = 0 +pp_data->cap[9]->NotRange.Reserved2 = 0 +pp_data->cap[9]->NotRange.DesignatorIndex = 0 +pp_data->cap[9]->NotRange.Reserved3 = 0 +pp_data->cap[9]->NotRange.DataIndex = 1 +pp_data->cap[9]->NotRange.Reserved4 = 1 +pp_data->cap[9]->Button.LogicalMin = 0 +pp_data->cap[9]->Button.LogicalMax = 0 +pp_data->cap[9]->Units = 0 +pp_data->cap[9]->UnitsExp = 0 + +pp_data->cap[10]->UsagePage = 0xFFA0 +pp_data->cap[10]->ReportID = 0x19 +pp_data->cap[10]->BitPosition = 2 +pp_data->cap[10]->BitSize = 1 +pp_data->cap[10]->ReportCount = 1 +pp_data->cap[10]->BytePosition = 0x0001 +pp_data->cap[10]->BitCount = 1 +pp_data->cap[10]->BitField = 0x22 +pp_data->cap[10]->NextBytePosition = 0x0002 +pp_data->cap[10]->LinkCollection = 0x0000 +pp_data->cap[10]->LinkUsagePage = 0xFFA0 +pp_data->cap[10]->LinkUsage = 0x0003 +pp_data->cap[10]->IsMultipleItemsForArray = 0 +pp_data->cap[10]->IsButtonCap = 1 +pp_data->cap[10]->IsPadding = 0 +pp_data->cap[10]->IsAbsolute = 1 +pp_data->cap[10]->IsRange = 0 +pp_data->cap[10]->IsAlias = 0 +pp_data->cap[10]->IsStringRange = 0 +pp_data->cap[10]->IsDesignatorRange = 0 +pp_data->cap[10]->Reserved1 = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[10]->NotRange.Usage = 0x009E +pp_data->cap[10]->NotRange.Reserved1 = 0x009E +pp_data->cap[10]->NotRange.StringIndex = 0 +pp_data->cap[10]->NotRange.Reserved2 = 0 +pp_data->cap[10]->NotRange.DesignatorIndex = 0 +pp_data->cap[10]->NotRange.Reserved3 = 0 +pp_data->cap[10]->NotRange.DataIndex = 2 +pp_data->cap[10]->NotRange.Reserved4 = 2 +pp_data->cap[10]->Button.LogicalMin = 0 +pp_data->cap[10]->Button.LogicalMax = 0 +pp_data->cap[10]->Units = 0 +pp_data->cap[10]->UnitsExp = 0 + +pp_data->cap[11]->UsagePage = 0xFFA0 +pp_data->cap[11]->ReportID = 0x19 +pp_data->cap[11]->BitPosition = 1 +pp_data->cap[11]->BitSize = 1 +pp_data->cap[11]->ReportCount = 1 +pp_data->cap[11]->BytePosition = 0x0001 +pp_data->cap[11]->BitCount = 1 +pp_data->cap[11]->BitField = 0x22 +pp_data->cap[11]->NextBytePosition = 0x0002 +pp_data->cap[11]->LinkCollection = 0x0000 +pp_data->cap[11]->LinkUsagePage = 0xFFA0 +pp_data->cap[11]->LinkUsage = 0x0003 +pp_data->cap[11]->IsMultipleItemsForArray = 0 +pp_data->cap[11]->IsButtonCap = 1 +pp_data->cap[11]->IsPadding = 0 +pp_data->cap[11]->IsAbsolute = 1 +pp_data->cap[11]->IsRange = 0 +pp_data->cap[11]->IsAlias = 0 +pp_data->cap[11]->IsStringRange = 0 +pp_data->cap[11]->IsDesignatorRange = 0 +pp_data->cap[11]->Reserved1 = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[11]->NotRange.Usage = 0x008F +pp_data->cap[11]->NotRange.Reserved1 = 0x008F +pp_data->cap[11]->NotRange.StringIndex = 0 +pp_data->cap[11]->NotRange.Reserved2 = 0 +pp_data->cap[11]->NotRange.DesignatorIndex = 0 +pp_data->cap[11]->NotRange.Reserved3 = 0 +pp_data->cap[11]->NotRange.DataIndex = 3 +pp_data->cap[11]->NotRange.Reserved4 = 3 +pp_data->cap[11]->Button.LogicalMin = 0 +pp_data->cap[11]->Button.LogicalMax = 0 +pp_data->cap[11]->Units = 0 +pp_data->cap[11]->UnitsExp = 0 + +pp_data->cap[12]->UsagePage = 0xFFA0 +pp_data->cap[12]->ReportID = 0x19 +pp_data->cap[12]->BitPosition = 0 +pp_data->cap[12]->BitSize = 1 +pp_data->cap[12]->ReportCount = 1 +pp_data->cap[12]->BytePosition = 0x0001 +pp_data->cap[12]->BitCount = 1 +pp_data->cap[12]->BitField = 0x22 +pp_data->cap[12]->NextBytePosition = 0x0002 +pp_data->cap[12]->LinkCollection = 0x0000 +pp_data->cap[12]->LinkUsagePage = 0xFFA0 +pp_data->cap[12]->LinkUsage = 0x0003 +pp_data->cap[12]->IsMultipleItemsForArray = 0 +pp_data->cap[12]->IsButtonCap = 1 +pp_data->cap[12]->IsPadding = 0 +pp_data->cap[12]->IsAbsolute = 1 +pp_data->cap[12]->IsRange = 0 +pp_data->cap[12]->IsAlias = 0 +pp_data->cap[12]->IsStringRange = 0 +pp_data->cap[12]->IsDesignatorRange = 0 +pp_data->cap[12]->Reserved1 = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[12]->NotRange.Usage = 0x008D +pp_data->cap[12]->NotRange.Reserved1 = 0x008D +pp_data->cap[12]->NotRange.StringIndex = 0 +pp_data->cap[12]->NotRange.Reserved2 = 0 +pp_data->cap[12]->NotRange.DesignatorIndex = 0 +pp_data->cap[12]->NotRange.Reserved3 = 0 +pp_data->cap[12]->NotRange.DataIndex = 4 +pp_data->cap[12]->NotRange.Reserved4 = 4 +pp_data->cap[12]->Button.LogicalMin = 0 +pp_data->cap[12]->Button.LogicalMax = 0 +pp_data->cap[12]->Units = 0 +pp_data->cap[12]->UnitsExp = 0 + +pp_data->cap[13]->UsagePage = 0xFFA0 +pp_data->cap[13]->ReportID = 0x19 +pp_data->cap[13]->BitPosition = 5 +pp_data->cap[13]->BitSize = 1 +pp_data->cap[13]->ReportCount = 1 +pp_data->cap[13]->BytePosition = 0x0001 +pp_data->cap[13]->BitCount = 1 +pp_data->cap[13]->BitField = 0x06 +pp_data->cap[13]->NextBytePosition = 0x0002 +pp_data->cap[13]->LinkCollection = 0x0000 +pp_data->cap[13]->LinkUsagePage = 0xFFA0 +pp_data->cap[13]->LinkUsage = 0x0003 +pp_data->cap[13]->IsMultipleItemsForArray = 0 +pp_data->cap[13]->IsButtonCap = 1 +pp_data->cap[13]->IsPadding = 0 +pp_data->cap[13]->IsAbsolute = 0 +pp_data->cap[13]->IsRange = 0 +pp_data->cap[13]->IsAlias = 0 +pp_data->cap[13]->IsStringRange = 0 +pp_data->cap[13]->IsDesignatorRange = 0 +pp_data->cap[13]->Reserved1 = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[13]->NotRange.Usage = 0x00D9 +pp_data->cap[13]->NotRange.Reserved1 = 0x00D9 +pp_data->cap[13]->NotRange.StringIndex = 0 +pp_data->cap[13]->NotRange.Reserved2 = 0 +pp_data->cap[13]->NotRange.DesignatorIndex = 0 +pp_data->cap[13]->NotRange.Reserved3 = 0 +pp_data->cap[13]->NotRange.DataIndex = 5 +pp_data->cap[13]->NotRange.Reserved4 = 5 +pp_data->cap[13]->Button.LogicalMin = 0 +pp_data->cap[13]->Button.LogicalMax = 0 +pp_data->cap[13]->Units = 0 +pp_data->cap[13]->UnitsExp = 0 + +pp_data->cap[14]->UsagePage = 0xFFA0 +pp_data->cap[14]->ReportID = 0x19 +pp_data->cap[14]->BitPosition = 4 +pp_data->cap[14]->BitSize = 1 +pp_data->cap[14]->ReportCount = 1 +pp_data->cap[14]->BytePosition = 0x0001 +pp_data->cap[14]->BitCount = 1 +pp_data->cap[14]->BitField = 0x06 +pp_data->cap[14]->NextBytePosition = 0x0002 +pp_data->cap[14]->LinkCollection = 0x0000 +pp_data->cap[14]->LinkUsagePage = 0xFFA0 +pp_data->cap[14]->LinkUsage = 0x0003 +pp_data->cap[14]->IsMultipleItemsForArray = 0 +pp_data->cap[14]->IsButtonCap = 1 +pp_data->cap[14]->IsPadding = 0 +pp_data->cap[14]->IsAbsolute = 0 +pp_data->cap[14]->IsRange = 0 +pp_data->cap[14]->IsAlias = 0 +pp_data->cap[14]->IsStringRange = 0 +pp_data->cap[14]->IsDesignatorRange = 0 +pp_data->cap[14]->Reserved1 = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[14]->NotRange.Usage = 0x00D2 +pp_data->cap[14]->NotRange.Reserved1 = 0x00D2 +pp_data->cap[14]->NotRange.StringIndex = 0 +pp_data->cap[14]->NotRange.Reserved2 = 0 +pp_data->cap[14]->NotRange.DesignatorIndex = 0 +pp_data->cap[14]->NotRange.Reserved3 = 0 +pp_data->cap[14]->NotRange.DataIndex = 6 +pp_data->cap[14]->NotRange.Reserved4 = 6 +pp_data->cap[14]->Button.LogicalMin = 0 +pp_data->cap[14]->Button.LogicalMax = 0 +pp_data->cap[14]->Units = 0 +pp_data->cap[14]->UnitsExp = 0 + +pp_data->cap[15]->UsagePage = 0xFFA0 +pp_data->cap[15]->ReportID = 0x1A +pp_data->cap[15]->BitPosition = 0 +pp_data->cap[15]->BitSize = 1 +pp_data->cap[15]->ReportCount = 1 +pp_data->cap[15]->BytePosition = 0x0001 +pp_data->cap[15]->BitCount = 1 +pp_data->cap[15]->BitField = 0x22 +pp_data->cap[15]->NextBytePosition = 0x0002 +pp_data->cap[15]->LinkCollection = 0x0000 +pp_data->cap[15]->LinkUsagePage = 0xFFA0 +pp_data->cap[15]->LinkUsage = 0x0003 +pp_data->cap[15]->IsMultipleItemsForArray = 0 +pp_data->cap[15]->IsButtonCap = 1 +pp_data->cap[15]->IsPadding = 0 +pp_data->cap[15]->IsAbsolute = 1 +pp_data->cap[15]->IsRange = 0 +pp_data->cap[15]->IsAlias = 0 +pp_data->cap[15]->IsStringRange = 0 +pp_data->cap[15]->IsDesignatorRange = 0 +pp_data->cap[15]->Reserved1 = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[15]->NotRange.Usage = 0x00B5 +pp_data->cap[15]->NotRange.Reserved1 = 0x00B5 +pp_data->cap[15]->NotRange.StringIndex = 0 +pp_data->cap[15]->NotRange.Reserved2 = 0 +pp_data->cap[15]->NotRange.DesignatorIndex = 0 +pp_data->cap[15]->NotRange.Reserved3 = 0 +pp_data->cap[15]->NotRange.DataIndex = 7 +pp_data->cap[15]->NotRange.Reserved4 = 7 +pp_data->cap[15]->Button.LogicalMin = 0 +pp_data->cap[15]->Button.LogicalMax = 0 +pp_data->cap[15]->Units = 0 +pp_data->cap[15]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +pp_data->cap[16]->UsagePage = 0xFFA0 +pp_data->cap[16]->ReportID = 0x1B +pp_data->cap[16]->BitPosition = 1 +pp_data->cap[16]->BitSize = 1 +pp_data->cap[16]->ReportCount = 1 +pp_data->cap[16]->BytePosition = 0x0001 +pp_data->cap[16]->BitCount = 1 +pp_data->cap[16]->BitField = 0x22 +pp_data->cap[16]->NextBytePosition = 0x0002 +pp_data->cap[16]->LinkCollection = 0x0000 +pp_data->cap[16]->LinkUsagePage = 0xFFA0 +pp_data->cap[16]->LinkUsage = 0x0003 +pp_data->cap[16]->IsMultipleItemsForArray = 0 +pp_data->cap[16]->IsButtonCap = 1 +pp_data->cap[16]->IsPadding = 0 +pp_data->cap[16]->IsAbsolute = 1 +pp_data->cap[16]->IsRange = 0 +pp_data->cap[16]->IsAlias = 0 +pp_data->cap[16]->IsStringRange = 0 +pp_data->cap[16]->IsDesignatorRange = 0 +pp_data->cap[16]->Reserved1 = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[16]->NotRange.Usage = 0x00B5 +pp_data->cap[16]->NotRange.Reserved1 = 0x00B5 +pp_data->cap[16]->NotRange.StringIndex = 0 +pp_data->cap[16]->NotRange.Reserved2 = 0 +pp_data->cap[16]->NotRange.DesignatorIndex = 0 +pp_data->cap[16]->NotRange.Reserved3 = 0 +pp_data->cap[16]->NotRange.DataIndex = 0 +pp_data->cap[16]->NotRange.Reserved4 = 0 +pp_data->cap[16]->Button.LogicalMin = 0 +pp_data->cap[16]->Button.LogicalMax = 0 +pp_data->cap[16]->Units = 0 +pp_data->cap[16]->UnitsExp = 0 + +pp_data->cap[17]->UsagePage = 0xFFA0 +pp_data->cap[17]->ReportID = 0x1B +pp_data->cap[17]->BitPosition = 0 +pp_data->cap[17]->BitSize = 1 +pp_data->cap[17]->ReportCount = 1 +pp_data->cap[17]->BytePosition = 0x0001 +pp_data->cap[17]->BitCount = 1 +pp_data->cap[17]->BitField = 0x22 +pp_data->cap[17]->NextBytePosition = 0x0002 +pp_data->cap[17]->LinkCollection = 0x0000 +pp_data->cap[17]->LinkUsagePage = 0xFFA0 +pp_data->cap[17]->LinkUsage = 0x0003 +pp_data->cap[17]->IsMultipleItemsForArray = 0 +pp_data->cap[17]->IsButtonCap = 1 +pp_data->cap[17]->IsPadding = 0 +pp_data->cap[17]->IsAbsolute = 1 +pp_data->cap[17]->IsRange = 0 +pp_data->cap[17]->IsAlias = 0 +pp_data->cap[17]->IsStringRange = 0 +pp_data->cap[17]->IsDesignatorRange = 0 +pp_data->cap[17]->Reserved1 = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[17]->NotRange.Usage = 0x00CF +pp_data->cap[17]->NotRange.Reserved1 = 0x00CF +pp_data->cap[17]->NotRange.StringIndex = 0 +pp_data->cap[17]->NotRange.Reserved2 = 0 +pp_data->cap[17]->NotRange.DesignatorIndex = 0 +pp_data->cap[17]->NotRange.Reserved3 = 0 +pp_data->cap[17]->NotRange.DataIndex = 1 +pp_data->cap[17]->NotRange.Reserved4 = 1 +pp_data->cap[17]->Button.LogicalMin = 0 +pp_data->cap[17]->Button.LogicalMax = 0 +pp_data->cap[17]->Units = 0 +pp_data->cap[17]->UnitsExp = 0 + +pp_data->cap[18]->UsagePage = 0xFFA0 +pp_data->cap[18]->ReportID = 0x1B +pp_data->cap[18]->BitPosition = 2 +pp_data->cap[18]->BitSize = 1 +pp_data->cap[18]->ReportCount = 1 +pp_data->cap[18]->BytePosition = 0x0001 +pp_data->cap[18]->BitCount = 1 +pp_data->cap[18]->BitField = 0x23 +pp_data->cap[18]->NextBytePosition = 0x0002 +pp_data->cap[18]->LinkCollection = 0x0000 +pp_data->cap[18]->LinkUsagePage = 0xFFA0 +pp_data->cap[18]->LinkUsage = 0x0003 +pp_data->cap[18]->IsMultipleItemsForArray = 0 +pp_data->cap[18]->IsButtonCap = 1 +pp_data->cap[18]->IsPadding = 1 +pp_data->cap[18]->IsAbsolute = 1 +pp_data->cap[18]->IsRange = 0 +pp_data->cap[18]->IsAlias = 0 +pp_data->cap[18]->IsStringRange = 0 +pp_data->cap[18]->IsDesignatorRange = 0 +pp_data->cap[18]->Reserved1 = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[18]->NotRange.Usage = 0x00DE +pp_data->cap[18]->NotRange.Reserved1 = 0x00DE +pp_data->cap[18]->NotRange.StringIndex = 0 +pp_data->cap[18]->NotRange.Reserved2 = 0 +pp_data->cap[18]->NotRange.DesignatorIndex = 0 +pp_data->cap[18]->NotRange.Reserved3 = 0 +pp_data->cap[18]->NotRange.DataIndex = 2 +pp_data->cap[18]->NotRange.Reserved4 = 2 +pp_data->cap[18]->Button.LogicalMin = 0 +pp_data->cap[18]->Button.LogicalMax = 0 +pp_data->cap[18]->Units = 0 +pp_data->cap[18]->UnitsExp = 0 + +pp_data->cap[19]->UsagePage = 0xFFA0 +pp_data->cap[19]->ReportID = 0x1B +pp_data->cap[19]->BitPosition = 3 +pp_data->cap[19]->BitSize = 1 +pp_data->cap[19]->ReportCount = 1 +pp_data->cap[19]->BytePosition = 0x0001 +pp_data->cap[19]->BitCount = 1 +pp_data->cap[19]->BitField = 0x22 +pp_data->cap[19]->NextBytePosition = 0x0002 +pp_data->cap[19]->LinkCollection = 0x0000 +pp_data->cap[19]->LinkUsagePage = 0xFFA0 +pp_data->cap[19]->LinkUsage = 0x0003 +pp_data->cap[19]->IsMultipleItemsForArray = 0 +pp_data->cap[19]->IsButtonCap = 1 +pp_data->cap[19]->IsPadding = 0 +pp_data->cap[19]->IsAbsolute = 1 +pp_data->cap[19]->IsRange = 0 +pp_data->cap[19]->IsAlias = 0 +pp_data->cap[19]->IsStringRange = 0 +pp_data->cap[19]->IsDesignatorRange = 0 +pp_data->cap[19]->Reserved1 = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[19]->NotRange.Usage = 0x00D8 +pp_data->cap[19]->NotRange.Reserved1 = 0x00D8 +pp_data->cap[19]->NotRange.StringIndex = 0 +pp_data->cap[19]->NotRange.Reserved2 = 0 +pp_data->cap[19]->NotRange.DesignatorIndex = 0 +pp_data->cap[19]->NotRange.Reserved3 = 0 +pp_data->cap[19]->NotRange.DataIndex = 3 +pp_data->cap[19]->NotRange.Reserved4 = 3 +pp_data->cap[19]->Button.LogicalMin = 0 +pp_data->cap[19]->Button.LogicalMax = 0 +pp_data->cap[19]->Units = 0 +pp_data->cap[19]->UnitsExp = 0 + +pp_data->cap[20]->UsagePage = 0xFFA0 +pp_data->cap[20]->ReportID = 0x1B +pp_data->cap[20]->BitPosition = 5 +pp_data->cap[20]->BitSize = 1 +pp_data->cap[20]->ReportCount = 1 +pp_data->cap[20]->BytePosition = 0x0002 +pp_data->cap[20]->BitCount = 1 +pp_data->cap[20]->BitField = 0x22 +pp_data->cap[20]->NextBytePosition = 0x0003 +pp_data->cap[20]->LinkCollection = 0x0000 +pp_data->cap[20]->LinkUsagePage = 0xFFA0 +pp_data->cap[20]->LinkUsage = 0x0003 +pp_data->cap[20]->IsMultipleItemsForArray = 0 +pp_data->cap[20]->IsButtonCap = 1 +pp_data->cap[20]->IsPadding = 0 +pp_data->cap[20]->IsAbsolute = 1 +pp_data->cap[20]->IsRange = 0 +pp_data->cap[20]->IsAlias = 0 +pp_data->cap[20]->IsStringRange = 0 +pp_data->cap[20]->IsDesignatorRange = 0 +pp_data->cap[20]->Reserved1 = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[20]->NotRange.Usage = 0x002A +pp_data->cap[20]->NotRange.Reserved1 = 0x002A +pp_data->cap[20]->NotRange.StringIndex = 0 +pp_data->cap[20]->NotRange.Reserved2 = 0 +pp_data->cap[20]->NotRange.DesignatorIndex = 0 +pp_data->cap[20]->NotRange.Reserved3 = 0 +pp_data->cap[20]->NotRange.DataIndex = 4 +pp_data->cap[20]->NotRange.Reserved4 = 4 +pp_data->cap[20]->Button.LogicalMin = 0 +pp_data->cap[20]->Button.LogicalMax = 0 +pp_data->cap[20]->Units = 0 +pp_data->cap[20]->UnitsExp = 0 + +pp_data->cap[21]->UsagePage = 0xFFA0 +pp_data->cap[21]->ReportID = 0x1B +pp_data->cap[21]->BitPosition = 4 +pp_data->cap[21]->BitSize = 1 +pp_data->cap[21]->ReportCount = 1 +pp_data->cap[21]->BytePosition = 0x0002 +pp_data->cap[21]->BitCount = 1 +pp_data->cap[21]->BitField = 0x22 +pp_data->cap[21]->NextBytePosition = 0x0003 +pp_data->cap[21]->LinkCollection = 0x0000 +pp_data->cap[21]->LinkUsagePage = 0xFFA0 +pp_data->cap[21]->LinkUsage = 0x0003 +pp_data->cap[21]->IsMultipleItemsForArray = 0 +pp_data->cap[21]->IsButtonCap = 1 +pp_data->cap[21]->IsPadding = 0 +pp_data->cap[21]->IsAbsolute = 1 +pp_data->cap[21]->IsRange = 0 +pp_data->cap[21]->IsAlias = 0 +pp_data->cap[21]->IsStringRange = 0 +pp_data->cap[21]->IsDesignatorRange = 0 +pp_data->cap[21]->Reserved1 = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[21]->NotRange.Usage = 0x0020 +pp_data->cap[21]->NotRange.Reserved1 = 0x0020 +pp_data->cap[21]->NotRange.StringIndex = 0 +pp_data->cap[21]->NotRange.Reserved2 = 0 +pp_data->cap[21]->NotRange.DesignatorIndex = 0 +pp_data->cap[21]->NotRange.Reserved3 = 0 +pp_data->cap[21]->NotRange.DataIndex = 5 +pp_data->cap[21]->NotRange.Reserved4 = 5 +pp_data->cap[21]->Button.LogicalMin = 0 +pp_data->cap[21]->Button.LogicalMax = 0 +pp_data->cap[21]->Units = 0 +pp_data->cap[21]->UnitsExp = 0 + +pp_data->cap[22]->UsagePage = 0xFFA0 +pp_data->cap[22]->ReportID = 0x1B +pp_data->cap[22]->BitPosition = 3 +pp_data->cap[22]->BitSize = 1 +pp_data->cap[22]->ReportCount = 1 +pp_data->cap[22]->BytePosition = 0x0002 +pp_data->cap[22]->BitCount = 1 +pp_data->cap[22]->BitField = 0x22 +pp_data->cap[22]->NextBytePosition = 0x0003 +pp_data->cap[22]->LinkCollection = 0x0000 +pp_data->cap[22]->LinkUsagePage = 0xFFA0 +pp_data->cap[22]->LinkUsage = 0x0003 +pp_data->cap[22]->IsMultipleItemsForArray = 0 +pp_data->cap[22]->IsButtonCap = 1 +pp_data->cap[22]->IsPadding = 0 +pp_data->cap[22]->IsAbsolute = 1 +pp_data->cap[22]->IsRange = 0 +pp_data->cap[22]->IsAlias = 0 +pp_data->cap[22]->IsStringRange = 0 +pp_data->cap[22]->IsDesignatorRange = 0 +pp_data->cap[22]->Reserved1 = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[22]->NotRange.Usage = 0x001E +pp_data->cap[22]->NotRange.Reserved1 = 0x001E +pp_data->cap[22]->NotRange.StringIndex = 0 +pp_data->cap[22]->NotRange.Reserved2 = 0 +pp_data->cap[22]->NotRange.DesignatorIndex = 0 +pp_data->cap[22]->NotRange.Reserved3 = 0 +pp_data->cap[22]->NotRange.DataIndex = 6 +pp_data->cap[22]->NotRange.Reserved4 = 6 +pp_data->cap[22]->Button.LogicalMin = 0 +pp_data->cap[22]->Button.LogicalMax = 0 +pp_data->cap[22]->Units = 0 +pp_data->cap[22]->UnitsExp = 0 + +pp_data->cap[23]->UsagePage = 0xFFA0 +pp_data->cap[23]->ReportID = 0x1B +pp_data->cap[23]->BitPosition = 2 +pp_data->cap[23]->BitSize = 1 +pp_data->cap[23]->ReportCount = 1 +pp_data->cap[23]->BytePosition = 0x0002 +pp_data->cap[23]->BitCount = 1 +pp_data->cap[23]->BitField = 0x22 +pp_data->cap[23]->NextBytePosition = 0x0003 +pp_data->cap[23]->LinkCollection = 0x0000 +pp_data->cap[23]->LinkUsagePage = 0xFFA0 +pp_data->cap[23]->LinkUsage = 0x0003 +pp_data->cap[23]->IsMultipleItemsForArray = 0 +pp_data->cap[23]->IsButtonCap = 1 +pp_data->cap[23]->IsPadding = 0 +pp_data->cap[23]->IsAbsolute = 1 +pp_data->cap[23]->IsRange = 0 +pp_data->cap[23]->IsAlias = 0 +pp_data->cap[23]->IsStringRange = 0 +pp_data->cap[23]->IsDesignatorRange = 0 +pp_data->cap[23]->Reserved1 = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[23]->NotRange.Usage = 0x0018 +pp_data->cap[23]->NotRange.Reserved1 = 0x0018 +pp_data->cap[23]->NotRange.StringIndex = 0 +pp_data->cap[23]->NotRange.Reserved2 = 0 +pp_data->cap[23]->NotRange.DesignatorIndex = 0 +pp_data->cap[23]->NotRange.Reserved3 = 0 +pp_data->cap[23]->NotRange.DataIndex = 7 +pp_data->cap[23]->NotRange.Reserved4 = 7 +pp_data->cap[23]->Button.LogicalMin = 0 +pp_data->cap[23]->Button.LogicalMax = 0 +pp_data->cap[23]->Units = 0 +pp_data->cap[23]->UnitsExp = 0 + +pp_data->cap[24]->UsagePage = 0xFFA0 +pp_data->cap[24]->ReportID = 0x1B +pp_data->cap[24]->BitPosition = 1 +pp_data->cap[24]->BitSize = 1 +pp_data->cap[24]->ReportCount = 1 +pp_data->cap[24]->BytePosition = 0x0002 +pp_data->cap[24]->BitCount = 1 +pp_data->cap[24]->BitField = 0x22 +pp_data->cap[24]->NextBytePosition = 0x0003 +pp_data->cap[24]->LinkCollection = 0x0000 +pp_data->cap[24]->LinkUsagePage = 0xFFA0 +pp_data->cap[24]->LinkUsage = 0x0003 +pp_data->cap[24]->IsMultipleItemsForArray = 0 +pp_data->cap[24]->IsButtonCap = 1 +pp_data->cap[24]->IsPadding = 0 +pp_data->cap[24]->IsAbsolute = 1 +pp_data->cap[24]->IsRange = 0 +pp_data->cap[24]->IsAlias = 0 +pp_data->cap[24]->IsStringRange = 0 +pp_data->cap[24]->IsDesignatorRange = 0 +pp_data->cap[24]->Reserved1 = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[24]->NotRange.Usage = 0x0017 +pp_data->cap[24]->NotRange.Reserved1 = 0x0017 +pp_data->cap[24]->NotRange.StringIndex = 0 +pp_data->cap[24]->NotRange.Reserved2 = 0 +pp_data->cap[24]->NotRange.DesignatorIndex = 0 +pp_data->cap[24]->NotRange.Reserved3 = 0 +pp_data->cap[24]->NotRange.DataIndex = 8 +pp_data->cap[24]->NotRange.Reserved4 = 8 +pp_data->cap[24]->Button.LogicalMin = 0 +pp_data->cap[24]->Button.LogicalMax = 0 +pp_data->cap[24]->Units = 0 +pp_data->cap[24]->UnitsExp = 0 + +pp_data->cap[25]->UsagePage = 0xFFA0 +pp_data->cap[25]->ReportID = 0x1B +pp_data->cap[25]->BitPosition = 0 +pp_data->cap[25]->BitSize = 1 +pp_data->cap[25]->ReportCount = 1 +pp_data->cap[25]->BytePosition = 0x0002 +pp_data->cap[25]->BitCount = 1 +pp_data->cap[25]->BitField = 0x22 +pp_data->cap[25]->NextBytePosition = 0x0003 +pp_data->cap[25]->LinkCollection = 0x0000 +pp_data->cap[25]->LinkUsagePage = 0xFFA0 +pp_data->cap[25]->LinkUsage = 0x0003 +pp_data->cap[25]->IsMultipleItemsForArray = 0 +pp_data->cap[25]->IsButtonCap = 1 +pp_data->cap[25]->IsPadding = 0 +pp_data->cap[25]->IsAbsolute = 1 +pp_data->cap[25]->IsRange = 0 +pp_data->cap[25]->IsAlias = 0 +pp_data->cap[25]->IsStringRange = 0 +pp_data->cap[25]->IsDesignatorRange = 0 +pp_data->cap[25]->Reserved1 = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[25]->NotRange.Usage = 0x0009 +pp_data->cap[25]->NotRange.Reserved1 = 0x0009 +pp_data->cap[25]->NotRange.StringIndex = 0 +pp_data->cap[25]->NotRange.Reserved2 = 0 +pp_data->cap[25]->NotRange.DesignatorIndex = 0 +pp_data->cap[25]->NotRange.Reserved3 = 0 +pp_data->cap[25]->NotRange.DataIndex = 9 +pp_data->cap[25]->NotRange.Reserved4 = 9 +pp_data->cap[25]->Button.LogicalMin = 0 +pp_data->cap[25]->Button.LogicalMax = 0 +pp_data->cap[25]->Units = 0 +pp_data->cap[25]->UnitsExp = 0 + +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0003 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFFA0 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/047F_C056_0003_FFA0_expected.rpt_desc b/windows/test/data/047F_C056_0003_FFA0_expected.rpt_desc new file mode 100644 index 000000000..ef059c401 --- /dev/null +++ b/windows/test/data/047F_C056_0003_FFA0_expected.rpt_desc @@ -0,0 +1,24 @@ +0x06, 0xA0, 0xFF, 0x09, 0x03, 0xA1, 0x01, 0x85, 0x03, 0x09, +0x30, 0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x81, +0x02, 0x85, 0x14, 0x09, 0xB1, 0x09, 0xB2, 0x09, 0xB5, 0x09, +0xB7, 0x09, 0xB3, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, +0x05, 0x81, 0x06, 0x75, 0x03, 0x95, 0x01, 0x81, 0x03, 0x85, +0x15, 0x09, 0x8C, 0x15, 0x00, 0x27, 0xFF, 0xFF, 0x00, 0x00, +0x75, 0x10, 0x95, 0x01, 0x81, 0x22, 0x85, 0x1F, 0x09, 0x9C, +0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06, +0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x85, 0x03, 0x09, 0x30, +0x15, 0x00, 0x25, 0x01, 0x75, 0x08, 0x95, 0x20, 0x91, 0x02, +0x85, 0x19, 0x09, 0x8D, 0x09, 0x8F, 0x09, 0x9E, 0x09, 0xDC, +0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x04, 0x91, 0x22, +0x09, 0xD2, 0x09, 0xD9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, +0x95, 0x02, 0x91, 0x06, 0x75, 0x02, 0x95, 0x01, 0x91, 0x03, +0x85, 0x1A, 0x09, 0xB5, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, +0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, 0x91, 0x03, +0x85, 0x1B, 0x09, 0xCF, 0x09, 0xB5, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x02, 0xB1, 0x22, 0x09, 0xDE, 0x15, 0x00, +0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xB1, 0x23, 0x09, 0xD8, +0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xB1, 0x22, +0x75, 0x04, 0x95, 0x01, 0xB1, 0x03, 0x09, 0x09, 0x09, 0x17, +0x09, 0x18, 0x09, 0x1E, 0x09, 0x20, 0x09, 0x2A, 0x15, 0x00, +0x25, 0x01, 0x75, 0x01, 0x95, 0x06, 0xB1, 0x22, 0x75, 0x02, +0x95, 0x01, 0xB1, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/047F_C056_0003_FFA0_real.rpt_desc b/windows/test/data/047F_C056_0003_FFA0_real.rpt_desc new file mode 100644 index 000000000..7532fd12f --- /dev/null +++ b/windows/test/data/047F_C056_0003_FFA0_real.rpt_desc @@ -0,0 +1,113 @@ +macOS USB Prober about 0x047F/0xC056 "Plantronics Blackwire 3220 Series" +06 A0 FF 09 03 A1 01 85 03 09 30 75 +08 95 20 91 02 85 03 09 30 75 08 95 20 81 02 85 +14 09 B1 09 B2 09 B5 09 B7 09 B3 15 00 25 01 75 +01 95 05 81 06 95 03 81 01 85 15 09 8C 15 00 27 +FF FF 00 00 75 10 95 01 81 22 85 19 09 8D 09 8F +09 9E 09 DC 15 00 25 01 75 01 95 04 91 22 09 D2 +09 D9 15 00 25 01 75 01 95 02 91 06 95 02 91 01 +85 1A 09 B5 15 00 25 01 75 01 95 01 91 22 95 07 +91 01 85 1B 09 CF 09 B5 75 01 95 02 B1 22 09 DE +75 01 95 01 B1 23 09 D8 95 01 B1 22 95 04 B1 01 +09 09 09 17 09 18 09 1E 09 20 09 2A 75 01 95 06 +B1 22 95 02 B1 01 85 1F 09 9C 75 01 95 01 81 06 +95 07 81 01 C0 + +Parser output: +0x06, 0xA0, 0xFF, // Usage Page (Vendor Defined 0xFFA0) +0x09, 0x03, // Usage (0x03) +0xA1, 0x01, // Collection (Application) +0x85, 0x03, // Report ID (3) +0x09, 0x30, // Usage (0x30) +0x75, 0x08, // Report Size (8) +0x95, 0x20, // Report Count (32) +0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x03, // Report ID (3) +0x09, 0x30, // Usage (0x30) +0x75, 0x08, // Report Size (8) +0x95, 0x20, // Report Count (32) +0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x85, 0x14, // Report ID (20) +0x09, 0xB1, // Usage (0xB1) +0x09, 0xB2, // Usage (0xB2) +0x09, 0xB5, // Usage (0xB5) +0x09, 0xB7, // Usage (0xB7) +0x09, 0xB3, // Usage (0xB3) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x05, // Report Count (5) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x03, // Report Count (3) +0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x85, 0x15, // Report ID (21) +0x09, 0x8C, // Usage (0x8C) +0x15, 0x00, // Logical Minimum (0) +0x27, 0xFF, 0xFF, 0x00, 0x00, // Logical Maximum (65534) +0x75, 0x10, // Report Size (16) +0x95, 0x01, // Report Count (1) +0x81, 0x22, // Input (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position) +0x85, 0x19, // Report ID (25) +0x09, 0x8D, // Usage (0x8D) +0x09, 0x8F, // Usage (0x8F) +0x09, 0x9E, // Usage (0x9E) +0x09, 0xDC, // Usage (0xDC) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x04, // Report Count (4) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x09, 0xD2, // Usage (0xD2) +0x09, 0xD9, // Usage (0xD9) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x02, // Report Count (2) +0x91, 0x06, // Output (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x95, 0x02, // Report Count (2) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x1A, // Report ID (26) +0x09, 0xB5, // Usage (0xB5) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x75, 0x01, // Report Size (1) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x1B, // Report ID (27) +0x09, 0xCF, // Usage (0xCF) +0x09, 0xB5, // Usage (0xB5) +0x75, 0x01, // Report Size (1) +0x95, 0x02, // Report Count (2) +0xB1, 0x22, // Feature (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x09, 0xDE, // Usage (0xDE) +0x75, 0x01, // Report Size (1) +0x95, 0x01, // Report Count (1) +0xB1, 0x23, // Feature (Const,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x09, 0xD8, // Usage (0xD8) +0x95, 0x01, // Report Count (1) +0xB1, 0x22, // Feature (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x04, // Report Count (4) +0xB1, 0x01, // Feature (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x09, 0x09, // Usage (0x09) +0x09, 0x17, // Usage (0x17) +0x09, 0x18, // Usage (0x18) +0x09, 0x1E, // Usage (0x1E) +0x09, 0x20, // Usage (0x20) +0x09, 0x2A, // Usage (0x2A) +0x75, 0x01, // Report Size (1) +0x95, 0x06, // Report Count (6) +0xB1, 0x22, // Feature (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x02, // Report Count (2) +0xB1, 0x01, // Feature (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x1F, // Report ID (31) +0x09, 0x9C, // Usage (0x9C) +0x75, 0x01, // Report Size (1) +0x95, 0x01, // Report Count (1) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x95, 0x07, // Report Count (7) +0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0xC0, // End Collection + +// 193 bytes diff --git a/windows/test/data/047F_C056_0005_000B.pp_data b/windows/test/data/047F_C056_0005_000B.pp_data new file mode 100644 index 000000000..583c317e7 --- /dev/null +++ b/windows/test/data/047F_C056_0005_000B.pp_data @@ -0,0 +1,461 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x047F +dev->product_id = 0xC056 +dev->manufacturer_string = "Plantronics" +dev->product_string = "Plantronics Blackwire 3220 Series" +dev->release_number = 0x0210 +dev->interface_number = 3 +dev->usage = 0x0005 +dev->usage_page = 0x000B +dev->path = "\\?\hid#vid_047f&pid_c056&mi_03&col02#f&39e6f119&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0005 +pp_data->UsagePage = 0x000B +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 3 +pp_data->caps_info[0]->NumberOfCaps = 3 +pp_data->caps_info[0]->ReportByteLength = 2 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 3 +pp_data->caps_info[1]->LastCap = 9 +pp_data->caps_info[1]->NumberOfCaps = 6 +pp_data->caps_info[1]->ReportByteLength = 2 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 9 +pp_data->caps_info[2]->LastCap = 9 +pp_data->caps_info[2]->NumberOfCaps = 0 +pp_data->caps_info[2]->ReportByteLength = 0 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x03A8 +pp_data->NumberLinkCollectionNodes = 1 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0x000B +pp_data->cap[0]->ReportID = 0x08 +pp_data->cap[0]->BitPosition = 0 +pp_data->cap[0]->BitSize = 1 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0001 +pp_data->cap[0]->BitCount = 1 +pp_data->cap[0]->BitField = 0x06 +pp_data->cap[0]->NextBytePosition = 0x0002 +pp_data->cap[0]->LinkCollection = 0x0000 +pp_data->cap[0]->LinkUsagePage = 0x000B +pp_data->cap[0]->LinkUsage = 0x0005 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 1 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 0 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x002F +pp_data->cap[0]->NotRange.Reserved1 = 0x002F +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->Button.LogicalMin = 0 +pp_data->cap[0]->Button.LogicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0x000B +pp_data->cap[1]->ReportID = 0x08 +pp_data->cap[1]->BitPosition = 2 +pp_data->cap[1]->BitSize = 1 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0001 +pp_data->cap[1]->BitCount = 1 +pp_data->cap[1]->BitField = 0x22 +pp_data->cap[1]->NextBytePosition = 0x0002 +pp_data->cap[1]->LinkCollection = 0x0000 +pp_data->cap[1]->LinkUsagePage = 0x000B +pp_data->cap[1]->LinkUsage = 0x0005 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 1 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0021 +pp_data->cap[1]->NotRange.Reserved1 = 0x0021 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->Button.LogicalMin = 0 +pp_data->cap[1]->Button.LogicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0x000B +pp_data->cap[2]->ReportID = 0x08 +pp_data->cap[2]->BitPosition = 1 +pp_data->cap[2]->BitSize = 1 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 1 +pp_data->cap[2]->BitField = 0x22 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0000 +pp_data->cap[2]->LinkUsagePage = 0x000B +pp_data->cap[2]->LinkUsage = 0x0005 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 1 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0020 +pp_data->cap[2]->NotRange.Reserved1 = 0x0020 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->Button.LogicalMin = 0 +pp_data->cap[2]->Button.LogicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[3]->UsagePage = 0x0008 +pp_data->cap[3]->ReportID = 0x09 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 1 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0001 +pp_data->cap[3]->BitCount = 1 +pp_data->cap[3]->BitField = 0x22 +pp_data->cap[3]->NextBytePosition = 0x0002 +pp_data->cap[3]->LinkCollection = 0x0000 +pp_data->cap[3]->LinkUsagePage = 0x000B +pp_data->cap[3]->LinkUsage = 0x0005 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 1 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0009 +pp_data->cap[3]->NotRange.Reserved1 = 0x0009 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 0 +pp_data->cap[3]->NotRange.Reserved4 = 0 +pp_data->cap[3]->Button.LogicalMin = 0 +pp_data->cap[3]->Button.LogicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0x0008 +pp_data->cap[4]->ReportID = 0x17 +pp_data->cap[4]->BitPosition = 0 +pp_data->cap[4]->BitSize = 1 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0001 +pp_data->cap[4]->BitCount = 1 +pp_data->cap[4]->BitField = 0x22 +pp_data->cap[4]->NextBytePosition = 0x0002 +pp_data->cap[4]->LinkCollection = 0x0000 +pp_data->cap[4]->LinkUsagePage = 0x000B +pp_data->cap[4]->LinkUsage = 0x0005 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 1 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0017 +pp_data->cap[4]->NotRange.Reserved1 = 0x0017 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 1 +pp_data->cap[4]->NotRange.Reserved4 = 1 +pp_data->cap[4]->Button.LogicalMin = 0 +pp_data->cap[4]->Button.LogicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0x0008 +pp_data->cap[5]->ReportID = 0x18 +pp_data->cap[5]->BitPosition = 0 +pp_data->cap[5]->BitSize = 1 +pp_data->cap[5]->ReportCount = 1 +pp_data->cap[5]->BytePosition = 0x0001 +pp_data->cap[5]->BitCount = 1 +pp_data->cap[5]->BitField = 0x22 +pp_data->cap[5]->NextBytePosition = 0x0002 +pp_data->cap[5]->LinkCollection = 0x0000 +pp_data->cap[5]->LinkUsagePage = 0x000B +pp_data->cap[5]->LinkUsage = 0x0005 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 1 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 0 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->NotRange.Usage = 0x0018 +pp_data->cap[5]->NotRange.Reserved1 = 0x0018 +pp_data->cap[5]->NotRange.StringIndex = 0 +pp_data->cap[5]->NotRange.Reserved2 = 0 +pp_data->cap[5]->NotRange.DesignatorIndex = 0 +pp_data->cap[5]->NotRange.Reserved3 = 0 +pp_data->cap[5]->NotRange.DataIndex = 2 +pp_data->cap[5]->NotRange.Reserved4 = 2 +pp_data->cap[5]->Button.LogicalMin = 0 +pp_data->cap[5]->Button.LogicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0x0008 +pp_data->cap[6]->ReportID = 0x1E +pp_data->cap[6]->BitPosition = 0 +pp_data->cap[6]->BitSize = 1 +pp_data->cap[6]->ReportCount = 1 +pp_data->cap[6]->BytePosition = 0x0001 +pp_data->cap[6]->BitCount = 1 +pp_data->cap[6]->BitField = 0x22 +pp_data->cap[6]->NextBytePosition = 0x0002 +pp_data->cap[6]->LinkCollection = 0x0000 +pp_data->cap[6]->LinkUsagePage = 0x000B +pp_data->cap[6]->LinkUsage = 0x0005 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 1 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x001E +pp_data->cap[6]->NotRange.Reserved1 = 0x001E +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 3 +pp_data->cap[6]->NotRange.Reserved4 = 3 +pp_data->cap[6]->Button.LogicalMin = 0 +pp_data->cap[6]->Button.LogicalMax = 0 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +pp_data->cap[7]->UsagePage = 0x0008 +pp_data->cap[7]->ReportID = 0x20 +pp_data->cap[7]->BitPosition = 0 +pp_data->cap[7]->BitSize = 1 +pp_data->cap[7]->ReportCount = 1 +pp_data->cap[7]->BytePosition = 0x0001 +pp_data->cap[7]->BitCount = 1 +pp_data->cap[7]->BitField = 0x22 +pp_data->cap[7]->NextBytePosition = 0x0002 +pp_data->cap[7]->LinkCollection = 0x0000 +pp_data->cap[7]->LinkUsagePage = 0x000B +pp_data->cap[7]->LinkUsage = 0x0005 +pp_data->cap[7]->IsMultipleItemsForArray = 0 +pp_data->cap[7]->IsButtonCap = 1 +pp_data->cap[7]->IsPadding = 0 +pp_data->cap[7]->IsAbsolute = 1 +pp_data->cap[7]->IsRange = 0 +pp_data->cap[7]->IsAlias = 0 +pp_data->cap[7]->IsStringRange = 0 +pp_data->cap[7]->IsDesignatorRange = 0 +pp_data->cap[7]->Reserved1 = 0x000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[7]->NotRange.Usage = 0x0020 +pp_data->cap[7]->NotRange.Reserved1 = 0x0020 +pp_data->cap[7]->NotRange.StringIndex = 0 +pp_data->cap[7]->NotRange.Reserved2 = 0 +pp_data->cap[7]->NotRange.DesignatorIndex = 0 +pp_data->cap[7]->NotRange.Reserved3 = 0 +pp_data->cap[7]->NotRange.DataIndex = 4 +pp_data->cap[7]->NotRange.Reserved4 = 4 +pp_data->cap[7]->Button.LogicalMin = 0 +pp_data->cap[7]->Button.LogicalMax = 0 +pp_data->cap[7]->Units = 0 +pp_data->cap[7]->UnitsExp = 0 + +pp_data->cap[8]->UsagePage = 0x0008 +pp_data->cap[8]->ReportID = 0x2A +pp_data->cap[8]->BitPosition = 0 +pp_data->cap[8]->BitSize = 1 +pp_data->cap[8]->ReportCount = 1 +pp_data->cap[8]->BytePosition = 0x0001 +pp_data->cap[8]->BitCount = 1 +pp_data->cap[8]->BitField = 0x22 +pp_data->cap[8]->NextBytePosition = 0x0002 +pp_data->cap[8]->LinkCollection = 0x0000 +pp_data->cap[8]->LinkUsagePage = 0x000B +pp_data->cap[8]->LinkUsage = 0x0005 +pp_data->cap[8]->IsMultipleItemsForArray = 0 +pp_data->cap[8]->IsButtonCap = 1 +pp_data->cap[8]->IsPadding = 0 +pp_data->cap[8]->IsAbsolute = 1 +pp_data->cap[8]->IsRange = 0 +pp_data->cap[8]->IsAlias = 0 +pp_data->cap[8]->IsStringRange = 0 +pp_data->cap[8]->IsDesignatorRange = 0 +pp_data->cap[8]->Reserved1 = 0x000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[8]->NotRange.Usage = 0x002A +pp_data->cap[8]->NotRange.Reserved1 = 0x002A +pp_data->cap[8]->NotRange.StringIndex = 0 +pp_data->cap[8]->NotRange.Reserved2 = 0 +pp_data->cap[8]->NotRange.DesignatorIndex = 0 +pp_data->cap[8]->NotRange.Reserved3 = 0 +pp_data->cap[8]->NotRange.DataIndex = 5 +pp_data->cap[8]->NotRange.Reserved4 = 5 +pp_data->cap[8]->Button.LogicalMin = 0 +pp_data->cap[8]->Button.LogicalMax = 0 +pp_data->cap[8]->Units = 0 +pp_data->cap[8]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0005 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0x000B +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 0 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 diff --git a/windows/test/data/047F_C056_0005_000B_expected.rpt_desc b/windows/test/data/047F_C056_0005_000B_expected.rpt_desc new file mode 100644 index 000000000..40962ac65 --- /dev/null +++ b/windows/test/data/047F_C056_0005_000B_expected.rpt_desc @@ -0,0 +1,17 @@ +0x05, 0x0B, 0x09, 0x05, 0xA1, 0x01, 0x85, 0x08, 0x09, 0x2F, +0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06, +0x09, 0x20, 0x09, 0x21, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, +0x95, 0x02, 0x81, 0x22, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03, +0x85, 0x09, 0x05, 0x08, 0x09, 0x09, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0x85, 0x17, 0x09, 0x17, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0x85, 0x18, 0x09, 0x18, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0x85, 0x1E, 0x09, 0x1E, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0x85, 0x20, 0x09, 0x20, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0x85, 0x2A, 0x09, 0x2A, 0x15, 0x00, 0x25, 0x01, +0x75, 0x01, 0x95, 0x01, 0x91, 0x22, 0x75, 0x07, 0x95, 0x01, +0x91, 0x03, 0xC0, \ No newline at end of file diff --git a/windows/test/data/047F_C056_0005_000B_real.rpt_desc b/windows/test/data/047F_C056_0005_000B_real.rpt_desc new file mode 100644 index 000000000..2fe387ea3 --- /dev/null +++ b/windows/test/data/047F_C056_0005_000B_real.rpt_desc @@ -0,0 +1,68 @@ +macOS USB Prober about 0x047F/0xC056 "Plantronics Blackwire 3220 Series" +05 0B 09 05 A1 01 85 08 15 +00 25 01 09 2F 75 01 95 01 81 06 09 20 09 21 75 +01 95 02 81 22 95 05 81 01 05 08 85 09 09 09 95 +01 91 22 95 07 91 01 85 17 09 17 95 01 91 22 95 +07 91 01 85 18 09 18 95 01 91 22 95 07 91 01 85 +1E 09 1E 95 01 91 22 95 07 91 01 85 20 09 20 95 +01 91 22 95 07 91 01 85 2A 09 2A 95 01 91 22 95 +07 91 01 C0 + +Parser output: +0x05, 0x0B, // Usage Page (Telephony) +0x09, 0x05, // Usage (Headset) +0xA1, 0x01, // Collection (Application) +0x85, 0x08, // Report ID (8) +0x15, 0x00, // Logical Minimum (0) +0x25, 0x01, // Logical Maximum (1) +0x09, 0x2F, // Usage (Phone Mute) +0x75, 0x01, // Report Size (1) +0x95, 0x01, // Report Count (1) +0x81, 0x06, // Input (Data,Var,Rel,No Wrap,Linear,Preferred State,No Null Position) +0x09, 0x20, // Usage (Hook Switch) +0x09, 0x21, // Usage (Flash) +0x75, 0x01, // Report Size (1) +0x95, 0x02, // Report Count (2) +0x81, 0x22, // Input (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position) +0x95, 0x05, // Report Count (5) +0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) +0x05, 0x08, // Usage Page (LEDs) +0x85, 0x09, // Report ID (9) +0x09, 0x09, // Usage (Mute) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x17, // Report ID (23) +0x09, 0x17, // Usage (Off-Hook) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x18, // Report ID (24) +0x09, 0x18, // Usage (Ring) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x1E, // Report ID (30) +0x09, 0x1E, // Usage (Speaker) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x20, // Report ID (32) +0x09, 0x20, // Usage (Hold) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0x85, 0x2A, // Report ID (42) +0x09, 0x2A, // Usage (On-Line) +0x95, 0x01, // Report Count (1) +0x91, 0x22, // Output (Data,Var,Abs,No Wrap,Linear,No Preferred State,No Null Position,Non-volatile) +0x95, 0x07, // Report Count (7) +0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) +0xC0, // End Collection + +// 109 bytes diff --git a/windows/test/data/17CC_1130_0000_FF01.pp_data b/windows/test/data/17CC_1130_0000_FF01.pp_data new file mode 100644 index 000000000..acab8a6e7 --- /dev/null +++ b/windows/test/data/17CC_1130_0000_FF01.pp_data @@ -0,0 +1,11508 @@ +# HIDAPI device info struct: +dev->vendor_id = 0x17CC +dev->product_id = 0x1130 +dev->manufacturer_string = "Native Instruments" +dev->product_string = "Traktor Kontrol Z2" +dev->release_number = 0x0033 +dev->interface_number = 4 +dev->usage = 0x0000 +dev->usage_page = 0xFF01 +dev->path = "\\?\hid#vid_17cc&pid_1130&mi_04#9&11d406cd&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}" + +# Preparsed Data struct: +pp_data->MagicKey = 0x48696450204B4452 +pp_data->Usage = 0x0000 +pp_data->UsagePage = 0xFF01 +pp_data->Reserved = 0x00000000 +# Input caps_info struct: +pp_data->caps_info[0]->FirstCap = 0 +pp_data->caps_info[0]->LastCap = 86 +pp_data->caps_info[0]->NumberOfCaps = 87 +pp_data->caps_info[0]->ReportByteLength = 53 +# Output caps_info struct: +pp_data->caps_info[1]->FirstCap = 87 +pp_data->caps_info[1]->LastCap = 221 +pp_data->caps_info[1]->NumberOfCaps = 134 +pp_data->caps_info[1]->ReportByteLength = 95 +# Feature caps_info struct: +pp_data->caps_info[2]->FirstCap = 221 +pp_data->caps_info[2]->LastCap = 232 +pp_data->caps_info[2]->NumberOfCaps = 11 +pp_data->caps_info[2]->ReportByteLength = 33 +# LinkCollectionArray Offset & Size: +pp_data->FirstByteOfLinkCollectionArray = 0x5E40 +pp_data->NumberLinkCollectionNodes = 16 +# Input hid_pp_cap struct: +pp_data->cap[0]->UsagePage = 0xFF01 +pp_data->cap[0]->ReportID = 0x01 +pp_data->cap[0]->BitPosition = 4 +pp_data->cap[0]->BitSize = 4 +pp_data->cap[0]->ReportCount = 1 +pp_data->cap[0]->BytePosition = 0x0002 +pp_data->cap[0]->BitCount = 4 +pp_data->cap[0]->BitField = 0x02 +pp_data->cap[0]->NextBytePosition = 0x0003 +pp_data->cap[0]->LinkCollection = 0x0001 +pp_data->cap[0]->LinkUsagePage = 0xFF01 +pp_data->cap[0]->LinkUsage = 0x0001 +pp_data->cap[0]->IsMultipleItemsForArray = 0 +pp_data->cap[0]->IsButtonCap = 0 +pp_data->cap[0]->IsPadding = 0 +pp_data->cap[0]->IsAbsolute = 1 +pp_data->cap[0]->IsRange = 0 +pp_data->cap[0]->IsAlias = 0 +pp_data->cap[0]->IsStringRange = 0 +pp_data->cap[0]->IsDesignatorRange = 0 +pp_data->cap[0]->Reserved1 = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[0]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[0]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[0]->NotRange.Usage = 0x0003 +pp_data->cap[0]->NotRange.Reserved1 = 0x0003 +pp_data->cap[0]->NotRange.StringIndex = 0 +pp_data->cap[0]->NotRange.Reserved2 = 0 +pp_data->cap[0]->NotRange.DesignatorIndex = 0 +pp_data->cap[0]->NotRange.Reserved3 = 0 +pp_data->cap[0]->NotRange.DataIndex = 0 +pp_data->cap[0]->NotRange.Reserved4 = 0 +pp_data->cap[0]->NotButton.HasNull = 0 +pp_data->cap[0]->NotButton.Reserved4 = 0x000000 +pp_data->cap[0]->NotButton.LogicalMin = 0 +pp_data->cap[0]->NotButton.LogicalMax = 15 +pp_data->cap[0]->NotButton.PhysicalMin = 0 +pp_data->cap[0]->NotButton.PhysicalMax = 0 +pp_data->cap[0]->Units = 0 +pp_data->cap[0]->UnitsExp = 0 + +pp_data->cap[1]->UsagePage = 0xFF01 +pp_data->cap[1]->ReportID = 0x01 +pp_data->cap[1]->BitPosition = 0 +pp_data->cap[1]->BitSize = 4 +pp_data->cap[1]->ReportCount = 1 +pp_data->cap[1]->BytePosition = 0x0002 +pp_data->cap[1]->BitCount = 4 +pp_data->cap[1]->BitField = 0x02 +pp_data->cap[1]->NextBytePosition = 0x0003 +pp_data->cap[1]->LinkCollection = 0x0001 +pp_data->cap[1]->LinkUsagePage = 0xFF01 +pp_data->cap[1]->LinkUsage = 0x0001 +pp_data->cap[1]->IsMultipleItemsForArray = 0 +pp_data->cap[1]->IsButtonCap = 0 +pp_data->cap[1]->IsPadding = 0 +pp_data->cap[1]->IsAbsolute = 1 +pp_data->cap[1]->IsRange = 0 +pp_data->cap[1]->IsAlias = 0 +pp_data->cap[1]->IsStringRange = 0 +pp_data->cap[1]->IsDesignatorRange = 0 +pp_data->cap[1]->Reserved1 = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[1]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[1]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[1]->NotRange.Usage = 0x0003 +pp_data->cap[1]->NotRange.Reserved1 = 0x0003 +pp_data->cap[1]->NotRange.StringIndex = 0 +pp_data->cap[1]->NotRange.Reserved2 = 0 +pp_data->cap[1]->NotRange.DesignatorIndex = 0 +pp_data->cap[1]->NotRange.Reserved3 = 0 +pp_data->cap[1]->NotRange.DataIndex = 1 +pp_data->cap[1]->NotRange.Reserved4 = 1 +pp_data->cap[1]->NotButton.HasNull = 0 +pp_data->cap[1]->NotButton.Reserved4 = 0x000000 +pp_data->cap[1]->NotButton.LogicalMin = 0 +pp_data->cap[1]->NotButton.LogicalMax = 15 +pp_data->cap[1]->NotButton.PhysicalMin = 0 +pp_data->cap[1]->NotButton.PhysicalMax = 0 +pp_data->cap[1]->Units = 0 +pp_data->cap[1]->UnitsExp = 0 + +pp_data->cap[2]->UsagePage = 0xFF01 +pp_data->cap[2]->ReportID = 0x01 +pp_data->cap[2]->BitPosition = 4 +pp_data->cap[2]->BitSize = 4 +pp_data->cap[2]->ReportCount = 1 +pp_data->cap[2]->BytePosition = 0x0001 +pp_data->cap[2]->BitCount = 4 +pp_data->cap[2]->BitField = 0x02 +pp_data->cap[2]->NextBytePosition = 0x0002 +pp_data->cap[2]->LinkCollection = 0x0001 +pp_data->cap[2]->LinkUsagePage = 0xFF01 +pp_data->cap[2]->LinkUsage = 0x0001 +pp_data->cap[2]->IsMultipleItemsForArray = 0 +pp_data->cap[2]->IsButtonCap = 0 +pp_data->cap[2]->IsPadding = 0 +pp_data->cap[2]->IsAbsolute = 1 +pp_data->cap[2]->IsRange = 0 +pp_data->cap[2]->IsAlias = 0 +pp_data->cap[2]->IsStringRange = 0 +pp_data->cap[2]->IsDesignatorRange = 0 +pp_data->cap[2]->Reserved1 = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[2]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[2]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[2]->NotRange.Usage = 0x0003 +pp_data->cap[2]->NotRange.Reserved1 = 0x0003 +pp_data->cap[2]->NotRange.StringIndex = 0 +pp_data->cap[2]->NotRange.Reserved2 = 0 +pp_data->cap[2]->NotRange.DesignatorIndex = 0 +pp_data->cap[2]->NotRange.Reserved3 = 0 +pp_data->cap[2]->NotRange.DataIndex = 2 +pp_data->cap[2]->NotRange.Reserved4 = 2 +pp_data->cap[2]->NotButton.HasNull = 0 +pp_data->cap[2]->NotButton.Reserved4 = 0x000000 +pp_data->cap[2]->NotButton.LogicalMin = 0 +pp_data->cap[2]->NotButton.LogicalMax = 15 +pp_data->cap[2]->NotButton.PhysicalMin = 0 +pp_data->cap[2]->NotButton.PhysicalMax = 0 +pp_data->cap[2]->Units = 0 +pp_data->cap[2]->UnitsExp = 0 + +pp_data->cap[3]->UsagePage = 0xFF01 +pp_data->cap[3]->ReportID = 0x01 +pp_data->cap[3]->BitPosition = 0 +pp_data->cap[3]->BitSize = 4 +pp_data->cap[3]->ReportCount = 1 +pp_data->cap[3]->BytePosition = 0x0001 +pp_data->cap[3]->BitCount = 4 +pp_data->cap[3]->BitField = 0x02 +pp_data->cap[3]->NextBytePosition = 0x0002 +pp_data->cap[3]->LinkCollection = 0x0001 +pp_data->cap[3]->LinkUsagePage = 0xFF01 +pp_data->cap[3]->LinkUsage = 0x0001 +pp_data->cap[3]->IsMultipleItemsForArray = 0 +pp_data->cap[3]->IsButtonCap = 0 +pp_data->cap[3]->IsPadding = 0 +pp_data->cap[3]->IsAbsolute = 1 +pp_data->cap[3]->IsRange = 0 +pp_data->cap[3]->IsAlias = 0 +pp_data->cap[3]->IsStringRange = 0 +pp_data->cap[3]->IsDesignatorRange = 0 +pp_data->cap[3]->Reserved1 = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[3]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[3]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[3]->NotRange.Usage = 0x0003 +pp_data->cap[3]->NotRange.Reserved1 = 0x0003 +pp_data->cap[3]->NotRange.StringIndex = 0 +pp_data->cap[3]->NotRange.Reserved2 = 0 +pp_data->cap[3]->NotRange.DesignatorIndex = 0 +pp_data->cap[3]->NotRange.Reserved3 = 0 +pp_data->cap[3]->NotRange.DataIndex = 3 +pp_data->cap[3]->NotRange.Reserved4 = 3 +pp_data->cap[3]->NotButton.HasNull = 0 +pp_data->cap[3]->NotButton.Reserved4 = 0x000000 +pp_data->cap[3]->NotButton.LogicalMin = 0 +pp_data->cap[3]->NotButton.LogicalMax = 15 +pp_data->cap[3]->NotButton.PhysicalMin = 0 +pp_data->cap[3]->NotButton.PhysicalMax = 0 +pp_data->cap[3]->Units = 0 +pp_data->cap[3]->UnitsExp = 0 + +pp_data->cap[4]->UsagePage = 0xFF01 +pp_data->cap[4]->ReportID = 0x01 +pp_data->cap[4]->BitPosition = 7 +pp_data->cap[4]->BitSize = 1 +pp_data->cap[4]->ReportCount = 1 +pp_data->cap[4]->BytePosition = 0x0008 +pp_data->cap[4]->BitCount = 1 +pp_data->cap[4]->BitField = 0x02 +pp_data->cap[4]->NextBytePosition = 0x0009 +pp_data->cap[4]->LinkCollection = 0x0001 +pp_data->cap[4]->LinkUsagePage = 0xFF01 +pp_data->cap[4]->LinkUsage = 0x0001 +pp_data->cap[4]->IsMultipleItemsForArray = 0 +pp_data->cap[4]->IsButtonCap = 1 +pp_data->cap[4]->IsPadding = 0 +pp_data->cap[4]->IsAbsolute = 1 +pp_data->cap[4]->IsRange = 0 +pp_data->cap[4]->IsAlias = 0 +pp_data->cap[4]->IsStringRange = 0 +pp_data->cap[4]->IsDesignatorRange = 0 +pp_data->cap[4]->Reserved1 = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[4]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[4]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[4]->NotRange.Usage = 0x0002 +pp_data->cap[4]->NotRange.Reserved1 = 0x0002 +pp_data->cap[4]->NotRange.StringIndex = 0 +pp_data->cap[4]->NotRange.Reserved2 = 0 +pp_data->cap[4]->NotRange.DesignatorIndex = 0 +pp_data->cap[4]->NotRange.Reserved3 = 0 +pp_data->cap[4]->NotRange.DataIndex = 4 +pp_data->cap[4]->NotRange.Reserved4 = 4 +pp_data->cap[4]->Button.LogicalMin = 0 +pp_data->cap[4]->Button.LogicalMax = 0 +pp_data->cap[4]->Units = 0 +pp_data->cap[4]->UnitsExp = 0 + +pp_data->cap[5]->UsagePage = 0xFF01 +pp_data->cap[5]->ReportID = 0x01 +pp_data->cap[5]->BitPosition = 6 +pp_data->cap[5]->BitSize = 1 +pp_data->cap[5]->ReportCount = 1 +pp_data->cap[5]->BytePosition = 0x0008 +pp_data->cap[5]->BitCount = 1 +pp_data->cap[5]->BitField = 0x02 +pp_data->cap[5]->NextBytePosition = 0x0009 +pp_data->cap[5]->LinkCollection = 0x0001 +pp_data->cap[5]->LinkUsagePage = 0xFF01 +pp_data->cap[5]->LinkUsage = 0x0001 +pp_data->cap[5]->IsMultipleItemsForArray = 0 +pp_data->cap[5]->IsButtonCap = 1 +pp_data->cap[5]->IsPadding = 0 +pp_data->cap[5]->IsAbsolute = 1 +pp_data->cap[5]->IsRange = 0 +pp_data->cap[5]->IsAlias = 0 +pp_data->cap[5]->IsStringRange = 0 +pp_data->cap[5]->IsDesignatorRange = 0 +pp_data->cap[5]->Reserved1 = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[5]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[5]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[5]->NotRange.Usage = 0x0002 +pp_data->cap[5]->NotRange.Reserved1 = 0x0002 +pp_data->cap[5]->NotRange.StringIndex = 0 +pp_data->cap[5]->NotRange.Reserved2 = 0 +pp_data->cap[5]->NotRange.DesignatorIndex = 0 +pp_data->cap[5]->NotRange.Reserved3 = 0 +pp_data->cap[5]->NotRange.DataIndex = 5 +pp_data->cap[5]->NotRange.Reserved4 = 5 +pp_data->cap[5]->Button.LogicalMin = 0 +pp_data->cap[5]->Button.LogicalMax = 0 +pp_data->cap[5]->Units = 0 +pp_data->cap[5]->UnitsExp = 0 + +pp_data->cap[6]->UsagePage = 0xFF01 +pp_data->cap[6]->ReportID = 0x01 +pp_data->cap[6]->BitPosition = 5 +pp_data->cap[6]->BitSize = 1 +pp_data->cap[6]->ReportCount = 1 +pp_data->cap[6]->BytePosition = 0x0008 +pp_data->cap[6]->BitCount = 1 +pp_data->cap[6]->BitField = 0x02 +pp_data->cap[6]->NextBytePosition = 0x0009 +pp_data->cap[6]->LinkCollection = 0x0001 +pp_data->cap[6]->LinkUsagePage = 0xFF01 +pp_data->cap[6]->LinkUsage = 0x0001 +pp_data->cap[6]->IsMultipleItemsForArray = 0 +pp_data->cap[6]->IsButtonCap = 1 +pp_data->cap[6]->IsPadding = 0 +pp_data->cap[6]->IsAbsolute = 1 +pp_data->cap[6]->IsRange = 0 +pp_data->cap[6]->IsAlias = 0 +pp_data->cap[6]->IsStringRange = 0 +pp_data->cap[6]->IsDesignatorRange = 0 +pp_data->cap[6]->Reserved1 = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[6]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[6]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[6]->NotRange.Usage = 0x0002 +pp_data->cap[6]->NotRange.Reserved1 = 0x0002 +pp_data->cap[6]->NotRange.StringIndex = 0 +pp_data->cap[6]->NotRange.Reserved2 = 0 +pp_data->cap[6]->NotRange.DesignatorIndex = 0 +pp_data->cap[6]->NotRange.Reserved3 = 0 +pp_data->cap[6]->NotRange.DataIndex = 6 +pp_data->cap[6]->NotRange.Reserved4 = 6 +pp_data->cap[6]->Button.LogicalMin = 0 +pp_data->cap[6]->Button.LogicalMax = 0 +pp_data->cap[6]->Units = 0 +pp_data->cap[6]->UnitsExp = 0 + +pp_data->cap[7]->UsagePage = 0xFF01 +pp_data->cap[7]->ReportID = 0x01 +pp_data->cap[7]->BitPosition = 4 +pp_data->cap[7]->BitSize = 1 +pp_data->cap[7]->ReportCount = 1 +pp_data->cap[7]->BytePosition = 0x0008 +pp_data->cap[7]->BitCount = 1 +pp_data->cap[7]->BitField = 0x02 +pp_data->cap[7]->NextBytePosition = 0x0009 +pp_data->cap[7]->LinkCollection = 0x0001 +pp_data->cap[7]->LinkUsagePage = 0xFF01 +pp_data->cap[7]->LinkUsage = 0x0001 +pp_data->cap[7]->IsMultipleItemsForArray = 0 +pp_data->cap[7]->IsButtonCap = 1 +pp_data->cap[7]->IsPadding = 0 +pp_data->cap[7]->IsAbsolute = 1 +pp_data->cap[7]->IsRange = 0 +pp_data->cap[7]->IsAlias = 0 +pp_data->cap[7]->IsStringRange = 0 +pp_data->cap[7]->IsDesignatorRange = 0 +pp_data->cap[7]->Reserved1 = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[7]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[7]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[7]->NotRange.Usage = 0x0002 +pp_data->cap[7]->NotRange.Reserved1 = 0x0002 +pp_data->cap[7]->NotRange.StringIndex = 0 +pp_data->cap[7]->NotRange.Reserved2 = 0 +pp_data->cap[7]->NotRange.DesignatorIndex = 0 +pp_data->cap[7]->NotRange.Reserved3 = 0 +pp_data->cap[7]->NotRange.DataIndex = 7 +pp_data->cap[7]->NotRange.Reserved4 = 7 +pp_data->cap[7]->Button.LogicalMin = 0 +pp_data->cap[7]->Button.LogicalMax = 0 +pp_data->cap[7]->Units = 0 +pp_data->cap[7]->UnitsExp = 0 + +pp_data->cap[8]->UsagePage = 0xFF01 +pp_data->cap[8]->ReportID = 0x01 +pp_data->cap[8]->BitPosition = 3 +pp_data->cap[8]->BitSize = 1 +pp_data->cap[8]->ReportCount = 1 +pp_data->cap[8]->BytePosition = 0x0008 +pp_data->cap[8]->BitCount = 1 +pp_data->cap[8]->BitField = 0x02 +pp_data->cap[8]->NextBytePosition = 0x0009 +pp_data->cap[8]->LinkCollection = 0x0001 +pp_data->cap[8]->LinkUsagePage = 0xFF01 +pp_data->cap[8]->LinkUsage = 0x0001 +pp_data->cap[8]->IsMultipleItemsForArray = 0 +pp_data->cap[8]->IsButtonCap = 1 +pp_data->cap[8]->IsPadding = 0 +pp_data->cap[8]->IsAbsolute = 1 +pp_data->cap[8]->IsRange = 0 +pp_data->cap[8]->IsAlias = 0 +pp_data->cap[8]->IsStringRange = 0 +pp_data->cap[8]->IsDesignatorRange = 0 +pp_data->cap[8]->Reserved1 = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[8]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[8]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[8]->NotRange.Usage = 0x0002 +pp_data->cap[8]->NotRange.Reserved1 = 0x0002 +pp_data->cap[8]->NotRange.StringIndex = 0 +pp_data->cap[8]->NotRange.Reserved2 = 0 +pp_data->cap[8]->NotRange.DesignatorIndex = 0 +pp_data->cap[8]->NotRange.Reserved3 = 0 +pp_data->cap[8]->NotRange.DataIndex = 8 +pp_data->cap[8]->NotRange.Reserved4 = 8 +pp_data->cap[8]->Button.LogicalMin = 0 +pp_data->cap[8]->Button.LogicalMax = 0 +pp_data->cap[8]->Units = 0 +pp_data->cap[8]->UnitsExp = 0 + +pp_data->cap[9]->UsagePage = 0xFF01 +pp_data->cap[9]->ReportID = 0x01 +pp_data->cap[9]->BitPosition = 2 +pp_data->cap[9]->BitSize = 1 +pp_data->cap[9]->ReportCount = 1 +pp_data->cap[9]->BytePosition = 0x0008 +pp_data->cap[9]->BitCount = 1 +pp_data->cap[9]->BitField = 0x02 +pp_data->cap[9]->NextBytePosition = 0x0009 +pp_data->cap[9]->LinkCollection = 0x0001 +pp_data->cap[9]->LinkUsagePage = 0xFF01 +pp_data->cap[9]->LinkUsage = 0x0001 +pp_data->cap[9]->IsMultipleItemsForArray = 0 +pp_data->cap[9]->IsButtonCap = 1 +pp_data->cap[9]->IsPadding = 0 +pp_data->cap[9]->IsAbsolute = 1 +pp_data->cap[9]->IsRange = 0 +pp_data->cap[9]->IsAlias = 0 +pp_data->cap[9]->IsStringRange = 0 +pp_data->cap[9]->IsDesignatorRange = 0 +pp_data->cap[9]->Reserved1 = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[9]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[9]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[9]->NotRange.Usage = 0x0002 +pp_data->cap[9]->NotRange.Reserved1 = 0x0002 +pp_data->cap[9]->NotRange.StringIndex = 0 +pp_data->cap[9]->NotRange.Reserved2 = 0 +pp_data->cap[9]->NotRange.DesignatorIndex = 0 +pp_data->cap[9]->NotRange.Reserved3 = 0 +pp_data->cap[9]->NotRange.DataIndex = 9 +pp_data->cap[9]->NotRange.Reserved4 = 9 +pp_data->cap[9]->Button.LogicalMin = 0 +pp_data->cap[9]->Button.LogicalMax = 0 +pp_data->cap[9]->Units = 0 +pp_data->cap[9]->UnitsExp = 0 + +pp_data->cap[10]->UsagePage = 0xFF01 +pp_data->cap[10]->ReportID = 0x01 +pp_data->cap[10]->BitPosition = 1 +pp_data->cap[10]->BitSize = 1 +pp_data->cap[10]->ReportCount = 1 +pp_data->cap[10]->BytePosition = 0x0008 +pp_data->cap[10]->BitCount = 1 +pp_data->cap[10]->BitField = 0x02 +pp_data->cap[10]->NextBytePosition = 0x0009 +pp_data->cap[10]->LinkCollection = 0x0001 +pp_data->cap[10]->LinkUsagePage = 0xFF01 +pp_data->cap[10]->LinkUsage = 0x0001 +pp_data->cap[10]->IsMultipleItemsForArray = 0 +pp_data->cap[10]->IsButtonCap = 1 +pp_data->cap[10]->IsPadding = 0 +pp_data->cap[10]->IsAbsolute = 1 +pp_data->cap[10]->IsRange = 0 +pp_data->cap[10]->IsAlias = 0 +pp_data->cap[10]->IsStringRange = 0 +pp_data->cap[10]->IsDesignatorRange = 0 +pp_data->cap[10]->Reserved1 = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[10]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[10]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[10]->NotRange.Usage = 0x0002 +pp_data->cap[10]->NotRange.Reserved1 = 0x0002 +pp_data->cap[10]->NotRange.StringIndex = 0 +pp_data->cap[10]->NotRange.Reserved2 = 0 +pp_data->cap[10]->NotRange.DesignatorIndex = 0 +pp_data->cap[10]->NotRange.Reserved3 = 0 +pp_data->cap[10]->NotRange.DataIndex = 10 +pp_data->cap[10]->NotRange.Reserved4 = 10 +pp_data->cap[10]->Button.LogicalMin = 0 +pp_data->cap[10]->Button.LogicalMax = 0 +pp_data->cap[10]->Units = 0 +pp_data->cap[10]->UnitsExp = 0 + +pp_data->cap[11]->UsagePage = 0xFF01 +pp_data->cap[11]->ReportID = 0x01 +pp_data->cap[11]->BitPosition = 0 +pp_data->cap[11]->BitSize = 1 +pp_data->cap[11]->ReportCount = 1 +pp_data->cap[11]->BytePosition = 0x0008 +pp_data->cap[11]->BitCount = 1 +pp_data->cap[11]->BitField = 0x02 +pp_data->cap[11]->NextBytePosition = 0x0009 +pp_data->cap[11]->LinkCollection = 0x0001 +pp_data->cap[11]->LinkUsagePage = 0xFF01 +pp_data->cap[11]->LinkUsage = 0x0001 +pp_data->cap[11]->IsMultipleItemsForArray = 0 +pp_data->cap[11]->IsButtonCap = 1 +pp_data->cap[11]->IsPadding = 0 +pp_data->cap[11]->IsAbsolute = 1 +pp_data->cap[11]->IsRange = 0 +pp_data->cap[11]->IsAlias = 0 +pp_data->cap[11]->IsStringRange = 0 +pp_data->cap[11]->IsDesignatorRange = 0 +pp_data->cap[11]->Reserved1 = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[11]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[11]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[11]->NotRange.Usage = 0x0002 +pp_data->cap[11]->NotRange.Reserved1 = 0x0002 +pp_data->cap[11]->NotRange.StringIndex = 0 +pp_data->cap[11]->NotRange.Reserved2 = 0 +pp_data->cap[11]->NotRange.DesignatorIndex = 0 +pp_data->cap[11]->NotRange.Reserved3 = 0 +pp_data->cap[11]->NotRange.DataIndex = 11 +pp_data->cap[11]->NotRange.Reserved4 = 11 +pp_data->cap[11]->Button.LogicalMin = 0 +pp_data->cap[11]->Button.LogicalMax = 0 +pp_data->cap[11]->Units = 0 +pp_data->cap[11]->UnitsExp = 0 + +pp_data->cap[12]->UsagePage = 0xFF01 +pp_data->cap[12]->ReportID = 0x01 +pp_data->cap[12]->BitPosition = 7 +pp_data->cap[12]->BitSize = 1 +pp_data->cap[12]->ReportCount = 1 +pp_data->cap[12]->BytePosition = 0x0007 +pp_data->cap[12]->BitCount = 1 +pp_data->cap[12]->BitField = 0x02 +pp_data->cap[12]->NextBytePosition = 0x0008 +pp_data->cap[12]->LinkCollection = 0x0001 +pp_data->cap[12]->LinkUsagePage = 0xFF01 +pp_data->cap[12]->LinkUsage = 0x0001 +pp_data->cap[12]->IsMultipleItemsForArray = 0 +pp_data->cap[12]->IsButtonCap = 1 +pp_data->cap[12]->IsPadding = 0 +pp_data->cap[12]->IsAbsolute = 1 +pp_data->cap[12]->IsRange = 0 +pp_data->cap[12]->IsAlias = 0 +pp_data->cap[12]->IsStringRange = 0 +pp_data->cap[12]->IsDesignatorRange = 0 +pp_data->cap[12]->Reserved1 = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[12]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[12]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[12]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[12]->NotRange.Usage = 0x0002 +pp_data->cap[12]->NotRange.Reserved1 = 0x0002 +pp_data->cap[12]->NotRange.StringIndex = 0 +pp_data->cap[12]->NotRange.Reserved2 = 0 +pp_data->cap[12]->NotRange.DesignatorIndex = 0 +pp_data->cap[12]->NotRange.Reserved3 = 0 +pp_data->cap[12]->NotRange.DataIndex = 12 +pp_data->cap[12]->NotRange.Reserved4 = 12 +pp_data->cap[12]->Button.LogicalMin = 0 +pp_data->cap[12]->Button.LogicalMax = 0 +pp_data->cap[12]->Units = 0 +pp_data->cap[12]->UnitsExp = 0 + +pp_data->cap[13]->UsagePage = 0xFF01 +pp_data->cap[13]->ReportID = 0x01 +pp_data->cap[13]->BitPosition = 6 +pp_data->cap[13]->BitSize = 1 +pp_data->cap[13]->ReportCount = 1 +pp_data->cap[13]->BytePosition = 0x0007 +pp_data->cap[13]->BitCount = 1 +pp_data->cap[13]->BitField = 0x02 +pp_data->cap[13]->NextBytePosition = 0x0008 +pp_data->cap[13]->LinkCollection = 0x0001 +pp_data->cap[13]->LinkUsagePage = 0xFF01 +pp_data->cap[13]->LinkUsage = 0x0001 +pp_data->cap[13]->IsMultipleItemsForArray = 0 +pp_data->cap[13]->IsButtonCap = 1 +pp_data->cap[13]->IsPadding = 0 +pp_data->cap[13]->IsAbsolute = 1 +pp_data->cap[13]->IsRange = 0 +pp_data->cap[13]->IsAlias = 0 +pp_data->cap[13]->IsStringRange = 0 +pp_data->cap[13]->IsDesignatorRange = 0 +pp_data->cap[13]->Reserved1 = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[13]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[13]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[13]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[13]->NotRange.Usage = 0x0002 +pp_data->cap[13]->NotRange.Reserved1 = 0x0002 +pp_data->cap[13]->NotRange.StringIndex = 0 +pp_data->cap[13]->NotRange.Reserved2 = 0 +pp_data->cap[13]->NotRange.DesignatorIndex = 0 +pp_data->cap[13]->NotRange.Reserved3 = 0 +pp_data->cap[13]->NotRange.DataIndex = 13 +pp_data->cap[13]->NotRange.Reserved4 = 13 +pp_data->cap[13]->Button.LogicalMin = 0 +pp_data->cap[13]->Button.LogicalMax = 0 +pp_data->cap[13]->Units = 0 +pp_data->cap[13]->UnitsExp = 0 + +pp_data->cap[14]->UsagePage = 0xFF01 +pp_data->cap[14]->ReportID = 0x01 +pp_data->cap[14]->BitPosition = 5 +pp_data->cap[14]->BitSize = 1 +pp_data->cap[14]->ReportCount = 1 +pp_data->cap[14]->BytePosition = 0x0007 +pp_data->cap[14]->BitCount = 1 +pp_data->cap[14]->BitField = 0x02 +pp_data->cap[14]->NextBytePosition = 0x0008 +pp_data->cap[14]->LinkCollection = 0x0001 +pp_data->cap[14]->LinkUsagePage = 0xFF01 +pp_data->cap[14]->LinkUsage = 0x0001 +pp_data->cap[14]->IsMultipleItemsForArray = 0 +pp_data->cap[14]->IsButtonCap = 1 +pp_data->cap[14]->IsPadding = 0 +pp_data->cap[14]->IsAbsolute = 1 +pp_data->cap[14]->IsRange = 0 +pp_data->cap[14]->IsAlias = 0 +pp_data->cap[14]->IsStringRange = 0 +pp_data->cap[14]->IsDesignatorRange = 0 +pp_data->cap[14]->Reserved1 = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[14]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[14]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[14]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[14]->NotRange.Usage = 0x0002 +pp_data->cap[14]->NotRange.Reserved1 = 0x0002 +pp_data->cap[14]->NotRange.StringIndex = 0 +pp_data->cap[14]->NotRange.Reserved2 = 0 +pp_data->cap[14]->NotRange.DesignatorIndex = 0 +pp_data->cap[14]->NotRange.Reserved3 = 0 +pp_data->cap[14]->NotRange.DataIndex = 14 +pp_data->cap[14]->NotRange.Reserved4 = 14 +pp_data->cap[14]->Button.LogicalMin = 0 +pp_data->cap[14]->Button.LogicalMax = 0 +pp_data->cap[14]->Units = 0 +pp_data->cap[14]->UnitsExp = 0 + +pp_data->cap[15]->UsagePage = 0xFF01 +pp_data->cap[15]->ReportID = 0x01 +pp_data->cap[15]->BitPosition = 4 +pp_data->cap[15]->BitSize = 1 +pp_data->cap[15]->ReportCount = 1 +pp_data->cap[15]->BytePosition = 0x0007 +pp_data->cap[15]->BitCount = 1 +pp_data->cap[15]->BitField = 0x02 +pp_data->cap[15]->NextBytePosition = 0x0008 +pp_data->cap[15]->LinkCollection = 0x0001 +pp_data->cap[15]->LinkUsagePage = 0xFF01 +pp_data->cap[15]->LinkUsage = 0x0001 +pp_data->cap[15]->IsMultipleItemsForArray = 0 +pp_data->cap[15]->IsButtonCap = 1 +pp_data->cap[15]->IsPadding = 0 +pp_data->cap[15]->IsAbsolute = 1 +pp_data->cap[15]->IsRange = 0 +pp_data->cap[15]->IsAlias = 0 +pp_data->cap[15]->IsStringRange = 0 +pp_data->cap[15]->IsDesignatorRange = 0 +pp_data->cap[15]->Reserved1 = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[15]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[15]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[15]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[15]->NotRange.Usage = 0x0002 +pp_data->cap[15]->NotRange.Reserved1 = 0x0002 +pp_data->cap[15]->NotRange.StringIndex = 0 +pp_data->cap[15]->NotRange.Reserved2 = 0 +pp_data->cap[15]->NotRange.DesignatorIndex = 0 +pp_data->cap[15]->NotRange.Reserved3 = 0 +pp_data->cap[15]->NotRange.DataIndex = 15 +pp_data->cap[15]->NotRange.Reserved4 = 15 +pp_data->cap[15]->Button.LogicalMin = 0 +pp_data->cap[15]->Button.LogicalMax = 0 +pp_data->cap[15]->Units = 0 +pp_data->cap[15]->UnitsExp = 0 + +pp_data->cap[16]->UsagePage = 0xFF01 +pp_data->cap[16]->ReportID = 0x01 +pp_data->cap[16]->BitPosition = 3 +pp_data->cap[16]->BitSize = 1 +pp_data->cap[16]->ReportCount = 1 +pp_data->cap[16]->BytePosition = 0x0007 +pp_data->cap[16]->BitCount = 1 +pp_data->cap[16]->BitField = 0x02 +pp_data->cap[16]->NextBytePosition = 0x0008 +pp_data->cap[16]->LinkCollection = 0x0001 +pp_data->cap[16]->LinkUsagePage = 0xFF01 +pp_data->cap[16]->LinkUsage = 0x0001 +pp_data->cap[16]->IsMultipleItemsForArray = 0 +pp_data->cap[16]->IsButtonCap = 1 +pp_data->cap[16]->IsPadding = 0 +pp_data->cap[16]->IsAbsolute = 1 +pp_data->cap[16]->IsRange = 0 +pp_data->cap[16]->IsAlias = 0 +pp_data->cap[16]->IsStringRange = 0 +pp_data->cap[16]->IsDesignatorRange = 0 +pp_data->cap[16]->Reserved1 = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[16]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[16]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[16]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[16]->NotRange.Usage = 0x0002 +pp_data->cap[16]->NotRange.Reserved1 = 0x0002 +pp_data->cap[16]->NotRange.StringIndex = 0 +pp_data->cap[16]->NotRange.Reserved2 = 0 +pp_data->cap[16]->NotRange.DesignatorIndex = 0 +pp_data->cap[16]->NotRange.Reserved3 = 0 +pp_data->cap[16]->NotRange.DataIndex = 16 +pp_data->cap[16]->NotRange.Reserved4 = 16 +pp_data->cap[16]->Button.LogicalMin = 0 +pp_data->cap[16]->Button.LogicalMax = 0 +pp_data->cap[16]->Units = 0 +pp_data->cap[16]->UnitsExp = 0 + +pp_data->cap[17]->UsagePage = 0xFF01 +pp_data->cap[17]->ReportID = 0x01 +pp_data->cap[17]->BitPosition = 2 +pp_data->cap[17]->BitSize = 1 +pp_data->cap[17]->ReportCount = 1 +pp_data->cap[17]->BytePosition = 0x0007 +pp_data->cap[17]->BitCount = 1 +pp_data->cap[17]->BitField = 0x02 +pp_data->cap[17]->NextBytePosition = 0x0008 +pp_data->cap[17]->LinkCollection = 0x0001 +pp_data->cap[17]->LinkUsagePage = 0xFF01 +pp_data->cap[17]->LinkUsage = 0x0001 +pp_data->cap[17]->IsMultipleItemsForArray = 0 +pp_data->cap[17]->IsButtonCap = 1 +pp_data->cap[17]->IsPadding = 0 +pp_data->cap[17]->IsAbsolute = 1 +pp_data->cap[17]->IsRange = 0 +pp_data->cap[17]->IsAlias = 0 +pp_data->cap[17]->IsStringRange = 0 +pp_data->cap[17]->IsDesignatorRange = 0 +pp_data->cap[17]->Reserved1 = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[17]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[17]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[17]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[17]->NotRange.Usage = 0x0002 +pp_data->cap[17]->NotRange.Reserved1 = 0x0002 +pp_data->cap[17]->NotRange.StringIndex = 0 +pp_data->cap[17]->NotRange.Reserved2 = 0 +pp_data->cap[17]->NotRange.DesignatorIndex = 0 +pp_data->cap[17]->NotRange.Reserved3 = 0 +pp_data->cap[17]->NotRange.DataIndex = 17 +pp_data->cap[17]->NotRange.Reserved4 = 17 +pp_data->cap[17]->Button.LogicalMin = 0 +pp_data->cap[17]->Button.LogicalMax = 0 +pp_data->cap[17]->Units = 0 +pp_data->cap[17]->UnitsExp = 0 + +pp_data->cap[18]->UsagePage = 0xFF01 +pp_data->cap[18]->ReportID = 0x01 +pp_data->cap[18]->BitPosition = 1 +pp_data->cap[18]->BitSize = 1 +pp_data->cap[18]->ReportCount = 1 +pp_data->cap[18]->BytePosition = 0x0007 +pp_data->cap[18]->BitCount = 1 +pp_data->cap[18]->BitField = 0x02 +pp_data->cap[18]->NextBytePosition = 0x0008 +pp_data->cap[18]->LinkCollection = 0x0001 +pp_data->cap[18]->LinkUsagePage = 0xFF01 +pp_data->cap[18]->LinkUsage = 0x0001 +pp_data->cap[18]->IsMultipleItemsForArray = 0 +pp_data->cap[18]->IsButtonCap = 1 +pp_data->cap[18]->IsPadding = 0 +pp_data->cap[18]->IsAbsolute = 1 +pp_data->cap[18]->IsRange = 0 +pp_data->cap[18]->IsAlias = 0 +pp_data->cap[18]->IsStringRange = 0 +pp_data->cap[18]->IsDesignatorRange = 0 +pp_data->cap[18]->Reserved1 = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[18]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[18]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[18]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[18]->NotRange.Usage = 0x0002 +pp_data->cap[18]->NotRange.Reserved1 = 0x0002 +pp_data->cap[18]->NotRange.StringIndex = 0 +pp_data->cap[18]->NotRange.Reserved2 = 0 +pp_data->cap[18]->NotRange.DesignatorIndex = 0 +pp_data->cap[18]->NotRange.Reserved3 = 0 +pp_data->cap[18]->NotRange.DataIndex = 18 +pp_data->cap[18]->NotRange.Reserved4 = 18 +pp_data->cap[18]->Button.LogicalMin = 0 +pp_data->cap[18]->Button.LogicalMax = 0 +pp_data->cap[18]->Units = 0 +pp_data->cap[18]->UnitsExp = 0 + +pp_data->cap[19]->UsagePage = 0xFF01 +pp_data->cap[19]->ReportID = 0x01 +pp_data->cap[19]->BitPosition = 0 +pp_data->cap[19]->BitSize = 1 +pp_data->cap[19]->ReportCount = 1 +pp_data->cap[19]->BytePosition = 0x0007 +pp_data->cap[19]->BitCount = 1 +pp_data->cap[19]->BitField = 0x02 +pp_data->cap[19]->NextBytePosition = 0x0008 +pp_data->cap[19]->LinkCollection = 0x0001 +pp_data->cap[19]->LinkUsagePage = 0xFF01 +pp_data->cap[19]->LinkUsage = 0x0001 +pp_data->cap[19]->IsMultipleItemsForArray = 0 +pp_data->cap[19]->IsButtonCap = 1 +pp_data->cap[19]->IsPadding = 0 +pp_data->cap[19]->IsAbsolute = 1 +pp_data->cap[19]->IsRange = 0 +pp_data->cap[19]->IsAlias = 0 +pp_data->cap[19]->IsStringRange = 0 +pp_data->cap[19]->IsDesignatorRange = 0 +pp_data->cap[19]->Reserved1 = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[19]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[19]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[19]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[19]->NotRange.Usage = 0x0002 +pp_data->cap[19]->NotRange.Reserved1 = 0x0002 +pp_data->cap[19]->NotRange.StringIndex = 0 +pp_data->cap[19]->NotRange.Reserved2 = 0 +pp_data->cap[19]->NotRange.DesignatorIndex = 0 +pp_data->cap[19]->NotRange.Reserved3 = 0 +pp_data->cap[19]->NotRange.DataIndex = 19 +pp_data->cap[19]->NotRange.Reserved4 = 19 +pp_data->cap[19]->Button.LogicalMin = 0 +pp_data->cap[19]->Button.LogicalMax = 0 +pp_data->cap[19]->Units = 0 +pp_data->cap[19]->UnitsExp = 0 + +pp_data->cap[20]->UsagePage = 0xFF01 +pp_data->cap[20]->ReportID = 0x01 +pp_data->cap[20]->BitPosition = 7 +pp_data->cap[20]->BitSize = 1 +pp_data->cap[20]->ReportCount = 1 +pp_data->cap[20]->BytePosition = 0x0006 +pp_data->cap[20]->BitCount = 1 +pp_data->cap[20]->BitField = 0x02 +pp_data->cap[20]->NextBytePosition = 0x0007 +pp_data->cap[20]->LinkCollection = 0x0001 +pp_data->cap[20]->LinkUsagePage = 0xFF01 +pp_data->cap[20]->LinkUsage = 0x0001 +pp_data->cap[20]->IsMultipleItemsForArray = 0 +pp_data->cap[20]->IsButtonCap = 1 +pp_data->cap[20]->IsPadding = 0 +pp_data->cap[20]->IsAbsolute = 1 +pp_data->cap[20]->IsRange = 0 +pp_data->cap[20]->IsAlias = 0 +pp_data->cap[20]->IsStringRange = 0 +pp_data->cap[20]->IsDesignatorRange = 0 +pp_data->cap[20]->Reserved1 = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[20]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[20]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[20]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[20]->NotRange.Usage = 0x0002 +pp_data->cap[20]->NotRange.Reserved1 = 0x0002 +pp_data->cap[20]->NotRange.StringIndex = 0 +pp_data->cap[20]->NotRange.Reserved2 = 0 +pp_data->cap[20]->NotRange.DesignatorIndex = 0 +pp_data->cap[20]->NotRange.Reserved3 = 0 +pp_data->cap[20]->NotRange.DataIndex = 20 +pp_data->cap[20]->NotRange.Reserved4 = 20 +pp_data->cap[20]->Button.LogicalMin = 0 +pp_data->cap[20]->Button.LogicalMax = 0 +pp_data->cap[20]->Units = 0 +pp_data->cap[20]->UnitsExp = 0 + +pp_data->cap[21]->UsagePage = 0xFF01 +pp_data->cap[21]->ReportID = 0x01 +pp_data->cap[21]->BitPosition = 6 +pp_data->cap[21]->BitSize = 1 +pp_data->cap[21]->ReportCount = 1 +pp_data->cap[21]->BytePosition = 0x0006 +pp_data->cap[21]->BitCount = 1 +pp_data->cap[21]->BitField = 0x02 +pp_data->cap[21]->NextBytePosition = 0x0007 +pp_data->cap[21]->LinkCollection = 0x0001 +pp_data->cap[21]->LinkUsagePage = 0xFF01 +pp_data->cap[21]->LinkUsage = 0x0001 +pp_data->cap[21]->IsMultipleItemsForArray = 0 +pp_data->cap[21]->IsButtonCap = 1 +pp_data->cap[21]->IsPadding = 0 +pp_data->cap[21]->IsAbsolute = 1 +pp_data->cap[21]->IsRange = 0 +pp_data->cap[21]->IsAlias = 0 +pp_data->cap[21]->IsStringRange = 0 +pp_data->cap[21]->IsDesignatorRange = 0 +pp_data->cap[21]->Reserved1 = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[21]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[21]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[21]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[21]->NotRange.Usage = 0x0002 +pp_data->cap[21]->NotRange.Reserved1 = 0x0002 +pp_data->cap[21]->NotRange.StringIndex = 0 +pp_data->cap[21]->NotRange.Reserved2 = 0 +pp_data->cap[21]->NotRange.DesignatorIndex = 0 +pp_data->cap[21]->NotRange.Reserved3 = 0 +pp_data->cap[21]->NotRange.DataIndex = 21 +pp_data->cap[21]->NotRange.Reserved4 = 21 +pp_data->cap[21]->Button.LogicalMin = 0 +pp_data->cap[21]->Button.LogicalMax = 0 +pp_data->cap[21]->Units = 0 +pp_data->cap[21]->UnitsExp = 0 + +pp_data->cap[22]->UsagePage = 0xFF01 +pp_data->cap[22]->ReportID = 0x01 +pp_data->cap[22]->BitPosition = 5 +pp_data->cap[22]->BitSize = 1 +pp_data->cap[22]->ReportCount = 1 +pp_data->cap[22]->BytePosition = 0x0006 +pp_data->cap[22]->BitCount = 1 +pp_data->cap[22]->BitField = 0x02 +pp_data->cap[22]->NextBytePosition = 0x0007 +pp_data->cap[22]->LinkCollection = 0x0001 +pp_data->cap[22]->LinkUsagePage = 0xFF01 +pp_data->cap[22]->LinkUsage = 0x0001 +pp_data->cap[22]->IsMultipleItemsForArray = 0 +pp_data->cap[22]->IsButtonCap = 1 +pp_data->cap[22]->IsPadding = 0 +pp_data->cap[22]->IsAbsolute = 1 +pp_data->cap[22]->IsRange = 0 +pp_data->cap[22]->IsAlias = 0 +pp_data->cap[22]->IsStringRange = 0 +pp_data->cap[22]->IsDesignatorRange = 0 +pp_data->cap[22]->Reserved1 = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[22]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[22]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[22]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[22]->NotRange.Usage = 0x0002 +pp_data->cap[22]->NotRange.Reserved1 = 0x0002 +pp_data->cap[22]->NotRange.StringIndex = 0 +pp_data->cap[22]->NotRange.Reserved2 = 0 +pp_data->cap[22]->NotRange.DesignatorIndex = 0 +pp_data->cap[22]->NotRange.Reserved3 = 0 +pp_data->cap[22]->NotRange.DataIndex = 22 +pp_data->cap[22]->NotRange.Reserved4 = 22 +pp_data->cap[22]->Button.LogicalMin = 0 +pp_data->cap[22]->Button.LogicalMax = 0 +pp_data->cap[22]->Units = 0 +pp_data->cap[22]->UnitsExp = 0 + +pp_data->cap[23]->UsagePage = 0xFF01 +pp_data->cap[23]->ReportID = 0x01 +pp_data->cap[23]->BitPosition = 4 +pp_data->cap[23]->BitSize = 1 +pp_data->cap[23]->ReportCount = 1 +pp_data->cap[23]->BytePosition = 0x0006 +pp_data->cap[23]->BitCount = 1 +pp_data->cap[23]->BitField = 0x02 +pp_data->cap[23]->NextBytePosition = 0x0007 +pp_data->cap[23]->LinkCollection = 0x0001 +pp_data->cap[23]->LinkUsagePage = 0xFF01 +pp_data->cap[23]->LinkUsage = 0x0001 +pp_data->cap[23]->IsMultipleItemsForArray = 0 +pp_data->cap[23]->IsButtonCap = 1 +pp_data->cap[23]->IsPadding = 0 +pp_data->cap[23]->IsAbsolute = 1 +pp_data->cap[23]->IsRange = 0 +pp_data->cap[23]->IsAlias = 0 +pp_data->cap[23]->IsStringRange = 0 +pp_data->cap[23]->IsDesignatorRange = 0 +pp_data->cap[23]->Reserved1 = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[23]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[23]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[23]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[23]->NotRange.Usage = 0x0002 +pp_data->cap[23]->NotRange.Reserved1 = 0x0002 +pp_data->cap[23]->NotRange.StringIndex = 0 +pp_data->cap[23]->NotRange.Reserved2 = 0 +pp_data->cap[23]->NotRange.DesignatorIndex = 0 +pp_data->cap[23]->NotRange.Reserved3 = 0 +pp_data->cap[23]->NotRange.DataIndex = 23 +pp_data->cap[23]->NotRange.Reserved4 = 23 +pp_data->cap[23]->Button.LogicalMin = 0 +pp_data->cap[23]->Button.LogicalMax = 0 +pp_data->cap[23]->Units = 0 +pp_data->cap[23]->UnitsExp = 0 + +pp_data->cap[24]->UsagePage = 0xFF01 +pp_data->cap[24]->ReportID = 0x01 +pp_data->cap[24]->BitPosition = 3 +pp_data->cap[24]->BitSize = 1 +pp_data->cap[24]->ReportCount = 1 +pp_data->cap[24]->BytePosition = 0x0006 +pp_data->cap[24]->BitCount = 1 +pp_data->cap[24]->BitField = 0x02 +pp_data->cap[24]->NextBytePosition = 0x0007 +pp_data->cap[24]->LinkCollection = 0x0001 +pp_data->cap[24]->LinkUsagePage = 0xFF01 +pp_data->cap[24]->LinkUsage = 0x0001 +pp_data->cap[24]->IsMultipleItemsForArray = 0 +pp_data->cap[24]->IsButtonCap = 1 +pp_data->cap[24]->IsPadding = 0 +pp_data->cap[24]->IsAbsolute = 1 +pp_data->cap[24]->IsRange = 0 +pp_data->cap[24]->IsAlias = 0 +pp_data->cap[24]->IsStringRange = 0 +pp_data->cap[24]->IsDesignatorRange = 0 +pp_data->cap[24]->Reserved1 = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[24]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[24]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[24]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[24]->NotRange.Usage = 0x0002 +pp_data->cap[24]->NotRange.Reserved1 = 0x0002 +pp_data->cap[24]->NotRange.StringIndex = 0 +pp_data->cap[24]->NotRange.Reserved2 = 0 +pp_data->cap[24]->NotRange.DesignatorIndex = 0 +pp_data->cap[24]->NotRange.Reserved3 = 0 +pp_data->cap[24]->NotRange.DataIndex = 24 +pp_data->cap[24]->NotRange.Reserved4 = 24 +pp_data->cap[24]->Button.LogicalMin = 0 +pp_data->cap[24]->Button.LogicalMax = 0 +pp_data->cap[24]->Units = 0 +pp_data->cap[24]->UnitsExp = 0 + +pp_data->cap[25]->UsagePage = 0xFF01 +pp_data->cap[25]->ReportID = 0x01 +pp_data->cap[25]->BitPosition = 2 +pp_data->cap[25]->BitSize = 1 +pp_data->cap[25]->ReportCount = 1 +pp_data->cap[25]->BytePosition = 0x0006 +pp_data->cap[25]->BitCount = 1 +pp_data->cap[25]->BitField = 0x02 +pp_data->cap[25]->NextBytePosition = 0x0007 +pp_data->cap[25]->LinkCollection = 0x0001 +pp_data->cap[25]->LinkUsagePage = 0xFF01 +pp_data->cap[25]->LinkUsage = 0x0001 +pp_data->cap[25]->IsMultipleItemsForArray = 0 +pp_data->cap[25]->IsButtonCap = 1 +pp_data->cap[25]->IsPadding = 0 +pp_data->cap[25]->IsAbsolute = 1 +pp_data->cap[25]->IsRange = 0 +pp_data->cap[25]->IsAlias = 0 +pp_data->cap[25]->IsStringRange = 0 +pp_data->cap[25]->IsDesignatorRange = 0 +pp_data->cap[25]->Reserved1 = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[25]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[25]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[25]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[25]->NotRange.Usage = 0x0002 +pp_data->cap[25]->NotRange.Reserved1 = 0x0002 +pp_data->cap[25]->NotRange.StringIndex = 0 +pp_data->cap[25]->NotRange.Reserved2 = 0 +pp_data->cap[25]->NotRange.DesignatorIndex = 0 +pp_data->cap[25]->NotRange.Reserved3 = 0 +pp_data->cap[25]->NotRange.DataIndex = 25 +pp_data->cap[25]->NotRange.Reserved4 = 25 +pp_data->cap[25]->Button.LogicalMin = 0 +pp_data->cap[25]->Button.LogicalMax = 0 +pp_data->cap[25]->Units = 0 +pp_data->cap[25]->UnitsExp = 0 + +pp_data->cap[26]->UsagePage = 0xFF01 +pp_data->cap[26]->ReportID = 0x01 +pp_data->cap[26]->BitPosition = 1 +pp_data->cap[26]->BitSize = 1 +pp_data->cap[26]->ReportCount = 1 +pp_data->cap[26]->BytePosition = 0x0006 +pp_data->cap[26]->BitCount = 1 +pp_data->cap[26]->BitField = 0x02 +pp_data->cap[26]->NextBytePosition = 0x0007 +pp_data->cap[26]->LinkCollection = 0x0001 +pp_data->cap[26]->LinkUsagePage = 0xFF01 +pp_data->cap[26]->LinkUsage = 0x0001 +pp_data->cap[26]->IsMultipleItemsForArray = 0 +pp_data->cap[26]->IsButtonCap = 1 +pp_data->cap[26]->IsPadding = 0 +pp_data->cap[26]->IsAbsolute = 1 +pp_data->cap[26]->IsRange = 0 +pp_data->cap[26]->IsAlias = 0 +pp_data->cap[26]->IsStringRange = 0 +pp_data->cap[26]->IsDesignatorRange = 0 +pp_data->cap[26]->Reserved1 = 0x000000 +pp_data->cap[26]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[26]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[26]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[26]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[26]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[26]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[26]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[26]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[26]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[26]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[26]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[26]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[26]->NotRange.Usage = 0x0002 +pp_data->cap[26]->NotRange.Reserved1 = 0x0002 +pp_data->cap[26]->NotRange.StringIndex = 0 +pp_data->cap[26]->NotRange.Reserved2 = 0 +pp_data->cap[26]->NotRange.DesignatorIndex = 0 +pp_data->cap[26]->NotRange.Reserved3 = 0 +pp_data->cap[26]->NotRange.DataIndex = 26 +pp_data->cap[26]->NotRange.Reserved4 = 26 +pp_data->cap[26]->Button.LogicalMin = 0 +pp_data->cap[26]->Button.LogicalMax = 0 +pp_data->cap[26]->Units = 0 +pp_data->cap[26]->UnitsExp = 0 + +pp_data->cap[27]->UsagePage = 0xFF01 +pp_data->cap[27]->ReportID = 0x01 +pp_data->cap[27]->BitPosition = 0 +pp_data->cap[27]->BitSize = 1 +pp_data->cap[27]->ReportCount = 1 +pp_data->cap[27]->BytePosition = 0x0006 +pp_data->cap[27]->BitCount = 1 +pp_data->cap[27]->BitField = 0x02 +pp_data->cap[27]->NextBytePosition = 0x0007 +pp_data->cap[27]->LinkCollection = 0x0001 +pp_data->cap[27]->LinkUsagePage = 0xFF01 +pp_data->cap[27]->LinkUsage = 0x0001 +pp_data->cap[27]->IsMultipleItemsForArray = 0 +pp_data->cap[27]->IsButtonCap = 1 +pp_data->cap[27]->IsPadding = 0 +pp_data->cap[27]->IsAbsolute = 1 +pp_data->cap[27]->IsRange = 0 +pp_data->cap[27]->IsAlias = 0 +pp_data->cap[27]->IsStringRange = 0 +pp_data->cap[27]->IsDesignatorRange = 0 +pp_data->cap[27]->Reserved1 = 0x000000 +pp_data->cap[27]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[27]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[27]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[27]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[27]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[27]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[27]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[27]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[27]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[27]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[27]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[27]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[27]->NotRange.Usage = 0x0002 +pp_data->cap[27]->NotRange.Reserved1 = 0x0002 +pp_data->cap[27]->NotRange.StringIndex = 0 +pp_data->cap[27]->NotRange.Reserved2 = 0 +pp_data->cap[27]->NotRange.DesignatorIndex = 0 +pp_data->cap[27]->NotRange.Reserved3 = 0 +pp_data->cap[27]->NotRange.DataIndex = 27 +pp_data->cap[27]->NotRange.Reserved4 = 27 +pp_data->cap[27]->Button.LogicalMin = 0 +pp_data->cap[27]->Button.LogicalMax = 0 +pp_data->cap[27]->Units = 0 +pp_data->cap[27]->UnitsExp = 0 + +pp_data->cap[28]->UsagePage = 0xFF01 +pp_data->cap[28]->ReportID = 0x01 +pp_data->cap[28]->BitPosition = 7 +pp_data->cap[28]->BitSize = 1 +pp_data->cap[28]->ReportCount = 1 +pp_data->cap[28]->BytePosition = 0x0005 +pp_data->cap[28]->BitCount = 1 +pp_data->cap[28]->BitField = 0x02 +pp_data->cap[28]->NextBytePosition = 0x0006 +pp_data->cap[28]->LinkCollection = 0x0001 +pp_data->cap[28]->LinkUsagePage = 0xFF01 +pp_data->cap[28]->LinkUsage = 0x0001 +pp_data->cap[28]->IsMultipleItemsForArray = 0 +pp_data->cap[28]->IsButtonCap = 1 +pp_data->cap[28]->IsPadding = 0 +pp_data->cap[28]->IsAbsolute = 1 +pp_data->cap[28]->IsRange = 0 +pp_data->cap[28]->IsAlias = 0 +pp_data->cap[28]->IsStringRange = 0 +pp_data->cap[28]->IsDesignatorRange = 0 +pp_data->cap[28]->Reserved1 = 0x000000 +pp_data->cap[28]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[28]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[28]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[28]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[28]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[28]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[28]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[28]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[28]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[28]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[28]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[28]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[28]->NotRange.Usage = 0x0002 +pp_data->cap[28]->NotRange.Reserved1 = 0x0002 +pp_data->cap[28]->NotRange.StringIndex = 0 +pp_data->cap[28]->NotRange.Reserved2 = 0 +pp_data->cap[28]->NotRange.DesignatorIndex = 0 +pp_data->cap[28]->NotRange.Reserved3 = 0 +pp_data->cap[28]->NotRange.DataIndex = 28 +pp_data->cap[28]->NotRange.Reserved4 = 28 +pp_data->cap[28]->Button.LogicalMin = 0 +pp_data->cap[28]->Button.LogicalMax = 0 +pp_data->cap[28]->Units = 0 +pp_data->cap[28]->UnitsExp = 0 + +pp_data->cap[29]->UsagePage = 0xFF01 +pp_data->cap[29]->ReportID = 0x01 +pp_data->cap[29]->BitPosition = 6 +pp_data->cap[29]->BitSize = 1 +pp_data->cap[29]->ReportCount = 1 +pp_data->cap[29]->BytePosition = 0x0005 +pp_data->cap[29]->BitCount = 1 +pp_data->cap[29]->BitField = 0x02 +pp_data->cap[29]->NextBytePosition = 0x0006 +pp_data->cap[29]->LinkCollection = 0x0001 +pp_data->cap[29]->LinkUsagePage = 0xFF01 +pp_data->cap[29]->LinkUsage = 0x0001 +pp_data->cap[29]->IsMultipleItemsForArray = 0 +pp_data->cap[29]->IsButtonCap = 1 +pp_data->cap[29]->IsPadding = 0 +pp_data->cap[29]->IsAbsolute = 1 +pp_data->cap[29]->IsRange = 0 +pp_data->cap[29]->IsAlias = 0 +pp_data->cap[29]->IsStringRange = 0 +pp_data->cap[29]->IsDesignatorRange = 0 +pp_data->cap[29]->Reserved1 = 0x000000 +pp_data->cap[29]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[29]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[29]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[29]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[29]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[29]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[29]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[29]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[29]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[29]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[29]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[29]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[29]->NotRange.Usage = 0x0002 +pp_data->cap[29]->NotRange.Reserved1 = 0x0002 +pp_data->cap[29]->NotRange.StringIndex = 0 +pp_data->cap[29]->NotRange.Reserved2 = 0 +pp_data->cap[29]->NotRange.DesignatorIndex = 0 +pp_data->cap[29]->NotRange.Reserved3 = 0 +pp_data->cap[29]->NotRange.DataIndex = 29 +pp_data->cap[29]->NotRange.Reserved4 = 29 +pp_data->cap[29]->Button.LogicalMin = 0 +pp_data->cap[29]->Button.LogicalMax = 0 +pp_data->cap[29]->Units = 0 +pp_data->cap[29]->UnitsExp = 0 + +pp_data->cap[30]->UsagePage = 0xFF01 +pp_data->cap[30]->ReportID = 0x01 +pp_data->cap[30]->BitPosition = 5 +pp_data->cap[30]->BitSize = 1 +pp_data->cap[30]->ReportCount = 1 +pp_data->cap[30]->BytePosition = 0x0005 +pp_data->cap[30]->BitCount = 1 +pp_data->cap[30]->BitField = 0x02 +pp_data->cap[30]->NextBytePosition = 0x0006 +pp_data->cap[30]->LinkCollection = 0x0001 +pp_data->cap[30]->LinkUsagePage = 0xFF01 +pp_data->cap[30]->LinkUsage = 0x0001 +pp_data->cap[30]->IsMultipleItemsForArray = 0 +pp_data->cap[30]->IsButtonCap = 1 +pp_data->cap[30]->IsPadding = 0 +pp_data->cap[30]->IsAbsolute = 1 +pp_data->cap[30]->IsRange = 0 +pp_data->cap[30]->IsAlias = 0 +pp_data->cap[30]->IsStringRange = 0 +pp_data->cap[30]->IsDesignatorRange = 0 +pp_data->cap[30]->Reserved1 = 0x000000 +pp_data->cap[30]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[30]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[30]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[30]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[30]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[30]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[30]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[30]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[30]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[30]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[30]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[30]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[30]->NotRange.Usage = 0x0002 +pp_data->cap[30]->NotRange.Reserved1 = 0x0002 +pp_data->cap[30]->NotRange.StringIndex = 0 +pp_data->cap[30]->NotRange.Reserved2 = 0 +pp_data->cap[30]->NotRange.DesignatorIndex = 0 +pp_data->cap[30]->NotRange.Reserved3 = 0 +pp_data->cap[30]->NotRange.DataIndex = 30 +pp_data->cap[30]->NotRange.Reserved4 = 30 +pp_data->cap[30]->Button.LogicalMin = 0 +pp_data->cap[30]->Button.LogicalMax = 0 +pp_data->cap[30]->Units = 0 +pp_data->cap[30]->UnitsExp = 0 + +pp_data->cap[31]->UsagePage = 0xFF01 +pp_data->cap[31]->ReportID = 0x01 +pp_data->cap[31]->BitPosition = 4 +pp_data->cap[31]->BitSize = 1 +pp_data->cap[31]->ReportCount = 1 +pp_data->cap[31]->BytePosition = 0x0005 +pp_data->cap[31]->BitCount = 1 +pp_data->cap[31]->BitField = 0x02 +pp_data->cap[31]->NextBytePosition = 0x0006 +pp_data->cap[31]->LinkCollection = 0x0001 +pp_data->cap[31]->LinkUsagePage = 0xFF01 +pp_data->cap[31]->LinkUsage = 0x0001 +pp_data->cap[31]->IsMultipleItemsForArray = 0 +pp_data->cap[31]->IsButtonCap = 1 +pp_data->cap[31]->IsPadding = 0 +pp_data->cap[31]->IsAbsolute = 1 +pp_data->cap[31]->IsRange = 0 +pp_data->cap[31]->IsAlias = 0 +pp_data->cap[31]->IsStringRange = 0 +pp_data->cap[31]->IsDesignatorRange = 0 +pp_data->cap[31]->Reserved1 = 0x000000 +pp_data->cap[31]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[31]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[31]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[31]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[31]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[31]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[31]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[31]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[31]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[31]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[31]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[31]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[31]->NotRange.Usage = 0x0002 +pp_data->cap[31]->NotRange.Reserved1 = 0x0002 +pp_data->cap[31]->NotRange.StringIndex = 0 +pp_data->cap[31]->NotRange.Reserved2 = 0 +pp_data->cap[31]->NotRange.DesignatorIndex = 0 +pp_data->cap[31]->NotRange.Reserved3 = 0 +pp_data->cap[31]->NotRange.DataIndex = 31 +pp_data->cap[31]->NotRange.Reserved4 = 31 +pp_data->cap[31]->Button.LogicalMin = 0 +pp_data->cap[31]->Button.LogicalMax = 0 +pp_data->cap[31]->Units = 0 +pp_data->cap[31]->UnitsExp = 0 + +pp_data->cap[32]->UsagePage = 0xFF01 +pp_data->cap[32]->ReportID = 0x01 +pp_data->cap[32]->BitPosition = 3 +pp_data->cap[32]->BitSize = 1 +pp_data->cap[32]->ReportCount = 1 +pp_data->cap[32]->BytePosition = 0x0005 +pp_data->cap[32]->BitCount = 1 +pp_data->cap[32]->BitField = 0x02 +pp_data->cap[32]->NextBytePosition = 0x0006 +pp_data->cap[32]->LinkCollection = 0x0001 +pp_data->cap[32]->LinkUsagePage = 0xFF01 +pp_data->cap[32]->LinkUsage = 0x0001 +pp_data->cap[32]->IsMultipleItemsForArray = 0 +pp_data->cap[32]->IsButtonCap = 1 +pp_data->cap[32]->IsPadding = 0 +pp_data->cap[32]->IsAbsolute = 1 +pp_data->cap[32]->IsRange = 0 +pp_data->cap[32]->IsAlias = 0 +pp_data->cap[32]->IsStringRange = 0 +pp_data->cap[32]->IsDesignatorRange = 0 +pp_data->cap[32]->Reserved1 = 0x000000 +pp_data->cap[32]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[32]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[32]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[32]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[32]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[32]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[32]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[32]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[32]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[32]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[32]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[32]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[32]->NotRange.Usage = 0x0002 +pp_data->cap[32]->NotRange.Reserved1 = 0x0002 +pp_data->cap[32]->NotRange.StringIndex = 0 +pp_data->cap[32]->NotRange.Reserved2 = 0 +pp_data->cap[32]->NotRange.DesignatorIndex = 0 +pp_data->cap[32]->NotRange.Reserved3 = 0 +pp_data->cap[32]->NotRange.DataIndex = 32 +pp_data->cap[32]->NotRange.Reserved4 = 32 +pp_data->cap[32]->Button.LogicalMin = 0 +pp_data->cap[32]->Button.LogicalMax = 0 +pp_data->cap[32]->Units = 0 +pp_data->cap[32]->UnitsExp = 0 + +pp_data->cap[33]->UsagePage = 0xFF01 +pp_data->cap[33]->ReportID = 0x01 +pp_data->cap[33]->BitPosition = 2 +pp_data->cap[33]->BitSize = 1 +pp_data->cap[33]->ReportCount = 1 +pp_data->cap[33]->BytePosition = 0x0005 +pp_data->cap[33]->BitCount = 1 +pp_data->cap[33]->BitField = 0x02 +pp_data->cap[33]->NextBytePosition = 0x0006 +pp_data->cap[33]->LinkCollection = 0x0001 +pp_data->cap[33]->LinkUsagePage = 0xFF01 +pp_data->cap[33]->LinkUsage = 0x0001 +pp_data->cap[33]->IsMultipleItemsForArray = 0 +pp_data->cap[33]->IsButtonCap = 1 +pp_data->cap[33]->IsPadding = 0 +pp_data->cap[33]->IsAbsolute = 1 +pp_data->cap[33]->IsRange = 0 +pp_data->cap[33]->IsAlias = 0 +pp_data->cap[33]->IsStringRange = 0 +pp_data->cap[33]->IsDesignatorRange = 0 +pp_data->cap[33]->Reserved1 = 0x000000 +pp_data->cap[33]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[33]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[33]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[33]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[33]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[33]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[33]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[33]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[33]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[33]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[33]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[33]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[33]->NotRange.Usage = 0x0002 +pp_data->cap[33]->NotRange.Reserved1 = 0x0002 +pp_data->cap[33]->NotRange.StringIndex = 0 +pp_data->cap[33]->NotRange.Reserved2 = 0 +pp_data->cap[33]->NotRange.DesignatorIndex = 0 +pp_data->cap[33]->NotRange.Reserved3 = 0 +pp_data->cap[33]->NotRange.DataIndex = 33 +pp_data->cap[33]->NotRange.Reserved4 = 33 +pp_data->cap[33]->Button.LogicalMin = 0 +pp_data->cap[33]->Button.LogicalMax = 0 +pp_data->cap[33]->Units = 0 +pp_data->cap[33]->UnitsExp = 0 + +pp_data->cap[34]->UsagePage = 0xFF01 +pp_data->cap[34]->ReportID = 0x01 +pp_data->cap[34]->BitPosition = 1 +pp_data->cap[34]->BitSize = 1 +pp_data->cap[34]->ReportCount = 1 +pp_data->cap[34]->BytePosition = 0x0005 +pp_data->cap[34]->BitCount = 1 +pp_data->cap[34]->BitField = 0x02 +pp_data->cap[34]->NextBytePosition = 0x0006 +pp_data->cap[34]->LinkCollection = 0x0001 +pp_data->cap[34]->LinkUsagePage = 0xFF01 +pp_data->cap[34]->LinkUsage = 0x0001 +pp_data->cap[34]->IsMultipleItemsForArray = 0 +pp_data->cap[34]->IsButtonCap = 1 +pp_data->cap[34]->IsPadding = 0 +pp_data->cap[34]->IsAbsolute = 1 +pp_data->cap[34]->IsRange = 0 +pp_data->cap[34]->IsAlias = 0 +pp_data->cap[34]->IsStringRange = 0 +pp_data->cap[34]->IsDesignatorRange = 0 +pp_data->cap[34]->Reserved1 = 0x000000 +pp_data->cap[34]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[34]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[34]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[34]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[34]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[34]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[34]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[34]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[34]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[34]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[34]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[34]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[34]->NotRange.Usage = 0x0002 +pp_data->cap[34]->NotRange.Reserved1 = 0x0002 +pp_data->cap[34]->NotRange.StringIndex = 0 +pp_data->cap[34]->NotRange.Reserved2 = 0 +pp_data->cap[34]->NotRange.DesignatorIndex = 0 +pp_data->cap[34]->NotRange.Reserved3 = 0 +pp_data->cap[34]->NotRange.DataIndex = 34 +pp_data->cap[34]->NotRange.Reserved4 = 34 +pp_data->cap[34]->Button.LogicalMin = 0 +pp_data->cap[34]->Button.LogicalMax = 0 +pp_data->cap[34]->Units = 0 +pp_data->cap[34]->UnitsExp = 0 + +pp_data->cap[35]->UsagePage = 0xFF01 +pp_data->cap[35]->ReportID = 0x01 +pp_data->cap[35]->BitPosition = 0 +pp_data->cap[35]->BitSize = 1 +pp_data->cap[35]->ReportCount = 1 +pp_data->cap[35]->BytePosition = 0x0005 +pp_data->cap[35]->BitCount = 1 +pp_data->cap[35]->BitField = 0x02 +pp_data->cap[35]->NextBytePosition = 0x0006 +pp_data->cap[35]->LinkCollection = 0x0001 +pp_data->cap[35]->LinkUsagePage = 0xFF01 +pp_data->cap[35]->LinkUsage = 0x0001 +pp_data->cap[35]->IsMultipleItemsForArray = 0 +pp_data->cap[35]->IsButtonCap = 1 +pp_data->cap[35]->IsPadding = 0 +pp_data->cap[35]->IsAbsolute = 1 +pp_data->cap[35]->IsRange = 0 +pp_data->cap[35]->IsAlias = 0 +pp_data->cap[35]->IsStringRange = 0 +pp_data->cap[35]->IsDesignatorRange = 0 +pp_data->cap[35]->Reserved1 = 0x000000 +pp_data->cap[35]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[35]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[35]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[35]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[35]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[35]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[35]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[35]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[35]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[35]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[35]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[35]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[35]->NotRange.Usage = 0x0002 +pp_data->cap[35]->NotRange.Reserved1 = 0x0002 +pp_data->cap[35]->NotRange.StringIndex = 0 +pp_data->cap[35]->NotRange.Reserved2 = 0 +pp_data->cap[35]->NotRange.DesignatorIndex = 0 +pp_data->cap[35]->NotRange.Reserved3 = 0 +pp_data->cap[35]->NotRange.DataIndex = 35 +pp_data->cap[35]->NotRange.Reserved4 = 35 +pp_data->cap[35]->Button.LogicalMin = 0 +pp_data->cap[35]->Button.LogicalMax = 0 +pp_data->cap[35]->Units = 0 +pp_data->cap[35]->UnitsExp = 0 + +pp_data->cap[36]->UsagePage = 0xFF01 +pp_data->cap[36]->ReportID = 0x01 +pp_data->cap[36]->BitPosition = 7 +pp_data->cap[36]->BitSize = 1 +pp_data->cap[36]->ReportCount = 1 +pp_data->cap[36]->BytePosition = 0x0004 +pp_data->cap[36]->BitCount = 1 +pp_data->cap[36]->BitField = 0x02 +pp_data->cap[36]->NextBytePosition = 0x0005 +pp_data->cap[36]->LinkCollection = 0x0001 +pp_data->cap[36]->LinkUsagePage = 0xFF01 +pp_data->cap[36]->LinkUsage = 0x0001 +pp_data->cap[36]->IsMultipleItemsForArray = 0 +pp_data->cap[36]->IsButtonCap = 1 +pp_data->cap[36]->IsPadding = 0 +pp_data->cap[36]->IsAbsolute = 1 +pp_data->cap[36]->IsRange = 0 +pp_data->cap[36]->IsAlias = 0 +pp_data->cap[36]->IsStringRange = 0 +pp_data->cap[36]->IsDesignatorRange = 0 +pp_data->cap[36]->Reserved1 = 0x000000 +pp_data->cap[36]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[36]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[36]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[36]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[36]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[36]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[36]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[36]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[36]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[36]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[36]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[36]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[36]->NotRange.Usage = 0x0002 +pp_data->cap[36]->NotRange.Reserved1 = 0x0002 +pp_data->cap[36]->NotRange.StringIndex = 0 +pp_data->cap[36]->NotRange.Reserved2 = 0 +pp_data->cap[36]->NotRange.DesignatorIndex = 0 +pp_data->cap[36]->NotRange.Reserved3 = 0 +pp_data->cap[36]->NotRange.DataIndex = 36 +pp_data->cap[36]->NotRange.Reserved4 = 36 +pp_data->cap[36]->Button.LogicalMin = 0 +pp_data->cap[36]->Button.LogicalMax = 0 +pp_data->cap[36]->Units = 0 +pp_data->cap[36]->UnitsExp = 0 + +pp_data->cap[37]->UsagePage = 0xFF01 +pp_data->cap[37]->ReportID = 0x01 +pp_data->cap[37]->BitPosition = 6 +pp_data->cap[37]->BitSize = 1 +pp_data->cap[37]->ReportCount = 1 +pp_data->cap[37]->BytePosition = 0x0004 +pp_data->cap[37]->BitCount = 1 +pp_data->cap[37]->BitField = 0x02 +pp_data->cap[37]->NextBytePosition = 0x0005 +pp_data->cap[37]->LinkCollection = 0x0001 +pp_data->cap[37]->LinkUsagePage = 0xFF01 +pp_data->cap[37]->LinkUsage = 0x0001 +pp_data->cap[37]->IsMultipleItemsForArray = 0 +pp_data->cap[37]->IsButtonCap = 1 +pp_data->cap[37]->IsPadding = 0 +pp_data->cap[37]->IsAbsolute = 1 +pp_data->cap[37]->IsRange = 0 +pp_data->cap[37]->IsAlias = 0 +pp_data->cap[37]->IsStringRange = 0 +pp_data->cap[37]->IsDesignatorRange = 0 +pp_data->cap[37]->Reserved1 = 0x000000 +pp_data->cap[37]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[37]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[37]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[37]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[37]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[37]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[37]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[37]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[37]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[37]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[37]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[37]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[37]->NotRange.Usage = 0x0002 +pp_data->cap[37]->NotRange.Reserved1 = 0x0002 +pp_data->cap[37]->NotRange.StringIndex = 0 +pp_data->cap[37]->NotRange.Reserved2 = 0 +pp_data->cap[37]->NotRange.DesignatorIndex = 0 +pp_data->cap[37]->NotRange.Reserved3 = 0 +pp_data->cap[37]->NotRange.DataIndex = 37 +pp_data->cap[37]->NotRange.Reserved4 = 37 +pp_data->cap[37]->Button.LogicalMin = 0 +pp_data->cap[37]->Button.LogicalMax = 0 +pp_data->cap[37]->Units = 0 +pp_data->cap[37]->UnitsExp = 0 + +pp_data->cap[38]->UsagePage = 0xFF01 +pp_data->cap[38]->ReportID = 0x01 +pp_data->cap[38]->BitPosition = 5 +pp_data->cap[38]->BitSize = 1 +pp_data->cap[38]->ReportCount = 1 +pp_data->cap[38]->BytePosition = 0x0004 +pp_data->cap[38]->BitCount = 1 +pp_data->cap[38]->BitField = 0x02 +pp_data->cap[38]->NextBytePosition = 0x0005 +pp_data->cap[38]->LinkCollection = 0x0001 +pp_data->cap[38]->LinkUsagePage = 0xFF01 +pp_data->cap[38]->LinkUsage = 0x0001 +pp_data->cap[38]->IsMultipleItemsForArray = 0 +pp_data->cap[38]->IsButtonCap = 1 +pp_data->cap[38]->IsPadding = 0 +pp_data->cap[38]->IsAbsolute = 1 +pp_data->cap[38]->IsRange = 0 +pp_data->cap[38]->IsAlias = 0 +pp_data->cap[38]->IsStringRange = 0 +pp_data->cap[38]->IsDesignatorRange = 0 +pp_data->cap[38]->Reserved1 = 0x000000 +pp_data->cap[38]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[38]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[38]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[38]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[38]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[38]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[38]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[38]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[38]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[38]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[38]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[38]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[38]->NotRange.Usage = 0x0002 +pp_data->cap[38]->NotRange.Reserved1 = 0x0002 +pp_data->cap[38]->NotRange.StringIndex = 0 +pp_data->cap[38]->NotRange.Reserved2 = 0 +pp_data->cap[38]->NotRange.DesignatorIndex = 0 +pp_data->cap[38]->NotRange.Reserved3 = 0 +pp_data->cap[38]->NotRange.DataIndex = 38 +pp_data->cap[38]->NotRange.Reserved4 = 38 +pp_data->cap[38]->Button.LogicalMin = 0 +pp_data->cap[38]->Button.LogicalMax = 0 +pp_data->cap[38]->Units = 0 +pp_data->cap[38]->UnitsExp = 0 + +pp_data->cap[39]->UsagePage = 0xFF01 +pp_data->cap[39]->ReportID = 0x01 +pp_data->cap[39]->BitPosition = 4 +pp_data->cap[39]->BitSize = 1 +pp_data->cap[39]->ReportCount = 1 +pp_data->cap[39]->BytePosition = 0x0004 +pp_data->cap[39]->BitCount = 1 +pp_data->cap[39]->BitField = 0x02 +pp_data->cap[39]->NextBytePosition = 0x0005 +pp_data->cap[39]->LinkCollection = 0x0001 +pp_data->cap[39]->LinkUsagePage = 0xFF01 +pp_data->cap[39]->LinkUsage = 0x0001 +pp_data->cap[39]->IsMultipleItemsForArray = 0 +pp_data->cap[39]->IsButtonCap = 1 +pp_data->cap[39]->IsPadding = 0 +pp_data->cap[39]->IsAbsolute = 1 +pp_data->cap[39]->IsRange = 0 +pp_data->cap[39]->IsAlias = 0 +pp_data->cap[39]->IsStringRange = 0 +pp_data->cap[39]->IsDesignatorRange = 0 +pp_data->cap[39]->Reserved1 = 0x000000 +pp_data->cap[39]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[39]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[39]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[39]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[39]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[39]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[39]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[39]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[39]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[39]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[39]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[39]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[39]->NotRange.Usage = 0x0002 +pp_data->cap[39]->NotRange.Reserved1 = 0x0002 +pp_data->cap[39]->NotRange.StringIndex = 0 +pp_data->cap[39]->NotRange.Reserved2 = 0 +pp_data->cap[39]->NotRange.DesignatorIndex = 0 +pp_data->cap[39]->NotRange.Reserved3 = 0 +pp_data->cap[39]->NotRange.DataIndex = 39 +pp_data->cap[39]->NotRange.Reserved4 = 39 +pp_data->cap[39]->Button.LogicalMin = 0 +pp_data->cap[39]->Button.LogicalMax = 0 +pp_data->cap[39]->Units = 0 +pp_data->cap[39]->UnitsExp = 0 + +pp_data->cap[40]->UsagePage = 0xFF01 +pp_data->cap[40]->ReportID = 0x01 +pp_data->cap[40]->BitPosition = 3 +pp_data->cap[40]->BitSize = 1 +pp_data->cap[40]->ReportCount = 1 +pp_data->cap[40]->BytePosition = 0x0004 +pp_data->cap[40]->BitCount = 1 +pp_data->cap[40]->BitField = 0x02 +pp_data->cap[40]->NextBytePosition = 0x0005 +pp_data->cap[40]->LinkCollection = 0x0001 +pp_data->cap[40]->LinkUsagePage = 0xFF01 +pp_data->cap[40]->LinkUsage = 0x0001 +pp_data->cap[40]->IsMultipleItemsForArray = 0 +pp_data->cap[40]->IsButtonCap = 1 +pp_data->cap[40]->IsPadding = 0 +pp_data->cap[40]->IsAbsolute = 1 +pp_data->cap[40]->IsRange = 0 +pp_data->cap[40]->IsAlias = 0 +pp_data->cap[40]->IsStringRange = 0 +pp_data->cap[40]->IsDesignatorRange = 0 +pp_data->cap[40]->Reserved1 = 0x000000 +pp_data->cap[40]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[40]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[40]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[40]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[40]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[40]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[40]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[40]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[40]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[40]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[40]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[40]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[40]->NotRange.Usage = 0x0002 +pp_data->cap[40]->NotRange.Reserved1 = 0x0002 +pp_data->cap[40]->NotRange.StringIndex = 0 +pp_data->cap[40]->NotRange.Reserved2 = 0 +pp_data->cap[40]->NotRange.DesignatorIndex = 0 +pp_data->cap[40]->NotRange.Reserved3 = 0 +pp_data->cap[40]->NotRange.DataIndex = 40 +pp_data->cap[40]->NotRange.Reserved4 = 40 +pp_data->cap[40]->Button.LogicalMin = 0 +pp_data->cap[40]->Button.LogicalMax = 0 +pp_data->cap[40]->Units = 0 +pp_data->cap[40]->UnitsExp = 0 + +pp_data->cap[41]->UsagePage = 0xFF01 +pp_data->cap[41]->ReportID = 0x01 +pp_data->cap[41]->BitPosition = 2 +pp_data->cap[41]->BitSize = 1 +pp_data->cap[41]->ReportCount = 1 +pp_data->cap[41]->BytePosition = 0x0004 +pp_data->cap[41]->BitCount = 1 +pp_data->cap[41]->BitField = 0x02 +pp_data->cap[41]->NextBytePosition = 0x0005 +pp_data->cap[41]->LinkCollection = 0x0001 +pp_data->cap[41]->LinkUsagePage = 0xFF01 +pp_data->cap[41]->LinkUsage = 0x0001 +pp_data->cap[41]->IsMultipleItemsForArray = 0 +pp_data->cap[41]->IsButtonCap = 1 +pp_data->cap[41]->IsPadding = 0 +pp_data->cap[41]->IsAbsolute = 1 +pp_data->cap[41]->IsRange = 0 +pp_data->cap[41]->IsAlias = 0 +pp_data->cap[41]->IsStringRange = 0 +pp_data->cap[41]->IsDesignatorRange = 0 +pp_data->cap[41]->Reserved1 = 0x000000 +pp_data->cap[41]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[41]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[41]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[41]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[41]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[41]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[41]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[41]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[41]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[41]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[41]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[41]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[41]->NotRange.Usage = 0x0002 +pp_data->cap[41]->NotRange.Reserved1 = 0x0002 +pp_data->cap[41]->NotRange.StringIndex = 0 +pp_data->cap[41]->NotRange.Reserved2 = 0 +pp_data->cap[41]->NotRange.DesignatorIndex = 0 +pp_data->cap[41]->NotRange.Reserved3 = 0 +pp_data->cap[41]->NotRange.DataIndex = 41 +pp_data->cap[41]->NotRange.Reserved4 = 41 +pp_data->cap[41]->Button.LogicalMin = 0 +pp_data->cap[41]->Button.LogicalMax = 0 +pp_data->cap[41]->Units = 0 +pp_data->cap[41]->UnitsExp = 0 + +pp_data->cap[42]->UsagePage = 0xFF01 +pp_data->cap[42]->ReportID = 0x01 +pp_data->cap[42]->BitPosition = 1 +pp_data->cap[42]->BitSize = 1 +pp_data->cap[42]->ReportCount = 1 +pp_data->cap[42]->BytePosition = 0x0004 +pp_data->cap[42]->BitCount = 1 +pp_data->cap[42]->BitField = 0x02 +pp_data->cap[42]->NextBytePosition = 0x0005 +pp_data->cap[42]->LinkCollection = 0x0001 +pp_data->cap[42]->LinkUsagePage = 0xFF01 +pp_data->cap[42]->LinkUsage = 0x0001 +pp_data->cap[42]->IsMultipleItemsForArray = 0 +pp_data->cap[42]->IsButtonCap = 1 +pp_data->cap[42]->IsPadding = 0 +pp_data->cap[42]->IsAbsolute = 1 +pp_data->cap[42]->IsRange = 0 +pp_data->cap[42]->IsAlias = 0 +pp_data->cap[42]->IsStringRange = 0 +pp_data->cap[42]->IsDesignatorRange = 0 +pp_data->cap[42]->Reserved1 = 0x000000 +pp_data->cap[42]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[42]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[42]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[42]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[42]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[42]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[42]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[42]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[42]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[42]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[42]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[42]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[42]->NotRange.Usage = 0x0002 +pp_data->cap[42]->NotRange.Reserved1 = 0x0002 +pp_data->cap[42]->NotRange.StringIndex = 0 +pp_data->cap[42]->NotRange.Reserved2 = 0 +pp_data->cap[42]->NotRange.DesignatorIndex = 0 +pp_data->cap[42]->NotRange.Reserved3 = 0 +pp_data->cap[42]->NotRange.DataIndex = 42 +pp_data->cap[42]->NotRange.Reserved4 = 42 +pp_data->cap[42]->Button.LogicalMin = 0 +pp_data->cap[42]->Button.LogicalMax = 0 +pp_data->cap[42]->Units = 0 +pp_data->cap[42]->UnitsExp = 0 + +pp_data->cap[43]->UsagePage = 0xFF01 +pp_data->cap[43]->ReportID = 0x01 +pp_data->cap[43]->BitPosition = 0 +pp_data->cap[43]->BitSize = 1 +pp_data->cap[43]->ReportCount = 1 +pp_data->cap[43]->BytePosition = 0x0004 +pp_data->cap[43]->BitCount = 1 +pp_data->cap[43]->BitField = 0x02 +pp_data->cap[43]->NextBytePosition = 0x0005 +pp_data->cap[43]->LinkCollection = 0x0001 +pp_data->cap[43]->LinkUsagePage = 0xFF01 +pp_data->cap[43]->LinkUsage = 0x0001 +pp_data->cap[43]->IsMultipleItemsForArray = 0 +pp_data->cap[43]->IsButtonCap = 1 +pp_data->cap[43]->IsPadding = 0 +pp_data->cap[43]->IsAbsolute = 1 +pp_data->cap[43]->IsRange = 0 +pp_data->cap[43]->IsAlias = 0 +pp_data->cap[43]->IsStringRange = 0 +pp_data->cap[43]->IsDesignatorRange = 0 +pp_data->cap[43]->Reserved1 = 0x000000 +pp_data->cap[43]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[43]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[43]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[43]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[43]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[43]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[43]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[43]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[43]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[43]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[43]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[43]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[43]->NotRange.Usage = 0x0002 +pp_data->cap[43]->NotRange.Reserved1 = 0x0002 +pp_data->cap[43]->NotRange.StringIndex = 0 +pp_data->cap[43]->NotRange.Reserved2 = 0 +pp_data->cap[43]->NotRange.DesignatorIndex = 0 +pp_data->cap[43]->NotRange.Reserved3 = 0 +pp_data->cap[43]->NotRange.DataIndex = 43 +pp_data->cap[43]->NotRange.Reserved4 = 43 +pp_data->cap[43]->Button.LogicalMin = 0 +pp_data->cap[43]->Button.LogicalMax = 0 +pp_data->cap[43]->Units = 0 +pp_data->cap[43]->UnitsExp = 0 + +pp_data->cap[44]->UsagePage = 0xFF01 +pp_data->cap[44]->ReportID = 0x01 +pp_data->cap[44]->BitPosition = 7 +pp_data->cap[44]->BitSize = 1 +pp_data->cap[44]->ReportCount = 1 +pp_data->cap[44]->BytePosition = 0x0003 +pp_data->cap[44]->BitCount = 1 +pp_data->cap[44]->BitField = 0x02 +pp_data->cap[44]->NextBytePosition = 0x0004 +pp_data->cap[44]->LinkCollection = 0x0001 +pp_data->cap[44]->LinkUsagePage = 0xFF01 +pp_data->cap[44]->LinkUsage = 0x0001 +pp_data->cap[44]->IsMultipleItemsForArray = 0 +pp_data->cap[44]->IsButtonCap = 1 +pp_data->cap[44]->IsPadding = 0 +pp_data->cap[44]->IsAbsolute = 1 +pp_data->cap[44]->IsRange = 0 +pp_data->cap[44]->IsAlias = 0 +pp_data->cap[44]->IsStringRange = 0 +pp_data->cap[44]->IsDesignatorRange = 0 +pp_data->cap[44]->Reserved1 = 0x000000 +pp_data->cap[44]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[44]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[44]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[44]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[44]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[44]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[44]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[44]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[44]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[44]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[44]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[44]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[44]->NotRange.Usage = 0x0002 +pp_data->cap[44]->NotRange.Reserved1 = 0x0002 +pp_data->cap[44]->NotRange.StringIndex = 0 +pp_data->cap[44]->NotRange.Reserved2 = 0 +pp_data->cap[44]->NotRange.DesignatorIndex = 0 +pp_data->cap[44]->NotRange.Reserved3 = 0 +pp_data->cap[44]->NotRange.DataIndex = 44 +pp_data->cap[44]->NotRange.Reserved4 = 44 +pp_data->cap[44]->Button.LogicalMin = 0 +pp_data->cap[44]->Button.LogicalMax = 0 +pp_data->cap[44]->Units = 0 +pp_data->cap[44]->UnitsExp = 0 + +pp_data->cap[45]->UsagePage = 0xFF01 +pp_data->cap[45]->ReportID = 0x01 +pp_data->cap[45]->BitPosition = 6 +pp_data->cap[45]->BitSize = 1 +pp_data->cap[45]->ReportCount = 1 +pp_data->cap[45]->BytePosition = 0x0003 +pp_data->cap[45]->BitCount = 1 +pp_data->cap[45]->BitField = 0x02 +pp_data->cap[45]->NextBytePosition = 0x0004 +pp_data->cap[45]->LinkCollection = 0x0001 +pp_data->cap[45]->LinkUsagePage = 0xFF01 +pp_data->cap[45]->LinkUsage = 0x0001 +pp_data->cap[45]->IsMultipleItemsForArray = 0 +pp_data->cap[45]->IsButtonCap = 1 +pp_data->cap[45]->IsPadding = 0 +pp_data->cap[45]->IsAbsolute = 1 +pp_data->cap[45]->IsRange = 0 +pp_data->cap[45]->IsAlias = 0 +pp_data->cap[45]->IsStringRange = 0 +pp_data->cap[45]->IsDesignatorRange = 0 +pp_data->cap[45]->Reserved1 = 0x000000 +pp_data->cap[45]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[45]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[45]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[45]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[45]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[45]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[45]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[45]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[45]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[45]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[45]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[45]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[45]->NotRange.Usage = 0x0002 +pp_data->cap[45]->NotRange.Reserved1 = 0x0002 +pp_data->cap[45]->NotRange.StringIndex = 0 +pp_data->cap[45]->NotRange.Reserved2 = 0 +pp_data->cap[45]->NotRange.DesignatorIndex = 0 +pp_data->cap[45]->NotRange.Reserved3 = 0 +pp_data->cap[45]->NotRange.DataIndex = 45 +pp_data->cap[45]->NotRange.Reserved4 = 45 +pp_data->cap[45]->Button.LogicalMin = 0 +pp_data->cap[45]->Button.LogicalMax = 0 +pp_data->cap[45]->Units = 0 +pp_data->cap[45]->UnitsExp = 0 + +pp_data->cap[46]->UsagePage = 0xFF01 +pp_data->cap[46]->ReportID = 0x01 +pp_data->cap[46]->BitPosition = 5 +pp_data->cap[46]->BitSize = 1 +pp_data->cap[46]->ReportCount = 1 +pp_data->cap[46]->BytePosition = 0x0003 +pp_data->cap[46]->BitCount = 1 +pp_data->cap[46]->BitField = 0x02 +pp_data->cap[46]->NextBytePosition = 0x0004 +pp_data->cap[46]->LinkCollection = 0x0001 +pp_data->cap[46]->LinkUsagePage = 0xFF01 +pp_data->cap[46]->LinkUsage = 0x0001 +pp_data->cap[46]->IsMultipleItemsForArray = 0 +pp_data->cap[46]->IsButtonCap = 1 +pp_data->cap[46]->IsPadding = 0 +pp_data->cap[46]->IsAbsolute = 1 +pp_data->cap[46]->IsRange = 0 +pp_data->cap[46]->IsAlias = 0 +pp_data->cap[46]->IsStringRange = 0 +pp_data->cap[46]->IsDesignatorRange = 0 +pp_data->cap[46]->Reserved1 = 0x000000 +pp_data->cap[46]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[46]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[46]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[46]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[46]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[46]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[46]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[46]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[46]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[46]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[46]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[46]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[46]->NotRange.Usage = 0x0002 +pp_data->cap[46]->NotRange.Reserved1 = 0x0002 +pp_data->cap[46]->NotRange.StringIndex = 0 +pp_data->cap[46]->NotRange.Reserved2 = 0 +pp_data->cap[46]->NotRange.DesignatorIndex = 0 +pp_data->cap[46]->NotRange.Reserved3 = 0 +pp_data->cap[46]->NotRange.DataIndex = 46 +pp_data->cap[46]->NotRange.Reserved4 = 46 +pp_data->cap[46]->Button.LogicalMin = 0 +pp_data->cap[46]->Button.LogicalMax = 0 +pp_data->cap[46]->Units = 0 +pp_data->cap[46]->UnitsExp = 0 + +pp_data->cap[47]->UsagePage = 0xFF01 +pp_data->cap[47]->ReportID = 0x01 +pp_data->cap[47]->BitPosition = 4 +pp_data->cap[47]->BitSize = 1 +pp_data->cap[47]->ReportCount = 1 +pp_data->cap[47]->BytePosition = 0x0003 +pp_data->cap[47]->BitCount = 1 +pp_data->cap[47]->BitField = 0x02 +pp_data->cap[47]->NextBytePosition = 0x0004 +pp_data->cap[47]->LinkCollection = 0x0001 +pp_data->cap[47]->LinkUsagePage = 0xFF01 +pp_data->cap[47]->LinkUsage = 0x0001 +pp_data->cap[47]->IsMultipleItemsForArray = 0 +pp_data->cap[47]->IsButtonCap = 1 +pp_data->cap[47]->IsPadding = 0 +pp_data->cap[47]->IsAbsolute = 1 +pp_data->cap[47]->IsRange = 0 +pp_data->cap[47]->IsAlias = 0 +pp_data->cap[47]->IsStringRange = 0 +pp_data->cap[47]->IsDesignatorRange = 0 +pp_data->cap[47]->Reserved1 = 0x000000 +pp_data->cap[47]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[47]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[47]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[47]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[47]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[47]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[47]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[47]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[47]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[47]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[47]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[47]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[47]->NotRange.Usage = 0x0002 +pp_data->cap[47]->NotRange.Reserved1 = 0x0002 +pp_data->cap[47]->NotRange.StringIndex = 0 +pp_data->cap[47]->NotRange.Reserved2 = 0 +pp_data->cap[47]->NotRange.DesignatorIndex = 0 +pp_data->cap[47]->NotRange.Reserved3 = 0 +pp_data->cap[47]->NotRange.DataIndex = 47 +pp_data->cap[47]->NotRange.Reserved4 = 47 +pp_data->cap[47]->Button.LogicalMin = 0 +pp_data->cap[47]->Button.LogicalMax = 0 +pp_data->cap[47]->Units = 0 +pp_data->cap[47]->UnitsExp = 0 + +pp_data->cap[48]->UsagePage = 0xFF01 +pp_data->cap[48]->ReportID = 0x01 +pp_data->cap[48]->BitPosition = 3 +pp_data->cap[48]->BitSize = 1 +pp_data->cap[48]->ReportCount = 1 +pp_data->cap[48]->BytePosition = 0x0003 +pp_data->cap[48]->BitCount = 1 +pp_data->cap[48]->BitField = 0x02 +pp_data->cap[48]->NextBytePosition = 0x0004 +pp_data->cap[48]->LinkCollection = 0x0001 +pp_data->cap[48]->LinkUsagePage = 0xFF01 +pp_data->cap[48]->LinkUsage = 0x0001 +pp_data->cap[48]->IsMultipleItemsForArray = 0 +pp_data->cap[48]->IsButtonCap = 1 +pp_data->cap[48]->IsPadding = 0 +pp_data->cap[48]->IsAbsolute = 1 +pp_data->cap[48]->IsRange = 0 +pp_data->cap[48]->IsAlias = 0 +pp_data->cap[48]->IsStringRange = 0 +pp_data->cap[48]->IsDesignatorRange = 0 +pp_data->cap[48]->Reserved1 = 0x000000 +pp_data->cap[48]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[48]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[48]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[48]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[48]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[48]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[48]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[48]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[48]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[48]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[48]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[48]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[48]->NotRange.Usage = 0x0002 +pp_data->cap[48]->NotRange.Reserved1 = 0x0002 +pp_data->cap[48]->NotRange.StringIndex = 0 +pp_data->cap[48]->NotRange.Reserved2 = 0 +pp_data->cap[48]->NotRange.DesignatorIndex = 0 +pp_data->cap[48]->NotRange.Reserved3 = 0 +pp_data->cap[48]->NotRange.DataIndex = 48 +pp_data->cap[48]->NotRange.Reserved4 = 48 +pp_data->cap[48]->Button.LogicalMin = 0 +pp_data->cap[48]->Button.LogicalMax = 0 +pp_data->cap[48]->Units = 0 +pp_data->cap[48]->UnitsExp = 0 + +pp_data->cap[49]->UsagePage = 0xFF01 +pp_data->cap[49]->ReportID = 0x01 +pp_data->cap[49]->BitPosition = 2 +pp_data->cap[49]->BitSize = 1 +pp_data->cap[49]->ReportCount = 1 +pp_data->cap[49]->BytePosition = 0x0003 +pp_data->cap[49]->BitCount = 1 +pp_data->cap[49]->BitField = 0x02 +pp_data->cap[49]->NextBytePosition = 0x0004 +pp_data->cap[49]->LinkCollection = 0x0001 +pp_data->cap[49]->LinkUsagePage = 0xFF01 +pp_data->cap[49]->LinkUsage = 0x0001 +pp_data->cap[49]->IsMultipleItemsForArray = 0 +pp_data->cap[49]->IsButtonCap = 1 +pp_data->cap[49]->IsPadding = 0 +pp_data->cap[49]->IsAbsolute = 1 +pp_data->cap[49]->IsRange = 0 +pp_data->cap[49]->IsAlias = 0 +pp_data->cap[49]->IsStringRange = 0 +pp_data->cap[49]->IsDesignatorRange = 0 +pp_data->cap[49]->Reserved1 = 0x000000 +pp_data->cap[49]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[49]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[49]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[49]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[49]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[49]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[49]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[49]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[49]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[49]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[49]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[49]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[49]->NotRange.Usage = 0x0002 +pp_data->cap[49]->NotRange.Reserved1 = 0x0002 +pp_data->cap[49]->NotRange.StringIndex = 0 +pp_data->cap[49]->NotRange.Reserved2 = 0 +pp_data->cap[49]->NotRange.DesignatorIndex = 0 +pp_data->cap[49]->NotRange.Reserved3 = 0 +pp_data->cap[49]->NotRange.DataIndex = 49 +pp_data->cap[49]->NotRange.Reserved4 = 49 +pp_data->cap[49]->Button.LogicalMin = 0 +pp_data->cap[49]->Button.LogicalMax = 0 +pp_data->cap[49]->Units = 0 +pp_data->cap[49]->UnitsExp = 0 + +pp_data->cap[50]->UsagePage = 0xFF01 +pp_data->cap[50]->ReportID = 0x01 +pp_data->cap[50]->BitPosition = 1 +pp_data->cap[50]->BitSize = 1 +pp_data->cap[50]->ReportCount = 1 +pp_data->cap[50]->BytePosition = 0x0003 +pp_data->cap[50]->BitCount = 1 +pp_data->cap[50]->BitField = 0x02 +pp_data->cap[50]->NextBytePosition = 0x0004 +pp_data->cap[50]->LinkCollection = 0x0001 +pp_data->cap[50]->LinkUsagePage = 0xFF01 +pp_data->cap[50]->LinkUsage = 0x0001 +pp_data->cap[50]->IsMultipleItemsForArray = 0 +pp_data->cap[50]->IsButtonCap = 1 +pp_data->cap[50]->IsPadding = 0 +pp_data->cap[50]->IsAbsolute = 1 +pp_data->cap[50]->IsRange = 0 +pp_data->cap[50]->IsAlias = 0 +pp_data->cap[50]->IsStringRange = 0 +pp_data->cap[50]->IsDesignatorRange = 0 +pp_data->cap[50]->Reserved1 = 0x000000 +pp_data->cap[50]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[50]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[50]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[50]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[50]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[50]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[50]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[50]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[50]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[50]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[50]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[50]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[50]->NotRange.Usage = 0x0002 +pp_data->cap[50]->NotRange.Reserved1 = 0x0002 +pp_data->cap[50]->NotRange.StringIndex = 0 +pp_data->cap[50]->NotRange.Reserved2 = 0 +pp_data->cap[50]->NotRange.DesignatorIndex = 0 +pp_data->cap[50]->NotRange.Reserved3 = 0 +pp_data->cap[50]->NotRange.DataIndex = 50 +pp_data->cap[50]->NotRange.Reserved4 = 50 +pp_data->cap[50]->Button.LogicalMin = 0 +pp_data->cap[50]->Button.LogicalMax = 0 +pp_data->cap[50]->Units = 0 +pp_data->cap[50]->UnitsExp = 0 + +pp_data->cap[51]->UsagePage = 0xFF01 +pp_data->cap[51]->ReportID = 0x01 +pp_data->cap[51]->BitPosition = 0 +pp_data->cap[51]->BitSize = 1 +pp_data->cap[51]->ReportCount = 1 +pp_data->cap[51]->BytePosition = 0x0003 +pp_data->cap[51]->BitCount = 1 +pp_data->cap[51]->BitField = 0x02 +pp_data->cap[51]->NextBytePosition = 0x0004 +pp_data->cap[51]->LinkCollection = 0x0001 +pp_data->cap[51]->LinkUsagePage = 0xFF01 +pp_data->cap[51]->LinkUsage = 0x0001 +pp_data->cap[51]->IsMultipleItemsForArray = 0 +pp_data->cap[51]->IsButtonCap = 1 +pp_data->cap[51]->IsPadding = 0 +pp_data->cap[51]->IsAbsolute = 1 +pp_data->cap[51]->IsRange = 0 +pp_data->cap[51]->IsAlias = 0 +pp_data->cap[51]->IsStringRange = 0 +pp_data->cap[51]->IsDesignatorRange = 0 +pp_data->cap[51]->Reserved1 = 0x000000 +pp_data->cap[51]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[51]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[51]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[51]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[51]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[51]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[51]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[51]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[51]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[51]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[51]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[51]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[51]->NotRange.Usage = 0x0002 +pp_data->cap[51]->NotRange.Reserved1 = 0x0002 +pp_data->cap[51]->NotRange.StringIndex = 0 +pp_data->cap[51]->NotRange.Reserved2 = 0 +pp_data->cap[51]->NotRange.DesignatorIndex = 0 +pp_data->cap[51]->NotRange.Reserved3 = 0 +pp_data->cap[51]->NotRange.DataIndex = 51 +pp_data->cap[51]->NotRange.Reserved4 = 51 +pp_data->cap[51]->Button.LogicalMin = 0 +pp_data->cap[51]->Button.LogicalMax = 0 +pp_data->cap[51]->Units = 0 +pp_data->cap[51]->UnitsExp = 0 + +pp_data->cap[52]->UsagePage = 0xFF01 +pp_data->cap[52]->ReportID = 0x01 +pp_data->cap[52]->BitPosition = 7 +pp_data->cap[52]->BitSize = 1 +pp_data->cap[52]->ReportCount = 1 +pp_data->cap[52]->BytePosition = 0x0009 +pp_data->cap[52]->BitCount = 1 +pp_data->cap[52]->BitField = 0x02 +pp_data->cap[52]->NextBytePosition = 0x000A +pp_data->cap[52]->LinkCollection = 0x0001 +pp_data->cap[52]->LinkUsagePage = 0xFF01 +pp_data->cap[52]->LinkUsage = 0x0001 +pp_data->cap[52]->IsMultipleItemsForArray = 0 +pp_data->cap[52]->IsButtonCap = 1 +pp_data->cap[52]->IsPadding = 0 +pp_data->cap[52]->IsAbsolute = 1 +pp_data->cap[52]->IsRange = 0 +pp_data->cap[52]->IsAlias = 0 +pp_data->cap[52]->IsStringRange = 0 +pp_data->cap[52]->IsDesignatorRange = 0 +pp_data->cap[52]->Reserved1 = 0x000000 +pp_data->cap[52]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[52]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[52]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[52]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[52]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[52]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[52]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[52]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[52]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[52]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[52]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[52]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[52]->NotRange.Usage = 0x000B +pp_data->cap[52]->NotRange.Reserved1 = 0x000B +pp_data->cap[52]->NotRange.StringIndex = 0 +pp_data->cap[52]->NotRange.Reserved2 = 0 +pp_data->cap[52]->NotRange.DesignatorIndex = 0 +pp_data->cap[52]->NotRange.Reserved3 = 0 +pp_data->cap[52]->NotRange.DataIndex = 52 +pp_data->cap[52]->NotRange.Reserved4 = 52 +pp_data->cap[52]->Button.LogicalMin = 0 +pp_data->cap[52]->Button.LogicalMax = 0 +pp_data->cap[52]->Units = 0 +pp_data->cap[52]->UnitsExp = 0 + +pp_data->cap[53]->UsagePage = 0xFF01 +pp_data->cap[53]->ReportID = 0x01 +pp_data->cap[53]->BitPosition = 6 +pp_data->cap[53]->BitSize = 1 +pp_data->cap[53]->ReportCount = 1 +pp_data->cap[53]->BytePosition = 0x0009 +pp_data->cap[53]->BitCount = 1 +pp_data->cap[53]->BitField = 0x02 +pp_data->cap[53]->NextBytePosition = 0x000A +pp_data->cap[53]->LinkCollection = 0x0001 +pp_data->cap[53]->LinkUsagePage = 0xFF01 +pp_data->cap[53]->LinkUsage = 0x0001 +pp_data->cap[53]->IsMultipleItemsForArray = 0 +pp_data->cap[53]->IsButtonCap = 1 +pp_data->cap[53]->IsPadding = 0 +pp_data->cap[53]->IsAbsolute = 1 +pp_data->cap[53]->IsRange = 0 +pp_data->cap[53]->IsAlias = 0 +pp_data->cap[53]->IsStringRange = 0 +pp_data->cap[53]->IsDesignatorRange = 0 +pp_data->cap[53]->Reserved1 = 0x000000 +pp_data->cap[53]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[53]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[53]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[53]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[53]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[53]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[53]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[53]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[53]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[53]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[53]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[53]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[53]->NotRange.Usage = 0x000B +pp_data->cap[53]->NotRange.Reserved1 = 0x000B +pp_data->cap[53]->NotRange.StringIndex = 0 +pp_data->cap[53]->NotRange.Reserved2 = 0 +pp_data->cap[53]->NotRange.DesignatorIndex = 0 +pp_data->cap[53]->NotRange.Reserved3 = 0 +pp_data->cap[53]->NotRange.DataIndex = 53 +pp_data->cap[53]->NotRange.Reserved4 = 53 +pp_data->cap[53]->Button.LogicalMin = 0 +pp_data->cap[53]->Button.LogicalMax = 0 +pp_data->cap[53]->Units = 0 +pp_data->cap[53]->UnitsExp = 0 + +pp_data->cap[54]->UsagePage = 0xFF01 +pp_data->cap[54]->ReportID = 0x01 +pp_data->cap[54]->BitPosition = 5 +pp_data->cap[54]->BitSize = 1 +pp_data->cap[54]->ReportCount = 1 +pp_data->cap[54]->BytePosition = 0x0009 +pp_data->cap[54]->BitCount = 1 +pp_data->cap[54]->BitField = 0x02 +pp_data->cap[54]->NextBytePosition = 0x000A +pp_data->cap[54]->LinkCollection = 0x0001 +pp_data->cap[54]->LinkUsagePage = 0xFF01 +pp_data->cap[54]->LinkUsage = 0x0001 +pp_data->cap[54]->IsMultipleItemsForArray = 0 +pp_data->cap[54]->IsButtonCap = 1 +pp_data->cap[54]->IsPadding = 0 +pp_data->cap[54]->IsAbsolute = 1 +pp_data->cap[54]->IsRange = 0 +pp_data->cap[54]->IsAlias = 0 +pp_data->cap[54]->IsStringRange = 0 +pp_data->cap[54]->IsDesignatorRange = 0 +pp_data->cap[54]->Reserved1 = 0x000000 +pp_data->cap[54]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[54]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[54]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[54]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[54]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[54]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[54]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[54]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[54]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[54]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[54]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[54]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[54]->NotRange.Usage = 0x000B +pp_data->cap[54]->NotRange.Reserved1 = 0x000B +pp_data->cap[54]->NotRange.StringIndex = 0 +pp_data->cap[54]->NotRange.Reserved2 = 0 +pp_data->cap[54]->NotRange.DesignatorIndex = 0 +pp_data->cap[54]->NotRange.Reserved3 = 0 +pp_data->cap[54]->NotRange.DataIndex = 54 +pp_data->cap[54]->NotRange.Reserved4 = 54 +pp_data->cap[54]->Button.LogicalMin = 0 +pp_data->cap[54]->Button.LogicalMax = 0 +pp_data->cap[54]->Units = 0 +pp_data->cap[54]->UnitsExp = 0 + +pp_data->cap[55]->UsagePage = 0xFF01 +pp_data->cap[55]->ReportID = 0x01 +pp_data->cap[55]->BitPosition = 4 +pp_data->cap[55]->BitSize = 1 +pp_data->cap[55]->ReportCount = 1 +pp_data->cap[55]->BytePosition = 0x0009 +pp_data->cap[55]->BitCount = 1 +pp_data->cap[55]->BitField = 0x02 +pp_data->cap[55]->NextBytePosition = 0x000A +pp_data->cap[55]->LinkCollection = 0x0001 +pp_data->cap[55]->LinkUsagePage = 0xFF01 +pp_data->cap[55]->LinkUsage = 0x0001 +pp_data->cap[55]->IsMultipleItemsForArray = 0 +pp_data->cap[55]->IsButtonCap = 1 +pp_data->cap[55]->IsPadding = 0 +pp_data->cap[55]->IsAbsolute = 1 +pp_data->cap[55]->IsRange = 0 +pp_data->cap[55]->IsAlias = 0 +pp_data->cap[55]->IsStringRange = 0 +pp_data->cap[55]->IsDesignatorRange = 0 +pp_data->cap[55]->Reserved1 = 0x000000 +pp_data->cap[55]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[55]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[55]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[55]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[55]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[55]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[55]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[55]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[55]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[55]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[55]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[55]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[55]->NotRange.Usage = 0x000B +pp_data->cap[55]->NotRange.Reserved1 = 0x000B +pp_data->cap[55]->NotRange.StringIndex = 0 +pp_data->cap[55]->NotRange.Reserved2 = 0 +pp_data->cap[55]->NotRange.DesignatorIndex = 0 +pp_data->cap[55]->NotRange.Reserved3 = 0 +pp_data->cap[55]->NotRange.DataIndex = 55 +pp_data->cap[55]->NotRange.Reserved4 = 55 +pp_data->cap[55]->Button.LogicalMin = 0 +pp_data->cap[55]->Button.LogicalMax = 0 +pp_data->cap[55]->Units = 0 +pp_data->cap[55]->UnitsExp = 0 + +pp_data->cap[56]->UsagePage = 0xFF01 +pp_data->cap[56]->ReportID = 0x01 +pp_data->cap[56]->BitPosition = 3 +pp_data->cap[56]->BitSize = 1 +pp_data->cap[56]->ReportCount = 1 +pp_data->cap[56]->BytePosition = 0x0009 +pp_data->cap[56]->BitCount = 1 +pp_data->cap[56]->BitField = 0x02 +pp_data->cap[56]->NextBytePosition = 0x000A +pp_data->cap[56]->LinkCollection = 0x0001 +pp_data->cap[56]->LinkUsagePage = 0xFF01 +pp_data->cap[56]->LinkUsage = 0x0001 +pp_data->cap[56]->IsMultipleItemsForArray = 0 +pp_data->cap[56]->IsButtonCap = 1 +pp_data->cap[56]->IsPadding = 0 +pp_data->cap[56]->IsAbsolute = 1 +pp_data->cap[56]->IsRange = 0 +pp_data->cap[56]->IsAlias = 0 +pp_data->cap[56]->IsStringRange = 0 +pp_data->cap[56]->IsDesignatorRange = 0 +pp_data->cap[56]->Reserved1 = 0x000000 +pp_data->cap[56]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[56]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[56]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[56]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[56]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[56]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[56]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[56]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[56]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[56]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[56]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[56]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[56]->NotRange.Usage = 0x000B +pp_data->cap[56]->NotRange.Reserved1 = 0x000B +pp_data->cap[56]->NotRange.StringIndex = 0 +pp_data->cap[56]->NotRange.Reserved2 = 0 +pp_data->cap[56]->NotRange.DesignatorIndex = 0 +pp_data->cap[56]->NotRange.Reserved3 = 0 +pp_data->cap[56]->NotRange.DataIndex = 56 +pp_data->cap[56]->NotRange.Reserved4 = 56 +pp_data->cap[56]->Button.LogicalMin = 0 +pp_data->cap[56]->Button.LogicalMax = 0 +pp_data->cap[56]->Units = 0 +pp_data->cap[56]->UnitsExp = 0 + +pp_data->cap[57]->UsagePage = 0xFF01 +pp_data->cap[57]->ReportID = 0x01 +pp_data->cap[57]->BitPosition = 2 +pp_data->cap[57]->BitSize = 1 +pp_data->cap[57]->ReportCount = 1 +pp_data->cap[57]->BytePosition = 0x0009 +pp_data->cap[57]->BitCount = 1 +pp_data->cap[57]->BitField = 0x02 +pp_data->cap[57]->NextBytePosition = 0x000A +pp_data->cap[57]->LinkCollection = 0x0001 +pp_data->cap[57]->LinkUsagePage = 0xFF01 +pp_data->cap[57]->LinkUsage = 0x0001 +pp_data->cap[57]->IsMultipleItemsForArray = 0 +pp_data->cap[57]->IsButtonCap = 1 +pp_data->cap[57]->IsPadding = 0 +pp_data->cap[57]->IsAbsolute = 1 +pp_data->cap[57]->IsRange = 0 +pp_data->cap[57]->IsAlias = 0 +pp_data->cap[57]->IsStringRange = 0 +pp_data->cap[57]->IsDesignatorRange = 0 +pp_data->cap[57]->Reserved1 = 0x000000 +pp_data->cap[57]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[57]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[57]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[57]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[57]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[57]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[57]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[57]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[57]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[57]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[57]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[57]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[57]->NotRange.Usage = 0x000B +pp_data->cap[57]->NotRange.Reserved1 = 0x000B +pp_data->cap[57]->NotRange.StringIndex = 0 +pp_data->cap[57]->NotRange.Reserved2 = 0 +pp_data->cap[57]->NotRange.DesignatorIndex = 0 +pp_data->cap[57]->NotRange.Reserved3 = 0 +pp_data->cap[57]->NotRange.DataIndex = 57 +pp_data->cap[57]->NotRange.Reserved4 = 57 +pp_data->cap[57]->Button.LogicalMin = 0 +pp_data->cap[57]->Button.LogicalMax = 0 +pp_data->cap[57]->Units = 0 +pp_data->cap[57]->UnitsExp = 0 + +pp_data->cap[58]->UsagePage = 0xFF01 +pp_data->cap[58]->ReportID = 0x01 +pp_data->cap[58]->BitPosition = 1 +pp_data->cap[58]->BitSize = 1 +pp_data->cap[58]->ReportCount = 1 +pp_data->cap[58]->BytePosition = 0x0009 +pp_data->cap[58]->BitCount = 1 +pp_data->cap[58]->BitField = 0x02 +pp_data->cap[58]->NextBytePosition = 0x000A +pp_data->cap[58]->LinkCollection = 0x0001 +pp_data->cap[58]->LinkUsagePage = 0xFF01 +pp_data->cap[58]->LinkUsage = 0x0001 +pp_data->cap[58]->IsMultipleItemsForArray = 0 +pp_data->cap[58]->IsButtonCap = 1 +pp_data->cap[58]->IsPadding = 0 +pp_data->cap[58]->IsAbsolute = 1 +pp_data->cap[58]->IsRange = 0 +pp_data->cap[58]->IsAlias = 0 +pp_data->cap[58]->IsStringRange = 0 +pp_data->cap[58]->IsDesignatorRange = 0 +pp_data->cap[58]->Reserved1 = 0x000000 +pp_data->cap[58]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[58]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[58]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[58]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[58]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[58]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[58]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[58]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[58]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[58]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[58]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[58]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[58]->NotRange.Usage = 0x000B +pp_data->cap[58]->NotRange.Reserved1 = 0x000B +pp_data->cap[58]->NotRange.StringIndex = 0 +pp_data->cap[58]->NotRange.Reserved2 = 0 +pp_data->cap[58]->NotRange.DesignatorIndex = 0 +pp_data->cap[58]->NotRange.Reserved3 = 0 +pp_data->cap[58]->NotRange.DataIndex = 58 +pp_data->cap[58]->NotRange.Reserved4 = 58 +pp_data->cap[58]->Button.LogicalMin = 0 +pp_data->cap[58]->Button.LogicalMax = 0 +pp_data->cap[58]->Units = 0 +pp_data->cap[58]->UnitsExp = 0 + +pp_data->cap[59]->UsagePage = 0xFF01 +pp_data->cap[59]->ReportID = 0x01 +pp_data->cap[59]->BitPosition = 0 +pp_data->cap[59]->BitSize = 1 +pp_data->cap[59]->ReportCount = 1 +pp_data->cap[59]->BytePosition = 0x0009 +pp_data->cap[59]->BitCount = 1 +pp_data->cap[59]->BitField = 0x02 +pp_data->cap[59]->NextBytePosition = 0x000A +pp_data->cap[59]->LinkCollection = 0x0001 +pp_data->cap[59]->LinkUsagePage = 0xFF01 +pp_data->cap[59]->LinkUsage = 0x0001 +pp_data->cap[59]->IsMultipleItemsForArray = 0 +pp_data->cap[59]->IsButtonCap = 1 +pp_data->cap[59]->IsPadding = 0 +pp_data->cap[59]->IsAbsolute = 1 +pp_data->cap[59]->IsRange = 0 +pp_data->cap[59]->IsAlias = 0 +pp_data->cap[59]->IsStringRange = 0 +pp_data->cap[59]->IsDesignatorRange = 0 +pp_data->cap[59]->Reserved1 = 0x000000 +pp_data->cap[59]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[59]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[59]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[59]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[59]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[59]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[59]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[59]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[59]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[59]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[59]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[59]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[59]->NotRange.Usage = 0x000B +pp_data->cap[59]->NotRange.Reserved1 = 0x000B +pp_data->cap[59]->NotRange.StringIndex = 0 +pp_data->cap[59]->NotRange.Reserved2 = 0 +pp_data->cap[59]->NotRange.DesignatorIndex = 0 +pp_data->cap[59]->NotRange.Reserved3 = 0 +pp_data->cap[59]->NotRange.DataIndex = 59 +pp_data->cap[59]->NotRange.Reserved4 = 59 +pp_data->cap[59]->Button.LogicalMin = 0 +pp_data->cap[59]->Button.LogicalMax = 0 +pp_data->cap[59]->Units = 0 +pp_data->cap[59]->UnitsExp = 0 + +pp_data->cap[60]->UsagePage = 0xFF01 +pp_data->cap[60]->ReportID = 0x02 +pp_data->cap[60]->BitPosition = 0 +pp_data->cap[60]->BitSize = 16 +pp_data->cap[60]->ReportCount = 1 +pp_data->cap[60]->BytePosition = 0x0033 +pp_data->cap[60]->BitCount = 16 +pp_data->cap[60]->BitField = 0x02 +pp_data->cap[60]->NextBytePosition = 0x0035 +pp_data->cap[60]->LinkCollection = 0x0002 +pp_data->cap[60]->LinkUsagePage = 0xFF01 +pp_data->cap[60]->LinkUsage = 0x0002 +pp_data->cap[60]->IsMultipleItemsForArray = 0 +pp_data->cap[60]->IsButtonCap = 0 +pp_data->cap[60]->IsPadding = 0 +pp_data->cap[60]->IsAbsolute = 1 +pp_data->cap[60]->IsRange = 0 +pp_data->cap[60]->IsAlias = 0 +pp_data->cap[60]->IsStringRange = 0 +pp_data->cap[60]->IsDesignatorRange = 0 +pp_data->cap[60]->Reserved1 = 0x000000 +pp_data->cap[60]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[60]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[60]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[60]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[60]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[60]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[60]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[60]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[60]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[60]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[60]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[60]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[60]->NotRange.Usage = 0x0004 +pp_data->cap[60]->NotRange.Reserved1 = 0x0004 +pp_data->cap[60]->NotRange.StringIndex = 0 +pp_data->cap[60]->NotRange.Reserved2 = 0 +pp_data->cap[60]->NotRange.DesignatorIndex = 0 +pp_data->cap[60]->NotRange.Reserved3 = 0 +pp_data->cap[60]->NotRange.DataIndex = 60 +pp_data->cap[60]->NotRange.Reserved4 = 60 +pp_data->cap[60]->NotButton.HasNull = 0 +pp_data->cap[60]->NotButton.Reserved4 = 0x000000 +pp_data->cap[60]->NotButton.LogicalMin = 0 +pp_data->cap[60]->NotButton.LogicalMax = 4095 +pp_data->cap[60]->NotButton.PhysicalMin = 0 +pp_data->cap[60]->NotButton.PhysicalMax = 0 +pp_data->cap[60]->Units = 0 +pp_data->cap[60]->UnitsExp = 0 + +pp_data->cap[61]->UsagePage = 0xFF01 +pp_data->cap[61]->ReportID = 0x02 +pp_data->cap[61]->BitPosition = 0 +pp_data->cap[61]->BitSize = 16 +pp_data->cap[61]->ReportCount = 1 +pp_data->cap[61]->BytePosition = 0x0031 +pp_data->cap[61]->BitCount = 16 +pp_data->cap[61]->BitField = 0x02 +pp_data->cap[61]->NextBytePosition = 0x0033 +pp_data->cap[61]->LinkCollection = 0x0002 +pp_data->cap[61]->LinkUsagePage = 0xFF01 +pp_data->cap[61]->LinkUsage = 0x0002 +pp_data->cap[61]->IsMultipleItemsForArray = 0 +pp_data->cap[61]->IsButtonCap = 0 +pp_data->cap[61]->IsPadding = 0 +pp_data->cap[61]->IsAbsolute = 1 +pp_data->cap[61]->IsRange = 0 +pp_data->cap[61]->IsAlias = 0 +pp_data->cap[61]->IsStringRange = 0 +pp_data->cap[61]->IsDesignatorRange = 0 +pp_data->cap[61]->Reserved1 = 0x000000 +pp_data->cap[61]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[61]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[61]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[61]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[61]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[61]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[61]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[61]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[61]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[61]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[61]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[61]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[61]->NotRange.Usage = 0x0004 +pp_data->cap[61]->NotRange.Reserved1 = 0x0004 +pp_data->cap[61]->NotRange.StringIndex = 0 +pp_data->cap[61]->NotRange.Reserved2 = 0 +pp_data->cap[61]->NotRange.DesignatorIndex = 0 +pp_data->cap[61]->NotRange.Reserved3 = 0 +pp_data->cap[61]->NotRange.DataIndex = 61 +pp_data->cap[61]->NotRange.Reserved4 = 61 +pp_data->cap[61]->NotButton.HasNull = 0 +pp_data->cap[61]->NotButton.Reserved4 = 0x000000 +pp_data->cap[61]->NotButton.LogicalMin = 0 +pp_data->cap[61]->NotButton.LogicalMax = 4095 +pp_data->cap[61]->NotButton.PhysicalMin = 0 +pp_data->cap[61]->NotButton.PhysicalMax = 0 +pp_data->cap[61]->Units = 0 +pp_data->cap[61]->UnitsExp = 0 + +pp_data->cap[62]->UsagePage = 0xFF01 +pp_data->cap[62]->ReportID = 0x02 +pp_data->cap[62]->BitPosition = 0 +pp_data->cap[62]->BitSize = 16 +pp_data->cap[62]->ReportCount = 1 +pp_data->cap[62]->BytePosition = 0x002F +pp_data->cap[62]->BitCount = 16 +pp_data->cap[62]->BitField = 0x02 +pp_data->cap[62]->NextBytePosition = 0x0031 +pp_data->cap[62]->LinkCollection = 0x0002 +pp_data->cap[62]->LinkUsagePage = 0xFF01 +pp_data->cap[62]->LinkUsage = 0x0002 +pp_data->cap[62]->IsMultipleItemsForArray = 0 +pp_data->cap[62]->IsButtonCap = 0 +pp_data->cap[62]->IsPadding = 0 +pp_data->cap[62]->IsAbsolute = 1 +pp_data->cap[62]->IsRange = 0 +pp_data->cap[62]->IsAlias = 0 +pp_data->cap[62]->IsStringRange = 0 +pp_data->cap[62]->IsDesignatorRange = 0 +pp_data->cap[62]->Reserved1 = 0x000000 +pp_data->cap[62]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[62]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[62]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[62]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[62]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[62]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[62]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[62]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[62]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[62]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[62]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[62]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[62]->NotRange.Usage = 0x0004 +pp_data->cap[62]->NotRange.Reserved1 = 0x0004 +pp_data->cap[62]->NotRange.StringIndex = 0 +pp_data->cap[62]->NotRange.Reserved2 = 0 +pp_data->cap[62]->NotRange.DesignatorIndex = 0 +pp_data->cap[62]->NotRange.Reserved3 = 0 +pp_data->cap[62]->NotRange.DataIndex = 62 +pp_data->cap[62]->NotRange.Reserved4 = 62 +pp_data->cap[62]->NotButton.HasNull = 0 +pp_data->cap[62]->NotButton.Reserved4 = 0x000000 +pp_data->cap[62]->NotButton.LogicalMin = 0 +pp_data->cap[62]->NotButton.LogicalMax = 4095 +pp_data->cap[62]->NotButton.PhysicalMin = 0 +pp_data->cap[62]->NotButton.PhysicalMax = 0 +pp_data->cap[62]->Units = 0 +pp_data->cap[62]->UnitsExp = 0 + +pp_data->cap[63]->UsagePage = 0xFF01 +pp_data->cap[63]->ReportID = 0x02 +pp_data->cap[63]->BitPosition = 0 +pp_data->cap[63]->BitSize = 16 +pp_data->cap[63]->ReportCount = 1 +pp_data->cap[63]->BytePosition = 0x002D +pp_data->cap[63]->BitCount = 16 +pp_data->cap[63]->BitField = 0x02 +pp_data->cap[63]->NextBytePosition = 0x002F +pp_data->cap[63]->LinkCollection = 0x0002 +pp_data->cap[63]->LinkUsagePage = 0xFF01 +pp_data->cap[63]->LinkUsage = 0x0002 +pp_data->cap[63]->IsMultipleItemsForArray = 0 +pp_data->cap[63]->IsButtonCap = 0 +pp_data->cap[63]->IsPadding = 0 +pp_data->cap[63]->IsAbsolute = 1 +pp_data->cap[63]->IsRange = 0 +pp_data->cap[63]->IsAlias = 0 +pp_data->cap[63]->IsStringRange = 0 +pp_data->cap[63]->IsDesignatorRange = 0 +pp_data->cap[63]->Reserved1 = 0x000000 +pp_data->cap[63]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[63]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[63]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[63]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[63]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[63]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[63]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[63]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[63]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[63]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[63]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[63]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[63]->NotRange.Usage = 0x0004 +pp_data->cap[63]->NotRange.Reserved1 = 0x0004 +pp_data->cap[63]->NotRange.StringIndex = 0 +pp_data->cap[63]->NotRange.Reserved2 = 0 +pp_data->cap[63]->NotRange.DesignatorIndex = 0 +pp_data->cap[63]->NotRange.Reserved3 = 0 +pp_data->cap[63]->NotRange.DataIndex = 63 +pp_data->cap[63]->NotRange.Reserved4 = 63 +pp_data->cap[63]->NotButton.HasNull = 0 +pp_data->cap[63]->NotButton.Reserved4 = 0x000000 +pp_data->cap[63]->NotButton.LogicalMin = 0 +pp_data->cap[63]->NotButton.LogicalMax = 4095 +pp_data->cap[63]->NotButton.PhysicalMin = 0 +pp_data->cap[63]->NotButton.PhysicalMax = 0 +pp_data->cap[63]->Units = 0 +pp_data->cap[63]->UnitsExp = 0 + +pp_data->cap[64]->UsagePage = 0xFF01 +pp_data->cap[64]->ReportID = 0x02 +pp_data->cap[64]->BitPosition = 0 +pp_data->cap[64]->BitSize = 16 +pp_data->cap[64]->ReportCount = 1 +pp_data->cap[64]->BytePosition = 0x002B +pp_data->cap[64]->BitCount = 16 +pp_data->cap[64]->BitField = 0x02 +pp_data->cap[64]->NextBytePosition = 0x002D +pp_data->cap[64]->LinkCollection = 0x0002 +pp_data->cap[64]->LinkUsagePage = 0xFF01 +pp_data->cap[64]->LinkUsage = 0x0002 +pp_data->cap[64]->IsMultipleItemsForArray = 0 +pp_data->cap[64]->IsButtonCap = 0 +pp_data->cap[64]->IsPadding = 0 +pp_data->cap[64]->IsAbsolute = 1 +pp_data->cap[64]->IsRange = 0 +pp_data->cap[64]->IsAlias = 0 +pp_data->cap[64]->IsStringRange = 0 +pp_data->cap[64]->IsDesignatorRange = 0 +pp_data->cap[64]->Reserved1 = 0x000000 +pp_data->cap[64]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[64]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[64]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[64]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[64]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[64]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[64]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[64]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[64]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[64]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[64]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[64]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[64]->NotRange.Usage = 0x0004 +pp_data->cap[64]->NotRange.Reserved1 = 0x0004 +pp_data->cap[64]->NotRange.StringIndex = 0 +pp_data->cap[64]->NotRange.Reserved2 = 0 +pp_data->cap[64]->NotRange.DesignatorIndex = 0 +pp_data->cap[64]->NotRange.Reserved3 = 0 +pp_data->cap[64]->NotRange.DataIndex = 64 +pp_data->cap[64]->NotRange.Reserved4 = 64 +pp_data->cap[64]->NotButton.HasNull = 0 +pp_data->cap[64]->NotButton.Reserved4 = 0x000000 +pp_data->cap[64]->NotButton.LogicalMin = 0 +pp_data->cap[64]->NotButton.LogicalMax = 4095 +pp_data->cap[64]->NotButton.PhysicalMin = 0 +pp_data->cap[64]->NotButton.PhysicalMax = 0 +pp_data->cap[64]->Units = 0 +pp_data->cap[64]->UnitsExp = 0 + +pp_data->cap[65]->UsagePage = 0xFF01 +pp_data->cap[65]->ReportID = 0x02 +pp_data->cap[65]->BitPosition = 0 +pp_data->cap[65]->BitSize = 16 +pp_data->cap[65]->ReportCount = 1 +pp_data->cap[65]->BytePosition = 0x0029 +pp_data->cap[65]->BitCount = 16 +pp_data->cap[65]->BitField = 0x02 +pp_data->cap[65]->NextBytePosition = 0x002B +pp_data->cap[65]->LinkCollection = 0x0002 +pp_data->cap[65]->LinkUsagePage = 0xFF01 +pp_data->cap[65]->LinkUsage = 0x0002 +pp_data->cap[65]->IsMultipleItemsForArray = 0 +pp_data->cap[65]->IsButtonCap = 0 +pp_data->cap[65]->IsPadding = 0 +pp_data->cap[65]->IsAbsolute = 1 +pp_data->cap[65]->IsRange = 0 +pp_data->cap[65]->IsAlias = 0 +pp_data->cap[65]->IsStringRange = 0 +pp_data->cap[65]->IsDesignatorRange = 0 +pp_data->cap[65]->Reserved1 = 0x000000 +pp_data->cap[65]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[65]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[65]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[65]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[65]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[65]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[65]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[65]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[65]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[65]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[65]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[65]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[65]->NotRange.Usage = 0x0004 +pp_data->cap[65]->NotRange.Reserved1 = 0x0004 +pp_data->cap[65]->NotRange.StringIndex = 0 +pp_data->cap[65]->NotRange.Reserved2 = 0 +pp_data->cap[65]->NotRange.DesignatorIndex = 0 +pp_data->cap[65]->NotRange.Reserved3 = 0 +pp_data->cap[65]->NotRange.DataIndex = 65 +pp_data->cap[65]->NotRange.Reserved4 = 65 +pp_data->cap[65]->NotButton.HasNull = 0 +pp_data->cap[65]->NotButton.Reserved4 = 0x000000 +pp_data->cap[65]->NotButton.LogicalMin = 0 +pp_data->cap[65]->NotButton.LogicalMax = 4095 +pp_data->cap[65]->NotButton.PhysicalMin = 0 +pp_data->cap[65]->NotButton.PhysicalMax = 0 +pp_data->cap[65]->Units = 0 +pp_data->cap[65]->UnitsExp = 0 + +pp_data->cap[66]->UsagePage = 0xFF01 +pp_data->cap[66]->ReportID = 0x02 +pp_data->cap[66]->BitPosition = 0 +pp_data->cap[66]->BitSize = 16 +pp_data->cap[66]->ReportCount = 1 +pp_data->cap[66]->BytePosition = 0x0027 +pp_data->cap[66]->BitCount = 16 +pp_data->cap[66]->BitField = 0x02 +pp_data->cap[66]->NextBytePosition = 0x0029 +pp_data->cap[66]->LinkCollection = 0x0002 +pp_data->cap[66]->LinkUsagePage = 0xFF01 +pp_data->cap[66]->LinkUsage = 0x0002 +pp_data->cap[66]->IsMultipleItemsForArray = 0 +pp_data->cap[66]->IsButtonCap = 0 +pp_data->cap[66]->IsPadding = 0 +pp_data->cap[66]->IsAbsolute = 1 +pp_data->cap[66]->IsRange = 0 +pp_data->cap[66]->IsAlias = 0 +pp_data->cap[66]->IsStringRange = 0 +pp_data->cap[66]->IsDesignatorRange = 0 +pp_data->cap[66]->Reserved1 = 0x000000 +pp_data->cap[66]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[66]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[66]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[66]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[66]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[66]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[66]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[66]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[66]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[66]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[66]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[66]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[66]->NotRange.Usage = 0x0004 +pp_data->cap[66]->NotRange.Reserved1 = 0x0004 +pp_data->cap[66]->NotRange.StringIndex = 0 +pp_data->cap[66]->NotRange.Reserved2 = 0 +pp_data->cap[66]->NotRange.DesignatorIndex = 0 +pp_data->cap[66]->NotRange.Reserved3 = 0 +pp_data->cap[66]->NotRange.DataIndex = 66 +pp_data->cap[66]->NotRange.Reserved4 = 66 +pp_data->cap[66]->NotButton.HasNull = 0 +pp_data->cap[66]->NotButton.Reserved4 = 0x000000 +pp_data->cap[66]->NotButton.LogicalMin = 0 +pp_data->cap[66]->NotButton.LogicalMax = 4095 +pp_data->cap[66]->NotButton.PhysicalMin = 0 +pp_data->cap[66]->NotButton.PhysicalMax = 0 +pp_data->cap[66]->Units = 0 +pp_data->cap[66]->UnitsExp = 0 + +pp_data->cap[67]->UsagePage = 0xFF01 +pp_data->cap[67]->ReportID = 0x02 +pp_data->cap[67]->BitPosition = 0 +pp_data->cap[67]->BitSize = 16 +pp_data->cap[67]->ReportCount = 1 +pp_data->cap[67]->BytePosition = 0x0025 +pp_data->cap[67]->BitCount = 16 +pp_data->cap[67]->BitField = 0x02 +pp_data->cap[67]->NextBytePosition = 0x0027 +pp_data->cap[67]->LinkCollection = 0x0002 +pp_data->cap[67]->LinkUsagePage = 0xFF01 +pp_data->cap[67]->LinkUsage = 0x0002 +pp_data->cap[67]->IsMultipleItemsForArray = 0 +pp_data->cap[67]->IsButtonCap = 0 +pp_data->cap[67]->IsPadding = 0 +pp_data->cap[67]->IsAbsolute = 1 +pp_data->cap[67]->IsRange = 0 +pp_data->cap[67]->IsAlias = 0 +pp_data->cap[67]->IsStringRange = 0 +pp_data->cap[67]->IsDesignatorRange = 0 +pp_data->cap[67]->Reserved1 = 0x000000 +pp_data->cap[67]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[67]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[67]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[67]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[67]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[67]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[67]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[67]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[67]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[67]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[67]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[67]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[67]->NotRange.Usage = 0x0004 +pp_data->cap[67]->NotRange.Reserved1 = 0x0004 +pp_data->cap[67]->NotRange.StringIndex = 0 +pp_data->cap[67]->NotRange.Reserved2 = 0 +pp_data->cap[67]->NotRange.DesignatorIndex = 0 +pp_data->cap[67]->NotRange.Reserved3 = 0 +pp_data->cap[67]->NotRange.DataIndex = 67 +pp_data->cap[67]->NotRange.Reserved4 = 67 +pp_data->cap[67]->NotButton.HasNull = 0 +pp_data->cap[67]->NotButton.Reserved4 = 0x000000 +pp_data->cap[67]->NotButton.LogicalMin = 0 +pp_data->cap[67]->NotButton.LogicalMax = 4095 +pp_data->cap[67]->NotButton.PhysicalMin = 0 +pp_data->cap[67]->NotButton.PhysicalMax = 0 +pp_data->cap[67]->Units = 0 +pp_data->cap[67]->UnitsExp = 0 + +pp_data->cap[68]->UsagePage = 0xFF01 +pp_data->cap[68]->ReportID = 0x02 +pp_data->cap[68]->BitPosition = 0 +pp_data->cap[68]->BitSize = 16 +pp_data->cap[68]->ReportCount = 1 +pp_data->cap[68]->BytePosition = 0x0023 +pp_data->cap[68]->BitCount = 16 +pp_data->cap[68]->BitField = 0x02 +pp_data->cap[68]->NextBytePosition = 0x0025 +pp_data->cap[68]->LinkCollection = 0x0002 +pp_data->cap[68]->LinkUsagePage = 0xFF01 +pp_data->cap[68]->LinkUsage = 0x0002 +pp_data->cap[68]->IsMultipleItemsForArray = 0 +pp_data->cap[68]->IsButtonCap = 0 +pp_data->cap[68]->IsPadding = 0 +pp_data->cap[68]->IsAbsolute = 1 +pp_data->cap[68]->IsRange = 0 +pp_data->cap[68]->IsAlias = 0 +pp_data->cap[68]->IsStringRange = 0 +pp_data->cap[68]->IsDesignatorRange = 0 +pp_data->cap[68]->Reserved1 = 0x000000 +pp_data->cap[68]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[68]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[68]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[68]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[68]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[68]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[68]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[68]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[68]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[68]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[68]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[68]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[68]->NotRange.Usage = 0x0004 +pp_data->cap[68]->NotRange.Reserved1 = 0x0004 +pp_data->cap[68]->NotRange.StringIndex = 0 +pp_data->cap[68]->NotRange.Reserved2 = 0 +pp_data->cap[68]->NotRange.DesignatorIndex = 0 +pp_data->cap[68]->NotRange.Reserved3 = 0 +pp_data->cap[68]->NotRange.DataIndex = 68 +pp_data->cap[68]->NotRange.Reserved4 = 68 +pp_data->cap[68]->NotButton.HasNull = 0 +pp_data->cap[68]->NotButton.Reserved4 = 0x000000 +pp_data->cap[68]->NotButton.LogicalMin = 0 +pp_data->cap[68]->NotButton.LogicalMax = 4095 +pp_data->cap[68]->NotButton.PhysicalMin = 0 +pp_data->cap[68]->NotButton.PhysicalMax = 0 +pp_data->cap[68]->Units = 0 +pp_data->cap[68]->UnitsExp = 0 + +pp_data->cap[69]->UsagePage = 0xFF01 +pp_data->cap[69]->ReportID = 0x02 +pp_data->cap[69]->BitPosition = 0 +pp_data->cap[69]->BitSize = 16 +pp_data->cap[69]->ReportCount = 1 +pp_data->cap[69]->BytePosition = 0x0021 +pp_data->cap[69]->BitCount = 16 +pp_data->cap[69]->BitField = 0x02 +pp_data->cap[69]->NextBytePosition = 0x0023 +pp_data->cap[69]->LinkCollection = 0x0002 +pp_data->cap[69]->LinkUsagePage = 0xFF01 +pp_data->cap[69]->LinkUsage = 0x0002 +pp_data->cap[69]->IsMultipleItemsForArray = 0 +pp_data->cap[69]->IsButtonCap = 0 +pp_data->cap[69]->IsPadding = 0 +pp_data->cap[69]->IsAbsolute = 1 +pp_data->cap[69]->IsRange = 0 +pp_data->cap[69]->IsAlias = 0 +pp_data->cap[69]->IsStringRange = 0 +pp_data->cap[69]->IsDesignatorRange = 0 +pp_data->cap[69]->Reserved1 = 0x000000 +pp_data->cap[69]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[69]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[69]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[69]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[69]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[69]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[69]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[69]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[69]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[69]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[69]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[69]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[69]->NotRange.Usage = 0x0004 +pp_data->cap[69]->NotRange.Reserved1 = 0x0004 +pp_data->cap[69]->NotRange.StringIndex = 0 +pp_data->cap[69]->NotRange.Reserved2 = 0 +pp_data->cap[69]->NotRange.DesignatorIndex = 0 +pp_data->cap[69]->NotRange.Reserved3 = 0 +pp_data->cap[69]->NotRange.DataIndex = 69 +pp_data->cap[69]->NotRange.Reserved4 = 69 +pp_data->cap[69]->NotButton.HasNull = 0 +pp_data->cap[69]->NotButton.Reserved4 = 0x000000 +pp_data->cap[69]->NotButton.LogicalMin = 0 +pp_data->cap[69]->NotButton.LogicalMax = 4095 +pp_data->cap[69]->NotButton.PhysicalMin = 0 +pp_data->cap[69]->NotButton.PhysicalMax = 0 +pp_data->cap[69]->Units = 0 +pp_data->cap[69]->UnitsExp = 0 + +pp_data->cap[70]->UsagePage = 0xFF01 +pp_data->cap[70]->ReportID = 0x02 +pp_data->cap[70]->BitPosition = 0 +pp_data->cap[70]->BitSize = 16 +pp_data->cap[70]->ReportCount = 1 +pp_data->cap[70]->BytePosition = 0x001F +pp_data->cap[70]->BitCount = 16 +pp_data->cap[70]->BitField = 0x02 +pp_data->cap[70]->NextBytePosition = 0x0021 +pp_data->cap[70]->LinkCollection = 0x0002 +pp_data->cap[70]->LinkUsagePage = 0xFF01 +pp_data->cap[70]->LinkUsage = 0x0002 +pp_data->cap[70]->IsMultipleItemsForArray = 0 +pp_data->cap[70]->IsButtonCap = 0 +pp_data->cap[70]->IsPadding = 0 +pp_data->cap[70]->IsAbsolute = 1 +pp_data->cap[70]->IsRange = 0 +pp_data->cap[70]->IsAlias = 0 +pp_data->cap[70]->IsStringRange = 0 +pp_data->cap[70]->IsDesignatorRange = 0 +pp_data->cap[70]->Reserved1 = 0x000000 +pp_data->cap[70]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[70]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[70]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[70]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[70]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[70]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[70]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[70]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[70]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[70]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[70]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[70]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[70]->NotRange.Usage = 0x0004 +pp_data->cap[70]->NotRange.Reserved1 = 0x0004 +pp_data->cap[70]->NotRange.StringIndex = 0 +pp_data->cap[70]->NotRange.Reserved2 = 0 +pp_data->cap[70]->NotRange.DesignatorIndex = 0 +pp_data->cap[70]->NotRange.Reserved3 = 0 +pp_data->cap[70]->NotRange.DataIndex = 70 +pp_data->cap[70]->NotRange.Reserved4 = 70 +pp_data->cap[70]->NotButton.HasNull = 0 +pp_data->cap[70]->NotButton.Reserved4 = 0x000000 +pp_data->cap[70]->NotButton.LogicalMin = 0 +pp_data->cap[70]->NotButton.LogicalMax = 4095 +pp_data->cap[70]->NotButton.PhysicalMin = 0 +pp_data->cap[70]->NotButton.PhysicalMax = 0 +pp_data->cap[70]->Units = 0 +pp_data->cap[70]->UnitsExp = 0 + +pp_data->cap[71]->UsagePage = 0xFF01 +pp_data->cap[71]->ReportID = 0x02 +pp_data->cap[71]->BitPosition = 0 +pp_data->cap[71]->BitSize = 16 +pp_data->cap[71]->ReportCount = 1 +pp_data->cap[71]->BytePosition = 0x001D +pp_data->cap[71]->BitCount = 16 +pp_data->cap[71]->BitField = 0x02 +pp_data->cap[71]->NextBytePosition = 0x001F +pp_data->cap[71]->LinkCollection = 0x0002 +pp_data->cap[71]->LinkUsagePage = 0xFF01 +pp_data->cap[71]->LinkUsage = 0x0002 +pp_data->cap[71]->IsMultipleItemsForArray = 0 +pp_data->cap[71]->IsButtonCap = 0 +pp_data->cap[71]->IsPadding = 0 +pp_data->cap[71]->IsAbsolute = 1 +pp_data->cap[71]->IsRange = 0 +pp_data->cap[71]->IsAlias = 0 +pp_data->cap[71]->IsStringRange = 0 +pp_data->cap[71]->IsDesignatorRange = 0 +pp_data->cap[71]->Reserved1 = 0x000000 +pp_data->cap[71]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[71]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[71]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[71]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[71]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[71]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[71]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[71]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[71]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[71]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[71]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[71]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[71]->NotRange.Usage = 0x0004 +pp_data->cap[71]->NotRange.Reserved1 = 0x0004 +pp_data->cap[71]->NotRange.StringIndex = 0 +pp_data->cap[71]->NotRange.Reserved2 = 0 +pp_data->cap[71]->NotRange.DesignatorIndex = 0 +pp_data->cap[71]->NotRange.Reserved3 = 0 +pp_data->cap[71]->NotRange.DataIndex = 71 +pp_data->cap[71]->NotRange.Reserved4 = 71 +pp_data->cap[71]->NotButton.HasNull = 0 +pp_data->cap[71]->NotButton.Reserved4 = 0x000000 +pp_data->cap[71]->NotButton.LogicalMin = 0 +pp_data->cap[71]->NotButton.LogicalMax = 4095 +pp_data->cap[71]->NotButton.PhysicalMin = 0 +pp_data->cap[71]->NotButton.PhysicalMax = 0 +pp_data->cap[71]->Units = 0 +pp_data->cap[71]->UnitsExp = 0 + +pp_data->cap[72]->UsagePage = 0xFF01 +pp_data->cap[72]->ReportID = 0x02 +pp_data->cap[72]->BitPosition = 0 +pp_data->cap[72]->BitSize = 16 +pp_data->cap[72]->ReportCount = 1 +pp_data->cap[72]->BytePosition = 0x001B +pp_data->cap[72]->BitCount = 16 +pp_data->cap[72]->BitField = 0x02 +pp_data->cap[72]->NextBytePosition = 0x001D +pp_data->cap[72]->LinkCollection = 0x0002 +pp_data->cap[72]->LinkUsagePage = 0xFF01 +pp_data->cap[72]->LinkUsage = 0x0002 +pp_data->cap[72]->IsMultipleItemsForArray = 0 +pp_data->cap[72]->IsButtonCap = 0 +pp_data->cap[72]->IsPadding = 0 +pp_data->cap[72]->IsAbsolute = 1 +pp_data->cap[72]->IsRange = 0 +pp_data->cap[72]->IsAlias = 0 +pp_data->cap[72]->IsStringRange = 0 +pp_data->cap[72]->IsDesignatorRange = 0 +pp_data->cap[72]->Reserved1 = 0x000000 +pp_data->cap[72]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[72]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[72]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[72]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[72]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[72]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[72]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[72]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[72]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[72]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[72]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[72]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[72]->NotRange.Usage = 0x0004 +pp_data->cap[72]->NotRange.Reserved1 = 0x0004 +pp_data->cap[72]->NotRange.StringIndex = 0 +pp_data->cap[72]->NotRange.Reserved2 = 0 +pp_data->cap[72]->NotRange.DesignatorIndex = 0 +pp_data->cap[72]->NotRange.Reserved3 = 0 +pp_data->cap[72]->NotRange.DataIndex = 72 +pp_data->cap[72]->NotRange.Reserved4 = 72 +pp_data->cap[72]->NotButton.HasNull = 0 +pp_data->cap[72]->NotButton.Reserved4 = 0x000000 +pp_data->cap[72]->NotButton.LogicalMin = 0 +pp_data->cap[72]->NotButton.LogicalMax = 4095 +pp_data->cap[72]->NotButton.PhysicalMin = 0 +pp_data->cap[72]->NotButton.PhysicalMax = 0 +pp_data->cap[72]->Units = 0 +pp_data->cap[72]->UnitsExp = 0 + +pp_data->cap[73]->UsagePage = 0xFF01 +pp_data->cap[73]->ReportID = 0x02 +pp_data->cap[73]->BitPosition = 0 +pp_data->cap[73]->BitSize = 16 +pp_data->cap[73]->ReportCount = 1 +pp_data->cap[73]->BytePosition = 0x0019 +pp_data->cap[73]->BitCount = 16 +pp_data->cap[73]->BitField = 0x02 +pp_data->cap[73]->NextBytePosition = 0x001B +pp_data->cap[73]->LinkCollection = 0x0002 +pp_data->cap[73]->LinkUsagePage = 0xFF01 +pp_data->cap[73]->LinkUsage = 0x0002 +pp_data->cap[73]->IsMultipleItemsForArray = 0 +pp_data->cap[73]->IsButtonCap = 0 +pp_data->cap[73]->IsPadding = 0 +pp_data->cap[73]->IsAbsolute = 1 +pp_data->cap[73]->IsRange = 0 +pp_data->cap[73]->IsAlias = 0 +pp_data->cap[73]->IsStringRange = 0 +pp_data->cap[73]->IsDesignatorRange = 0 +pp_data->cap[73]->Reserved1 = 0x000000 +pp_data->cap[73]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[73]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[73]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[73]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[73]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[73]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[73]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[73]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[73]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[73]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[73]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[73]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[73]->NotRange.Usage = 0x0004 +pp_data->cap[73]->NotRange.Reserved1 = 0x0004 +pp_data->cap[73]->NotRange.StringIndex = 0 +pp_data->cap[73]->NotRange.Reserved2 = 0 +pp_data->cap[73]->NotRange.DesignatorIndex = 0 +pp_data->cap[73]->NotRange.Reserved3 = 0 +pp_data->cap[73]->NotRange.DataIndex = 73 +pp_data->cap[73]->NotRange.Reserved4 = 73 +pp_data->cap[73]->NotButton.HasNull = 0 +pp_data->cap[73]->NotButton.Reserved4 = 0x000000 +pp_data->cap[73]->NotButton.LogicalMin = 0 +pp_data->cap[73]->NotButton.LogicalMax = 4095 +pp_data->cap[73]->NotButton.PhysicalMin = 0 +pp_data->cap[73]->NotButton.PhysicalMax = 0 +pp_data->cap[73]->Units = 0 +pp_data->cap[73]->UnitsExp = 0 + +pp_data->cap[74]->UsagePage = 0xFF01 +pp_data->cap[74]->ReportID = 0x02 +pp_data->cap[74]->BitPosition = 0 +pp_data->cap[74]->BitSize = 16 +pp_data->cap[74]->ReportCount = 1 +pp_data->cap[74]->BytePosition = 0x0017 +pp_data->cap[74]->BitCount = 16 +pp_data->cap[74]->BitField = 0x02 +pp_data->cap[74]->NextBytePosition = 0x0019 +pp_data->cap[74]->LinkCollection = 0x0002 +pp_data->cap[74]->LinkUsagePage = 0xFF01 +pp_data->cap[74]->LinkUsage = 0x0002 +pp_data->cap[74]->IsMultipleItemsForArray = 0 +pp_data->cap[74]->IsButtonCap = 0 +pp_data->cap[74]->IsPadding = 0 +pp_data->cap[74]->IsAbsolute = 1 +pp_data->cap[74]->IsRange = 0 +pp_data->cap[74]->IsAlias = 0 +pp_data->cap[74]->IsStringRange = 0 +pp_data->cap[74]->IsDesignatorRange = 0 +pp_data->cap[74]->Reserved1 = 0x000000 +pp_data->cap[74]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[74]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[74]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[74]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[74]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[74]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[74]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[74]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[74]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[74]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[74]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[74]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[74]->NotRange.Usage = 0x0004 +pp_data->cap[74]->NotRange.Reserved1 = 0x0004 +pp_data->cap[74]->NotRange.StringIndex = 0 +pp_data->cap[74]->NotRange.Reserved2 = 0 +pp_data->cap[74]->NotRange.DesignatorIndex = 0 +pp_data->cap[74]->NotRange.Reserved3 = 0 +pp_data->cap[74]->NotRange.DataIndex = 74 +pp_data->cap[74]->NotRange.Reserved4 = 74 +pp_data->cap[74]->NotButton.HasNull = 0 +pp_data->cap[74]->NotButton.Reserved4 = 0x000000 +pp_data->cap[74]->NotButton.LogicalMin = 0 +pp_data->cap[74]->NotButton.LogicalMax = 4095 +pp_data->cap[74]->NotButton.PhysicalMin = 0 +pp_data->cap[74]->NotButton.PhysicalMax = 0 +pp_data->cap[74]->Units = 0 +pp_data->cap[74]->UnitsExp = 0 + +pp_data->cap[75]->UsagePage = 0xFF01 +pp_data->cap[75]->ReportID = 0x02 +pp_data->cap[75]->BitPosition = 0 +pp_data->cap[75]->BitSize = 16 +pp_data->cap[75]->ReportCount = 1 +pp_data->cap[75]->BytePosition = 0x0015 +pp_data->cap[75]->BitCount = 16 +pp_data->cap[75]->BitField = 0x02 +pp_data->cap[75]->NextBytePosition = 0x0017 +pp_data->cap[75]->LinkCollection = 0x0002 +pp_data->cap[75]->LinkUsagePage = 0xFF01 +pp_data->cap[75]->LinkUsage = 0x0002 +pp_data->cap[75]->IsMultipleItemsForArray = 0 +pp_data->cap[75]->IsButtonCap = 0 +pp_data->cap[75]->IsPadding = 0 +pp_data->cap[75]->IsAbsolute = 1 +pp_data->cap[75]->IsRange = 0 +pp_data->cap[75]->IsAlias = 0 +pp_data->cap[75]->IsStringRange = 0 +pp_data->cap[75]->IsDesignatorRange = 0 +pp_data->cap[75]->Reserved1 = 0x000000 +pp_data->cap[75]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[75]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[75]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[75]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[75]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[75]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[75]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[75]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[75]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[75]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[75]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[75]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[75]->NotRange.Usage = 0x0004 +pp_data->cap[75]->NotRange.Reserved1 = 0x0004 +pp_data->cap[75]->NotRange.StringIndex = 0 +pp_data->cap[75]->NotRange.Reserved2 = 0 +pp_data->cap[75]->NotRange.DesignatorIndex = 0 +pp_data->cap[75]->NotRange.Reserved3 = 0 +pp_data->cap[75]->NotRange.DataIndex = 75 +pp_data->cap[75]->NotRange.Reserved4 = 75 +pp_data->cap[75]->NotButton.HasNull = 0 +pp_data->cap[75]->NotButton.Reserved4 = 0x000000 +pp_data->cap[75]->NotButton.LogicalMin = 0 +pp_data->cap[75]->NotButton.LogicalMax = 4095 +pp_data->cap[75]->NotButton.PhysicalMin = 0 +pp_data->cap[75]->NotButton.PhysicalMax = 0 +pp_data->cap[75]->Units = 0 +pp_data->cap[75]->UnitsExp = 0 + +pp_data->cap[76]->UsagePage = 0xFF01 +pp_data->cap[76]->ReportID = 0x02 +pp_data->cap[76]->BitPosition = 0 +pp_data->cap[76]->BitSize = 16 +pp_data->cap[76]->ReportCount = 1 +pp_data->cap[76]->BytePosition = 0x0013 +pp_data->cap[76]->BitCount = 16 +pp_data->cap[76]->BitField = 0x02 +pp_data->cap[76]->NextBytePosition = 0x0015 +pp_data->cap[76]->LinkCollection = 0x0002 +pp_data->cap[76]->LinkUsagePage = 0xFF01 +pp_data->cap[76]->LinkUsage = 0x0002 +pp_data->cap[76]->IsMultipleItemsForArray = 0 +pp_data->cap[76]->IsButtonCap = 0 +pp_data->cap[76]->IsPadding = 0 +pp_data->cap[76]->IsAbsolute = 1 +pp_data->cap[76]->IsRange = 0 +pp_data->cap[76]->IsAlias = 0 +pp_data->cap[76]->IsStringRange = 0 +pp_data->cap[76]->IsDesignatorRange = 0 +pp_data->cap[76]->Reserved1 = 0x000000 +pp_data->cap[76]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[76]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[76]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[76]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[76]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[76]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[76]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[76]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[76]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[76]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[76]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[76]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[76]->NotRange.Usage = 0x0004 +pp_data->cap[76]->NotRange.Reserved1 = 0x0004 +pp_data->cap[76]->NotRange.StringIndex = 0 +pp_data->cap[76]->NotRange.Reserved2 = 0 +pp_data->cap[76]->NotRange.DesignatorIndex = 0 +pp_data->cap[76]->NotRange.Reserved3 = 0 +pp_data->cap[76]->NotRange.DataIndex = 76 +pp_data->cap[76]->NotRange.Reserved4 = 76 +pp_data->cap[76]->NotButton.HasNull = 0 +pp_data->cap[76]->NotButton.Reserved4 = 0x000000 +pp_data->cap[76]->NotButton.LogicalMin = 0 +pp_data->cap[76]->NotButton.LogicalMax = 4095 +pp_data->cap[76]->NotButton.PhysicalMin = 0 +pp_data->cap[76]->NotButton.PhysicalMax = 0 +pp_data->cap[76]->Units = 0 +pp_data->cap[76]->UnitsExp = 0 + +pp_data->cap[77]->UsagePage = 0xFF01 +pp_data->cap[77]->ReportID = 0x02 +pp_data->cap[77]->BitPosition = 0 +pp_data->cap[77]->BitSize = 16 +pp_data->cap[77]->ReportCount = 1 +pp_data->cap[77]->BytePosition = 0x0011 +pp_data->cap[77]->BitCount = 16 +pp_data->cap[77]->BitField = 0x02 +pp_data->cap[77]->NextBytePosition = 0x0013 +pp_data->cap[77]->LinkCollection = 0x0002 +pp_data->cap[77]->LinkUsagePage = 0xFF01 +pp_data->cap[77]->LinkUsage = 0x0002 +pp_data->cap[77]->IsMultipleItemsForArray = 0 +pp_data->cap[77]->IsButtonCap = 0 +pp_data->cap[77]->IsPadding = 0 +pp_data->cap[77]->IsAbsolute = 1 +pp_data->cap[77]->IsRange = 0 +pp_data->cap[77]->IsAlias = 0 +pp_data->cap[77]->IsStringRange = 0 +pp_data->cap[77]->IsDesignatorRange = 0 +pp_data->cap[77]->Reserved1 = 0x000000 +pp_data->cap[77]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[77]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[77]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[77]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[77]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[77]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[77]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[77]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[77]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[77]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[77]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[77]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[77]->NotRange.Usage = 0x0004 +pp_data->cap[77]->NotRange.Reserved1 = 0x0004 +pp_data->cap[77]->NotRange.StringIndex = 0 +pp_data->cap[77]->NotRange.Reserved2 = 0 +pp_data->cap[77]->NotRange.DesignatorIndex = 0 +pp_data->cap[77]->NotRange.Reserved3 = 0 +pp_data->cap[77]->NotRange.DataIndex = 77 +pp_data->cap[77]->NotRange.Reserved4 = 77 +pp_data->cap[77]->NotButton.HasNull = 0 +pp_data->cap[77]->NotButton.Reserved4 = 0x000000 +pp_data->cap[77]->NotButton.LogicalMin = 0 +pp_data->cap[77]->NotButton.LogicalMax = 4095 +pp_data->cap[77]->NotButton.PhysicalMin = 0 +pp_data->cap[77]->NotButton.PhysicalMax = 0 +pp_data->cap[77]->Units = 0 +pp_data->cap[77]->UnitsExp = 0 + +pp_data->cap[78]->UsagePage = 0xFF01 +pp_data->cap[78]->ReportID = 0x02 +pp_data->cap[78]->BitPosition = 0 +pp_data->cap[78]->BitSize = 16 +pp_data->cap[78]->ReportCount = 1 +pp_data->cap[78]->BytePosition = 0x000F +pp_data->cap[78]->BitCount = 16 +pp_data->cap[78]->BitField = 0x02 +pp_data->cap[78]->NextBytePosition = 0x0011 +pp_data->cap[78]->LinkCollection = 0x0002 +pp_data->cap[78]->LinkUsagePage = 0xFF01 +pp_data->cap[78]->LinkUsage = 0x0002 +pp_data->cap[78]->IsMultipleItemsForArray = 0 +pp_data->cap[78]->IsButtonCap = 0 +pp_data->cap[78]->IsPadding = 0 +pp_data->cap[78]->IsAbsolute = 1 +pp_data->cap[78]->IsRange = 0 +pp_data->cap[78]->IsAlias = 0 +pp_data->cap[78]->IsStringRange = 0 +pp_data->cap[78]->IsDesignatorRange = 0 +pp_data->cap[78]->Reserved1 = 0x000000 +pp_data->cap[78]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[78]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[78]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[78]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[78]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[78]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[78]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[78]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[78]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[78]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[78]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[78]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[78]->NotRange.Usage = 0x0004 +pp_data->cap[78]->NotRange.Reserved1 = 0x0004 +pp_data->cap[78]->NotRange.StringIndex = 0 +pp_data->cap[78]->NotRange.Reserved2 = 0 +pp_data->cap[78]->NotRange.DesignatorIndex = 0 +pp_data->cap[78]->NotRange.Reserved3 = 0 +pp_data->cap[78]->NotRange.DataIndex = 78 +pp_data->cap[78]->NotRange.Reserved4 = 78 +pp_data->cap[78]->NotButton.HasNull = 0 +pp_data->cap[78]->NotButton.Reserved4 = 0x000000 +pp_data->cap[78]->NotButton.LogicalMin = 0 +pp_data->cap[78]->NotButton.LogicalMax = 4095 +pp_data->cap[78]->NotButton.PhysicalMin = 0 +pp_data->cap[78]->NotButton.PhysicalMax = 0 +pp_data->cap[78]->Units = 0 +pp_data->cap[78]->UnitsExp = 0 + +pp_data->cap[79]->UsagePage = 0xFF01 +pp_data->cap[79]->ReportID = 0x02 +pp_data->cap[79]->BitPosition = 0 +pp_data->cap[79]->BitSize = 16 +pp_data->cap[79]->ReportCount = 1 +pp_data->cap[79]->BytePosition = 0x000D +pp_data->cap[79]->BitCount = 16 +pp_data->cap[79]->BitField = 0x02 +pp_data->cap[79]->NextBytePosition = 0x000F +pp_data->cap[79]->LinkCollection = 0x0002 +pp_data->cap[79]->LinkUsagePage = 0xFF01 +pp_data->cap[79]->LinkUsage = 0x0002 +pp_data->cap[79]->IsMultipleItemsForArray = 0 +pp_data->cap[79]->IsButtonCap = 0 +pp_data->cap[79]->IsPadding = 0 +pp_data->cap[79]->IsAbsolute = 1 +pp_data->cap[79]->IsRange = 0 +pp_data->cap[79]->IsAlias = 0 +pp_data->cap[79]->IsStringRange = 0 +pp_data->cap[79]->IsDesignatorRange = 0 +pp_data->cap[79]->Reserved1 = 0x000000 +pp_data->cap[79]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[79]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[79]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[79]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[79]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[79]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[79]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[79]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[79]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[79]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[79]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[79]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[79]->NotRange.Usage = 0x0004 +pp_data->cap[79]->NotRange.Reserved1 = 0x0004 +pp_data->cap[79]->NotRange.StringIndex = 0 +pp_data->cap[79]->NotRange.Reserved2 = 0 +pp_data->cap[79]->NotRange.DesignatorIndex = 0 +pp_data->cap[79]->NotRange.Reserved3 = 0 +pp_data->cap[79]->NotRange.DataIndex = 79 +pp_data->cap[79]->NotRange.Reserved4 = 79 +pp_data->cap[79]->NotButton.HasNull = 0 +pp_data->cap[79]->NotButton.Reserved4 = 0x000000 +pp_data->cap[79]->NotButton.LogicalMin = 0 +pp_data->cap[79]->NotButton.LogicalMax = 4095 +pp_data->cap[79]->NotButton.PhysicalMin = 0 +pp_data->cap[79]->NotButton.PhysicalMax = 0 +pp_data->cap[79]->Units = 0 +pp_data->cap[79]->UnitsExp = 0 + +pp_data->cap[80]->UsagePage = 0xFF01 +pp_data->cap[80]->ReportID = 0x02 +pp_data->cap[80]->BitPosition = 0 +pp_data->cap[80]->BitSize = 16 +pp_data->cap[80]->ReportCount = 1 +pp_data->cap[80]->BytePosition = 0x000B +pp_data->cap[80]->BitCount = 16 +pp_data->cap[80]->BitField = 0x02 +pp_data->cap[80]->NextBytePosition = 0x000D +pp_data->cap[80]->LinkCollection = 0x0002 +pp_data->cap[80]->LinkUsagePage = 0xFF01 +pp_data->cap[80]->LinkUsage = 0x0002 +pp_data->cap[80]->IsMultipleItemsForArray = 0 +pp_data->cap[80]->IsButtonCap = 0 +pp_data->cap[80]->IsPadding = 0 +pp_data->cap[80]->IsAbsolute = 1 +pp_data->cap[80]->IsRange = 0 +pp_data->cap[80]->IsAlias = 0 +pp_data->cap[80]->IsStringRange = 0 +pp_data->cap[80]->IsDesignatorRange = 0 +pp_data->cap[80]->Reserved1 = 0x000000 +pp_data->cap[80]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[80]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[80]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[80]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[80]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[80]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[80]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[80]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[80]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[80]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[80]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[80]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[80]->NotRange.Usage = 0x0004 +pp_data->cap[80]->NotRange.Reserved1 = 0x0004 +pp_data->cap[80]->NotRange.StringIndex = 0 +pp_data->cap[80]->NotRange.Reserved2 = 0 +pp_data->cap[80]->NotRange.DesignatorIndex = 0 +pp_data->cap[80]->NotRange.Reserved3 = 0 +pp_data->cap[80]->NotRange.DataIndex = 80 +pp_data->cap[80]->NotRange.Reserved4 = 80 +pp_data->cap[80]->NotButton.HasNull = 0 +pp_data->cap[80]->NotButton.Reserved4 = 0x000000 +pp_data->cap[80]->NotButton.LogicalMin = 0 +pp_data->cap[80]->NotButton.LogicalMax = 4095 +pp_data->cap[80]->NotButton.PhysicalMin = 0 +pp_data->cap[80]->NotButton.PhysicalMax = 0 +pp_data->cap[80]->Units = 0 +pp_data->cap[80]->UnitsExp = 0 + +pp_data->cap[81]->UsagePage = 0xFF01 +pp_data->cap[81]->ReportID = 0x02 +pp_data->cap[81]->BitPosition = 0 +pp_data->cap[81]->BitSize = 16 +pp_data->cap[81]->ReportCount = 1 +pp_data->cap[81]->BytePosition = 0x0009 +pp_data->cap[81]->BitCount = 16 +pp_data->cap[81]->BitField = 0x02 +pp_data->cap[81]->NextBytePosition = 0x000B +pp_data->cap[81]->LinkCollection = 0x0002 +pp_data->cap[81]->LinkUsagePage = 0xFF01 +pp_data->cap[81]->LinkUsage = 0x0002 +pp_data->cap[81]->IsMultipleItemsForArray = 0 +pp_data->cap[81]->IsButtonCap = 0 +pp_data->cap[81]->IsPadding = 0 +pp_data->cap[81]->IsAbsolute = 1 +pp_data->cap[81]->IsRange = 0 +pp_data->cap[81]->IsAlias = 0 +pp_data->cap[81]->IsStringRange = 0 +pp_data->cap[81]->IsDesignatorRange = 0 +pp_data->cap[81]->Reserved1 = 0x000000 +pp_data->cap[81]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[81]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[81]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[81]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[81]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[81]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[81]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[81]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[81]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[81]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[81]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[81]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[81]->NotRange.Usage = 0x0004 +pp_data->cap[81]->NotRange.Reserved1 = 0x0004 +pp_data->cap[81]->NotRange.StringIndex = 0 +pp_data->cap[81]->NotRange.Reserved2 = 0 +pp_data->cap[81]->NotRange.DesignatorIndex = 0 +pp_data->cap[81]->NotRange.Reserved3 = 0 +pp_data->cap[81]->NotRange.DataIndex = 81 +pp_data->cap[81]->NotRange.Reserved4 = 81 +pp_data->cap[81]->NotButton.HasNull = 0 +pp_data->cap[81]->NotButton.Reserved4 = 0x000000 +pp_data->cap[81]->NotButton.LogicalMin = 0 +pp_data->cap[81]->NotButton.LogicalMax = 4095 +pp_data->cap[81]->NotButton.PhysicalMin = 0 +pp_data->cap[81]->NotButton.PhysicalMax = 0 +pp_data->cap[81]->Units = 0 +pp_data->cap[81]->UnitsExp = 0 + +pp_data->cap[82]->UsagePage = 0xFF01 +pp_data->cap[82]->ReportID = 0x02 +pp_data->cap[82]->BitPosition = 0 +pp_data->cap[82]->BitSize = 16 +pp_data->cap[82]->ReportCount = 1 +pp_data->cap[82]->BytePosition = 0x0007 +pp_data->cap[82]->BitCount = 16 +pp_data->cap[82]->BitField = 0x02 +pp_data->cap[82]->NextBytePosition = 0x0009 +pp_data->cap[82]->LinkCollection = 0x0002 +pp_data->cap[82]->LinkUsagePage = 0xFF01 +pp_data->cap[82]->LinkUsage = 0x0002 +pp_data->cap[82]->IsMultipleItemsForArray = 0 +pp_data->cap[82]->IsButtonCap = 0 +pp_data->cap[82]->IsPadding = 0 +pp_data->cap[82]->IsAbsolute = 1 +pp_data->cap[82]->IsRange = 0 +pp_data->cap[82]->IsAlias = 0 +pp_data->cap[82]->IsStringRange = 0 +pp_data->cap[82]->IsDesignatorRange = 0 +pp_data->cap[82]->Reserved1 = 0x000000 +pp_data->cap[82]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[82]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[82]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[82]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[82]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[82]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[82]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[82]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[82]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[82]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[82]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[82]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[82]->NotRange.Usage = 0x0004 +pp_data->cap[82]->NotRange.Reserved1 = 0x0004 +pp_data->cap[82]->NotRange.StringIndex = 0 +pp_data->cap[82]->NotRange.Reserved2 = 0 +pp_data->cap[82]->NotRange.DesignatorIndex = 0 +pp_data->cap[82]->NotRange.Reserved3 = 0 +pp_data->cap[82]->NotRange.DataIndex = 82 +pp_data->cap[82]->NotRange.Reserved4 = 82 +pp_data->cap[82]->NotButton.HasNull = 0 +pp_data->cap[82]->NotButton.Reserved4 = 0x000000 +pp_data->cap[82]->NotButton.LogicalMin = 0 +pp_data->cap[82]->NotButton.LogicalMax = 4095 +pp_data->cap[82]->NotButton.PhysicalMin = 0 +pp_data->cap[82]->NotButton.PhysicalMax = 0 +pp_data->cap[82]->Units = 0 +pp_data->cap[82]->UnitsExp = 0 + +pp_data->cap[83]->UsagePage = 0xFF01 +pp_data->cap[83]->ReportID = 0x02 +pp_data->cap[83]->BitPosition = 0 +pp_data->cap[83]->BitSize = 16 +pp_data->cap[83]->ReportCount = 1 +pp_data->cap[83]->BytePosition = 0x0005 +pp_data->cap[83]->BitCount = 16 +pp_data->cap[83]->BitField = 0x02 +pp_data->cap[83]->NextBytePosition = 0x0007 +pp_data->cap[83]->LinkCollection = 0x0002 +pp_data->cap[83]->LinkUsagePage = 0xFF01 +pp_data->cap[83]->LinkUsage = 0x0002 +pp_data->cap[83]->IsMultipleItemsForArray = 0 +pp_data->cap[83]->IsButtonCap = 0 +pp_data->cap[83]->IsPadding = 0 +pp_data->cap[83]->IsAbsolute = 1 +pp_data->cap[83]->IsRange = 0 +pp_data->cap[83]->IsAlias = 0 +pp_data->cap[83]->IsStringRange = 0 +pp_data->cap[83]->IsDesignatorRange = 0 +pp_data->cap[83]->Reserved1 = 0x000000 +pp_data->cap[83]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[83]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[83]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[83]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[83]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[83]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[83]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[83]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[83]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[83]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[83]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[83]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[83]->NotRange.Usage = 0x0004 +pp_data->cap[83]->NotRange.Reserved1 = 0x0004 +pp_data->cap[83]->NotRange.StringIndex = 0 +pp_data->cap[83]->NotRange.Reserved2 = 0 +pp_data->cap[83]->NotRange.DesignatorIndex = 0 +pp_data->cap[83]->NotRange.Reserved3 = 0 +pp_data->cap[83]->NotRange.DataIndex = 83 +pp_data->cap[83]->NotRange.Reserved4 = 83 +pp_data->cap[83]->NotButton.HasNull = 0 +pp_data->cap[83]->NotButton.Reserved4 = 0x000000 +pp_data->cap[83]->NotButton.LogicalMin = 0 +pp_data->cap[83]->NotButton.LogicalMax = 4095 +pp_data->cap[83]->NotButton.PhysicalMin = 0 +pp_data->cap[83]->NotButton.PhysicalMax = 0 +pp_data->cap[83]->Units = 0 +pp_data->cap[83]->UnitsExp = 0 + +pp_data->cap[84]->UsagePage = 0xFF01 +pp_data->cap[84]->ReportID = 0x02 +pp_data->cap[84]->BitPosition = 0 +pp_data->cap[84]->BitSize = 16 +pp_data->cap[84]->ReportCount = 1 +pp_data->cap[84]->BytePosition = 0x0003 +pp_data->cap[84]->BitCount = 16 +pp_data->cap[84]->BitField = 0x02 +pp_data->cap[84]->NextBytePosition = 0x0005 +pp_data->cap[84]->LinkCollection = 0x0002 +pp_data->cap[84]->LinkUsagePage = 0xFF01 +pp_data->cap[84]->LinkUsage = 0x0002 +pp_data->cap[84]->IsMultipleItemsForArray = 0 +pp_data->cap[84]->IsButtonCap = 0 +pp_data->cap[84]->IsPadding = 0 +pp_data->cap[84]->IsAbsolute = 1 +pp_data->cap[84]->IsRange = 0 +pp_data->cap[84]->IsAlias = 0 +pp_data->cap[84]->IsStringRange = 0 +pp_data->cap[84]->IsDesignatorRange = 0 +pp_data->cap[84]->Reserved1 = 0x000000 +pp_data->cap[84]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[84]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[84]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[84]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[84]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[84]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[84]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[84]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[84]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[84]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[84]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[84]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[84]->NotRange.Usage = 0x0004 +pp_data->cap[84]->NotRange.Reserved1 = 0x0004 +pp_data->cap[84]->NotRange.StringIndex = 0 +pp_data->cap[84]->NotRange.Reserved2 = 0 +pp_data->cap[84]->NotRange.DesignatorIndex = 0 +pp_data->cap[84]->NotRange.Reserved3 = 0 +pp_data->cap[84]->NotRange.DataIndex = 84 +pp_data->cap[84]->NotRange.Reserved4 = 84 +pp_data->cap[84]->NotButton.HasNull = 0 +pp_data->cap[84]->NotButton.Reserved4 = 0x000000 +pp_data->cap[84]->NotButton.LogicalMin = 0 +pp_data->cap[84]->NotButton.LogicalMax = 4095 +pp_data->cap[84]->NotButton.PhysicalMin = 0 +pp_data->cap[84]->NotButton.PhysicalMax = 0 +pp_data->cap[84]->Units = 0 +pp_data->cap[84]->UnitsExp = 0 + +pp_data->cap[85]->UsagePage = 0xFF01 +pp_data->cap[85]->ReportID = 0x02 +pp_data->cap[85]->BitPosition = 0 +pp_data->cap[85]->BitSize = 16 +pp_data->cap[85]->ReportCount = 1 +pp_data->cap[85]->BytePosition = 0x0001 +pp_data->cap[85]->BitCount = 16 +pp_data->cap[85]->BitField = 0x02 +pp_data->cap[85]->NextBytePosition = 0x0003 +pp_data->cap[85]->LinkCollection = 0x0002 +pp_data->cap[85]->LinkUsagePage = 0xFF01 +pp_data->cap[85]->LinkUsage = 0x0002 +pp_data->cap[85]->IsMultipleItemsForArray = 0 +pp_data->cap[85]->IsButtonCap = 0 +pp_data->cap[85]->IsPadding = 0 +pp_data->cap[85]->IsAbsolute = 1 +pp_data->cap[85]->IsRange = 0 +pp_data->cap[85]->IsAlias = 0 +pp_data->cap[85]->IsStringRange = 0 +pp_data->cap[85]->IsDesignatorRange = 0 +pp_data->cap[85]->Reserved1 = 0x000000 +pp_data->cap[85]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[85]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[85]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[85]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[85]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[85]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[85]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[85]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[85]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[85]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[85]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[85]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[85]->NotRange.Usage = 0x0004 +pp_data->cap[85]->NotRange.Reserved1 = 0x0004 +pp_data->cap[85]->NotRange.StringIndex = 0 +pp_data->cap[85]->NotRange.Reserved2 = 0 +pp_data->cap[85]->NotRange.DesignatorIndex = 0 +pp_data->cap[85]->NotRange.Reserved3 = 0 +pp_data->cap[85]->NotRange.DataIndex = 85 +pp_data->cap[85]->NotRange.Reserved4 = 85 +pp_data->cap[85]->NotButton.HasNull = 0 +pp_data->cap[85]->NotButton.Reserved4 = 0x000000 +pp_data->cap[85]->NotButton.LogicalMin = 0 +pp_data->cap[85]->NotButton.LogicalMax = 4095 +pp_data->cap[85]->NotButton.PhysicalMin = 0 +pp_data->cap[85]->NotButton.PhysicalMax = 0 +pp_data->cap[85]->Units = 0 +pp_data->cap[85]->UnitsExp = 0 + +# Output hid_pp_cap struct: +pp_data->cap[87]->UsagePage = 0xFF01 +pp_data->cap[87]->ReportID = 0x80 +pp_data->cap[87]->BitPosition = 0 +pp_data->cap[87]->BitSize = 8 +pp_data->cap[87]->ReportCount = 1 +pp_data->cap[87]->BytePosition = 0x005E +pp_data->cap[87]->BitCount = 8 +pp_data->cap[87]->BitField = 0x02 +pp_data->cap[87]->NextBytePosition = 0x005F +pp_data->cap[87]->LinkCollection = 0x0003 +pp_data->cap[87]->LinkUsagePage = 0xFF01 +pp_data->cap[87]->LinkUsage = 0x0080 +pp_data->cap[87]->IsMultipleItemsForArray = 0 +pp_data->cap[87]->IsButtonCap = 0 +pp_data->cap[87]->IsPadding = 0 +pp_data->cap[87]->IsAbsolute = 1 +pp_data->cap[87]->IsRange = 0 +pp_data->cap[87]->IsAlias = 0 +pp_data->cap[87]->IsStringRange = 0 +pp_data->cap[87]->IsDesignatorRange = 0 +pp_data->cap[87]->Reserved1 = 0x000000 +pp_data->cap[87]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[87]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[87]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[87]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[87]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[87]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[87]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[87]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[87]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[87]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[87]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[87]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[87]->NotRange.Usage = 0x0081 +pp_data->cap[87]->NotRange.Reserved1 = 0x0081 +pp_data->cap[87]->NotRange.StringIndex = 0 +pp_data->cap[87]->NotRange.Reserved2 = 0 +pp_data->cap[87]->NotRange.DesignatorIndex = 0 +pp_data->cap[87]->NotRange.Reserved3 = 0 +pp_data->cap[87]->NotRange.DataIndex = 0 +pp_data->cap[87]->NotRange.Reserved4 = 0 +pp_data->cap[87]->NotButton.HasNull = 0 +pp_data->cap[87]->NotButton.Reserved4 = 0x000000 +pp_data->cap[87]->NotButton.LogicalMin = 0 +pp_data->cap[87]->NotButton.LogicalMax = 127 +pp_data->cap[87]->NotButton.PhysicalMin = 0 +pp_data->cap[87]->NotButton.PhysicalMax = 0 +pp_data->cap[87]->Units = 0 +pp_data->cap[87]->UnitsExp = 0 + +pp_data->cap[88]->UsagePage = 0xFF01 +pp_data->cap[88]->ReportID = 0x80 +pp_data->cap[88]->BitPosition = 0 +pp_data->cap[88]->BitSize = 8 +pp_data->cap[88]->ReportCount = 1 +pp_data->cap[88]->BytePosition = 0x005D +pp_data->cap[88]->BitCount = 8 +pp_data->cap[88]->BitField = 0x02 +pp_data->cap[88]->NextBytePosition = 0x005E +pp_data->cap[88]->LinkCollection = 0x0003 +pp_data->cap[88]->LinkUsagePage = 0xFF01 +pp_data->cap[88]->LinkUsage = 0x0080 +pp_data->cap[88]->IsMultipleItemsForArray = 0 +pp_data->cap[88]->IsButtonCap = 0 +pp_data->cap[88]->IsPadding = 0 +pp_data->cap[88]->IsAbsolute = 1 +pp_data->cap[88]->IsRange = 0 +pp_data->cap[88]->IsAlias = 0 +pp_data->cap[88]->IsStringRange = 0 +pp_data->cap[88]->IsDesignatorRange = 0 +pp_data->cap[88]->Reserved1 = 0x000000 +pp_data->cap[88]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[88]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[88]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[88]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[88]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[88]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[88]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[88]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[88]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[88]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[88]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[88]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[88]->NotRange.Usage = 0x0081 +pp_data->cap[88]->NotRange.Reserved1 = 0x0081 +pp_data->cap[88]->NotRange.StringIndex = 0 +pp_data->cap[88]->NotRange.Reserved2 = 0 +pp_data->cap[88]->NotRange.DesignatorIndex = 0 +pp_data->cap[88]->NotRange.Reserved3 = 0 +pp_data->cap[88]->NotRange.DataIndex = 1 +pp_data->cap[88]->NotRange.Reserved4 = 1 +pp_data->cap[88]->NotButton.HasNull = 0 +pp_data->cap[88]->NotButton.Reserved4 = 0x000000 +pp_data->cap[88]->NotButton.LogicalMin = 0 +pp_data->cap[88]->NotButton.LogicalMax = 127 +pp_data->cap[88]->NotButton.PhysicalMin = 0 +pp_data->cap[88]->NotButton.PhysicalMax = 0 +pp_data->cap[88]->Units = 0 +pp_data->cap[88]->UnitsExp = 0 + +pp_data->cap[89]->UsagePage = 0xFF01 +pp_data->cap[89]->ReportID = 0x80 +pp_data->cap[89]->BitPosition = 0 +pp_data->cap[89]->BitSize = 8 +pp_data->cap[89]->ReportCount = 1 +pp_data->cap[89]->BytePosition = 0x005C +pp_data->cap[89]->BitCount = 8 +pp_data->cap[89]->BitField = 0x02 +pp_data->cap[89]->NextBytePosition = 0x005D +pp_data->cap[89]->LinkCollection = 0x0003 +pp_data->cap[89]->LinkUsagePage = 0xFF01 +pp_data->cap[89]->LinkUsage = 0x0080 +pp_data->cap[89]->IsMultipleItemsForArray = 0 +pp_data->cap[89]->IsButtonCap = 0 +pp_data->cap[89]->IsPadding = 0 +pp_data->cap[89]->IsAbsolute = 1 +pp_data->cap[89]->IsRange = 0 +pp_data->cap[89]->IsAlias = 0 +pp_data->cap[89]->IsStringRange = 0 +pp_data->cap[89]->IsDesignatorRange = 0 +pp_data->cap[89]->Reserved1 = 0x000000 +pp_data->cap[89]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[89]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[89]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[89]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[89]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[89]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[89]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[89]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[89]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[89]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[89]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[89]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[89]->NotRange.Usage = 0x0081 +pp_data->cap[89]->NotRange.Reserved1 = 0x0081 +pp_data->cap[89]->NotRange.StringIndex = 0 +pp_data->cap[89]->NotRange.Reserved2 = 0 +pp_data->cap[89]->NotRange.DesignatorIndex = 0 +pp_data->cap[89]->NotRange.Reserved3 = 0 +pp_data->cap[89]->NotRange.DataIndex = 2 +pp_data->cap[89]->NotRange.Reserved4 = 2 +pp_data->cap[89]->NotButton.HasNull = 0 +pp_data->cap[89]->NotButton.Reserved4 = 0x000000 +pp_data->cap[89]->NotButton.LogicalMin = 0 +pp_data->cap[89]->NotButton.LogicalMax = 127 +pp_data->cap[89]->NotButton.PhysicalMin = 0 +pp_data->cap[89]->NotButton.PhysicalMax = 0 +pp_data->cap[89]->Units = 0 +pp_data->cap[89]->UnitsExp = 0 + +pp_data->cap[90]->UsagePage = 0xFF01 +pp_data->cap[90]->ReportID = 0x80 +pp_data->cap[90]->BitPosition = 0 +pp_data->cap[90]->BitSize = 8 +pp_data->cap[90]->ReportCount = 1 +pp_data->cap[90]->BytePosition = 0x005B +pp_data->cap[90]->BitCount = 8 +pp_data->cap[90]->BitField = 0x02 +pp_data->cap[90]->NextBytePosition = 0x005C +pp_data->cap[90]->LinkCollection = 0x0003 +pp_data->cap[90]->LinkUsagePage = 0xFF01 +pp_data->cap[90]->LinkUsage = 0x0080 +pp_data->cap[90]->IsMultipleItemsForArray = 0 +pp_data->cap[90]->IsButtonCap = 0 +pp_data->cap[90]->IsPadding = 0 +pp_data->cap[90]->IsAbsolute = 1 +pp_data->cap[90]->IsRange = 0 +pp_data->cap[90]->IsAlias = 0 +pp_data->cap[90]->IsStringRange = 0 +pp_data->cap[90]->IsDesignatorRange = 0 +pp_data->cap[90]->Reserved1 = 0x000000 +pp_data->cap[90]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[90]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[90]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[90]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[90]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[90]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[90]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[90]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[90]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[90]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[90]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[90]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[90]->NotRange.Usage = 0x0081 +pp_data->cap[90]->NotRange.Reserved1 = 0x0081 +pp_data->cap[90]->NotRange.StringIndex = 0 +pp_data->cap[90]->NotRange.Reserved2 = 0 +pp_data->cap[90]->NotRange.DesignatorIndex = 0 +pp_data->cap[90]->NotRange.Reserved3 = 0 +pp_data->cap[90]->NotRange.DataIndex = 3 +pp_data->cap[90]->NotRange.Reserved4 = 3 +pp_data->cap[90]->NotButton.HasNull = 0 +pp_data->cap[90]->NotButton.Reserved4 = 0x000000 +pp_data->cap[90]->NotButton.LogicalMin = 0 +pp_data->cap[90]->NotButton.LogicalMax = 127 +pp_data->cap[90]->NotButton.PhysicalMin = 0 +pp_data->cap[90]->NotButton.PhysicalMax = 0 +pp_data->cap[90]->Units = 0 +pp_data->cap[90]->UnitsExp = 0 + +pp_data->cap[91]->UsagePage = 0xFF01 +pp_data->cap[91]->ReportID = 0x80 +pp_data->cap[91]->BitPosition = 0 +pp_data->cap[91]->BitSize = 8 +pp_data->cap[91]->ReportCount = 1 +pp_data->cap[91]->BytePosition = 0x005A +pp_data->cap[91]->BitCount = 8 +pp_data->cap[91]->BitField = 0x02 +pp_data->cap[91]->NextBytePosition = 0x005B +pp_data->cap[91]->LinkCollection = 0x0003 +pp_data->cap[91]->LinkUsagePage = 0xFF01 +pp_data->cap[91]->LinkUsage = 0x0080 +pp_data->cap[91]->IsMultipleItemsForArray = 0 +pp_data->cap[91]->IsButtonCap = 0 +pp_data->cap[91]->IsPadding = 0 +pp_data->cap[91]->IsAbsolute = 1 +pp_data->cap[91]->IsRange = 0 +pp_data->cap[91]->IsAlias = 0 +pp_data->cap[91]->IsStringRange = 0 +pp_data->cap[91]->IsDesignatorRange = 0 +pp_data->cap[91]->Reserved1 = 0x000000 +pp_data->cap[91]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[91]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[91]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[91]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[91]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[91]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[91]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[91]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[91]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[91]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[91]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[91]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[91]->NotRange.Usage = 0x0081 +pp_data->cap[91]->NotRange.Reserved1 = 0x0081 +pp_data->cap[91]->NotRange.StringIndex = 0 +pp_data->cap[91]->NotRange.Reserved2 = 0 +pp_data->cap[91]->NotRange.DesignatorIndex = 0 +pp_data->cap[91]->NotRange.Reserved3 = 0 +pp_data->cap[91]->NotRange.DataIndex = 4 +pp_data->cap[91]->NotRange.Reserved4 = 4 +pp_data->cap[91]->NotButton.HasNull = 0 +pp_data->cap[91]->NotButton.Reserved4 = 0x000000 +pp_data->cap[91]->NotButton.LogicalMin = 0 +pp_data->cap[91]->NotButton.LogicalMax = 127 +pp_data->cap[91]->NotButton.PhysicalMin = 0 +pp_data->cap[91]->NotButton.PhysicalMax = 0 +pp_data->cap[91]->Units = 0 +pp_data->cap[91]->UnitsExp = 0 + +pp_data->cap[92]->UsagePage = 0xFF01 +pp_data->cap[92]->ReportID = 0x80 +pp_data->cap[92]->BitPosition = 0 +pp_data->cap[92]->BitSize = 8 +pp_data->cap[92]->ReportCount = 1 +pp_data->cap[92]->BytePosition = 0x0059 +pp_data->cap[92]->BitCount = 8 +pp_data->cap[92]->BitField = 0x02 +pp_data->cap[92]->NextBytePosition = 0x005A +pp_data->cap[92]->LinkCollection = 0x0003 +pp_data->cap[92]->LinkUsagePage = 0xFF01 +pp_data->cap[92]->LinkUsage = 0x0080 +pp_data->cap[92]->IsMultipleItemsForArray = 0 +pp_data->cap[92]->IsButtonCap = 0 +pp_data->cap[92]->IsPadding = 0 +pp_data->cap[92]->IsAbsolute = 1 +pp_data->cap[92]->IsRange = 0 +pp_data->cap[92]->IsAlias = 0 +pp_data->cap[92]->IsStringRange = 0 +pp_data->cap[92]->IsDesignatorRange = 0 +pp_data->cap[92]->Reserved1 = 0x000000 +pp_data->cap[92]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[92]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[92]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[92]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[92]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[92]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[92]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[92]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[92]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[92]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[92]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[92]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[92]->NotRange.Usage = 0x0081 +pp_data->cap[92]->NotRange.Reserved1 = 0x0081 +pp_data->cap[92]->NotRange.StringIndex = 0 +pp_data->cap[92]->NotRange.Reserved2 = 0 +pp_data->cap[92]->NotRange.DesignatorIndex = 0 +pp_data->cap[92]->NotRange.Reserved3 = 0 +pp_data->cap[92]->NotRange.DataIndex = 5 +pp_data->cap[92]->NotRange.Reserved4 = 5 +pp_data->cap[92]->NotButton.HasNull = 0 +pp_data->cap[92]->NotButton.Reserved4 = 0x000000 +pp_data->cap[92]->NotButton.LogicalMin = 0 +pp_data->cap[92]->NotButton.LogicalMax = 127 +pp_data->cap[92]->NotButton.PhysicalMin = 0 +pp_data->cap[92]->NotButton.PhysicalMax = 0 +pp_data->cap[92]->Units = 0 +pp_data->cap[92]->UnitsExp = 0 + +pp_data->cap[93]->UsagePage = 0xFF01 +pp_data->cap[93]->ReportID = 0x80 +pp_data->cap[93]->BitPosition = 0 +pp_data->cap[93]->BitSize = 8 +pp_data->cap[93]->ReportCount = 1 +pp_data->cap[93]->BytePosition = 0x0058 +pp_data->cap[93]->BitCount = 8 +pp_data->cap[93]->BitField = 0x02 +pp_data->cap[93]->NextBytePosition = 0x0059 +pp_data->cap[93]->LinkCollection = 0x0003 +pp_data->cap[93]->LinkUsagePage = 0xFF01 +pp_data->cap[93]->LinkUsage = 0x0080 +pp_data->cap[93]->IsMultipleItemsForArray = 0 +pp_data->cap[93]->IsButtonCap = 0 +pp_data->cap[93]->IsPadding = 0 +pp_data->cap[93]->IsAbsolute = 1 +pp_data->cap[93]->IsRange = 0 +pp_data->cap[93]->IsAlias = 0 +pp_data->cap[93]->IsStringRange = 0 +pp_data->cap[93]->IsDesignatorRange = 0 +pp_data->cap[93]->Reserved1 = 0x000000 +pp_data->cap[93]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[93]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[93]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[93]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[93]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[93]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[93]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[93]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[93]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[93]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[93]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[93]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[93]->NotRange.Usage = 0x0081 +pp_data->cap[93]->NotRange.Reserved1 = 0x0081 +pp_data->cap[93]->NotRange.StringIndex = 0 +pp_data->cap[93]->NotRange.Reserved2 = 0 +pp_data->cap[93]->NotRange.DesignatorIndex = 0 +pp_data->cap[93]->NotRange.Reserved3 = 0 +pp_data->cap[93]->NotRange.DataIndex = 6 +pp_data->cap[93]->NotRange.Reserved4 = 6 +pp_data->cap[93]->NotButton.HasNull = 0 +pp_data->cap[93]->NotButton.Reserved4 = 0x000000 +pp_data->cap[93]->NotButton.LogicalMin = 0 +pp_data->cap[93]->NotButton.LogicalMax = 127 +pp_data->cap[93]->NotButton.PhysicalMin = 0 +pp_data->cap[93]->NotButton.PhysicalMax = 0 +pp_data->cap[93]->Units = 0 +pp_data->cap[93]->UnitsExp = 0 + +pp_data->cap[94]->UsagePage = 0xFF01 +pp_data->cap[94]->ReportID = 0x80 +pp_data->cap[94]->BitPosition = 0 +pp_data->cap[94]->BitSize = 8 +pp_data->cap[94]->ReportCount = 1 +pp_data->cap[94]->BytePosition = 0x0057 +pp_data->cap[94]->BitCount = 8 +pp_data->cap[94]->BitField = 0x02 +pp_data->cap[94]->NextBytePosition = 0x0058 +pp_data->cap[94]->LinkCollection = 0x0003 +pp_data->cap[94]->LinkUsagePage = 0xFF01 +pp_data->cap[94]->LinkUsage = 0x0080 +pp_data->cap[94]->IsMultipleItemsForArray = 0 +pp_data->cap[94]->IsButtonCap = 0 +pp_data->cap[94]->IsPadding = 0 +pp_data->cap[94]->IsAbsolute = 1 +pp_data->cap[94]->IsRange = 0 +pp_data->cap[94]->IsAlias = 0 +pp_data->cap[94]->IsStringRange = 0 +pp_data->cap[94]->IsDesignatorRange = 0 +pp_data->cap[94]->Reserved1 = 0x000000 +pp_data->cap[94]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[94]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[94]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[94]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[94]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[94]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[94]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[94]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[94]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[94]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[94]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[94]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[94]->NotRange.Usage = 0x0081 +pp_data->cap[94]->NotRange.Reserved1 = 0x0081 +pp_data->cap[94]->NotRange.StringIndex = 0 +pp_data->cap[94]->NotRange.Reserved2 = 0 +pp_data->cap[94]->NotRange.DesignatorIndex = 0 +pp_data->cap[94]->NotRange.Reserved3 = 0 +pp_data->cap[94]->NotRange.DataIndex = 7 +pp_data->cap[94]->NotRange.Reserved4 = 7 +pp_data->cap[94]->NotButton.HasNull = 0 +pp_data->cap[94]->NotButton.Reserved4 = 0x000000 +pp_data->cap[94]->NotButton.LogicalMin = 0 +pp_data->cap[94]->NotButton.LogicalMax = 127 +pp_data->cap[94]->NotButton.PhysicalMin = 0 +pp_data->cap[94]->NotButton.PhysicalMax = 0 +pp_data->cap[94]->Units = 0 +pp_data->cap[94]->UnitsExp = 0 + +pp_data->cap[95]->UsagePage = 0xFF01 +pp_data->cap[95]->ReportID = 0x80 +pp_data->cap[95]->BitPosition = 0 +pp_data->cap[95]->BitSize = 8 +pp_data->cap[95]->ReportCount = 1 +pp_data->cap[95]->BytePosition = 0x0056 +pp_data->cap[95]->BitCount = 8 +pp_data->cap[95]->BitField = 0x02 +pp_data->cap[95]->NextBytePosition = 0x0057 +pp_data->cap[95]->LinkCollection = 0x0003 +pp_data->cap[95]->LinkUsagePage = 0xFF01 +pp_data->cap[95]->LinkUsage = 0x0080 +pp_data->cap[95]->IsMultipleItemsForArray = 0 +pp_data->cap[95]->IsButtonCap = 0 +pp_data->cap[95]->IsPadding = 0 +pp_data->cap[95]->IsAbsolute = 1 +pp_data->cap[95]->IsRange = 0 +pp_data->cap[95]->IsAlias = 0 +pp_data->cap[95]->IsStringRange = 0 +pp_data->cap[95]->IsDesignatorRange = 0 +pp_data->cap[95]->Reserved1 = 0x000000 +pp_data->cap[95]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[95]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[95]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[95]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[95]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[95]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[95]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[95]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[95]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[95]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[95]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[95]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[95]->NotRange.Usage = 0x0081 +pp_data->cap[95]->NotRange.Reserved1 = 0x0081 +pp_data->cap[95]->NotRange.StringIndex = 0 +pp_data->cap[95]->NotRange.Reserved2 = 0 +pp_data->cap[95]->NotRange.DesignatorIndex = 0 +pp_data->cap[95]->NotRange.Reserved3 = 0 +pp_data->cap[95]->NotRange.DataIndex = 8 +pp_data->cap[95]->NotRange.Reserved4 = 8 +pp_data->cap[95]->NotButton.HasNull = 0 +pp_data->cap[95]->NotButton.Reserved4 = 0x000000 +pp_data->cap[95]->NotButton.LogicalMin = 0 +pp_data->cap[95]->NotButton.LogicalMax = 127 +pp_data->cap[95]->NotButton.PhysicalMin = 0 +pp_data->cap[95]->NotButton.PhysicalMax = 0 +pp_data->cap[95]->Units = 0 +pp_data->cap[95]->UnitsExp = 0 + +pp_data->cap[96]->UsagePage = 0xFF01 +pp_data->cap[96]->ReportID = 0x80 +pp_data->cap[96]->BitPosition = 0 +pp_data->cap[96]->BitSize = 8 +pp_data->cap[96]->ReportCount = 1 +pp_data->cap[96]->BytePosition = 0x0055 +pp_data->cap[96]->BitCount = 8 +pp_data->cap[96]->BitField = 0x02 +pp_data->cap[96]->NextBytePosition = 0x0056 +pp_data->cap[96]->LinkCollection = 0x0003 +pp_data->cap[96]->LinkUsagePage = 0xFF01 +pp_data->cap[96]->LinkUsage = 0x0080 +pp_data->cap[96]->IsMultipleItemsForArray = 0 +pp_data->cap[96]->IsButtonCap = 0 +pp_data->cap[96]->IsPadding = 0 +pp_data->cap[96]->IsAbsolute = 1 +pp_data->cap[96]->IsRange = 0 +pp_data->cap[96]->IsAlias = 0 +pp_data->cap[96]->IsStringRange = 0 +pp_data->cap[96]->IsDesignatorRange = 0 +pp_data->cap[96]->Reserved1 = 0x000000 +pp_data->cap[96]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[96]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[96]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[96]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[96]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[96]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[96]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[96]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[96]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[96]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[96]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[96]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[96]->NotRange.Usage = 0x0081 +pp_data->cap[96]->NotRange.Reserved1 = 0x0081 +pp_data->cap[96]->NotRange.StringIndex = 0 +pp_data->cap[96]->NotRange.Reserved2 = 0 +pp_data->cap[96]->NotRange.DesignatorIndex = 0 +pp_data->cap[96]->NotRange.Reserved3 = 0 +pp_data->cap[96]->NotRange.DataIndex = 9 +pp_data->cap[96]->NotRange.Reserved4 = 9 +pp_data->cap[96]->NotButton.HasNull = 0 +pp_data->cap[96]->NotButton.Reserved4 = 0x000000 +pp_data->cap[96]->NotButton.LogicalMin = 0 +pp_data->cap[96]->NotButton.LogicalMax = 127 +pp_data->cap[96]->NotButton.PhysicalMin = 0 +pp_data->cap[96]->NotButton.PhysicalMax = 0 +pp_data->cap[96]->Units = 0 +pp_data->cap[96]->UnitsExp = 0 + +pp_data->cap[97]->UsagePage = 0xFF01 +pp_data->cap[97]->ReportID = 0x80 +pp_data->cap[97]->BitPosition = 0 +pp_data->cap[97]->BitSize = 8 +pp_data->cap[97]->ReportCount = 1 +pp_data->cap[97]->BytePosition = 0x0054 +pp_data->cap[97]->BitCount = 8 +pp_data->cap[97]->BitField = 0x02 +pp_data->cap[97]->NextBytePosition = 0x0055 +pp_data->cap[97]->LinkCollection = 0x0003 +pp_data->cap[97]->LinkUsagePage = 0xFF01 +pp_data->cap[97]->LinkUsage = 0x0080 +pp_data->cap[97]->IsMultipleItemsForArray = 0 +pp_data->cap[97]->IsButtonCap = 0 +pp_data->cap[97]->IsPadding = 0 +pp_data->cap[97]->IsAbsolute = 1 +pp_data->cap[97]->IsRange = 0 +pp_data->cap[97]->IsAlias = 0 +pp_data->cap[97]->IsStringRange = 0 +pp_data->cap[97]->IsDesignatorRange = 0 +pp_data->cap[97]->Reserved1 = 0x000000 +pp_data->cap[97]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[97]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[97]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[97]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[97]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[97]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[97]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[97]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[97]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[97]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[97]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[97]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[97]->NotRange.Usage = 0x0081 +pp_data->cap[97]->NotRange.Reserved1 = 0x0081 +pp_data->cap[97]->NotRange.StringIndex = 0 +pp_data->cap[97]->NotRange.Reserved2 = 0 +pp_data->cap[97]->NotRange.DesignatorIndex = 0 +pp_data->cap[97]->NotRange.Reserved3 = 0 +pp_data->cap[97]->NotRange.DataIndex = 10 +pp_data->cap[97]->NotRange.Reserved4 = 10 +pp_data->cap[97]->NotButton.HasNull = 0 +pp_data->cap[97]->NotButton.Reserved4 = 0x000000 +pp_data->cap[97]->NotButton.LogicalMin = 0 +pp_data->cap[97]->NotButton.LogicalMax = 127 +pp_data->cap[97]->NotButton.PhysicalMin = 0 +pp_data->cap[97]->NotButton.PhysicalMax = 0 +pp_data->cap[97]->Units = 0 +pp_data->cap[97]->UnitsExp = 0 + +pp_data->cap[98]->UsagePage = 0xFF01 +pp_data->cap[98]->ReportID = 0x80 +pp_data->cap[98]->BitPosition = 0 +pp_data->cap[98]->BitSize = 8 +pp_data->cap[98]->ReportCount = 1 +pp_data->cap[98]->BytePosition = 0x0053 +pp_data->cap[98]->BitCount = 8 +pp_data->cap[98]->BitField = 0x02 +pp_data->cap[98]->NextBytePosition = 0x0054 +pp_data->cap[98]->LinkCollection = 0x0003 +pp_data->cap[98]->LinkUsagePage = 0xFF01 +pp_data->cap[98]->LinkUsage = 0x0080 +pp_data->cap[98]->IsMultipleItemsForArray = 0 +pp_data->cap[98]->IsButtonCap = 0 +pp_data->cap[98]->IsPadding = 0 +pp_data->cap[98]->IsAbsolute = 1 +pp_data->cap[98]->IsRange = 0 +pp_data->cap[98]->IsAlias = 0 +pp_data->cap[98]->IsStringRange = 0 +pp_data->cap[98]->IsDesignatorRange = 0 +pp_data->cap[98]->Reserved1 = 0x000000 +pp_data->cap[98]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[98]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[98]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[98]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[98]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[98]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[98]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[98]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[98]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[98]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[98]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[98]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[98]->NotRange.Usage = 0x0081 +pp_data->cap[98]->NotRange.Reserved1 = 0x0081 +pp_data->cap[98]->NotRange.StringIndex = 0 +pp_data->cap[98]->NotRange.Reserved2 = 0 +pp_data->cap[98]->NotRange.DesignatorIndex = 0 +pp_data->cap[98]->NotRange.Reserved3 = 0 +pp_data->cap[98]->NotRange.DataIndex = 11 +pp_data->cap[98]->NotRange.Reserved4 = 11 +pp_data->cap[98]->NotButton.HasNull = 0 +pp_data->cap[98]->NotButton.Reserved4 = 0x000000 +pp_data->cap[98]->NotButton.LogicalMin = 0 +pp_data->cap[98]->NotButton.LogicalMax = 127 +pp_data->cap[98]->NotButton.PhysicalMin = 0 +pp_data->cap[98]->NotButton.PhysicalMax = 0 +pp_data->cap[98]->Units = 0 +pp_data->cap[98]->UnitsExp = 0 + +pp_data->cap[99]->UsagePage = 0xFF01 +pp_data->cap[99]->ReportID = 0x80 +pp_data->cap[99]->BitPosition = 0 +pp_data->cap[99]->BitSize = 8 +pp_data->cap[99]->ReportCount = 1 +pp_data->cap[99]->BytePosition = 0x0052 +pp_data->cap[99]->BitCount = 8 +pp_data->cap[99]->BitField = 0x02 +pp_data->cap[99]->NextBytePosition = 0x0053 +pp_data->cap[99]->LinkCollection = 0x0003 +pp_data->cap[99]->LinkUsagePage = 0xFF01 +pp_data->cap[99]->LinkUsage = 0x0080 +pp_data->cap[99]->IsMultipleItemsForArray = 0 +pp_data->cap[99]->IsButtonCap = 0 +pp_data->cap[99]->IsPadding = 0 +pp_data->cap[99]->IsAbsolute = 1 +pp_data->cap[99]->IsRange = 0 +pp_data->cap[99]->IsAlias = 0 +pp_data->cap[99]->IsStringRange = 0 +pp_data->cap[99]->IsDesignatorRange = 0 +pp_data->cap[99]->Reserved1 = 0x000000 +pp_data->cap[99]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[99]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[99]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[99]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[99]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[99]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[99]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[99]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[99]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[99]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[99]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[99]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[99]->NotRange.Usage = 0x0081 +pp_data->cap[99]->NotRange.Reserved1 = 0x0081 +pp_data->cap[99]->NotRange.StringIndex = 0 +pp_data->cap[99]->NotRange.Reserved2 = 0 +pp_data->cap[99]->NotRange.DesignatorIndex = 0 +pp_data->cap[99]->NotRange.Reserved3 = 0 +pp_data->cap[99]->NotRange.DataIndex = 12 +pp_data->cap[99]->NotRange.Reserved4 = 12 +pp_data->cap[99]->NotButton.HasNull = 0 +pp_data->cap[99]->NotButton.Reserved4 = 0x000000 +pp_data->cap[99]->NotButton.LogicalMin = 0 +pp_data->cap[99]->NotButton.LogicalMax = 127 +pp_data->cap[99]->NotButton.PhysicalMin = 0 +pp_data->cap[99]->NotButton.PhysicalMax = 0 +pp_data->cap[99]->Units = 0 +pp_data->cap[99]->UnitsExp = 0 + +pp_data->cap[100]->UsagePage = 0xFF01 +pp_data->cap[100]->ReportID = 0x80 +pp_data->cap[100]->BitPosition = 0 +pp_data->cap[100]->BitSize = 8 +pp_data->cap[100]->ReportCount = 1 +pp_data->cap[100]->BytePosition = 0x0051 +pp_data->cap[100]->BitCount = 8 +pp_data->cap[100]->BitField = 0x02 +pp_data->cap[100]->NextBytePosition = 0x0052 +pp_data->cap[100]->LinkCollection = 0x0003 +pp_data->cap[100]->LinkUsagePage = 0xFF01 +pp_data->cap[100]->LinkUsage = 0x0080 +pp_data->cap[100]->IsMultipleItemsForArray = 0 +pp_data->cap[100]->IsButtonCap = 0 +pp_data->cap[100]->IsPadding = 0 +pp_data->cap[100]->IsAbsolute = 1 +pp_data->cap[100]->IsRange = 0 +pp_data->cap[100]->IsAlias = 0 +pp_data->cap[100]->IsStringRange = 0 +pp_data->cap[100]->IsDesignatorRange = 0 +pp_data->cap[100]->Reserved1 = 0x000000 +pp_data->cap[100]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[100]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[100]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[100]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[100]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[100]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[100]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[100]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[100]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[100]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[100]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[100]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[100]->NotRange.Usage = 0x0081 +pp_data->cap[100]->NotRange.Reserved1 = 0x0081 +pp_data->cap[100]->NotRange.StringIndex = 0 +pp_data->cap[100]->NotRange.Reserved2 = 0 +pp_data->cap[100]->NotRange.DesignatorIndex = 0 +pp_data->cap[100]->NotRange.Reserved3 = 0 +pp_data->cap[100]->NotRange.DataIndex = 13 +pp_data->cap[100]->NotRange.Reserved4 = 13 +pp_data->cap[100]->NotButton.HasNull = 0 +pp_data->cap[100]->NotButton.Reserved4 = 0x000000 +pp_data->cap[100]->NotButton.LogicalMin = 0 +pp_data->cap[100]->NotButton.LogicalMax = 127 +pp_data->cap[100]->NotButton.PhysicalMin = 0 +pp_data->cap[100]->NotButton.PhysicalMax = 0 +pp_data->cap[100]->Units = 0 +pp_data->cap[100]->UnitsExp = 0 + +pp_data->cap[101]->UsagePage = 0xFF01 +pp_data->cap[101]->ReportID = 0x80 +pp_data->cap[101]->BitPosition = 0 +pp_data->cap[101]->BitSize = 8 +pp_data->cap[101]->ReportCount = 1 +pp_data->cap[101]->BytePosition = 0x0050 +pp_data->cap[101]->BitCount = 8 +pp_data->cap[101]->BitField = 0x02 +pp_data->cap[101]->NextBytePosition = 0x0051 +pp_data->cap[101]->LinkCollection = 0x0003 +pp_data->cap[101]->LinkUsagePage = 0xFF01 +pp_data->cap[101]->LinkUsage = 0x0080 +pp_data->cap[101]->IsMultipleItemsForArray = 0 +pp_data->cap[101]->IsButtonCap = 0 +pp_data->cap[101]->IsPadding = 0 +pp_data->cap[101]->IsAbsolute = 1 +pp_data->cap[101]->IsRange = 0 +pp_data->cap[101]->IsAlias = 0 +pp_data->cap[101]->IsStringRange = 0 +pp_data->cap[101]->IsDesignatorRange = 0 +pp_data->cap[101]->Reserved1 = 0x000000 +pp_data->cap[101]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[101]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[101]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[101]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[101]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[101]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[101]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[101]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[101]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[101]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[101]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[101]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[101]->NotRange.Usage = 0x0081 +pp_data->cap[101]->NotRange.Reserved1 = 0x0081 +pp_data->cap[101]->NotRange.StringIndex = 0 +pp_data->cap[101]->NotRange.Reserved2 = 0 +pp_data->cap[101]->NotRange.DesignatorIndex = 0 +pp_data->cap[101]->NotRange.Reserved3 = 0 +pp_data->cap[101]->NotRange.DataIndex = 14 +pp_data->cap[101]->NotRange.Reserved4 = 14 +pp_data->cap[101]->NotButton.HasNull = 0 +pp_data->cap[101]->NotButton.Reserved4 = 0x000000 +pp_data->cap[101]->NotButton.LogicalMin = 0 +pp_data->cap[101]->NotButton.LogicalMax = 127 +pp_data->cap[101]->NotButton.PhysicalMin = 0 +pp_data->cap[101]->NotButton.PhysicalMax = 0 +pp_data->cap[101]->Units = 0 +pp_data->cap[101]->UnitsExp = 0 + +pp_data->cap[102]->UsagePage = 0xFF01 +pp_data->cap[102]->ReportID = 0x80 +pp_data->cap[102]->BitPosition = 0 +pp_data->cap[102]->BitSize = 8 +pp_data->cap[102]->ReportCount = 1 +pp_data->cap[102]->BytePosition = 0x004F +pp_data->cap[102]->BitCount = 8 +pp_data->cap[102]->BitField = 0x02 +pp_data->cap[102]->NextBytePosition = 0x0050 +pp_data->cap[102]->LinkCollection = 0x0003 +pp_data->cap[102]->LinkUsagePage = 0xFF01 +pp_data->cap[102]->LinkUsage = 0x0080 +pp_data->cap[102]->IsMultipleItemsForArray = 0 +pp_data->cap[102]->IsButtonCap = 0 +pp_data->cap[102]->IsPadding = 0 +pp_data->cap[102]->IsAbsolute = 1 +pp_data->cap[102]->IsRange = 0 +pp_data->cap[102]->IsAlias = 0 +pp_data->cap[102]->IsStringRange = 0 +pp_data->cap[102]->IsDesignatorRange = 0 +pp_data->cap[102]->Reserved1 = 0x000000 +pp_data->cap[102]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[102]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[102]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[102]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[102]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[102]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[102]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[102]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[102]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[102]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[102]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[102]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[102]->NotRange.Usage = 0x0081 +pp_data->cap[102]->NotRange.Reserved1 = 0x0081 +pp_data->cap[102]->NotRange.StringIndex = 0 +pp_data->cap[102]->NotRange.Reserved2 = 0 +pp_data->cap[102]->NotRange.DesignatorIndex = 0 +pp_data->cap[102]->NotRange.Reserved3 = 0 +pp_data->cap[102]->NotRange.DataIndex = 15 +pp_data->cap[102]->NotRange.Reserved4 = 15 +pp_data->cap[102]->NotButton.HasNull = 0 +pp_data->cap[102]->NotButton.Reserved4 = 0x000000 +pp_data->cap[102]->NotButton.LogicalMin = 0 +pp_data->cap[102]->NotButton.LogicalMax = 127 +pp_data->cap[102]->NotButton.PhysicalMin = 0 +pp_data->cap[102]->NotButton.PhysicalMax = 0 +pp_data->cap[102]->Units = 0 +pp_data->cap[102]->UnitsExp = 0 + +pp_data->cap[103]->UsagePage = 0xFF01 +pp_data->cap[103]->ReportID = 0x80 +pp_data->cap[103]->BitPosition = 0 +pp_data->cap[103]->BitSize = 8 +pp_data->cap[103]->ReportCount = 1 +pp_data->cap[103]->BytePosition = 0x004E +pp_data->cap[103]->BitCount = 8 +pp_data->cap[103]->BitField = 0x02 +pp_data->cap[103]->NextBytePosition = 0x004F +pp_data->cap[103]->LinkCollection = 0x0003 +pp_data->cap[103]->LinkUsagePage = 0xFF01 +pp_data->cap[103]->LinkUsage = 0x0080 +pp_data->cap[103]->IsMultipleItemsForArray = 0 +pp_data->cap[103]->IsButtonCap = 0 +pp_data->cap[103]->IsPadding = 0 +pp_data->cap[103]->IsAbsolute = 1 +pp_data->cap[103]->IsRange = 0 +pp_data->cap[103]->IsAlias = 0 +pp_data->cap[103]->IsStringRange = 0 +pp_data->cap[103]->IsDesignatorRange = 0 +pp_data->cap[103]->Reserved1 = 0x000000 +pp_data->cap[103]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[103]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[103]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[103]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[103]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[103]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[103]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[103]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[103]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[103]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[103]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[103]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[103]->NotRange.Usage = 0x0081 +pp_data->cap[103]->NotRange.Reserved1 = 0x0081 +pp_data->cap[103]->NotRange.StringIndex = 0 +pp_data->cap[103]->NotRange.Reserved2 = 0 +pp_data->cap[103]->NotRange.DesignatorIndex = 0 +pp_data->cap[103]->NotRange.Reserved3 = 0 +pp_data->cap[103]->NotRange.DataIndex = 16 +pp_data->cap[103]->NotRange.Reserved4 = 16 +pp_data->cap[103]->NotButton.HasNull = 0 +pp_data->cap[103]->NotButton.Reserved4 = 0x000000 +pp_data->cap[103]->NotButton.LogicalMin = 0 +pp_data->cap[103]->NotButton.LogicalMax = 127 +pp_data->cap[103]->NotButton.PhysicalMin = 0 +pp_data->cap[103]->NotButton.PhysicalMax = 0 +pp_data->cap[103]->Units = 0 +pp_data->cap[103]->UnitsExp = 0 + +pp_data->cap[104]->UsagePage = 0xFF01 +pp_data->cap[104]->ReportID = 0x80 +pp_data->cap[104]->BitPosition = 0 +pp_data->cap[104]->BitSize = 8 +pp_data->cap[104]->ReportCount = 1 +pp_data->cap[104]->BytePosition = 0x004D +pp_data->cap[104]->BitCount = 8 +pp_data->cap[104]->BitField = 0x02 +pp_data->cap[104]->NextBytePosition = 0x004E +pp_data->cap[104]->LinkCollection = 0x0003 +pp_data->cap[104]->LinkUsagePage = 0xFF01 +pp_data->cap[104]->LinkUsage = 0x0080 +pp_data->cap[104]->IsMultipleItemsForArray = 0 +pp_data->cap[104]->IsButtonCap = 0 +pp_data->cap[104]->IsPadding = 0 +pp_data->cap[104]->IsAbsolute = 1 +pp_data->cap[104]->IsRange = 0 +pp_data->cap[104]->IsAlias = 0 +pp_data->cap[104]->IsStringRange = 0 +pp_data->cap[104]->IsDesignatorRange = 0 +pp_data->cap[104]->Reserved1 = 0x000000 +pp_data->cap[104]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[104]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[104]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[104]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[104]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[104]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[104]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[104]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[104]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[104]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[104]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[104]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[104]->NotRange.Usage = 0x0081 +pp_data->cap[104]->NotRange.Reserved1 = 0x0081 +pp_data->cap[104]->NotRange.StringIndex = 0 +pp_data->cap[104]->NotRange.Reserved2 = 0 +pp_data->cap[104]->NotRange.DesignatorIndex = 0 +pp_data->cap[104]->NotRange.Reserved3 = 0 +pp_data->cap[104]->NotRange.DataIndex = 17 +pp_data->cap[104]->NotRange.Reserved4 = 17 +pp_data->cap[104]->NotButton.HasNull = 0 +pp_data->cap[104]->NotButton.Reserved4 = 0x000000 +pp_data->cap[104]->NotButton.LogicalMin = 0 +pp_data->cap[104]->NotButton.LogicalMax = 127 +pp_data->cap[104]->NotButton.PhysicalMin = 0 +pp_data->cap[104]->NotButton.PhysicalMax = 0 +pp_data->cap[104]->Units = 0 +pp_data->cap[104]->UnitsExp = 0 + +pp_data->cap[105]->UsagePage = 0xFF01 +pp_data->cap[105]->ReportID = 0x80 +pp_data->cap[105]->BitPosition = 0 +pp_data->cap[105]->BitSize = 8 +pp_data->cap[105]->ReportCount = 1 +pp_data->cap[105]->BytePosition = 0x004C +pp_data->cap[105]->BitCount = 8 +pp_data->cap[105]->BitField = 0x02 +pp_data->cap[105]->NextBytePosition = 0x004D +pp_data->cap[105]->LinkCollection = 0x0003 +pp_data->cap[105]->LinkUsagePage = 0xFF01 +pp_data->cap[105]->LinkUsage = 0x0080 +pp_data->cap[105]->IsMultipleItemsForArray = 0 +pp_data->cap[105]->IsButtonCap = 0 +pp_data->cap[105]->IsPadding = 0 +pp_data->cap[105]->IsAbsolute = 1 +pp_data->cap[105]->IsRange = 0 +pp_data->cap[105]->IsAlias = 0 +pp_data->cap[105]->IsStringRange = 0 +pp_data->cap[105]->IsDesignatorRange = 0 +pp_data->cap[105]->Reserved1 = 0x000000 +pp_data->cap[105]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[105]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[105]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[105]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[105]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[105]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[105]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[105]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[105]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[105]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[105]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[105]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[105]->NotRange.Usage = 0x0081 +pp_data->cap[105]->NotRange.Reserved1 = 0x0081 +pp_data->cap[105]->NotRange.StringIndex = 0 +pp_data->cap[105]->NotRange.Reserved2 = 0 +pp_data->cap[105]->NotRange.DesignatorIndex = 0 +pp_data->cap[105]->NotRange.Reserved3 = 0 +pp_data->cap[105]->NotRange.DataIndex = 18 +pp_data->cap[105]->NotRange.Reserved4 = 18 +pp_data->cap[105]->NotButton.HasNull = 0 +pp_data->cap[105]->NotButton.Reserved4 = 0x000000 +pp_data->cap[105]->NotButton.LogicalMin = 0 +pp_data->cap[105]->NotButton.LogicalMax = 127 +pp_data->cap[105]->NotButton.PhysicalMin = 0 +pp_data->cap[105]->NotButton.PhysicalMax = 0 +pp_data->cap[105]->Units = 0 +pp_data->cap[105]->UnitsExp = 0 + +pp_data->cap[106]->UsagePage = 0xFF01 +pp_data->cap[106]->ReportID = 0x80 +pp_data->cap[106]->BitPosition = 0 +pp_data->cap[106]->BitSize = 8 +pp_data->cap[106]->ReportCount = 1 +pp_data->cap[106]->BytePosition = 0x004B +pp_data->cap[106]->BitCount = 8 +pp_data->cap[106]->BitField = 0x02 +pp_data->cap[106]->NextBytePosition = 0x004C +pp_data->cap[106]->LinkCollection = 0x0003 +pp_data->cap[106]->LinkUsagePage = 0xFF01 +pp_data->cap[106]->LinkUsage = 0x0080 +pp_data->cap[106]->IsMultipleItemsForArray = 0 +pp_data->cap[106]->IsButtonCap = 0 +pp_data->cap[106]->IsPadding = 0 +pp_data->cap[106]->IsAbsolute = 1 +pp_data->cap[106]->IsRange = 0 +pp_data->cap[106]->IsAlias = 0 +pp_data->cap[106]->IsStringRange = 0 +pp_data->cap[106]->IsDesignatorRange = 0 +pp_data->cap[106]->Reserved1 = 0x000000 +pp_data->cap[106]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[106]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[106]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[106]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[106]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[106]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[106]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[106]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[106]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[106]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[106]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[106]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[106]->NotRange.Usage = 0x0081 +pp_data->cap[106]->NotRange.Reserved1 = 0x0081 +pp_data->cap[106]->NotRange.StringIndex = 0 +pp_data->cap[106]->NotRange.Reserved2 = 0 +pp_data->cap[106]->NotRange.DesignatorIndex = 0 +pp_data->cap[106]->NotRange.Reserved3 = 0 +pp_data->cap[106]->NotRange.DataIndex = 19 +pp_data->cap[106]->NotRange.Reserved4 = 19 +pp_data->cap[106]->NotButton.HasNull = 0 +pp_data->cap[106]->NotButton.Reserved4 = 0x000000 +pp_data->cap[106]->NotButton.LogicalMin = 0 +pp_data->cap[106]->NotButton.LogicalMax = 127 +pp_data->cap[106]->NotButton.PhysicalMin = 0 +pp_data->cap[106]->NotButton.PhysicalMax = 0 +pp_data->cap[106]->Units = 0 +pp_data->cap[106]->UnitsExp = 0 + +pp_data->cap[107]->UsagePage = 0xFF01 +pp_data->cap[107]->ReportID = 0x80 +pp_data->cap[107]->BitPosition = 0 +pp_data->cap[107]->BitSize = 8 +pp_data->cap[107]->ReportCount = 1 +pp_data->cap[107]->BytePosition = 0x004A +pp_data->cap[107]->BitCount = 8 +pp_data->cap[107]->BitField = 0x02 +pp_data->cap[107]->NextBytePosition = 0x004B +pp_data->cap[107]->LinkCollection = 0x0003 +pp_data->cap[107]->LinkUsagePage = 0xFF01 +pp_data->cap[107]->LinkUsage = 0x0080 +pp_data->cap[107]->IsMultipleItemsForArray = 0 +pp_data->cap[107]->IsButtonCap = 0 +pp_data->cap[107]->IsPadding = 0 +pp_data->cap[107]->IsAbsolute = 1 +pp_data->cap[107]->IsRange = 0 +pp_data->cap[107]->IsAlias = 0 +pp_data->cap[107]->IsStringRange = 0 +pp_data->cap[107]->IsDesignatorRange = 0 +pp_data->cap[107]->Reserved1 = 0x000000 +pp_data->cap[107]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[107]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[107]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[107]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[107]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[107]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[107]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[107]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[107]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[107]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[107]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[107]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[107]->NotRange.Usage = 0x0081 +pp_data->cap[107]->NotRange.Reserved1 = 0x0081 +pp_data->cap[107]->NotRange.StringIndex = 0 +pp_data->cap[107]->NotRange.Reserved2 = 0 +pp_data->cap[107]->NotRange.DesignatorIndex = 0 +pp_data->cap[107]->NotRange.Reserved3 = 0 +pp_data->cap[107]->NotRange.DataIndex = 20 +pp_data->cap[107]->NotRange.Reserved4 = 20 +pp_data->cap[107]->NotButton.HasNull = 0 +pp_data->cap[107]->NotButton.Reserved4 = 0x000000 +pp_data->cap[107]->NotButton.LogicalMin = 0 +pp_data->cap[107]->NotButton.LogicalMax = 127 +pp_data->cap[107]->NotButton.PhysicalMin = 0 +pp_data->cap[107]->NotButton.PhysicalMax = 0 +pp_data->cap[107]->Units = 0 +pp_data->cap[107]->UnitsExp = 0 + +pp_data->cap[108]->UsagePage = 0xFF01 +pp_data->cap[108]->ReportID = 0x80 +pp_data->cap[108]->BitPosition = 0 +pp_data->cap[108]->BitSize = 8 +pp_data->cap[108]->ReportCount = 1 +pp_data->cap[108]->BytePosition = 0x0049 +pp_data->cap[108]->BitCount = 8 +pp_data->cap[108]->BitField = 0x02 +pp_data->cap[108]->NextBytePosition = 0x004A +pp_data->cap[108]->LinkCollection = 0x0003 +pp_data->cap[108]->LinkUsagePage = 0xFF01 +pp_data->cap[108]->LinkUsage = 0x0080 +pp_data->cap[108]->IsMultipleItemsForArray = 0 +pp_data->cap[108]->IsButtonCap = 0 +pp_data->cap[108]->IsPadding = 0 +pp_data->cap[108]->IsAbsolute = 1 +pp_data->cap[108]->IsRange = 0 +pp_data->cap[108]->IsAlias = 0 +pp_data->cap[108]->IsStringRange = 0 +pp_data->cap[108]->IsDesignatorRange = 0 +pp_data->cap[108]->Reserved1 = 0x000000 +pp_data->cap[108]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[108]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[108]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[108]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[108]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[108]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[108]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[108]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[108]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[108]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[108]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[108]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[108]->NotRange.Usage = 0x0081 +pp_data->cap[108]->NotRange.Reserved1 = 0x0081 +pp_data->cap[108]->NotRange.StringIndex = 0 +pp_data->cap[108]->NotRange.Reserved2 = 0 +pp_data->cap[108]->NotRange.DesignatorIndex = 0 +pp_data->cap[108]->NotRange.Reserved3 = 0 +pp_data->cap[108]->NotRange.DataIndex = 21 +pp_data->cap[108]->NotRange.Reserved4 = 21 +pp_data->cap[108]->NotButton.HasNull = 0 +pp_data->cap[108]->NotButton.Reserved4 = 0x000000 +pp_data->cap[108]->NotButton.LogicalMin = 0 +pp_data->cap[108]->NotButton.LogicalMax = 127 +pp_data->cap[108]->NotButton.PhysicalMin = 0 +pp_data->cap[108]->NotButton.PhysicalMax = 0 +pp_data->cap[108]->Units = 0 +pp_data->cap[108]->UnitsExp = 0 + +pp_data->cap[109]->UsagePage = 0xFF01 +pp_data->cap[109]->ReportID = 0x80 +pp_data->cap[109]->BitPosition = 0 +pp_data->cap[109]->BitSize = 8 +pp_data->cap[109]->ReportCount = 1 +pp_data->cap[109]->BytePosition = 0x0048 +pp_data->cap[109]->BitCount = 8 +pp_data->cap[109]->BitField = 0x02 +pp_data->cap[109]->NextBytePosition = 0x0049 +pp_data->cap[109]->LinkCollection = 0x0003 +pp_data->cap[109]->LinkUsagePage = 0xFF01 +pp_data->cap[109]->LinkUsage = 0x0080 +pp_data->cap[109]->IsMultipleItemsForArray = 0 +pp_data->cap[109]->IsButtonCap = 0 +pp_data->cap[109]->IsPadding = 0 +pp_data->cap[109]->IsAbsolute = 1 +pp_data->cap[109]->IsRange = 0 +pp_data->cap[109]->IsAlias = 0 +pp_data->cap[109]->IsStringRange = 0 +pp_data->cap[109]->IsDesignatorRange = 0 +pp_data->cap[109]->Reserved1 = 0x000000 +pp_data->cap[109]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[109]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[109]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[109]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[109]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[109]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[109]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[109]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[109]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[109]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[109]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[109]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[109]->NotRange.Usage = 0x0081 +pp_data->cap[109]->NotRange.Reserved1 = 0x0081 +pp_data->cap[109]->NotRange.StringIndex = 0 +pp_data->cap[109]->NotRange.Reserved2 = 0 +pp_data->cap[109]->NotRange.DesignatorIndex = 0 +pp_data->cap[109]->NotRange.Reserved3 = 0 +pp_data->cap[109]->NotRange.DataIndex = 22 +pp_data->cap[109]->NotRange.Reserved4 = 22 +pp_data->cap[109]->NotButton.HasNull = 0 +pp_data->cap[109]->NotButton.Reserved4 = 0x000000 +pp_data->cap[109]->NotButton.LogicalMin = 0 +pp_data->cap[109]->NotButton.LogicalMax = 127 +pp_data->cap[109]->NotButton.PhysicalMin = 0 +pp_data->cap[109]->NotButton.PhysicalMax = 0 +pp_data->cap[109]->Units = 0 +pp_data->cap[109]->UnitsExp = 0 + +pp_data->cap[110]->UsagePage = 0xFF01 +pp_data->cap[110]->ReportID = 0x80 +pp_data->cap[110]->BitPosition = 0 +pp_data->cap[110]->BitSize = 8 +pp_data->cap[110]->ReportCount = 1 +pp_data->cap[110]->BytePosition = 0x0047 +pp_data->cap[110]->BitCount = 8 +pp_data->cap[110]->BitField = 0x02 +pp_data->cap[110]->NextBytePosition = 0x0048 +pp_data->cap[110]->LinkCollection = 0x0003 +pp_data->cap[110]->LinkUsagePage = 0xFF01 +pp_data->cap[110]->LinkUsage = 0x0080 +pp_data->cap[110]->IsMultipleItemsForArray = 0 +pp_data->cap[110]->IsButtonCap = 0 +pp_data->cap[110]->IsPadding = 0 +pp_data->cap[110]->IsAbsolute = 1 +pp_data->cap[110]->IsRange = 0 +pp_data->cap[110]->IsAlias = 0 +pp_data->cap[110]->IsStringRange = 0 +pp_data->cap[110]->IsDesignatorRange = 0 +pp_data->cap[110]->Reserved1 = 0x000000 +pp_data->cap[110]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[110]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[110]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[110]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[110]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[110]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[110]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[110]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[110]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[110]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[110]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[110]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[110]->NotRange.Usage = 0x0081 +pp_data->cap[110]->NotRange.Reserved1 = 0x0081 +pp_data->cap[110]->NotRange.StringIndex = 0 +pp_data->cap[110]->NotRange.Reserved2 = 0 +pp_data->cap[110]->NotRange.DesignatorIndex = 0 +pp_data->cap[110]->NotRange.Reserved3 = 0 +pp_data->cap[110]->NotRange.DataIndex = 23 +pp_data->cap[110]->NotRange.Reserved4 = 23 +pp_data->cap[110]->NotButton.HasNull = 0 +pp_data->cap[110]->NotButton.Reserved4 = 0x000000 +pp_data->cap[110]->NotButton.LogicalMin = 0 +pp_data->cap[110]->NotButton.LogicalMax = 127 +pp_data->cap[110]->NotButton.PhysicalMin = 0 +pp_data->cap[110]->NotButton.PhysicalMax = 0 +pp_data->cap[110]->Units = 0 +pp_data->cap[110]->UnitsExp = 0 + +pp_data->cap[111]->UsagePage = 0xFF01 +pp_data->cap[111]->ReportID = 0x80 +pp_data->cap[111]->BitPosition = 0 +pp_data->cap[111]->BitSize = 8 +pp_data->cap[111]->ReportCount = 1 +pp_data->cap[111]->BytePosition = 0x0046 +pp_data->cap[111]->BitCount = 8 +pp_data->cap[111]->BitField = 0x02 +pp_data->cap[111]->NextBytePosition = 0x0047 +pp_data->cap[111]->LinkCollection = 0x0003 +pp_data->cap[111]->LinkUsagePage = 0xFF01 +pp_data->cap[111]->LinkUsage = 0x0080 +pp_data->cap[111]->IsMultipleItemsForArray = 0 +pp_data->cap[111]->IsButtonCap = 0 +pp_data->cap[111]->IsPadding = 0 +pp_data->cap[111]->IsAbsolute = 1 +pp_data->cap[111]->IsRange = 0 +pp_data->cap[111]->IsAlias = 0 +pp_data->cap[111]->IsStringRange = 0 +pp_data->cap[111]->IsDesignatorRange = 0 +pp_data->cap[111]->Reserved1 = 0x000000 +pp_data->cap[111]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[111]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[111]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[111]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[111]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[111]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[111]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[111]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[111]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[111]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[111]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[111]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[111]->NotRange.Usage = 0x0081 +pp_data->cap[111]->NotRange.Reserved1 = 0x0081 +pp_data->cap[111]->NotRange.StringIndex = 0 +pp_data->cap[111]->NotRange.Reserved2 = 0 +pp_data->cap[111]->NotRange.DesignatorIndex = 0 +pp_data->cap[111]->NotRange.Reserved3 = 0 +pp_data->cap[111]->NotRange.DataIndex = 24 +pp_data->cap[111]->NotRange.Reserved4 = 24 +pp_data->cap[111]->NotButton.HasNull = 0 +pp_data->cap[111]->NotButton.Reserved4 = 0x000000 +pp_data->cap[111]->NotButton.LogicalMin = 0 +pp_data->cap[111]->NotButton.LogicalMax = 127 +pp_data->cap[111]->NotButton.PhysicalMin = 0 +pp_data->cap[111]->NotButton.PhysicalMax = 0 +pp_data->cap[111]->Units = 0 +pp_data->cap[111]->UnitsExp = 0 + +pp_data->cap[112]->UsagePage = 0xFF01 +pp_data->cap[112]->ReportID = 0x80 +pp_data->cap[112]->BitPosition = 0 +pp_data->cap[112]->BitSize = 8 +pp_data->cap[112]->ReportCount = 1 +pp_data->cap[112]->BytePosition = 0x0045 +pp_data->cap[112]->BitCount = 8 +pp_data->cap[112]->BitField = 0x02 +pp_data->cap[112]->NextBytePosition = 0x0046 +pp_data->cap[112]->LinkCollection = 0x0003 +pp_data->cap[112]->LinkUsagePage = 0xFF01 +pp_data->cap[112]->LinkUsage = 0x0080 +pp_data->cap[112]->IsMultipleItemsForArray = 0 +pp_data->cap[112]->IsButtonCap = 0 +pp_data->cap[112]->IsPadding = 0 +pp_data->cap[112]->IsAbsolute = 1 +pp_data->cap[112]->IsRange = 0 +pp_data->cap[112]->IsAlias = 0 +pp_data->cap[112]->IsStringRange = 0 +pp_data->cap[112]->IsDesignatorRange = 0 +pp_data->cap[112]->Reserved1 = 0x000000 +pp_data->cap[112]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[112]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[112]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[112]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[112]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[112]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[112]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[112]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[112]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[112]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[112]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[112]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[112]->NotRange.Usage = 0x0081 +pp_data->cap[112]->NotRange.Reserved1 = 0x0081 +pp_data->cap[112]->NotRange.StringIndex = 0 +pp_data->cap[112]->NotRange.Reserved2 = 0 +pp_data->cap[112]->NotRange.DesignatorIndex = 0 +pp_data->cap[112]->NotRange.Reserved3 = 0 +pp_data->cap[112]->NotRange.DataIndex = 25 +pp_data->cap[112]->NotRange.Reserved4 = 25 +pp_data->cap[112]->NotButton.HasNull = 0 +pp_data->cap[112]->NotButton.Reserved4 = 0x000000 +pp_data->cap[112]->NotButton.LogicalMin = 0 +pp_data->cap[112]->NotButton.LogicalMax = 127 +pp_data->cap[112]->NotButton.PhysicalMin = 0 +pp_data->cap[112]->NotButton.PhysicalMax = 0 +pp_data->cap[112]->Units = 0 +pp_data->cap[112]->UnitsExp = 0 + +pp_data->cap[113]->UsagePage = 0xFF01 +pp_data->cap[113]->ReportID = 0x80 +pp_data->cap[113]->BitPosition = 0 +pp_data->cap[113]->BitSize = 8 +pp_data->cap[113]->ReportCount = 1 +pp_data->cap[113]->BytePosition = 0x0044 +pp_data->cap[113]->BitCount = 8 +pp_data->cap[113]->BitField = 0x02 +pp_data->cap[113]->NextBytePosition = 0x0045 +pp_data->cap[113]->LinkCollection = 0x0003 +pp_data->cap[113]->LinkUsagePage = 0xFF01 +pp_data->cap[113]->LinkUsage = 0x0080 +pp_data->cap[113]->IsMultipleItemsForArray = 0 +pp_data->cap[113]->IsButtonCap = 0 +pp_data->cap[113]->IsPadding = 0 +pp_data->cap[113]->IsAbsolute = 1 +pp_data->cap[113]->IsRange = 0 +pp_data->cap[113]->IsAlias = 0 +pp_data->cap[113]->IsStringRange = 0 +pp_data->cap[113]->IsDesignatorRange = 0 +pp_data->cap[113]->Reserved1 = 0x000000 +pp_data->cap[113]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[113]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[113]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[113]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[113]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[113]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[113]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[113]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[113]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[113]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[113]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[113]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[113]->NotRange.Usage = 0x0081 +pp_data->cap[113]->NotRange.Reserved1 = 0x0081 +pp_data->cap[113]->NotRange.StringIndex = 0 +pp_data->cap[113]->NotRange.Reserved2 = 0 +pp_data->cap[113]->NotRange.DesignatorIndex = 0 +pp_data->cap[113]->NotRange.Reserved3 = 0 +pp_data->cap[113]->NotRange.DataIndex = 26 +pp_data->cap[113]->NotRange.Reserved4 = 26 +pp_data->cap[113]->NotButton.HasNull = 0 +pp_data->cap[113]->NotButton.Reserved4 = 0x000000 +pp_data->cap[113]->NotButton.LogicalMin = 0 +pp_data->cap[113]->NotButton.LogicalMax = 127 +pp_data->cap[113]->NotButton.PhysicalMin = 0 +pp_data->cap[113]->NotButton.PhysicalMax = 0 +pp_data->cap[113]->Units = 0 +pp_data->cap[113]->UnitsExp = 0 + +pp_data->cap[114]->UsagePage = 0xFF01 +pp_data->cap[114]->ReportID = 0x80 +pp_data->cap[114]->BitPosition = 0 +pp_data->cap[114]->BitSize = 8 +pp_data->cap[114]->ReportCount = 1 +pp_data->cap[114]->BytePosition = 0x0043 +pp_data->cap[114]->BitCount = 8 +pp_data->cap[114]->BitField = 0x02 +pp_data->cap[114]->NextBytePosition = 0x0044 +pp_data->cap[114]->LinkCollection = 0x0003 +pp_data->cap[114]->LinkUsagePage = 0xFF01 +pp_data->cap[114]->LinkUsage = 0x0080 +pp_data->cap[114]->IsMultipleItemsForArray = 0 +pp_data->cap[114]->IsButtonCap = 0 +pp_data->cap[114]->IsPadding = 0 +pp_data->cap[114]->IsAbsolute = 1 +pp_data->cap[114]->IsRange = 0 +pp_data->cap[114]->IsAlias = 0 +pp_data->cap[114]->IsStringRange = 0 +pp_data->cap[114]->IsDesignatorRange = 0 +pp_data->cap[114]->Reserved1 = 0x000000 +pp_data->cap[114]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[114]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[114]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[114]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[114]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[114]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[114]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[114]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[114]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[114]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[114]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[114]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[114]->NotRange.Usage = 0x0081 +pp_data->cap[114]->NotRange.Reserved1 = 0x0081 +pp_data->cap[114]->NotRange.StringIndex = 0 +pp_data->cap[114]->NotRange.Reserved2 = 0 +pp_data->cap[114]->NotRange.DesignatorIndex = 0 +pp_data->cap[114]->NotRange.Reserved3 = 0 +pp_data->cap[114]->NotRange.DataIndex = 27 +pp_data->cap[114]->NotRange.Reserved4 = 27 +pp_data->cap[114]->NotButton.HasNull = 0 +pp_data->cap[114]->NotButton.Reserved4 = 0x000000 +pp_data->cap[114]->NotButton.LogicalMin = 0 +pp_data->cap[114]->NotButton.LogicalMax = 127 +pp_data->cap[114]->NotButton.PhysicalMin = 0 +pp_data->cap[114]->NotButton.PhysicalMax = 0 +pp_data->cap[114]->Units = 0 +pp_data->cap[114]->UnitsExp = 0 + +pp_data->cap[115]->UsagePage = 0xFF01 +pp_data->cap[115]->ReportID = 0x80 +pp_data->cap[115]->BitPosition = 0 +pp_data->cap[115]->BitSize = 8 +pp_data->cap[115]->ReportCount = 1 +pp_data->cap[115]->BytePosition = 0x0042 +pp_data->cap[115]->BitCount = 8 +pp_data->cap[115]->BitField = 0x02 +pp_data->cap[115]->NextBytePosition = 0x0043 +pp_data->cap[115]->LinkCollection = 0x0003 +pp_data->cap[115]->LinkUsagePage = 0xFF01 +pp_data->cap[115]->LinkUsage = 0x0080 +pp_data->cap[115]->IsMultipleItemsForArray = 0 +pp_data->cap[115]->IsButtonCap = 0 +pp_data->cap[115]->IsPadding = 0 +pp_data->cap[115]->IsAbsolute = 1 +pp_data->cap[115]->IsRange = 0 +pp_data->cap[115]->IsAlias = 0 +pp_data->cap[115]->IsStringRange = 0 +pp_data->cap[115]->IsDesignatorRange = 0 +pp_data->cap[115]->Reserved1 = 0x000000 +pp_data->cap[115]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[115]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[115]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[115]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[115]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[115]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[115]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[115]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[115]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[115]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[115]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[115]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[115]->NotRange.Usage = 0x0081 +pp_data->cap[115]->NotRange.Reserved1 = 0x0081 +pp_data->cap[115]->NotRange.StringIndex = 0 +pp_data->cap[115]->NotRange.Reserved2 = 0 +pp_data->cap[115]->NotRange.DesignatorIndex = 0 +pp_data->cap[115]->NotRange.Reserved3 = 0 +pp_data->cap[115]->NotRange.DataIndex = 28 +pp_data->cap[115]->NotRange.Reserved4 = 28 +pp_data->cap[115]->NotButton.HasNull = 0 +pp_data->cap[115]->NotButton.Reserved4 = 0x000000 +pp_data->cap[115]->NotButton.LogicalMin = 0 +pp_data->cap[115]->NotButton.LogicalMax = 127 +pp_data->cap[115]->NotButton.PhysicalMin = 0 +pp_data->cap[115]->NotButton.PhysicalMax = 0 +pp_data->cap[115]->Units = 0 +pp_data->cap[115]->UnitsExp = 0 + +pp_data->cap[116]->UsagePage = 0xFF01 +pp_data->cap[116]->ReportID = 0x80 +pp_data->cap[116]->BitPosition = 0 +pp_data->cap[116]->BitSize = 8 +pp_data->cap[116]->ReportCount = 1 +pp_data->cap[116]->BytePosition = 0x0041 +pp_data->cap[116]->BitCount = 8 +pp_data->cap[116]->BitField = 0x02 +pp_data->cap[116]->NextBytePosition = 0x0042 +pp_data->cap[116]->LinkCollection = 0x0003 +pp_data->cap[116]->LinkUsagePage = 0xFF01 +pp_data->cap[116]->LinkUsage = 0x0080 +pp_data->cap[116]->IsMultipleItemsForArray = 0 +pp_data->cap[116]->IsButtonCap = 0 +pp_data->cap[116]->IsPadding = 0 +pp_data->cap[116]->IsAbsolute = 1 +pp_data->cap[116]->IsRange = 0 +pp_data->cap[116]->IsAlias = 0 +pp_data->cap[116]->IsStringRange = 0 +pp_data->cap[116]->IsDesignatorRange = 0 +pp_data->cap[116]->Reserved1 = 0x000000 +pp_data->cap[116]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[116]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[116]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[116]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[116]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[116]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[116]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[116]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[116]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[116]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[116]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[116]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[116]->NotRange.Usage = 0x0081 +pp_data->cap[116]->NotRange.Reserved1 = 0x0081 +pp_data->cap[116]->NotRange.StringIndex = 0 +pp_data->cap[116]->NotRange.Reserved2 = 0 +pp_data->cap[116]->NotRange.DesignatorIndex = 0 +pp_data->cap[116]->NotRange.Reserved3 = 0 +pp_data->cap[116]->NotRange.DataIndex = 29 +pp_data->cap[116]->NotRange.Reserved4 = 29 +pp_data->cap[116]->NotButton.HasNull = 0 +pp_data->cap[116]->NotButton.Reserved4 = 0x000000 +pp_data->cap[116]->NotButton.LogicalMin = 0 +pp_data->cap[116]->NotButton.LogicalMax = 127 +pp_data->cap[116]->NotButton.PhysicalMin = 0 +pp_data->cap[116]->NotButton.PhysicalMax = 0 +pp_data->cap[116]->Units = 0 +pp_data->cap[116]->UnitsExp = 0 + +pp_data->cap[117]->UsagePage = 0xFF01 +pp_data->cap[117]->ReportID = 0x80 +pp_data->cap[117]->BitPosition = 0 +pp_data->cap[117]->BitSize = 8 +pp_data->cap[117]->ReportCount = 1 +pp_data->cap[117]->BytePosition = 0x0040 +pp_data->cap[117]->BitCount = 8 +pp_data->cap[117]->BitField = 0x02 +pp_data->cap[117]->NextBytePosition = 0x0041 +pp_data->cap[117]->LinkCollection = 0x0003 +pp_data->cap[117]->LinkUsagePage = 0xFF01 +pp_data->cap[117]->LinkUsage = 0x0080 +pp_data->cap[117]->IsMultipleItemsForArray = 0 +pp_data->cap[117]->IsButtonCap = 0 +pp_data->cap[117]->IsPadding = 0 +pp_data->cap[117]->IsAbsolute = 1 +pp_data->cap[117]->IsRange = 0 +pp_data->cap[117]->IsAlias = 0 +pp_data->cap[117]->IsStringRange = 0 +pp_data->cap[117]->IsDesignatorRange = 0 +pp_data->cap[117]->Reserved1 = 0x000000 +pp_data->cap[117]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[117]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[117]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[117]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[117]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[117]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[117]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[117]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[117]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[117]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[117]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[117]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[117]->NotRange.Usage = 0x0081 +pp_data->cap[117]->NotRange.Reserved1 = 0x0081 +pp_data->cap[117]->NotRange.StringIndex = 0 +pp_data->cap[117]->NotRange.Reserved2 = 0 +pp_data->cap[117]->NotRange.DesignatorIndex = 0 +pp_data->cap[117]->NotRange.Reserved3 = 0 +pp_data->cap[117]->NotRange.DataIndex = 30 +pp_data->cap[117]->NotRange.Reserved4 = 30 +pp_data->cap[117]->NotButton.HasNull = 0 +pp_data->cap[117]->NotButton.Reserved4 = 0x000000 +pp_data->cap[117]->NotButton.LogicalMin = 0 +pp_data->cap[117]->NotButton.LogicalMax = 127 +pp_data->cap[117]->NotButton.PhysicalMin = 0 +pp_data->cap[117]->NotButton.PhysicalMax = 0 +pp_data->cap[117]->Units = 0 +pp_data->cap[117]->UnitsExp = 0 + +pp_data->cap[118]->UsagePage = 0xFF01 +pp_data->cap[118]->ReportID = 0x80 +pp_data->cap[118]->BitPosition = 0 +pp_data->cap[118]->BitSize = 8 +pp_data->cap[118]->ReportCount = 1 +pp_data->cap[118]->BytePosition = 0x003F +pp_data->cap[118]->BitCount = 8 +pp_data->cap[118]->BitField = 0x02 +pp_data->cap[118]->NextBytePosition = 0x0040 +pp_data->cap[118]->LinkCollection = 0x0003 +pp_data->cap[118]->LinkUsagePage = 0xFF01 +pp_data->cap[118]->LinkUsage = 0x0080 +pp_data->cap[118]->IsMultipleItemsForArray = 0 +pp_data->cap[118]->IsButtonCap = 0 +pp_data->cap[118]->IsPadding = 0 +pp_data->cap[118]->IsAbsolute = 1 +pp_data->cap[118]->IsRange = 0 +pp_data->cap[118]->IsAlias = 0 +pp_data->cap[118]->IsStringRange = 0 +pp_data->cap[118]->IsDesignatorRange = 0 +pp_data->cap[118]->Reserved1 = 0x000000 +pp_data->cap[118]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[118]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[118]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[118]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[118]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[118]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[118]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[118]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[118]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[118]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[118]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[118]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[118]->NotRange.Usage = 0x0081 +pp_data->cap[118]->NotRange.Reserved1 = 0x0081 +pp_data->cap[118]->NotRange.StringIndex = 0 +pp_data->cap[118]->NotRange.Reserved2 = 0 +pp_data->cap[118]->NotRange.DesignatorIndex = 0 +pp_data->cap[118]->NotRange.Reserved3 = 0 +pp_data->cap[118]->NotRange.DataIndex = 31 +pp_data->cap[118]->NotRange.Reserved4 = 31 +pp_data->cap[118]->NotButton.HasNull = 0 +pp_data->cap[118]->NotButton.Reserved4 = 0x000000 +pp_data->cap[118]->NotButton.LogicalMin = 0 +pp_data->cap[118]->NotButton.LogicalMax = 127 +pp_data->cap[118]->NotButton.PhysicalMin = 0 +pp_data->cap[118]->NotButton.PhysicalMax = 0 +pp_data->cap[118]->Units = 0 +pp_data->cap[118]->UnitsExp = 0 + +pp_data->cap[119]->UsagePage = 0xFF01 +pp_data->cap[119]->ReportID = 0x80 +pp_data->cap[119]->BitPosition = 0 +pp_data->cap[119]->BitSize = 8 +pp_data->cap[119]->ReportCount = 1 +pp_data->cap[119]->BytePosition = 0x003E +pp_data->cap[119]->BitCount = 8 +pp_data->cap[119]->BitField = 0x02 +pp_data->cap[119]->NextBytePosition = 0x003F +pp_data->cap[119]->LinkCollection = 0x0003 +pp_data->cap[119]->LinkUsagePage = 0xFF01 +pp_data->cap[119]->LinkUsage = 0x0080 +pp_data->cap[119]->IsMultipleItemsForArray = 0 +pp_data->cap[119]->IsButtonCap = 0 +pp_data->cap[119]->IsPadding = 0 +pp_data->cap[119]->IsAbsolute = 1 +pp_data->cap[119]->IsRange = 0 +pp_data->cap[119]->IsAlias = 0 +pp_data->cap[119]->IsStringRange = 0 +pp_data->cap[119]->IsDesignatorRange = 0 +pp_data->cap[119]->Reserved1 = 0x000000 +pp_data->cap[119]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[119]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[119]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[119]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[119]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[119]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[119]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[119]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[119]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[119]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[119]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[119]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[119]->NotRange.Usage = 0x0081 +pp_data->cap[119]->NotRange.Reserved1 = 0x0081 +pp_data->cap[119]->NotRange.StringIndex = 0 +pp_data->cap[119]->NotRange.Reserved2 = 0 +pp_data->cap[119]->NotRange.DesignatorIndex = 0 +pp_data->cap[119]->NotRange.Reserved3 = 0 +pp_data->cap[119]->NotRange.DataIndex = 32 +pp_data->cap[119]->NotRange.Reserved4 = 32 +pp_data->cap[119]->NotButton.HasNull = 0 +pp_data->cap[119]->NotButton.Reserved4 = 0x000000 +pp_data->cap[119]->NotButton.LogicalMin = 0 +pp_data->cap[119]->NotButton.LogicalMax = 127 +pp_data->cap[119]->NotButton.PhysicalMin = 0 +pp_data->cap[119]->NotButton.PhysicalMax = 0 +pp_data->cap[119]->Units = 0 +pp_data->cap[119]->UnitsExp = 0 + +pp_data->cap[120]->UsagePage = 0xFF01 +pp_data->cap[120]->ReportID = 0x80 +pp_data->cap[120]->BitPosition = 0 +pp_data->cap[120]->BitSize = 8 +pp_data->cap[120]->ReportCount = 1 +pp_data->cap[120]->BytePosition = 0x003D +pp_data->cap[120]->BitCount = 8 +pp_data->cap[120]->BitField = 0x02 +pp_data->cap[120]->NextBytePosition = 0x003E +pp_data->cap[120]->LinkCollection = 0x0003 +pp_data->cap[120]->LinkUsagePage = 0xFF01 +pp_data->cap[120]->LinkUsage = 0x0080 +pp_data->cap[120]->IsMultipleItemsForArray = 0 +pp_data->cap[120]->IsButtonCap = 0 +pp_data->cap[120]->IsPadding = 0 +pp_data->cap[120]->IsAbsolute = 1 +pp_data->cap[120]->IsRange = 0 +pp_data->cap[120]->IsAlias = 0 +pp_data->cap[120]->IsStringRange = 0 +pp_data->cap[120]->IsDesignatorRange = 0 +pp_data->cap[120]->Reserved1 = 0x000000 +pp_data->cap[120]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[120]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[120]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[120]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[120]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[120]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[120]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[120]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[120]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[120]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[120]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[120]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[120]->NotRange.Usage = 0x0081 +pp_data->cap[120]->NotRange.Reserved1 = 0x0081 +pp_data->cap[120]->NotRange.StringIndex = 0 +pp_data->cap[120]->NotRange.Reserved2 = 0 +pp_data->cap[120]->NotRange.DesignatorIndex = 0 +pp_data->cap[120]->NotRange.Reserved3 = 0 +pp_data->cap[120]->NotRange.DataIndex = 33 +pp_data->cap[120]->NotRange.Reserved4 = 33 +pp_data->cap[120]->NotButton.HasNull = 0 +pp_data->cap[120]->NotButton.Reserved4 = 0x000000 +pp_data->cap[120]->NotButton.LogicalMin = 0 +pp_data->cap[120]->NotButton.LogicalMax = 127 +pp_data->cap[120]->NotButton.PhysicalMin = 0 +pp_data->cap[120]->NotButton.PhysicalMax = 0 +pp_data->cap[120]->Units = 0 +pp_data->cap[120]->UnitsExp = 0 + +pp_data->cap[121]->UsagePage = 0xFF01 +pp_data->cap[121]->ReportID = 0x80 +pp_data->cap[121]->BitPosition = 0 +pp_data->cap[121]->BitSize = 8 +pp_data->cap[121]->ReportCount = 1 +pp_data->cap[121]->BytePosition = 0x003C +pp_data->cap[121]->BitCount = 8 +pp_data->cap[121]->BitField = 0x02 +pp_data->cap[121]->NextBytePosition = 0x003D +pp_data->cap[121]->LinkCollection = 0x0003 +pp_data->cap[121]->LinkUsagePage = 0xFF01 +pp_data->cap[121]->LinkUsage = 0x0080 +pp_data->cap[121]->IsMultipleItemsForArray = 0 +pp_data->cap[121]->IsButtonCap = 0 +pp_data->cap[121]->IsPadding = 0 +pp_data->cap[121]->IsAbsolute = 1 +pp_data->cap[121]->IsRange = 0 +pp_data->cap[121]->IsAlias = 0 +pp_data->cap[121]->IsStringRange = 0 +pp_data->cap[121]->IsDesignatorRange = 0 +pp_data->cap[121]->Reserved1 = 0x000000 +pp_data->cap[121]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[121]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[121]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[121]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[121]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[121]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[121]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[121]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[121]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[121]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[121]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[121]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[121]->NotRange.Usage = 0x0081 +pp_data->cap[121]->NotRange.Reserved1 = 0x0081 +pp_data->cap[121]->NotRange.StringIndex = 0 +pp_data->cap[121]->NotRange.Reserved2 = 0 +pp_data->cap[121]->NotRange.DesignatorIndex = 0 +pp_data->cap[121]->NotRange.Reserved3 = 0 +pp_data->cap[121]->NotRange.DataIndex = 34 +pp_data->cap[121]->NotRange.Reserved4 = 34 +pp_data->cap[121]->NotButton.HasNull = 0 +pp_data->cap[121]->NotButton.Reserved4 = 0x000000 +pp_data->cap[121]->NotButton.LogicalMin = 0 +pp_data->cap[121]->NotButton.LogicalMax = 127 +pp_data->cap[121]->NotButton.PhysicalMin = 0 +pp_data->cap[121]->NotButton.PhysicalMax = 0 +pp_data->cap[121]->Units = 0 +pp_data->cap[121]->UnitsExp = 0 + +pp_data->cap[122]->UsagePage = 0xFF01 +pp_data->cap[122]->ReportID = 0x80 +pp_data->cap[122]->BitPosition = 0 +pp_data->cap[122]->BitSize = 8 +pp_data->cap[122]->ReportCount = 1 +pp_data->cap[122]->BytePosition = 0x003B +pp_data->cap[122]->BitCount = 8 +pp_data->cap[122]->BitField = 0x02 +pp_data->cap[122]->NextBytePosition = 0x003C +pp_data->cap[122]->LinkCollection = 0x0003 +pp_data->cap[122]->LinkUsagePage = 0xFF01 +pp_data->cap[122]->LinkUsage = 0x0080 +pp_data->cap[122]->IsMultipleItemsForArray = 0 +pp_data->cap[122]->IsButtonCap = 0 +pp_data->cap[122]->IsPadding = 0 +pp_data->cap[122]->IsAbsolute = 1 +pp_data->cap[122]->IsRange = 0 +pp_data->cap[122]->IsAlias = 0 +pp_data->cap[122]->IsStringRange = 0 +pp_data->cap[122]->IsDesignatorRange = 0 +pp_data->cap[122]->Reserved1 = 0x000000 +pp_data->cap[122]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[122]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[122]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[122]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[122]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[122]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[122]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[122]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[122]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[122]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[122]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[122]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[122]->NotRange.Usage = 0x0081 +pp_data->cap[122]->NotRange.Reserved1 = 0x0081 +pp_data->cap[122]->NotRange.StringIndex = 0 +pp_data->cap[122]->NotRange.Reserved2 = 0 +pp_data->cap[122]->NotRange.DesignatorIndex = 0 +pp_data->cap[122]->NotRange.Reserved3 = 0 +pp_data->cap[122]->NotRange.DataIndex = 35 +pp_data->cap[122]->NotRange.Reserved4 = 35 +pp_data->cap[122]->NotButton.HasNull = 0 +pp_data->cap[122]->NotButton.Reserved4 = 0x000000 +pp_data->cap[122]->NotButton.LogicalMin = 0 +pp_data->cap[122]->NotButton.LogicalMax = 127 +pp_data->cap[122]->NotButton.PhysicalMin = 0 +pp_data->cap[122]->NotButton.PhysicalMax = 0 +pp_data->cap[122]->Units = 0 +pp_data->cap[122]->UnitsExp = 0 + +pp_data->cap[123]->UsagePage = 0xFF01 +pp_data->cap[123]->ReportID = 0x80 +pp_data->cap[123]->BitPosition = 0 +pp_data->cap[123]->BitSize = 8 +pp_data->cap[123]->ReportCount = 1 +pp_data->cap[123]->BytePosition = 0x003A +pp_data->cap[123]->BitCount = 8 +pp_data->cap[123]->BitField = 0x02 +pp_data->cap[123]->NextBytePosition = 0x003B +pp_data->cap[123]->LinkCollection = 0x0003 +pp_data->cap[123]->LinkUsagePage = 0xFF01 +pp_data->cap[123]->LinkUsage = 0x0080 +pp_data->cap[123]->IsMultipleItemsForArray = 0 +pp_data->cap[123]->IsButtonCap = 0 +pp_data->cap[123]->IsPadding = 0 +pp_data->cap[123]->IsAbsolute = 1 +pp_data->cap[123]->IsRange = 0 +pp_data->cap[123]->IsAlias = 0 +pp_data->cap[123]->IsStringRange = 0 +pp_data->cap[123]->IsDesignatorRange = 0 +pp_data->cap[123]->Reserved1 = 0x000000 +pp_data->cap[123]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[123]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[123]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[123]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[123]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[123]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[123]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[123]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[123]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[123]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[123]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[123]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[123]->NotRange.Usage = 0x0081 +pp_data->cap[123]->NotRange.Reserved1 = 0x0081 +pp_data->cap[123]->NotRange.StringIndex = 0 +pp_data->cap[123]->NotRange.Reserved2 = 0 +pp_data->cap[123]->NotRange.DesignatorIndex = 0 +pp_data->cap[123]->NotRange.Reserved3 = 0 +pp_data->cap[123]->NotRange.DataIndex = 36 +pp_data->cap[123]->NotRange.Reserved4 = 36 +pp_data->cap[123]->NotButton.HasNull = 0 +pp_data->cap[123]->NotButton.Reserved4 = 0x000000 +pp_data->cap[123]->NotButton.LogicalMin = 0 +pp_data->cap[123]->NotButton.LogicalMax = 127 +pp_data->cap[123]->NotButton.PhysicalMin = 0 +pp_data->cap[123]->NotButton.PhysicalMax = 0 +pp_data->cap[123]->Units = 0 +pp_data->cap[123]->UnitsExp = 0 + +pp_data->cap[124]->UsagePage = 0xFF01 +pp_data->cap[124]->ReportID = 0x80 +pp_data->cap[124]->BitPosition = 0 +pp_data->cap[124]->BitSize = 8 +pp_data->cap[124]->ReportCount = 1 +pp_data->cap[124]->BytePosition = 0x0039 +pp_data->cap[124]->BitCount = 8 +pp_data->cap[124]->BitField = 0x02 +pp_data->cap[124]->NextBytePosition = 0x003A +pp_data->cap[124]->LinkCollection = 0x0003 +pp_data->cap[124]->LinkUsagePage = 0xFF01 +pp_data->cap[124]->LinkUsage = 0x0080 +pp_data->cap[124]->IsMultipleItemsForArray = 0 +pp_data->cap[124]->IsButtonCap = 0 +pp_data->cap[124]->IsPadding = 0 +pp_data->cap[124]->IsAbsolute = 1 +pp_data->cap[124]->IsRange = 0 +pp_data->cap[124]->IsAlias = 0 +pp_data->cap[124]->IsStringRange = 0 +pp_data->cap[124]->IsDesignatorRange = 0 +pp_data->cap[124]->Reserved1 = 0x000000 +pp_data->cap[124]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[124]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[124]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[124]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[124]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[124]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[124]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[124]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[124]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[124]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[124]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[124]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[124]->NotRange.Usage = 0x0081 +pp_data->cap[124]->NotRange.Reserved1 = 0x0081 +pp_data->cap[124]->NotRange.StringIndex = 0 +pp_data->cap[124]->NotRange.Reserved2 = 0 +pp_data->cap[124]->NotRange.DesignatorIndex = 0 +pp_data->cap[124]->NotRange.Reserved3 = 0 +pp_data->cap[124]->NotRange.DataIndex = 37 +pp_data->cap[124]->NotRange.Reserved4 = 37 +pp_data->cap[124]->NotButton.HasNull = 0 +pp_data->cap[124]->NotButton.Reserved4 = 0x000000 +pp_data->cap[124]->NotButton.LogicalMin = 0 +pp_data->cap[124]->NotButton.LogicalMax = 127 +pp_data->cap[124]->NotButton.PhysicalMin = 0 +pp_data->cap[124]->NotButton.PhysicalMax = 0 +pp_data->cap[124]->Units = 0 +pp_data->cap[124]->UnitsExp = 0 + +pp_data->cap[125]->UsagePage = 0xFF01 +pp_data->cap[125]->ReportID = 0x80 +pp_data->cap[125]->BitPosition = 0 +pp_data->cap[125]->BitSize = 8 +pp_data->cap[125]->ReportCount = 1 +pp_data->cap[125]->BytePosition = 0x0038 +pp_data->cap[125]->BitCount = 8 +pp_data->cap[125]->BitField = 0x02 +pp_data->cap[125]->NextBytePosition = 0x0039 +pp_data->cap[125]->LinkCollection = 0x0003 +pp_data->cap[125]->LinkUsagePage = 0xFF01 +pp_data->cap[125]->LinkUsage = 0x0080 +pp_data->cap[125]->IsMultipleItemsForArray = 0 +pp_data->cap[125]->IsButtonCap = 0 +pp_data->cap[125]->IsPadding = 0 +pp_data->cap[125]->IsAbsolute = 1 +pp_data->cap[125]->IsRange = 0 +pp_data->cap[125]->IsAlias = 0 +pp_data->cap[125]->IsStringRange = 0 +pp_data->cap[125]->IsDesignatorRange = 0 +pp_data->cap[125]->Reserved1 = 0x000000 +pp_data->cap[125]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[125]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[125]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[125]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[125]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[125]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[125]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[125]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[125]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[125]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[125]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[125]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[125]->NotRange.Usage = 0x0081 +pp_data->cap[125]->NotRange.Reserved1 = 0x0081 +pp_data->cap[125]->NotRange.StringIndex = 0 +pp_data->cap[125]->NotRange.Reserved2 = 0 +pp_data->cap[125]->NotRange.DesignatorIndex = 0 +pp_data->cap[125]->NotRange.Reserved3 = 0 +pp_data->cap[125]->NotRange.DataIndex = 38 +pp_data->cap[125]->NotRange.Reserved4 = 38 +pp_data->cap[125]->NotButton.HasNull = 0 +pp_data->cap[125]->NotButton.Reserved4 = 0x000000 +pp_data->cap[125]->NotButton.LogicalMin = 0 +pp_data->cap[125]->NotButton.LogicalMax = 127 +pp_data->cap[125]->NotButton.PhysicalMin = 0 +pp_data->cap[125]->NotButton.PhysicalMax = 0 +pp_data->cap[125]->Units = 0 +pp_data->cap[125]->UnitsExp = 0 + +pp_data->cap[126]->UsagePage = 0xFF01 +pp_data->cap[126]->ReportID = 0x80 +pp_data->cap[126]->BitPosition = 0 +pp_data->cap[126]->BitSize = 8 +pp_data->cap[126]->ReportCount = 1 +pp_data->cap[126]->BytePosition = 0x0037 +pp_data->cap[126]->BitCount = 8 +pp_data->cap[126]->BitField = 0x02 +pp_data->cap[126]->NextBytePosition = 0x0038 +pp_data->cap[126]->LinkCollection = 0x0003 +pp_data->cap[126]->LinkUsagePage = 0xFF01 +pp_data->cap[126]->LinkUsage = 0x0080 +pp_data->cap[126]->IsMultipleItemsForArray = 0 +pp_data->cap[126]->IsButtonCap = 0 +pp_data->cap[126]->IsPadding = 0 +pp_data->cap[126]->IsAbsolute = 1 +pp_data->cap[126]->IsRange = 0 +pp_data->cap[126]->IsAlias = 0 +pp_data->cap[126]->IsStringRange = 0 +pp_data->cap[126]->IsDesignatorRange = 0 +pp_data->cap[126]->Reserved1 = 0x000000 +pp_data->cap[126]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[126]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[126]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[126]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[126]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[126]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[126]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[126]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[126]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[126]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[126]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[126]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[126]->NotRange.Usage = 0x0081 +pp_data->cap[126]->NotRange.Reserved1 = 0x0081 +pp_data->cap[126]->NotRange.StringIndex = 0 +pp_data->cap[126]->NotRange.Reserved2 = 0 +pp_data->cap[126]->NotRange.DesignatorIndex = 0 +pp_data->cap[126]->NotRange.Reserved3 = 0 +pp_data->cap[126]->NotRange.DataIndex = 39 +pp_data->cap[126]->NotRange.Reserved4 = 39 +pp_data->cap[126]->NotButton.HasNull = 0 +pp_data->cap[126]->NotButton.Reserved4 = 0x000000 +pp_data->cap[126]->NotButton.LogicalMin = 0 +pp_data->cap[126]->NotButton.LogicalMax = 127 +pp_data->cap[126]->NotButton.PhysicalMin = 0 +pp_data->cap[126]->NotButton.PhysicalMax = 0 +pp_data->cap[126]->Units = 0 +pp_data->cap[126]->UnitsExp = 0 + +pp_data->cap[127]->UsagePage = 0xFF01 +pp_data->cap[127]->ReportID = 0x80 +pp_data->cap[127]->BitPosition = 0 +pp_data->cap[127]->BitSize = 8 +pp_data->cap[127]->ReportCount = 1 +pp_data->cap[127]->BytePosition = 0x0036 +pp_data->cap[127]->BitCount = 8 +pp_data->cap[127]->BitField = 0x02 +pp_data->cap[127]->NextBytePosition = 0x0037 +pp_data->cap[127]->LinkCollection = 0x0003 +pp_data->cap[127]->LinkUsagePage = 0xFF01 +pp_data->cap[127]->LinkUsage = 0x0080 +pp_data->cap[127]->IsMultipleItemsForArray = 0 +pp_data->cap[127]->IsButtonCap = 0 +pp_data->cap[127]->IsPadding = 0 +pp_data->cap[127]->IsAbsolute = 1 +pp_data->cap[127]->IsRange = 0 +pp_data->cap[127]->IsAlias = 0 +pp_data->cap[127]->IsStringRange = 0 +pp_data->cap[127]->IsDesignatorRange = 0 +pp_data->cap[127]->Reserved1 = 0x000000 +pp_data->cap[127]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[127]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[127]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[127]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[127]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[127]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[127]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[127]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[127]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[127]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[127]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[127]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[127]->NotRange.Usage = 0x0081 +pp_data->cap[127]->NotRange.Reserved1 = 0x0081 +pp_data->cap[127]->NotRange.StringIndex = 0 +pp_data->cap[127]->NotRange.Reserved2 = 0 +pp_data->cap[127]->NotRange.DesignatorIndex = 0 +pp_data->cap[127]->NotRange.Reserved3 = 0 +pp_data->cap[127]->NotRange.DataIndex = 40 +pp_data->cap[127]->NotRange.Reserved4 = 40 +pp_data->cap[127]->NotButton.HasNull = 0 +pp_data->cap[127]->NotButton.Reserved4 = 0x000000 +pp_data->cap[127]->NotButton.LogicalMin = 0 +pp_data->cap[127]->NotButton.LogicalMax = 127 +pp_data->cap[127]->NotButton.PhysicalMin = 0 +pp_data->cap[127]->NotButton.PhysicalMax = 0 +pp_data->cap[127]->Units = 0 +pp_data->cap[127]->UnitsExp = 0 + +pp_data->cap[128]->UsagePage = 0xFF01 +pp_data->cap[128]->ReportID = 0x80 +pp_data->cap[128]->BitPosition = 0 +pp_data->cap[128]->BitSize = 8 +pp_data->cap[128]->ReportCount = 1 +pp_data->cap[128]->BytePosition = 0x0035 +pp_data->cap[128]->BitCount = 8 +pp_data->cap[128]->BitField = 0x02 +pp_data->cap[128]->NextBytePosition = 0x0036 +pp_data->cap[128]->LinkCollection = 0x0003 +pp_data->cap[128]->LinkUsagePage = 0xFF01 +pp_data->cap[128]->LinkUsage = 0x0080 +pp_data->cap[128]->IsMultipleItemsForArray = 0 +pp_data->cap[128]->IsButtonCap = 0 +pp_data->cap[128]->IsPadding = 0 +pp_data->cap[128]->IsAbsolute = 1 +pp_data->cap[128]->IsRange = 0 +pp_data->cap[128]->IsAlias = 0 +pp_data->cap[128]->IsStringRange = 0 +pp_data->cap[128]->IsDesignatorRange = 0 +pp_data->cap[128]->Reserved1 = 0x000000 +pp_data->cap[128]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[128]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[128]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[128]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[128]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[128]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[128]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[128]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[128]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[128]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[128]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[128]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[128]->NotRange.Usage = 0x0081 +pp_data->cap[128]->NotRange.Reserved1 = 0x0081 +pp_data->cap[128]->NotRange.StringIndex = 0 +pp_data->cap[128]->NotRange.Reserved2 = 0 +pp_data->cap[128]->NotRange.DesignatorIndex = 0 +pp_data->cap[128]->NotRange.Reserved3 = 0 +pp_data->cap[128]->NotRange.DataIndex = 41 +pp_data->cap[128]->NotRange.Reserved4 = 41 +pp_data->cap[128]->NotButton.HasNull = 0 +pp_data->cap[128]->NotButton.Reserved4 = 0x000000 +pp_data->cap[128]->NotButton.LogicalMin = 0 +pp_data->cap[128]->NotButton.LogicalMax = 127 +pp_data->cap[128]->NotButton.PhysicalMin = 0 +pp_data->cap[128]->NotButton.PhysicalMax = 0 +pp_data->cap[128]->Units = 0 +pp_data->cap[128]->UnitsExp = 0 + +pp_data->cap[129]->UsagePage = 0xFF01 +pp_data->cap[129]->ReportID = 0x80 +pp_data->cap[129]->BitPosition = 0 +pp_data->cap[129]->BitSize = 8 +pp_data->cap[129]->ReportCount = 1 +pp_data->cap[129]->BytePosition = 0x0034 +pp_data->cap[129]->BitCount = 8 +pp_data->cap[129]->BitField = 0x02 +pp_data->cap[129]->NextBytePosition = 0x0035 +pp_data->cap[129]->LinkCollection = 0x0003 +pp_data->cap[129]->LinkUsagePage = 0xFF01 +pp_data->cap[129]->LinkUsage = 0x0080 +pp_data->cap[129]->IsMultipleItemsForArray = 0 +pp_data->cap[129]->IsButtonCap = 0 +pp_data->cap[129]->IsPadding = 0 +pp_data->cap[129]->IsAbsolute = 1 +pp_data->cap[129]->IsRange = 0 +pp_data->cap[129]->IsAlias = 0 +pp_data->cap[129]->IsStringRange = 0 +pp_data->cap[129]->IsDesignatorRange = 0 +pp_data->cap[129]->Reserved1 = 0x000000 +pp_data->cap[129]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[129]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[129]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[129]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[129]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[129]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[129]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[129]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[129]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[129]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[129]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[129]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[129]->NotRange.Usage = 0x0081 +pp_data->cap[129]->NotRange.Reserved1 = 0x0081 +pp_data->cap[129]->NotRange.StringIndex = 0 +pp_data->cap[129]->NotRange.Reserved2 = 0 +pp_data->cap[129]->NotRange.DesignatorIndex = 0 +pp_data->cap[129]->NotRange.Reserved3 = 0 +pp_data->cap[129]->NotRange.DataIndex = 42 +pp_data->cap[129]->NotRange.Reserved4 = 42 +pp_data->cap[129]->NotButton.HasNull = 0 +pp_data->cap[129]->NotButton.Reserved4 = 0x000000 +pp_data->cap[129]->NotButton.LogicalMin = 0 +pp_data->cap[129]->NotButton.LogicalMax = 127 +pp_data->cap[129]->NotButton.PhysicalMin = 0 +pp_data->cap[129]->NotButton.PhysicalMax = 0 +pp_data->cap[129]->Units = 0 +pp_data->cap[129]->UnitsExp = 0 + +pp_data->cap[130]->UsagePage = 0xFF01 +pp_data->cap[130]->ReportID = 0x80 +pp_data->cap[130]->BitPosition = 0 +pp_data->cap[130]->BitSize = 8 +pp_data->cap[130]->ReportCount = 1 +pp_data->cap[130]->BytePosition = 0x0033 +pp_data->cap[130]->BitCount = 8 +pp_data->cap[130]->BitField = 0x02 +pp_data->cap[130]->NextBytePosition = 0x0034 +pp_data->cap[130]->LinkCollection = 0x0003 +pp_data->cap[130]->LinkUsagePage = 0xFF01 +pp_data->cap[130]->LinkUsage = 0x0080 +pp_data->cap[130]->IsMultipleItemsForArray = 0 +pp_data->cap[130]->IsButtonCap = 0 +pp_data->cap[130]->IsPadding = 0 +pp_data->cap[130]->IsAbsolute = 1 +pp_data->cap[130]->IsRange = 0 +pp_data->cap[130]->IsAlias = 0 +pp_data->cap[130]->IsStringRange = 0 +pp_data->cap[130]->IsDesignatorRange = 0 +pp_data->cap[130]->Reserved1 = 0x000000 +pp_data->cap[130]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[130]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[130]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[130]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[130]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[130]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[130]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[130]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[130]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[130]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[130]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[130]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[130]->NotRange.Usage = 0x0081 +pp_data->cap[130]->NotRange.Reserved1 = 0x0081 +pp_data->cap[130]->NotRange.StringIndex = 0 +pp_data->cap[130]->NotRange.Reserved2 = 0 +pp_data->cap[130]->NotRange.DesignatorIndex = 0 +pp_data->cap[130]->NotRange.Reserved3 = 0 +pp_data->cap[130]->NotRange.DataIndex = 43 +pp_data->cap[130]->NotRange.Reserved4 = 43 +pp_data->cap[130]->NotButton.HasNull = 0 +pp_data->cap[130]->NotButton.Reserved4 = 0x000000 +pp_data->cap[130]->NotButton.LogicalMin = 0 +pp_data->cap[130]->NotButton.LogicalMax = 127 +pp_data->cap[130]->NotButton.PhysicalMin = 0 +pp_data->cap[130]->NotButton.PhysicalMax = 0 +pp_data->cap[130]->Units = 0 +pp_data->cap[130]->UnitsExp = 0 + +pp_data->cap[131]->UsagePage = 0xFF01 +pp_data->cap[131]->ReportID = 0x80 +pp_data->cap[131]->BitPosition = 0 +pp_data->cap[131]->BitSize = 8 +pp_data->cap[131]->ReportCount = 1 +pp_data->cap[131]->BytePosition = 0x0032 +pp_data->cap[131]->BitCount = 8 +pp_data->cap[131]->BitField = 0x02 +pp_data->cap[131]->NextBytePosition = 0x0033 +pp_data->cap[131]->LinkCollection = 0x0003 +pp_data->cap[131]->LinkUsagePage = 0xFF01 +pp_data->cap[131]->LinkUsage = 0x0080 +pp_data->cap[131]->IsMultipleItemsForArray = 0 +pp_data->cap[131]->IsButtonCap = 0 +pp_data->cap[131]->IsPadding = 0 +pp_data->cap[131]->IsAbsolute = 1 +pp_data->cap[131]->IsRange = 0 +pp_data->cap[131]->IsAlias = 0 +pp_data->cap[131]->IsStringRange = 0 +pp_data->cap[131]->IsDesignatorRange = 0 +pp_data->cap[131]->Reserved1 = 0x000000 +pp_data->cap[131]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[131]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[131]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[131]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[131]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[131]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[131]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[131]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[131]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[131]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[131]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[131]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[131]->NotRange.Usage = 0x0081 +pp_data->cap[131]->NotRange.Reserved1 = 0x0081 +pp_data->cap[131]->NotRange.StringIndex = 0 +pp_data->cap[131]->NotRange.Reserved2 = 0 +pp_data->cap[131]->NotRange.DesignatorIndex = 0 +pp_data->cap[131]->NotRange.Reserved3 = 0 +pp_data->cap[131]->NotRange.DataIndex = 44 +pp_data->cap[131]->NotRange.Reserved4 = 44 +pp_data->cap[131]->NotButton.HasNull = 0 +pp_data->cap[131]->NotButton.Reserved4 = 0x000000 +pp_data->cap[131]->NotButton.LogicalMin = 0 +pp_data->cap[131]->NotButton.LogicalMax = 127 +pp_data->cap[131]->NotButton.PhysicalMin = 0 +pp_data->cap[131]->NotButton.PhysicalMax = 0 +pp_data->cap[131]->Units = 0 +pp_data->cap[131]->UnitsExp = 0 + +pp_data->cap[132]->UsagePage = 0xFF01 +pp_data->cap[132]->ReportID = 0x80 +pp_data->cap[132]->BitPosition = 0 +pp_data->cap[132]->BitSize = 8 +pp_data->cap[132]->ReportCount = 1 +pp_data->cap[132]->BytePosition = 0x0031 +pp_data->cap[132]->BitCount = 8 +pp_data->cap[132]->BitField = 0x02 +pp_data->cap[132]->NextBytePosition = 0x0032 +pp_data->cap[132]->LinkCollection = 0x0003 +pp_data->cap[132]->LinkUsagePage = 0xFF01 +pp_data->cap[132]->LinkUsage = 0x0080 +pp_data->cap[132]->IsMultipleItemsForArray = 0 +pp_data->cap[132]->IsButtonCap = 0 +pp_data->cap[132]->IsPadding = 0 +pp_data->cap[132]->IsAbsolute = 1 +pp_data->cap[132]->IsRange = 0 +pp_data->cap[132]->IsAlias = 0 +pp_data->cap[132]->IsStringRange = 0 +pp_data->cap[132]->IsDesignatorRange = 0 +pp_data->cap[132]->Reserved1 = 0x000000 +pp_data->cap[132]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[132]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[132]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[132]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[132]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[132]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[132]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[132]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[132]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[132]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[132]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[132]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[132]->NotRange.Usage = 0x0081 +pp_data->cap[132]->NotRange.Reserved1 = 0x0081 +pp_data->cap[132]->NotRange.StringIndex = 0 +pp_data->cap[132]->NotRange.Reserved2 = 0 +pp_data->cap[132]->NotRange.DesignatorIndex = 0 +pp_data->cap[132]->NotRange.Reserved3 = 0 +pp_data->cap[132]->NotRange.DataIndex = 45 +pp_data->cap[132]->NotRange.Reserved4 = 45 +pp_data->cap[132]->NotButton.HasNull = 0 +pp_data->cap[132]->NotButton.Reserved4 = 0x000000 +pp_data->cap[132]->NotButton.LogicalMin = 0 +pp_data->cap[132]->NotButton.LogicalMax = 127 +pp_data->cap[132]->NotButton.PhysicalMin = 0 +pp_data->cap[132]->NotButton.PhysicalMax = 0 +pp_data->cap[132]->Units = 0 +pp_data->cap[132]->UnitsExp = 0 + +pp_data->cap[133]->UsagePage = 0xFF01 +pp_data->cap[133]->ReportID = 0x80 +pp_data->cap[133]->BitPosition = 0 +pp_data->cap[133]->BitSize = 8 +pp_data->cap[133]->ReportCount = 1 +pp_data->cap[133]->BytePosition = 0x0030 +pp_data->cap[133]->BitCount = 8 +pp_data->cap[133]->BitField = 0x02 +pp_data->cap[133]->NextBytePosition = 0x0031 +pp_data->cap[133]->LinkCollection = 0x0003 +pp_data->cap[133]->LinkUsagePage = 0xFF01 +pp_data->cap[133]->LinkUsage = 0x0080 +pp_data->cap[133]->IsMultipleItemsForArray = 0 +pp_data->cap[133]->IsButtonCap = 0 +pp_data->cap[133]->IsPadding = 0 +pp_data->cap[133]->IsAbsolute = 1 +pp_data->cap[133]->IsRange = 0 +pp_data->cap[133]->IsAlias = 0 +pp_data->cap[133]->IsStringRange = 0 +pp_data->cap[133]->IsDesignatorRange = 0 +pp_data->cap[133]->Reserved1 = 0x000000 +pp_data->cap[133]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[133]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[133]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[133]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[133]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[133]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[133]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[133]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[133]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[133]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[133]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[133]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[133]->NotRange.Usage = 0x0081 +pp_data->cap[133]->NotRange.Reserved1 = 0x0081 +pp_data->cap[133]->NotRange.StringIndex = 0 +pp_data->cap[133]->NotRange.Reserved2 = 0 +pp_data->cap[133]->NotRange.DesignatorIndex = 0 +pp_data->cap[133]->NotRange.Reserved3 = 0 +pp_data->cap[133]->NotRange.DataIndex = 46 +pp_data->cap[133]->NotRange.Reserved4 = 46 +pp_data->cap[133]->NotButton.HasNull = 0 +pp_data->cap[133]->NotButton.Reserved4 = 0x000000 +pp_data->cap[133]->NotButton.LogicalMin = 0 +pp_data->cap[133]->NotButton.LogicalMax = 127 +pp_data->cap[133]->NotButton.PhysicalMin = 0 +pp_data->cap[133]->NotButton.PhysicalMax = 0 +pp_data->cap[133]->Units = 0 +pp_data->cap[133]->UnitsExp = 0 + +pp_data->cap[134]->UsagePage = 0xFF01 +pp_data->cap[134]->ReportID = 0x80 +pp_data->cap[134]->BitPosition = 0 +pp_data->cap[134]->BitSize = 8 +pp_data->cap[134]->ReportCount = 1 +pp_data->cap[134]->BytePosition = 0x002F +pp_data->cap[134]->BitCount = 8 +pp_data->cap[134]->BitField = 0x02 +pp_data->cap[134]->NextBytePosition = 0x0030 +pp_data->cap[134]->LinkCollection = 0x0003 +pp_data->cap[134]->LinkUsagePage = 0xFF01 +pp_data->cap[134]->LinkUsage = 0x0080 +pp_data->cap[134]->IsMultipleItemsForArray = 0 +pp_data->cap[134]->IsButtonCap = 0 +pp_data->cap[134]->IsPadding = 0 +pp_data->cap[134]->IsAbsolute = 1 +pp_data->cap[134]->IsRange = 0 +pp_data->cap[134]->IsAlias = 0 +pp_data->cap[134]->IsStringRange = 0 +pp_data->cap[134]->IsDesignatorRange = 0 +pp_data->cap[134]->Reserved1 = 0x000000 +pp_data->cap[134]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[134]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[134]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[134]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[134]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[134]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[134]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[134]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[134]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[134]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[134]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[134]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[134]->NotRange.Usage = 0x0081 +pp_data->cap[134]->NotRange.Reserved1 = 0x0081 +pp_data->cap[134]->NotRange.StringIndex = 0 +pp_data->cap[134]->NotRange.Reserved2 = 0 +pp_data->cap[134]->NotRange.DesignatorIndex = 0 +pp_data->cap[134]->NotRange.Reserved3 = 0 +pp_data->cap[134]->NotRange.DataIndex = 47 +pp_data->cap[134]->NotRange.Reserved4 = 47 +pp_data->cap[134]->NotButton.HasNull = 0 +pp_data->cap[134]->NotButton.Reserved4 = 0x000000 +pp_data->cap[134]->NotButton.LogicalMin = 0 +pp_data->cap[134]->NotButton.LogicalMax = 127 +pp_data->cap[134]->NotButton.PhysicalMin = 0 +pp_data->cap[134]->NotButton.PhysicalMax = 0 +pp_data->cap[134]->Units = 0 +pp_data->cap[134]->UnitsExp = 0 + +pp_data->cap[135]->UsagePage = 0xFF01 +pp_data->cap[135]->ReportID = 0x80 +pp_data->cap[135]->BitPosition = 0 +pp_data->cap[135]->BitSize = 8 +pp_data->cap[135]->ReportCount = 1 +pp_data->cap[135]->BytePosition = 0x002E +pp_data->cap[135]->BitCount = 8 +pp_data->cap[135]->BitField = 0x02 +pp_data->cap[135]->NextBytePosition = 0x002F +pp_data->cap[135]->LinkCollection = 0x0003 +pp_data->cap[135]->LinkUsagePage = 0xFF01 +pp_data->cap[135]->LinkUsage = 0x0080 +pp_data->cap[135]->IsMultipleItemsForArray = 0 +pp_data->cap[135]->IsButtonCap = 0 +pp_data->cap[135]->IsPadding = 0 +pp_data->cap[135]->IsAbsolute = 1 +pp_data->cap[135]->IsRange = 0 +pp_data->cap[135]->IsAlias = 0 +pp_data->cap[135]->IsStringRange = 0 +pp_data->cap[135]->IsDesignatorRange = 0 +pp_data->cap[135]->Reserved1 = 0x000000 +pp_data->cap[135]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[135]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[135]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[135]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[135]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[135]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[135]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[135]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[135]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[135]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[135]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[135]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[135]->NotRange.Usage = 0x0081 +pp_data->cap[135]->NotRange.Reserved1 = 0x0081 +pp_data->cap[135]->NotRange.StringIndex = 0 +pp_data->cap[135]->NotRange.Reserved2 = 0 +pp_data->cap[135]->NotRange.DesignatorIndex = 0 +pp_data->cap[135]->NotRange.Reserved3 = 0 +pp_data->cap[135]->NotRange.DataIndex = 48 +pp_data->cap[135]->NotRange.Reserved4 = 48 +pp_data->cap[135]->NotButton.HasNull = 0 +pp_data->cap[135]->NotButton.Reserved4 = 0x000000 +pp_data->cap[135]->NotButton.LogicalMin = 0 +pp_data->cap[135]->NotButton.LogicalMax = 127 +pp_data->cap[135]->NotButton.PhysicalMin = 0 +pp_data->cap[135]->NotButton.PhysicalMax = 0 +pp_data->cap[135]->Units = 0 +pp_data->cap[135]->UnitsExp = 0 + +pp_data->cap[136]->UsagePage = 0xFF01 +pp_data->cap[136]->ReportID = 0x80 +pp_data->cap[136]->BitPosition = 0 +pp_data->cap[136]->BitSize = 8 +pp_data->cap[136]->ReportCount = 1 +pp_data->cap[136]->BytePosition = 0x002D +pp_data->cap[136]->BitCount = 8 +pp_data->cap[136]->BitField = 0x02 +pp_data->cap[136]->NextBytePosition = 0x002E +pp_data->cap[136]->LinkCollection = 0x0003 +pp_data->cap[136]->LinkUsagePage = 0xFF01 +pp_data->cap[136]->LinkUsage = 0x0080 +pp_data->cap[136]->IsMultipleItemsForArray = 0 +pp_data->cap[136]->IsButtonCap = 0 +pp_data->cap[136]->IsPadding = 0 +pp_data->cap[136]->IsAbsolute = 1 +pp_data->cap[136]->IsRange = 0 +pp_data->cap[136]->IsAlias = 0 +pp_data->cap[136]->IsStringRange = 0 +pp_data->cap[136]->IsDesignatorRange = 0 +pp_data->cap[136]->Reserved1 = 0x000000 +pp_data->cap[136]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[136]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[136]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[136]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[136]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[136]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[136]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[136]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[136]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[136]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[136]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[136]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[136]->NotRange.Usage = 0x0081 +pp_data->cap[136]->NotRange.Reserved1 = 0x0081 +pp_data->cap[136]->NotRange.StringIndex = 0 +pp_data->cap[136]->NotRange.Reserved2 = 0 +pp_data->cap[136]->NotRange.DesignatorIndex = 0 +pp_data->cap[136]->NotRange.Reserved3 = 0 +pp_data->cap[136]->NotRange.DataIndex = 49 +pp_data->cap[136]->NotRange.Reserved4 = 49 +pp_data->cap[136]->NotButton.HasNull = 0 +pp_data->cap[136]->NotButton.Reserved4 = 0x000000 +pp_data->cap[136]->NotButton.LogicalMin = 0 +pp_data->cap[136]->NotButton.LogicalMax = 127 +pp_data->cap[136]->NotButton.PhysicalMin = 0 +pp_data->cap[136]->NotButton.PhysicalMax = 0 +pp_data->cap[136]->Units = 0 +pp_data->cap[136]->UnitsExp = 0 + +pp_data->cap[137]->UsagePage = 0xFF01 +pp_data->cap[137]->ReportID = 0x80 +pp_data->cap[137]->BitPosition = 0 +pp_data->cap[137]->BitSize = 8 +pp_data->cap[137]->ReportCount = 1 +pp_data->cap[137]->BytePosition = 0x002C +pp_data->cap[137]->BitCount = 8 +pp_data->cap[137]->BitField = 0x02 +pp_data->cap[137]->NextBytePosition = 0x002D +pp_data->cap[137]->LinkCollection = 0x0003 +pp_data->cap[137]->LinkUsagePage = 0xFF01 +pp_data->cap[137]->LinkUsage = 0x0080 +pp_data->cap[137]->IsMultipleItemsForArray = 0 +pp_data->cap[137]->IsButtonCap = 0 +pp_data->cap[137]->IsPadding = 0 +pp_data->cap[137]->IsAbsolute = 1 +pp_data->cap[137]->IsRange = 0 +pp_data->cap[137]->IsAlias = 0 +pp_data->cap[137]->IsStringRange = 0 +pp_data->cap[137]->IsDesignatorRange = 0 +pp_data->cap[137]->Reserved1 = 0x000000 +pp_data->cap[137]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[137]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[137]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[137]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[137]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[137]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[137]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[137]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[137]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[137]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[137]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[137]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[137]->NotRange.Usage = 0x0081 +pp_data->cap[137]->NotRange.Reserved1 = 0x0081 +pp_data->cap[137]->NotRange.StringIndex = 0 +pp_data->cap[137]->NotRange.Reserved2 = 0 +pp_data->cap[137]->NotRange.DesignatorIndex = 0 +pp_data->cap[137]->NotRange.Reserved3 = 0 +pp_data->cap[137]->NotRange.DataIndex = 50 +pp_data->cap[137]->NotRange.Reserved4 = 50 +pp_data->cap[137]->NotButton.HasNull = 0 +pp_data->cap[137]->NotButton.Reserved4 = 0x000000 +pp_data->cap[137]->NotButton.LogicalMin = 0 +pp_data->cap[137]->NotButton.LogicalMax = 127 +pp_data->cap[137]->NotButton.PhysicalMin = 0 +pp_data->cap[137]->NotButton.PhysicalMax = 0 +pp_data->cap[137]->Units = 0 +pp_data->cap[137]->UnitsExp = 0 + +pp_data->cap[138]->UsagePage = 0xFF01 +pp_data->cap[138]->ReportID = 0x80 +pp_data->cap[138]->BitPosition = 0 +pp_data->cap[138]->BitSize = 8 +pp_data->cap[138]->ReportCount = 1 +pp_data->cap[138]->BytePosition = 0x002B +pp_data->cap[138]->BitCount = 8 +pp_data->cap[138]->BitField = 0x02 +pp_data->cap[138]->NextBytePosition = 0x002C +pp_data->cap[138]->LinkCollection = 0x0003 +pp_data->cap[138]->LinkUsagePage = 0xFF01 +pp_data->cap[138]->LinkUsage = 0x0080 +pp_data->cap[138]->IsMultipleItemsForArray = 0 +pp_data->cap[138]->IsButtonCap = 0 +pp_data->cap[138]->IsPadding = 0 +pp_data->cap[138]->IsAbsolute = 1 +pp_data->cap[138]->IsRange = 0 +pp_data->cap[138]->IsAlias = 0 +pp_data->cap[138]->IsStringRange = 0 +pp_data->cap[138]->IsDesignatorRange = 0 +pp_data->cap[138]->Reserved1 = 0x000000 +pp_data->cap[138]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[138]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[138]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[138]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[138]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[138]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[138]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[138]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[138]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[138]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[138]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[138]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[138]->NotRange.Usage = 0x0081 +pp_data->cap[138]->NotRange.Reserved1 = 0x0081 +pp_data->cap[138]->NotRange.StringIndex = 0 +pp_data->cap[138]->NotRange.Reserved2 = 0 +pp_data->cap[138]->NotRange.DesignatorIndex = 0 +pp_data->cap[138]->NotRange.Reserved3 = 0 +pp_data->cap[138]->NotRange.DataIndex = 51 +pp_data->cap[138]->NotRange.Reserved4 = 51 +pp_data->cap[138]->NotButton.HasNull = 0 +pp_data->cap[138]->NotButton.Reserved4 = 0x000000 +pp_data->cap[138]->NotButton.LogicalMin = 0 +pp_data->cap[138]->NotButton.LogicalMax = 127 +pp_data->cap[138]->NotButton.PhysicalMin = 0 +pp_data->cap[138]->NotButton.PhysicalMax = 0 +pp_data->cap[138]->Units = 0 +pp_data->cap[138]->UnitsExp = 0 + +pp_data->cap[139]->UsagePage = 0xFF01 +pp_data->cap[139]->ReportID = 0x80 +pp_data->cap[139]->BitPosition = 0 +pp_data->cap[139]->BitSize = 8 +pp_data->cap[139]->ReportCount = 1 +pp_data->cap[139]->BytePosition = 0x002A +pp_data->cap[139]->BitCount = 8 +pp_data->cap[139]->BitField = 0x02 +pp_data->cap[139]->NextBytePosition = 0x002B +pp_data->cap[139]->LinkCollection = 0x0003 +pp_data->cap[139]->LinkUsagePage = 0xFF01 +pp_data->cap[139]->LinkUsage = 0x0080 +pp_data->cap[139]->IsMultipleItemsForArray = 0 +pp_data->cap[139]->IsButtonCap = 0 +pp_data->cap[139]->IsPadding = 0 +pp_data->cap[139]->IsAbsolute = 1 +pp_data->cap[139]->IsRange = 0 +pp_data->cap[139]->IsAlias = 0 +pp_data->cap[139]->IsStringRange = 0 +pp_data->cap[139]->IsDesignatorRange = 0 +pp_data->cap[139]->Reserved1 = 0x000000 +pp_data->cap[139]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[139]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[139]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[139]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[139]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[139]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[139]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[139]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[139]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[139]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[139]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[139]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[139]->NotRange.Usage = 0x0081 +pp_data->cap[139]->NotRange.Reserved1 = 0x0081 +pp_data->cap[139]->NotRange.StringIndex = 0 +pp_data->cap[139]->NotRange.Reserved2 = 0 +pp_data->cap[139]->NotRange.DesignatorIndex = 0 +pp_data->cap[139]->NotRange.Reserved3 = 0 +pp_data->cap[139]->NotRange.DataIndex = 52 +pp_data->cap[139]->NotRange.Reserved4 = 52 +pp_data->cap[139]->NotButton.HasNull = 0 +pp_data->cap[139]->NotButton.Reserved4 = 0x000000 +pp_data->cap[139]->NotButton.LogicalMin = 0 +pp_data->cap[139]->NotButton.LogicalMax = 127 +pp_data->cap[139]->NotButton.PhysicalMin = 0 +pp_data->cap[139]->NotButton.PhysicalMax = 0 +pp_data->cap[139]->Units = 0 +pp_data->cap[139]->UnitsExp = 0 + +pp_data->cap[140]->UsagePage = 0xFF01 +pp_data->cap[140]->ReportID = 0x80 +pp_data->cap[140]->BitPosition = 0 +pp_data->cap[140]->BitSize = 8 +pp_data->cap[140]->ReportCount = 1 +pp_data->cap[140]->BytePosition = 0x0029 +pp_data->cap[140]->BitCount = 8 +pp_data->cap[140]->BitField = 0x02 +pp_data->cap[140]->NextBytePosition = 0x002A +pp_data->cap[140]->LinkCollection = 0x0003 +pp_data->cap[140]->LinkUsagePage = 0xFF01 +pp_data->cap[140]->LinkUsage = 0x0080 +pp_data->cap[140]->IsMultipleItemsForArray = 0 +pp_data->cap[140]->IsButtonCap = 0 +pp_data->cap[140]->IsPadding = 0 +pp_data->cap[140]->IsAbsolute = 1 +pp_data->cap[140]->IsRange = 0 +pp_data->cap[140]->IsAlias = 0 +pp_data->cap[140]->IsStringRange = 0 +pp_data->cap[140]->IsDesignatorRange = 0 +pp_data->cap[140]->Reserved1 = 0x000000 +pp_data->cap[140]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[140]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[140]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[140]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[140]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[140]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[140]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[140]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[140]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[140]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[140]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[140]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[140]->NotRange.Usage = 0x0081 +pp_data->cap[140]->NotRange.Reserved1 = 0x0081 +pp_data->cap[140]->NotRange.StringIndex = 0 +pp_data->cap[140]->NotRange.Reserved2 = 0 +pp_data->cap[140]->NotRange.DesignatorIndex = 0 +pp_data->cap[140]->NotRange.Reserved3 = 0 +pp_data->cap[140]->NotRange.DataIndex = 53 +pp_data->cap[140]->NotRange.Reserved4 = 53 +pp_data->cap[140]->NotButton.HasNull = 0 +pp_data->cap[140]->NotButton.Reserved4 = 0x000000 +pp_data->cap[140]->NotButton.LogicalMin = 0 +pp_data->cap[140]->NotButton.LogicalMax = 127 +pp_data->cap[140]->NotButton.PhysicalMin = 0 +pp_data->cap[140]->NotButton.PhysicalMax = 0 +pp_data->cap[140]->Units = 0 +pp_data->cap[140]->UnitsExp = 0 + +pp_data->cap[141]->UsagePage = 0xFF01 +pp_data->cap[141]->ReportID = 0x80 +pp_data->cap[141]->BitPosition = 0 +pp_data->cap[141]->BitSize = 8 +pp_data->cap[141]->ReportCount = 1 +pp_data->cap[141]->BytePosition = 0x0028 +pp_data->cap[141]->BitCount = 8 +pp_data->cap[141]->BitField = 0x02 +pp_data->cap[141]->NextBytePosition = 0x0029 +pp_data->cap[141]->LinkCollection = 0x0003 +pp_data->cap[141]->LinkUsagePage = 0xFF01 +pp_data->cap[141]->LinkUsage = 0x0080 +pp_data->cap[141]->IsMultipleItemsForArray = 0 +pp_data->cap[141]->IsButtonCap = 0 +pp_data->cap[141]->IsPadding = 0 +pp_data->cap[141]->IsAbsolute = 1 +pp_data->cap[141]->IsRange = 0 +pp_data->cap[141]->IsAlias = 0 +pp_data->cap[141]->IsStringRange = 0 +pp_data->cap[141]->IsDesignatorRange = 0 +pp_data->cap[141]->Reserved1 = 0x000000 +pp_data->cap[141]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[141]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[141]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[141]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[141]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[141]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[141]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[141]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[141]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[141]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[141]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[141]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[141]->NotRange.Usage = 0x0081 +pp_data->cap[141]->NotRange.Reserved1 = 0x0081 +pp_data->cap[141]->NotRange.StringIndex = 0 +pp_data->cap[141]->NotRange.Reserved2 = 0 +pp_data->cap[141]->NotRange.DesignatorIndex = 0 +pp_data->cap[141]->NotRange.Reserved3 = 0 +pp_data->cap[141]->NotRange.DataIndex = 54 +pp_data->cap[141]->NotRange.Reserved4 = 54 +pp_data->cap[141]->NotButton.HasNull = 0 +pp_data->cap[141]->NotButton.Reserved4 = 0x000000 +pp_data->cap[141]->NotButton.LogicalMin = 0 +pp_data->cap[141]->NotButton.LogicalMax = 127 +pp_data->cap[141]->NotButton.PhysicalMin = 0 +pp_data->cap[141]->NotButton.PhysicalMax = 0 +pp_data->cap[141]->Units = 0 +pp_data->cap[141]->UnitsExp = 0 + +pp_data->cap[142]->UsagePage = 0xFF01 +pp_data->cap[142]->ReportID = 0x80 +pp_data->cap[142]->BitPosition = 0 +pp_data->cap[142]->BitSize = 8 +pp_data->cap[142]->ReportCount = 1 +pp_data->cap[142]->BytePosition = 0x0027 +pp_data->cap[142]->BitCount = 8 +pp_data->cap[142]->BitField = 0x02 +pp_data->cap[142]->NextBytePosition = 0x0028 +pp_data->cap[142]->LinkCollection = 0x0003 +pp_data->cap[142]->LinkUsagePage = 0xFF01 +pp_data->cap[142]->LinkUsage = 0x0080 +pp_data->cap[142]->IsMultipleItemsForArray = 0 +pp_data->cap[142]->IsButtonCap = 0 +pp_data->cap[142]->IsPadding = 0 +pp_data->cap[142]->IsAbsolute = 1 +pp_data->cap[142]->IsRange = 0 +pp_data->cap[142]->IsAlias = 0 +pp_data->cap[142]->IsStringRange = 0 +pp_data->cap[142]->IsDesignatorRange = 0 +pp_data->cap[142]->Reserved1 = 0x000000 +pp_data->cap[142]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[142]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[142]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[142]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[142]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[142]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[142]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[142]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[142]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[142]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[142]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[142]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[142]->NotRange.Usage = 0x0081 +pp_data->cap[142]->NotRange.Reserved1 = 0x0081 +pp_data->cap[142]->NotRange.StringIndex = 0 +pp_data->cap[142]->NotRange.Reserved2 = 0 +pp_data->cap[142]->NotRange.DesignatorIndex = 0 +pp_data->cap[142]->NotRange.Reserved3 = 0 +pp_data->cap[142]->NotRange.DataIndex = 55 +pp_data->cap[142]->NotRange.Reserved4 = 55 +pp_data->cap[142]->NotButton.HasNull = 0 +pp_data->cap[142]->NotButton.Reserved4 = 0x000000 +pp_data->cap[142]->NotButton.LogicalMin = 0 +pp_data->cap[142]->NotButton.LogicalMax = 127 +pp_data->cap[142]->NotButton.PhysicalMin = 0 +pp_data->cap[142]->NotButton.PhysicalMax = 0 +pp_data->cap[142]->Units = 0 +pp_data->cap[142]->UnitsExp = 0 + +pp_data->cap[143]->UsagePage = 0xFF01 +pp_data->cap[143]->ReportID = 0x80 +pp_data->cap[143]->BitPosition = 0 +pp_data->cap[143]->BitSize = 8 +pp_data->cap[143]->ReportCount = 1 +pp_data->cap[143]->BytePosition = 0x0026 +pp_data->cap[143]->BitCount = 8 +pp_data->cap[143]->BitField = 0x02 +pp_data->cap[143]->NextBytePosition = 0x0027 +pp_data->cap[143]->LinkCollection = 0x0003 +pp_data->cap[143]->LinkUsagePage = 0xFF01 +pp_data->cap[143]->LinkUsage = 0x0080 +pp_data->cap[143]->IsMultipleItemsForArray = 0 +pp_data->cap[143]->IsButtonCap = 0 +pp_data->cap[143]->IsPadding = 0 +pp_data->cap[143]->IsAbsolute = 1 +pp_data->cap[143]->IsRange = 0 +pp_data->cap[143]->IsAlias = 0 +pp_data->cap[143]->IsStringRange = 0 +pp_data->cap[143]->IsDesignatorRange = 0 +pp_data->cap[143]->Reserved1 = 0x000000 +pp_data->cap[143]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[143]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[143]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[143]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[143]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[143]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[143]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[143]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[143]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[143]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[143]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[143]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[143]->NotRange.Usage = 0x0081 +pp_data->cap[143]->NotRange.Reserved1 = 0x0081 +pp_data->cap[143]->NotRange.StringIndex = 0 +pp_data->cap[143]->NotRange.Reserved2 = 0 +pp_data->cap[143]->NotRange.DesignatorIndex = 0 +pp_data->cap[143]->NotRange.Reserved3 = 0 +pp_data->cap[143]->NotRange.DataIndex = 56 +pp_data->cap[143]->NotRange.Reserved4 = 56 +pp_data->cap[143]->NotButton.HasNull = 0 +pp_data->cap[143]->NotButton.Reserved4 = 0x000000 +pp_data->cap[143]->NotButton.LogicalMin = 0 +pp_data->cap[143]->NotButton.LogicalMax = 127 +pp_data->cap[143]->NotButton.PhysicalMin = 0 +pp_data->cap[143]->NotButton.PhysicalMax = 0 +pp_data->cap[143]->Units = 0 +pp_data->cap[143]->UnitsExp = 0 + +pp_data->cap[144]->UsagePage = 0xFF01 +pp_data->cap[144]->ReportID = 0x80 +pp_data->cap[144]->BitPosition = 0 +pp_data->cap[144]->BitSize = 8 +pp_data->cap[144]->ReportCount = 1 +pp_data->cap[144]->BytePosition = 0x0025 +pp_data->cap[144]->BitCount = 8 +pp_data->cap[144]->BitField = 0x02 +pp_data->cap[144]->NextBytePosition = 0x0026 +pp_data->cap[144]->LinkCollection = 0x0003 +pp_data->cap[144]->LinkUsagePage = 0xFF01 +pp_data->cap[144]->LinkUsage = 0x0080 +pp_data->cap[144]->IsMultipleItemsForArray = 0 +pp_data->cap[144]->IsButtonCap = 0 +pp_data->cap[144]->IsPadding = 0 +pp_data->cap[144]->IsAbsolute = 1 +pp_data->cap[144]->IsRange = 0 +pp_data->cap[144]->IsAlias = 0 +pp_data->cap[144]->IsStringRange = 0 +pp_data->cap[144]->IsDesignatorRange = 0 +pp_data->cap[144]->Reserved1 = 0x000000 +pp_data->cap[144]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[144]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[144]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[144]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[144]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[144]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[144]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[144]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[144]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[144]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[144]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[144]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[144]->NotRange.Usage = 0x0081 +pp_data->cap[144]->NotRange.Reserved1 = 0x0081 +pp_data->cap[144]->NotRange.StringIndex = 0 +pp_data->cap[144]->NotRange.Reserved2 = 0 +pp_data->cap[144]->NotRange.DesignatorIndex = 0 +pp_data->cap[144]->NotRange.Reserved3 = 0 +pp_data->cap[144]->NotRange.DataIndex = 57 +pp_data->cap[144]->NotRange.Reserved4 = 57 +pp_data->cap[144]->NotButton.HasNull = 0 +pp_data->cap[144]->NotButton.Reserved4 = 0x000000 +pp_data->cap[144]->NotButton.LogicalMin = 0 +pp_data->cap[144]->NotButton.LogicalMax = 127 +pp_data->cap[144]->NotButton.PhysicalMin = 0 +pp_data->cap[144]->NotButton.PhysicalMax = 0 +pp_data->cap[144]->Units = 0 +pp_data->cap[144]->UnitsExp = 0 + +pp_data->cap[145]->UsagePage = 0xFF01 +pp_data->cap[145]->ReportID = 0x80 +pp_data->cap[145]->BitPosition = 0 +pp_data->cap[145]->BitSize = 8 +pp_data->cap[145]->ReportCount = 1 +pp_data->cap[145]->BytePosition = 0x0024 +pp_data->cap[145]->BitCount = 8 +pp_data->cap[145]->BitField = 0x02 +pp_data->cap[145]->NextBytePosition = 0x0025 +pp_data->cap[145]->LinkCollection = 0x0003 +pp_data->cap[145]->LinkUsagePage = 0xFF01 +pp_data->cap[145]->LinkUsage = 0x0080 +pp_data->cap[145]->IsMultipleItemsForArray = 0 +pp_data->cap[145]->IsButtonCap = 0 +pp_data->cap[145]->IsPadding = 0 +pp_data->cap[145]->IsAbsolute = 1 +pp_data->cap[145]->IsRange = 0 +pp_data->cap[145]->IsAlias = 0 +pp_data->cap[145]->IsStringRange = 0 +pp_data->cap[145]->IsDesignatorRange = 0 +pp_data->cap[145]->Reserved1 = 0x000000 +pp_data->cap[145]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[145]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[145]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[145]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[145]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[145]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[145]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[145]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[145]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[145]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[145]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[145]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[145]->NotRange.Usage = 0x0081 +pp_data->cap[145]->NotRange.Reserved1 = 0x0081 +pp_data->cap[145]->NotRange.StringIndex = 0 +pp_data->cap[145]->NotRange.Reserved2 = 0 +pp_data->cap[145]->NotRange.DesignatorIndex = 0 +pp_data->cap[145]->NotRange.Reserved3 = 0 +pp_data->cap[145]->NotRange.DataIndex = 58 +pp_data->cap[145]->NotRange.Reserved4 = 58 +pp_data->cap[145]->NotButton.HasNull = 0 +pp_data->cap[145]->NotButton.Reserved4 = 0x000000 +pp_data->cap[145]->NotButton.LogicalMin = 0 +pp_data->cap[145]->NotButton.LogicalMax = 127 +pp_data->cap[145]->NotButton.PhysicalMin = 0 +pp_data->cap[145]->NotButton.PhysicalMax = 0 +pp_data->cap[145]->Units = 0 +pp_data->cap[145]->UnitsExp = 0 + +pp_data->cap[146]->UsagePage = 0xFF01 +pp_data->cap[146]->ReportID = 0x80 +pp_data->cap[146]->BitPosition = 0 +pp_data->cap[146]->BitSize = 8 +pp_data->cap[146]->ReportCount = 1 +pp_data->cap[146]->BytePosition = 0x0023 +pp_data->cap[146]->BitCount = 8 +pp_data->cap[146]->BitField = 0x02 +pp_data->cap[146]->NextBytePosition = 0x0024 +pp_data->cap[146]->LinkCollection = 0x0003 +pp_data->cap[146]->LinkUsagePage = 0xFF01 +pp_data->cap[146]->LinkUsage = 0x0080 +pp_data->cap[146]->IsMultipleItemsForArray = 0 +pp_data->cap[146]->IsButtonCap = 0 +pp_data->cap[146]->IsPadding = 0 +pp_data->cap[146]->IsAbsolute = 1 +pp_data->cap[146]->IsRange = 0 +pp_data->cap[146]->IsAlias = 0 +pp_data->cap[146]->IsStringRange = 0 +pp_data->cap[146]->IsDesignatorRange = 0 +pp_data->cap[146]->Reserved1 = 0x000000 +pp_data->cap[146]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[146]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[146]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[146]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[146]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[146]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[146]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[146]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[146]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[146]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[146]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[146]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[146]->NotRange.Usage = 0x0081 +pp_data->cap[146]->NotRange.Reserved1 = 0x0081 +pp_data->cap[146]->NotRange.StringIndex = 0 +pp_data->cap[146]->NotRange.Reserved2 = 0 +pp_data->cap[146]->NotRange.DesignatorIndex = 0 +pp_data->cap[146]->NotRange.Reserved3 = 0 +pp_data->cap[146]->NotRange.DataIndex = 59 +pp_data->cap[146]->NotRange.Reserved4 = 59 +pp_data->cap[146]->NotButton.HasNull = 0 +pp_data->cap[146]->NotButton.Reserved4 = 0x000000 +pp_data->cap[146]->NotButton.LogicalMin = 0 +pp_data->cap[146]->NotButton.LogicalMax = 127 +pp_data->cap[146]->NotButton.PhysicalMin = 0 +pp_data->cap[146]->NotButton.PhysicalMax = 0 +pp_data->cap[146]->Units = 0 +pp_data->cap[146]->UnitsExp = 0 + +pp_data->cap[147]->UsagePage = 0xFF01 +pp_data->cap[147]->ReportID = 0x80 +pp_data->cap[147]->BitPosition = 0 +pp_data->cap[147]->BitSize = 8 +pp_data->cap[147]->ReportCount = 1 +pp_data->cap[147]->BytePosition = 0x0022 +pp_data->cap[147]->BitCount = 8 +pp_data->cap[147]->BitField = 0x02 +pp_data->cap[147]->NextBytePosition = 0x0023 +pp_data->cap[147]->LinkCollection = 0x0003 +pp_data->cap[147]->LinkUsagePage = 0xFF01 +pp_data->cap[147]->LinkUsage = 0x0080 +pp_data->cap[147]->IsMultipleItemsForArray = 0 +pp_data->cap[147]->IsButtonCap = 0 +pp_data->cap[147]->IsPadding = 0 +pp_data->cap[147]->IsAbsolute = 1 +pp_data->cap[147]->IsRange = 0 +pp_data->cap[147]->IsAlias = 0 +pp_data->cap[147]->IsStringRange = 0 +pp_data->cap[147]->IsDesignatorRange = 0 +pp_data->cap[147]->Reserved1 = 0x000000 +pp_data->cap[147]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[147]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[147]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[147]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[147]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[147]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[147]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[147]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[147]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[147]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[147]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[147]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[147]->NotRange.Usage = 0x0081 +pp_data->cap[147]->NotRange.Reserved1 = 0x0081 +pp_data->cap[147]->NotRange.StringIndex = 0 +pp_data->cap[147]->NotRange.Reserved2 = 0 +pp_data->cap[147]->NotRange.DesignatorIndex = 0 +pp_data->cap[147]->NotRange.Reserved3 = 0 +pp_data->cap[147]->NotRange.DataIndex = 60 +pp_data->cap[147]->NotRange.Reserved4 = 60 +pp_data->cap[147]->NotButton.HasNull = 0 +pp_data->cap[147]->NotButton.Reserved4 = 0x000000 +pp_data->cap[147]->NotButton.LogicalMin = 0 +pp_data->cap[147]->NotButton.LogicalMax = 127 +pp_data->cap[147]->NotButton.PhysicalMin = 0 +pp_data->cap[147]->NotButton.PhysicalMax = 0 +pp_data->cap[147]->Units = 0 +pp_data->cap[147]->UnitsExp = 0 + +pp_data->cap[148]->UsagePage = 0xFF01 +pp_data->cap[148]->ReportID = 0x80 +pp_data->cap[148]->BitPosition = 0 +pp_data->cap[148]->BitSize = 8 +pp_data->cap[148]->ReportCount = 1 +pp_data->cap[148]->BytePosition = 0x0021 +pp_data->cap[148]->BitCount = 8 +pp_data->cap[148]->BitField = 0x02 +pp_data->cap[148]->NextBytePosition = 0x0022 +pp_data->cap[148]->LinkCollection = 0x0003 +pp_data->cap[148]->LinkUsagePage = 0xFF01 +pp_data->cap[148]->LinkUsage = 0x0080 +pp_data->cap[148]->IsMultipleItemsForArray = 0 +pp_data->cap[148]->IsButtonCap = 0 +pp_data->cap[148]->IsPadding = 0 +pp_data->cap[148]->IsAbsolute = 1 +pp_data->cap[148]->IsRange = 0 +pp_data->cap[148]->IsAlias = 0 +pp_data->cap[148]->IsStringRange = 0 +pp_data->cap[148]->IsDesignatorRange = 0 +pp_data->cap[148]->Reserved1 = 0x000000 +pp_data->cap[148]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[148]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[148]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[148]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[148]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[148]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[148]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[148]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[148]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[148]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[148]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[148]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[148]->NotRange.Usage = 0x0081 +pp_data->cap[148]->NotRange.Reserved1 = 0x0081 +pp_data->cap[148]->NotRange.StringIndex = 0 +pp_data->cap[148]->NotRange.Reserved2 = 0 +pp_data->cap[148]->NotRange.DesignatorIndex = 0 +pp_data->cap[148]->NotRange.Reserved3 = 0 +pp_data->cap[148]->NotRange.DataIndex = 61 +pp_data->cap[148]->NotRange.Reserved4 = 61 +pp_data->cap[148]->NotButton.HasNull = 0 +pp_data->cap[148]->NotButton.Reserved4 = 0x000000 +pp_data->cap[148]->NotButton.LogicalMin = 0 +pp_data->cap[148]->NotButton.LogicalMax = 127 +pp_data->cap[148]->NotButton.PhysicalMin = 0 +pp_data->cap[148]->NotButton.PhysicalMax = 0 +pp_data->cap[148]->Units = 0 +pp_data->cap[148]->UnitsExp = 0 + +pp_data->cap[149]->UsagePage = 0xFF01 +pp_data->cap[149]->ReportID = 0x80 +pp_data->cap[149]->BitPosition = 0 +pp_data->cap[149]->BitSize = 8 +pp_data->cap[149]->ReportCount = 1 +pp_data->cap[149]->BytePosition = 0x0020 +pp_data->cap[149]->BitCount = 8 +pp_data->cap[149]->BitField = 0x02 +pp_data->cap[149]->NextBytePosition = 0x0021 +pp_data->cap[149]->LinkCollection = 0x0003 +pp_data->cap[149]->LinkUsagePage = 0xFF01 +pp_data->cap[149]->LinkUsage = 0x0080 +pp_data->cap[149]->IsMultipleItemsForArray = 0 +pp_data->cap[149]->IsButtonCap = 0 +pp_data->cap[149]->IsPadding = 0 +pp_data->cap[149]->IsAbsolute = 1 +pp_data->cap[149]->IsRange = 0 +pp_data->cap[149]->IsAlias = 0 +pp_data->cap[149]->IsStringRange = 0 +pp_data->cap[149]->IsDesignatorRange = 0 +pp_data->cap[149]->Reserved1 = 0x000000 +pp_data->cap[149]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[149]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[149]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[149]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[149]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[149]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[149]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[149]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[149]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[149]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[149]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[149]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[149]->NotRange.Usage = 0x0081 +pp_data->cap[149]->NotRange.Reserved1 = 0x0081 +pp_data->cap[149]->NotRange.StringIndex = 0 +pp_data->cap[149]->NotRange.Reserved2 = 0 +pp_data->cap[149]->NotRange.DesignatorIndex = 0 +pp_data->cap[149]->NotRange.Reserved3 = 0 +pp_data->cap[149]->NotRange.DataIndex = 62 +pp_data->cap[149]->NotRange.Reserved4 = 62 +pp_data->cap[149]->NotButton.HasNull = 0 +pp_data->cap[149]->NotButton.Reserved4 = 0x000000 +pp_data->cap[149]->NotButton.LogicalMin = 0 +pp_data->cap[149]->NotButton.LogicalMax = 127 +pp_data->cap[149]->NotButton.PhysicalMin = 0 +pp_data->cap[149]->NotButton.PhysicalMax = 0 +pp_data->cap[149]->Units = 0 +pp_data->cap[149]->UnitsExp = 0 + +pp_data->cap[150]->UsagePage = 0xFF01 +pp_data->cap[150]->ReportID = 0x80 +pp_data->cap[150]->BitPosition = 0 +pp_data->cap[150]->BitSize = 8 +pp_data->cap[150]->ReportCount = 1 +pp_data->cap[150]->BytePosition = 0x001F +pp_data->cap[150]->BitCount = 8 +pp_data->cap[150]->BitField = 0x02 +pp_data->cap[150]->NextBytePosition = 0x0020 +pp_data->cap[150]->LinkCollection = 0x0003 +pp_data->cap[150]->LinkUsagePage = 0xFF01 +pp_data->cap[150]->LinkUsage = 0x0080 +pp_data->cap[150]->IsMultipleItemsForArray = 0 +pp_data->cap[150]->IsButtonCap = 0 +pp_data->cap[150]->IsPadding = 0 +pp_data->cap[150]->IsAbsolute = 1 +pp_data->cap[150]->IsRange = 0 +pp_data->cap[150]->IsAlias = 0 +pp_data->cap[150]->IsStringRange = 0 +pp_data->cap[150]->IsDesignatorRange = 0 +pp_data->cap[150]->Reserved1 = 0x000000 +pp_data->cap[150]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[150]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[150]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[150]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[150]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[150]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[150]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[150]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[150]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[150]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[150]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[150]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[150]->NotRange.Usage = 0x0081 +pp_data->cap[150]->NotRange.Reserved1 = 0x0081 +pp_data->cap[150]->NotRange.StringIndex = 0 +pp_data->cap[150]->NotRange.Reserved2 = 0 +pp_data->cap[150]->NotRange.DesignatorIndex = 0 +pp_data->cap[150]->NotRange.Reserved3 = 0 +pp_data->cap[150]->NotRange.DataIndex = 63 +pp_data->cap[150]->NotRange.Reserved4 = 63 +pp_data->cap[150]->NotButton.HasNull = 0 +pp_data->cap[150]->NotButton.Reserved4 = 0x000000 +pp_data->cap[150]->NotButton.LogicalMin = 0 +pp_data->cap[150]->NotButton.LogicalMax = 127 +pp_data->cap[150]->NotButton.PhysicalMin = 0 +pp_data->cap[150]->NotButton.PhysicalMax = 0 +pp_data->cap[150]->Units = 0 +pp_data->cap[150]->UnitsExp = 0 + +pp_data->cap[151]->UsagePage = 0xFF01 +pp_data->cap[151]->ReportID = 0x80 +pp_data->cap[151]->BitPosition = 0 +pp_data->cap[151]->BitSize = 8 +pp_data->cap[151]->ReportCount = 1 +pp_data->cap[151]->BytePosition = 0x001E +pp_data->cap[151]->BitCount = 8 +pp_data->cap[151]->BitField = 0x02 +pp_data->cap[151]->NextBytePosition = 0x001F +pp_data->cap[151]->LinkCollection = 0x0003 +pp_data->cap[151]->LinkUsagePage = 0xFF01 +pp_data->cap[151]->LinkUsage = 0x0080 +pp_data->cap[151]->IsMultipleItemsForArray = 0 +pp_data->cap[151]->IsButtonCap = 0 +pp_data->cap[151]->IsPadding = 0 +pp_data->cap[151]->IsAbsolute = 1 +pp_data->cap[151]->IsRange = 0 +pp_data->cap[151]->IsAlias = 0 +pp_data->cap[151]->IsStringRange = 0 +pp_data->cap[151]->IsDesignatorRange = 0 +pp_data->cap[151]->Reserved1 = 0x000000 +pp_data->cap[151]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[151]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[151]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[151]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[151]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[151]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[151]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[151]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[151]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[151]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[151]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[151]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[151]->NotRange.Usage = 0x0081 +pp_data->cap[151]->NotRange.Reserved1 = 0x0081 +pp_data->cap[151]->NotRange.StringIndex = 0 +pp_data->cap[151]->NotRange.Reserved2 = 0 +pp_data->cap[151]->NotRange.DesignatorIndex = 0 +pp_data->cap[151]->NotRange.Reserved3 = 0 +pp_data->cap[151]->NotRange.DataIndex = 64 +pp_data->cap[151]->NotRange.Reserved4 = 64 +pp_data->cap[151]->NotButton.HasNull = 0 +pp_data->cap[151]->NotButton.Reserved4 = 0x000000 +pp_data->cap[151]->NotButton.LogicalMin = 0 +pp_data->cap[151]->NotButton.LogicalMax = 127 +pp_data->cap[151]->NotButton.PhysicalMin = 0 +pp_data->cap[151]->NotButton.PhysicalMax = 0 +pp_data->cap[151]->Units = 0 +pp_data->cap[151]->UnitsExp = 0 + +pp_data->cap[152]->UsagePage = 0xFF01 +pp_data->cap[152]->ReportID = 0x80 +pp_data->cap[152]->BitPosition = 0 +pp_data->cap[152]->BitSize = 8 +pp_data->cap[152]->ReportCount = 1 +pp_data->cap[152]->BytePosition = 0x001D +pp_data->cap[152]->BitCount = 8 +pp_data->cap[152]->BitField = 0x02 +pp_data->cap[152]->NextBytePosition = 0x001E +pp_data->cap[152]->LinkCollection = 0x0003 +pp_data->cap[152]->LinkUsagePage = 0xFF01 +pp_data->cap[152]->LinkUsage = 0x0080 +pp_data->cap[152]->IsMultipleItemsForArray = 0 +pp_data->cap[152]->IsButtonCap = 0 +pp_data->cap[152]->IsPadding = 0 +pp_data->cap[152]->IsAbsolute = 1 +pp_data->cap[152]->IsRange = 0 +pp_data->cap[152]->IsAlias = 0 +pp_data->cap[152]->IsStringRange = 0 +pp_data->cap[152]->IsDesignatorRange = 0 +pp_data->cap[152]->Reserved1 = 0x000000 +pp_data->cap[152]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[152]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[152]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[152]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[152]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[152]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[152]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[152]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[152]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[152]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[152]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[152]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[152]->NotRange.Usage = 0x0081 +pp_data->cap[152]->NotRange.Reserved1 = 0x0081 +pp_data->cap[152]->NotRange.StringIndex = 0 +pp_data->cap[152]->NotRange.Reserved2 = 0 +pp_data->cap[152]->NotRange.DesignatorIndex = 0 +pp_data->cap[152]->NotRange.Reserved3 = 0 +pp_data->cap[152]->NotRange.DataIndex = 65 +pp_data->cap[152]->NotRange.Reserved4 = 65 +pp_data->cap[152]->NotButton.HasNull = 0 +pp_data->cap[152]->NotButton.Reserved4 = 0x000000 +pp_data->cap[152]->NotButton.LogicalMin = 0 +pp_data->cap[152]->NotButton.LogicalMax = 127 +pp_data->cap[152]->NotButton.PhysicalMin = 0 +pp_data->cap[152]->NotButton.PhysicalMax = 0 +pp_data->cap[152]->Units = 0 +pp_data->cap[152]->UnitsExp = 0 + +pp_data->cap[153]->UsagePage = 0xFF01 +pp_data->cap[153]->ReportID = 0x80 +pp_data->cap[153]->BitPosition = 0 +pp_data->cap[153]->BitSize = 8 +pp_data->cap[153]->ReportCount = 1 +pp_data->cap[153]->BytePosition = 0x001C +pp_data->cap[153]->BitCount = 8 +pp_data->cap[153]->BitField = 0x02 +pp_data->cap[153]->NextBytePosition = 0x001D +pp_data->cap[153]->LinkCollection = 0x0003 +pp_data->cap[153]->LinkUsagePage = 0xFF01 +pp_data->cap[153]->LinkUsage = 0x0080 +pp_data->cap[153]->IsMultipleItemsForArray = 0 +pp_data->cap[153]->IsButtonCap = 0 +pp_data->cap[153]->IsPadding = 0 +pp_data->cap[153]->IsAbsolute = 1 +pp_data->cap[153]->IsRange = 0 +pp_data->cap[153]->IsAlias = 0 +pp_data->cap[153]->IsStringRange = 0 +pp_data->cap[153]->IsDesignatorRange = 0 +pp_data->cap[153]->Reserved1 = 0x000000 +pp_data->cap[153]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[153]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[153]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[153]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[153]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[153]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[153]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[153]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[153]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[153]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[153]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[153]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[153]->NotRange.Usage = 0x0081 +pp_data->cap[153]->NotRange.Reserved1 = 0x0081 +pp_data->cap[153]->NotRange.StringIndex = 0 +pp_data->cap[153]->NotRange.Reserved2 = 0 +pp_data->cap[153]->NotRange.DesignatorIndex = 0 +pp_data->cap[153]->NotRange.Reserved3 = 0 +pp_data->cap[153]->NotRange.DataIndex = 66 +pp_data->cap[153]->NotRange.Reserved4 = 66 +pp_data->cap[153]->NotButton.HasNull = 0 +pp_data->cap[153]->NotButton.Reserved4 = 0x000000 +pp_data->cap[153]->NotButton.LogicalMin = 0 +pp_data->cap[153]->NotButton.LogicalMax = 127 +pp_data->cap[153]->NotButton.PhysicalMin = 0 +pp_data->cap[153]->NotButton.PhysicalMax = 0 +pp_data->cap[153]->Units = 0 +pp_data->cap[153]->UnitsExp = 0 + +pp_data->cap[154]->UsagePage = 0xFF01 +pp_data->cap[154]->ReportID = 0x80 +pp_data->cap[154]->BitPosition = 0 +pp_data->cap[154]->BitSize = 8 +pp_data->cap[154]->ReportCount = 1 +pp_data->cap[154]->BytePosition = 0x001B +pp_data->cap[154]->BitCount = 8 +pp_data->cap[154]->BitField = 0x02 +pp_data->cap[154]->NextBytePosition = 0x001C +pp_data->cap[154]->LinkCollection = 0x0003 +pp_data->cap[154]->LinkUsagePage = 0xFF01 +pp_data->cap[154]->LinkUsage = 0x0080 +pp_data->cap[154]->IsMultipleItemsForArray = 0 +pp_data->cap[154]->IsButtonCap = 0 +pp_data->cap[154]->IsPadding = 0 +pp_data->cap[154]->IsAbsolute = 1 +pp_data->cap[154]->IsRange = 0 +pp_data->cap[154]->IsAlias = 0 +pp_data->cap[154]->IsStringRange = 0 +pp_data->cap[154]->IsDesignatorRange = 0 +pp_data->cap[154]->Reserved1 = 0x000000 +pp_data->cap[154]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[154]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[154]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[154]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[154]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[154]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[154]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[154]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[154]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[154]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[154]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[154]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[154]->NotRange.Usage = 0x0081 +pp_data->cap[154]->NotRange.Reserved1 = 0x0081 +pp_data->cap[154]->NotRange.StringIndex = 0 +pp_data->cap[154]->NotRange.Reserved2 = 0 +pp_data->cap[154]->NotRange.DesignatorIndex = 0 +pp_data->cap[154]->NotRange.Reserved3 = 0 +pp_data->cap[154]->NotRange.DataIndex = 67 +pp_data->cap[154]->NotRange.Reserved4 = 67 +pp_data->cap[154]->NotButton.HasNull = 0 +pp_data->cap[154]->NotButton.Reserved4 = 0x000000 +pp_data->cap[154]->NotButton.LogicalMin = 0 +pp_data->cap[154]->NotButton.LogicalMax = 127 +pp_data->cap[154]->NotButton.PhysicalMin = 0 +pp_data->cap[154]->NotButton.PhysicalMax = 0 +pp_data->cap[154]->Units = 0 +pp_data->cap[154]->UnitsExp = 0 + +pp_data->cap[155]->UsagePage = 0xFF01 +pp_data->cap[155]->ReportID = 0x80 +pp_data->cap[155]->BitPosition = 0 +pp_data->cap[155]->BitSize = 8 +pp_data->cap[155]->ReportCount = 1 +pp_data->cap[155]->BytePosition = 0x001A +pp_data->cap[155]->BitCount = 8 +pp_data->cap[155]->BitField = 0x02 +pp_data->cap[155]->NextBytePosition = 0x001B +pp_data->cap[155]->LinkCollection = 0x0003 +pp_data->cap[155]->LinkUsagePage = 0xFF01 +pp_data->cap[155]->LinkUsage = 0x0080 +pp_data->cap[155]->IsMultipleItemsForArray = 0 +pp_data->cap[155]->IsButtonCap = 0 +pp_data->cap[155]->IsPadding = 0 +pp_data->cap[155]->IsAbsolute = 1 +pp_data->cap[155]->IsRange = 0 +pp_data->cap[155]->IsAlias = 0 +pp_data->cap[155]->IsStringRange = 0 +pp_data->cap[155]->IsDesignatorRange = 0 +pp_data->cap[155]->Reserved1 = 0x000000 +pp_data->cap[155]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[155]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[155]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[155]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[155]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[155]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[155]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[155]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[155]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[155]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[155]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[155]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[155]->NotRange.Usage = 0x0081 +pp_data->cap[155]->NotRange.Reserved1 = 0x0081 +pp_data->cap[155]->NotRange.StringIndex = 0 +pp_data->cap[155]->NotRange.Reserved2 = 0 +pp_data->cap[155]->NotRange.DesignatorIndex = 0 +pp_data->cap[155]->NotRange.Reserved3 = 0 +pp_data->cap[155]->NotRange.DataIndex = 68 +pp_data->cap[155]->NotRange.Reserved4 = 68 +pp_data->cap[155]->NotButton.HasNull = 0 +pp_data->cap[155]->NotButton.Reserved4 = 0x000000 +pp_data->cap[155]->NotButton.LogicalMin = 0 +pp_data->cap[155]->NotButton.LogicalMax = 127 +pp_data->cap[155]->NotButton.PhysicalMin = 0 +pp_data->cap[155]->NotButton.PhysicalMax = 0 +pp_data->cap[155]->Units = 0 +pp_data->cap[155]->UnitsExp = 0 + +pp_data->cap[156]->UsagePage = 0xFF01 +pp_data->cap[156]->ReportID = 0x80 +pp_data->cap[156]->BitPosition = 0 +pp_data->cap[156]->BitSize = 8 +pp_data->cap[156]->ReportCount = 1 +pp_data->cap[156]->BytePosition = 0x0019 +pp_data->cap[156]->BitCount = 8 +pp_data->cap[156]->BitField = 0x02 +pp_data->cap[156]->NextBytePosition = 0x001A +pp_data->cap[156]->LinkCollection = 0x0003 +pp_data->cap[156]->LinkUsagePage = 0xFF01 +pp_data->cap[156]->LinkUsage = 0x0080 +pp_data->cap[156]->IsMultipleItemsForArray = 0 +pp_data->cap[156]->IsButtonCap = 0 +pp_data->cap[156]->IsPadding = 0 +pp_data->cap[156]->IsAbsolute = 1 +pp_data->cap[156]->IsRange = 0 +pp_data->cap[156]->IsAlias = 0 +pp_data->cap[156]->IsStringRange = 0 +pp_data->cap[156]->IsDesignatorRange = 0 +pp_data->cap[156]->Reserved1 = 0x000000 +pp_data->cap[156]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[156]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[156]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[156]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[156]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[156]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[156]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[156]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[156]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[156]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[156]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[156]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[156]->NotRange.Usage = 0x0081 +pp_data->cap[156]->NotRange.Reserved1 = 0x0081 +pp_data->cap[156]->NotRange.StringIndex = 0 +pp_data->cap[156]->NotRange.Reserved2 = 0 +pp_data->cap[156]->NotRange.DesignatorIndex = 0 +pp_data->cap[156]->NotRange.Reserved3 = 0 +pp_data->cap[156]->NotRange.DataIndex = 69 +pp_data->cap[156]->NotRange.Reserved4 = 69 +pp_data->cap[156]->NotButton.HasNull = 0 +pp_data->cap[156]->NotButton.Reserved4 = 0x000000 +pp_data->cap[156]->NotButton.LogicalMin = 0 +pp_data->cap[156]->NotButton.LogicalMax = 127 +pp_data->cap[156]->NotButton.PhysicalMin = 0 +pp_data->cap[156]->NotButton.PhysicalMax = 0 +pp_data->cap[156]->Units = 0 +pp_data->cap[156]->UnitsExp = 0 + +pp_data->cap[157]->UsagePage = 0xFF01 +pp_data->cap[157]->ReportID = 0x80 +pp_data->cap[157]->BitPosition = 0 +pp_data->cap[157]->BitSize = 8 +pp_data->cap[157]->ReportCount = 1 +pp_data->cap[157]->BytePosition = 0x0018 +pp_data->cap[157]->BitCount = 8 +pp_data->cap[157]->BitField = 0x02 +pp_data->cap[157]->NextBytePosition = 0x0019 +pp_data->cap[157]->LinkCollection = 0x0003 +pp_data->cap[157]->LinkUsagePage = 0xFF01 +pp_data->cap[157]->LinkUsage = 0x0080 +pp_data->cap[157]->IsMultipleItemsForArray = 0 +pp_data->cap[157]->IsButtonCap = 0 +pp_data->cap[157]->IsPadding = 0 +pp_data->cap[157]->IsAbsolute = 1 +pp_data->cap[157]->IsRange = 0 +pp_data->cap[157]->IsAlias = 0 +pp_data->cap[157]->IsStringRange = 0 +pp_data->cap[157]->IsDesignatorRange = 0 +pp_data->cap[157]->Reserved1 = 0x000000 +pp_data->cap[157]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[157]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[157]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[157]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[157]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[157]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[157]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[157]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[157]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[157]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[157]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[157]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[157]->NotRange.Usage = 0x0081 +pp_data->cap[157]->NotRange.Reserved1 = 0x0081 +pp_data->cap[157]->NotRange.StringIndex = 0 +pp_data->cap[157]->NotRange.Reserved2 = 0 +pp_data->cap[157]->NotRange.DesignatorIndex = 0 +pp_data->cap[157]->NotRange.Reserved3 = 0 +pp_data->cap[157]->NotRange.DataIndex = 70 +pp_data->cap[157]->NotRange.Reserved4 = 70 +pp_data->cap[157]->NotButton.HasNull = 0 +pp_data->cap[157]->NotButton.Reserved4 = 0x000000 +pp_data->cap[157]->NotButton.LogicalMin = 0 +pp_data->cap[157]->NotButton.LogicalMax = 127 +pp_data->cap[157]->NotButton.PhysicalMin = 0 +pp_data->cap[157]->NotButton.PhysicalMax = 0 +pp_data->cap[157]->Units = 0 +pp_data->cap[157]->UnitsExp = 0 + +pp_data->cap[158]->UsagePage = 0xFF01 +pp_data->cap[158]->ReportID = 0x80 +pp_data->cap[158]->BitPosition = 0 +pp_data->cap[158]->BitSize = 8 +pp_data->cap[158]->ReportCount = 1 +pp_data->cap[158]->BytePosition = 0x0017 +pp_data->cap[158]->BitCount = 8 +pp_data->cap[158]->BitField = 0x02 +pp_data->cap[158]->NextBytePosition = 0x0018 +pp_data->cap[158]->LinkCollection = 0x0003 +pp_data->cap[158]->LinkUsagePage = 0xFF01 +pp_data->cap[158]->LinkUsage = 0x0080 +pp_data->cap[158]->IsMultipleItemsForArray = 0 +pp_data->cap[158]->IsButtonCap = 0 +pp_data->cap[158]->IsPadding = 0 +pp_data->cap[158]->IsAbsolute = 1 +pp_data->cap[158]->IsRange = 0 +pp_data->cap[158]->IsAlias = 0 +pp_data->cap[158]->IsStringRange = 0 +pp_data->cap[158]->IsDesignatorRange = 0 +pp_data->cap[158]->Reserved1 = 0x000000 +pp_data->cap[158]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[158]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[158]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[158]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[158]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[158]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[158]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[158]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[158]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[158]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[158]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[158]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[158]->NotRange.Usage = 0x0081 +pp_data->cap[158]->NotRange.Reserved1 = 0x0081 +pp_data->cap[158]->NotRange.StringIndex = 0 +pp_data->cap[158]->NotRange.Reserved2 = 0 +pp_data->cap[158]->NotRange.DesignatorIndex = 0 +pp_data->cap[158]->NotRange.Reserved3 = 0 +pp_data->cap[158]->NotRange.DataIndex = 71 +pp_data->cap[158]->NotRange.Reserved4 = 71 +pp_data->cap[158]->NotButton.HasNull = 0 +pp_data->cap[158]->NotButton.Reserved4 = 0x000000 +pp_data->cap[158]->NotButton.LogicalMin = 0 +pp_data->cap[158]->NotButton.LogicalMax = 127 +pp_data->cap[158]->NotButton.PhysicalMin = 0 +pp_data->cap[158]->NotButton.PhysicalMax = 0 +pp_data->cap[158]->Units = 0 +pp_data->cap[158]->UnitsExp = 0 + +pp_data->cap[159]->UsagePage = 0xFF01 +pp_data->cap[159]->ReportID = 0x80 +pp_data->cap[159]->BitPosition = 0 +pp_data->cap[159]->BitSize = 8 +pp_data->cap[159]->ReportCount = 1 +pp_data->cap[159]->BytePosition = 0x0016 +pp_data->cap[159]->BitCount = 8 +pp_data->cap[159]->BitField = 0x02 +pp_data->cap[159]->NextBytePosition = 0x0017 +pp_data->cap[159]->LinkCollection = 0x0003 +pp_data->cap[159]->LinkUsagePage = 0xFF01 +pp_data->cap[159]->LinkUsage = 0x0080 +pp_data->cap[159]->IsMultipleItemsForArray = 0 +pp_data->cap[159]->IsButtonCap = 0 +pp_data->cap[159]->IsPadding = 0 +pp_data->cap[159]->IsAbsolute = 1 +pp_data->cap[159]->IsRange = 0 +pp_data->cap[159]->IsAlias = 0 +pp_data->cap[159]->IsStringRange = 0 +pp_data->cap[159]->IsDesignatorRange = 0 +pp_data->cap[159]->Reserved1 = 0x000000 +pp_data->cap[159]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[159]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[159]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[159]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[159]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[159]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[159]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[159]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[159]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[159]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[159]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[159]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[159]->NotRange.Usage = 0x0081 +pp_data->cap[159]->NotRange.Reserved1 = 0x0081 +pp_data->cap[159]->NotRange.StringIndex = 0 +pp_data->cap[159]->NotRange.Reserved2 = 0 +pp_data->cap[159]->NotRange.DesignatorIndex = 0 +pp_data->cap[159]->NotRange.Reserved3 = 0 +pp_data->cap[159]->NotRange.DataIndex = 72 +pp_data->cap[159]->NotRange.Reserved4 = 72 +pp_data->cap[159]->NotButton.HasNull = 0 +pp_data->cap[159]->NotButton.Reserved4 = 0x000000 +pp_data->cap[159]->NotButton.LogicalMin = 0 +pp_data->cap[159]->NotButton.LogicalMax = 127 +pp_data->cap[159]->NotButton.PhysicalMin = 0 +pp_data->cap[159]->NotButton.PhysicalMax = 0 +pp_data->cap[159]->Units = 0 +pp_data->cap[159]->UnitsExp = 0 + +pp_data->cap[160]->UsagePage = 0xFF01 +pp_data->cap[160]->ReportID = 0x80 +pp_data->cap[160]->BitPosition = 0 +pp_data->cap[160]->BitSize = 8 +pp_data->cap[160]->ReportCount = 1 +pp_data->cap[160]->BytePosition = 0x0015 +pp_data->cap[160]->BitCount = 8 +pp_data->cap[160]->BitField = 0x02 +pp_data->cap[160]->NextBytePosition = 0x0016 +pp_data->cap[160]->LinkCollection = 0x0003 +pp_data->cap[160]->LinkUsagePage = 0xFF01 +pp_data->cap[160]->LinkUsage = 0x0080 +pp_data->cap[160]->IsMultipleItemsForArray = 0 +pp_data->cap[160]->IsButtonCap = 0 +pp_data->cap[160]->IsPadding = 0 +pp_data->cap[160]->IsAbsolute = 1 +pp_data->cap[160]->IsRange = 0 +pp_data->cap[160]->IsAlias = 0 +pp_data->cap[160]->IsStringRange = 0 +pp_data->cap[160]->IsDesignatorRange = 0 +pp_data->cap[160]->Reserved1 = 0x000000 +pp_data->cap[160]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[160]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[160]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[160]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[160]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[160]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[160]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[160]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[160]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[160]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[160]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[160]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[160]->NotRange.Usage = 0x0081 +pp_data->cap[160]->NotRange.Reserved1 = 0x0081 +pp_data->cap[160]->NotRange.StringIndex = 0 +pp_data->cap[160]->NotRange.Reserved2 = 0 +pp_data->cap[160]->NotRange.DesignatorIndex = 0 +pp_data->cap[160]->NotRange.Reserved3 = 0 +pp_data->cap[160]->NotRange.DataIndex = 73 +pp_data->cap[160]->NotRange.Reserved4 = 73 +pp_data->cap[160]->NotButton.HasNull = 0 +pp_data->cap[160]->NotButton.Reserved4 = 0x000000 +pp_data->cap[160]->NotButton.LogicalMin = 0 +pp_data->cap[160]->NotButton.LogicalMax = 127 +pp_data->cap[160]->NotButton.PhysicalMin = 0 +pp_data->cap[160]->NotButton.PhysicalMax = 0 +pp_data->cap[160]->Units = 0 +pp_data->cap[160]->UnitsExp = 0 + +pp_data->cap[161]->UsagePage = 0xFF01 +pp_data->cap[161]->ReportID = 0x80 +pp_data->cap[161]->BitPosition = 0 +pp_data->cap[161]->BitSize = 8 +pp_data->cap[161]->ReportCount = 1 +pp_data->cap[161]->BytePosition = 0x0014 +pp_data->cap[161]->BitCount = 8 +pp_data->cap[161]->BitField = 0x02 +pp_data->cap[161]->NextBytePosition = 0x0015 +pp_data->cap[161]->LinkCollection = 0x0003 +pp_data->cap[161]->LinkUsagePage = 0xFF01 +pp_data->cap[161]->LinkUsage = 0x0080 +pp_data->cap[161]->IsMultipleItemsForArray = 0 +pp_data->cap[161]->IsButtonCap = 0 +pp_data->cap[161]->IsPadding = 0 +pp_data->cap[161]->IsAbsolute = 1 +pp_data->cap[161]->IsRange = 0 +pp_data->cap[161]->IsAlias = 0 +pp_data->cap[161]->IsStringRange = 0 +pp_data->cap[161]->IsDesignatorRange = 0 +pp_data->cap[161]->Reserved1 = 0x000000 +pp_data->cap[161]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[161]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[161]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[161]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[161]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[161]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[161]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[161]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[161]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[161]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[161]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[161]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[161]->NotRange.Usage = 0x0081 +pp_data->cap[161]->NotRange.Reserved1 = 0x0081 +pp_data->cap[161]->NotRange.StringIndex = 0 +pp_data->cap[161]->NotRange.Reserved2 = 0 +pp_data->cap[161]->NotRange.DesignatorIndex = 0 +pp_data->cap[161]->NotRange.Reserved3 = 0 +pp_data->cap[161]->NotRange.DataIndex = 74 +pp_data->cap[161]->NotRange.Reserved4 = 74 +pp_data->cap[161]->NotButton.HasNull = 0 +pp_data->cap[161]->NotButton.Reserved4 = 0x000000 +pp_data->cap[161]->NotButton.LogicalMin = 0 +pp_data->cap[161]->NotButton.LogicalMax = 127 +pp_data->cap[161]->NotButton.PhysicalMin = 0 +pp_data->cap[161]->NotButton.PhysicalMax = 0 +pp_data->cap[161]->Units = 0 +pp_data->cap[161]->UnitsExp = 0 + +pp_data->cap[162]->UsagePage = 0xFF01 +pp_data->cap[162]->ReportID = 0x80 +pp_data->cap[162]->BitPosition = 0 +pp_data->cap[162]->BitSize = 8 +pp_data->cap[162]->ReportCount = 1 +pp_data->cap[162]->BytePosition = 0x0013 +pp_data->cap[162]->BitCount = 8 +pp_data->cap[162]->BitField = 0x02 +pp_data->cap[162]->NextBytePosition = 0x0014 +pp_data->cap[162]->LinkCollection = 0x0003 +pp_data->cap[162]->LinkUsagePage = 0xFF01 +pp_data->cap[162]->LinkUsage = 0x0080 +pp_data->cap[162]->IsMultipleItemsForArray = 0 +pp_data->cap[162]->IsButtonCap = 0 +pp_data->cap[162]->IsPadding = 0 +pp_data->cap[162]->IsAbsolute = 1 +pp_data->cap[162]->IsRange = 0 +pp_data->cap[162]->IsAlias = 0 +pp_data->cap[162]->IsStringRange = 0 +pp_data->cap[162]->IsDesignatorRange = 0 +pp_data->cap[162]->Reserved1 = 0x000000 +pp_data->cap[162]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[162]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[162]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[162]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[162]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[162]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[162]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[162]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[162]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[162]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[162]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[162]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[162]->NotRange.Usage = 0x0081 +pp_data->cap[162]->NotRange.Reserved1 = 0x0081 +pp_data->cap[162]->NotRange.StringIndex = 0 +pp_data->cap[162]->NotRange.Reserved2 = 0 +pp_data->cap[162]->NotRange.DesignatorIndex = 0 +pp_data->cap[162]->NotRange.Reserved3 = 0 +pp_data->cap[162]->NotRange.DataIndex = 75 +pp_data->cap[162]->NotRange.Reserved4 = 75 +pp_data->cap[162]->NotButton.HasNull = 0 +pp_data->cap[162]->NotButton.Reserved4 = 0x000000 +pp_data->cap[162]->NotButton.LogicalMin = 0 +pp_data->cap[162]->NotButton.LogicalMax = 127 +pp_data->cap[162]->NotButton.PhysicalMin = 0 +pp_data->cap[162]->NotButton.PhysicalMax = 0 +pp_data->cap[162]->Units = 0 +pp_data->cap[162]->UnitsExp = 0 + +pp_data->cap[163]->UsagePage = 0xFF01 +pp_data->cap[163]->ReportID = 0x80 +pp_data->cap[163]->BitPosition = 0 +pp_data->cap[163]->BitSize = 8 +pp_data->cap[163]->ReportCount = 1 +pp_data->cap[163]->BytePosition = 0x0012 +pp_data->cap[163]->BitCount = 8 +pp_data->cap[163]->BitField = 0x02 +pp_data->cap[163]->NextBytePosition = 0x0013 +pp_data->cap[163]->LinkCollection = 0x0003 +pp_data->cap[163]->LinkUsagePage = 0xFF01 +pp_data->cap[163]->LinkUsage = 0x0080 +pp_data->cap[163]->IsMultipleItemsForArray = 0 +pp_data->cap[163]->IsButtonCap = 0 +pp_data->cap[163]->IsPadding = 0 +pp_data->cap[163]->IsAbsolute = 1 +pp_data->cap[163]->IsRange = 0 +pp_data->cap[163]->IsAlias = 0 +pp_data->cap[163]->IsStringRange = 0 +pp_data->cap[163]->IsDesignatorRange = 0 +pp_data->cap[163]->Reserved1 = 0x000000 +pp_data->cap[163]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[163]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[163]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[163]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[163]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[163]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[163]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[163]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[163]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[163]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[163]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[163]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[163]->NotRange.Usage = 0x0081 +pp_data->cap[163]->NotRange.Reserved1 = 0x0081 +pp_data->cap[163]->NotRange.StringIndex = 0 +pp_data->cap[163]->NotRange.Reserved2 = 0 +pp_data->cap[163]->NotRange.DesignatorIndex = 0 +pp_data->cap[163]->NotRange.Reserved3 = 0 +pp_data->cap[163]->NotRange.DataIndex = 76 +pp_data->cap[163]->NotRange.Reserved4 = 76 +pp_data->cap[163]->NotButton.HasNull = 0 +pp_data->cap[163]->NotButton.Reserved4 = 0x000000 +pp_data->cap[163]->NotButton.LogicalMin = 0 +pp_data->cap[163]->NotButton.LogicalMax = 127 +pp_data->cap[163]->NotButton.PhysicalMin = 0 +pp_data->cap[163]->NotButton.PhysicalMax = 0 +pp_data->cap[163]->Units = 0 +pp_data->cap[163]->UnitsExp = 0 + +pp_data->cap[164]->UsagePage = 0xFF01 +pp_data->cap[164]->ReportID = 0x80 +pp_data->cap[164]->BitPosition = 0 +pp_data->cap[164]->BitSize = 8 +pp_data->cap[164]->ReportCount = 1 +pp_data->cap[164]->BytePosition = 0x0011 +pp_data->cap[164]->BitCount = 8 +pp_data->cap[164]->BitField = 0x02 +pp_data->cap[164]->NextBytePosition = 0x0012 +pp_data->cap[164]->LinkCollection = 0x0003 +pp_data->cap[164]->LinkUsagePage = 0xFF01 +pp_data->cap[164]->LinkUsage = 0x0080 +pp_data->cap[164]->IsMultipleItemsForArray = 0 +pp_data->cap[164]->IsButtonCap = 0 +pp_data->cap[164]->IsPadding = 0 +pp_data->cap[164]->IsAbsolute = 1 +pp_data->cap[164]->IsRange = 0 +pp_data->cap[164]->IsAlias = 0 +pp_data->cap[164]->IsStringRange = 0 +pp_data->cap[164]->IsDesignatorRange = 0 +pp_data->cap[164]->Reserved1 = 0x000000 +pp_data->cap[164]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[164]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[164]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[164]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[164]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[164]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[164]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[164]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[164]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[164]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[164]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[164]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[164]->NotRange.Usage = 0x0081 +pp_data->cap[164]->NotRange.Reserved1 = 0x0081 +pp_data->cap[164]->NotRange.StringIndex = 0 +pp_data->cap[164]->NotRange.Reserved2 = 0 +pp_data->cap[164]->NotRange.DesignatorIndex = 0 +pp_data->cap[164]->NotRange.Reserved3 = 0 +pp_data->cap[164]->NotRange.DataIndex = 77 +pp_data->cap[164]->NotRange.Reserved4 = 77 +pp_data->cap[164]->NotButton.HasNull = 0 +pp_data->cap[164]->NotButton.Reserved4 = 0x000000 +pp_data->cap[164]->NotButton.LogicalMin = 0 +pp_data->cap[164]->NotButton.LogicalMax = 127 +pp_data->cap[164]->NotButton.PhysicalMin = 0 +pp_data->cap[164]->NotButton.PhysicalMax = 0 +pp_data->cap[164]->Units = 0 +pp_data->cap[164]->UnitsExp = 0 + +pp_data->cap[165]->UsagePage = 0xFF01 +pp_data->cap[165]->ReportID = 0x80 +pp_data->cap[165]->BitPosition = 0 +pp_data->cap[165]->BitSize = 8 +pp_data->cap[165]->ReportCount = 1 +pp_data->cap[165]->BytePosition = 0x0010 +pp_data->cap[165]->BitCount = 8 +pp_data->cap[165]->BitField = 0x02 +pp_data->cap[165]->NextBytePosition = 0x0011 +pp_data->cap[165]->LinkCollection = 0x0003 +pp_data->cap[165]->LinkUsagePage = 0xFF01 +pp_data->cap[165]->LinkUsage = 0x0080 +pp_data->cap[165]->IsMultipleItemsForArray = 0 +pp_data->cap[165]->IsButtonCap = 0 +pp_data->cap[165]->IsPadding = 0 +pp_data->cap[165]->IsAbsolute = 1 +pp_data->cap[165]->IsRange = 0 +pp_data->cap[165]->IsAlias = 0 +pp_data->cap[165]->IsStringRange = 0 +pp_data->cap[165]->IsDesignatorRange = 0 +pp_data->cap[165]->Reserved1 = 0x000000 +pp_data->cap[165]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[165]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[165]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[165]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[165]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[165]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[165]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[165]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[165]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[165]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[165]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[165]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[165]->NotRange.Usage = 0x0081 +pp_data->cap[165]->NotRange.Reserved1 = 0x0081 +pp_data->cap[165]->NotRange.StringIndex = 0 +pp_data->cap[165]->NotRange.Reserved2 = 0 +pp_data->cap[165]->NotRange.DesignatorIndex = 0 +pp_data->cap[165]->NotRange.Reserved3 = 0 +pp_data->cap[165]->NotRange.DataIndex = 78 +pp_data->cap[165]->NotRange.Reserved4 = 78 +pp_data->cap[165]->NotButton.HasNull = 0 +pp_data->cap[165]->NotButton.Reserved4 = 0x000000 +pp_data->cap[165]->NotButton.LogicalMin = 0 +pp_data->cap[165]->NotButton.LogicalMax = 127 +pp_data->cap[165]->NotButton.PhysicalMin = 0 +pp_data->cap[165]->NotButton.PhysicalMax = 0 +pp_data->cap[165]->Units = 0 +pp_data->cap[165]->UnitsExp = 0 + +pp_data->cap[166]->UsagePage = 0xFF01 +pp_data->cap[166]->ReportID = 0x80 +pp_data->cap[166]->BitPosition = 0 +pp_data->cap[166]->BitSize = 8 +pp_data->cap[166]->ReportCount = 1 +pp_data->cap[166]->BytePosition = 0x000F +pp_data->cap[166]->BitCount = 8 +pp_data->cap[166]->BitField = 0x02 +pp_data->cap[166]->NextBytePosition = 0x0010 +pp_data->cap[166]->LinkCollection = 0x0003 +pp_data->cap[166]->LinkUsagePage = 0xFF01 +pp_data->cap[166]->LinkUsage = 0x0080 +pp_data->cap[166]->IsMultipleItemsForArray = 0 +pp_data->cap[166]->IsButtonCap = 0 +pp_data->cap[166]->IsPadding = 0 +pp_data->cap[166]->IsAbsolute = 1 +pp_data->cap[166]->IsRange = 0 +pp_data->cap[166]->IsAlias = 0 +pp_data->cap[166]->IsStringRange = 0 +pp_data->cap[166]->IsDesignatorRange = 0 +pp_data->cap[166]->Reserved1 = 0x000000 +pp_data->cap[166]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[166]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[166]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[166]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[166]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[166]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[166]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[166]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[166]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[166]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[166]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[166]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[166]->NotRange.Usage = 0x0081 +pp_data->cap[166]->NotRange.Reserved1 = 0x0081 +pp_data->cap[166]->NotRange.StringIndex = 0 +pp_data->cap[166]->NotRange.Reserved2 = 0 +pp_data->cap[166]->NotRange.DesignatorIndex = 0 +pp_data->cap[166]->NotRange.Reserved3 = 0 +pp_data->cap[166]->NotRange.DataIndex = 79 +pp_data->cap[166]->NotRange.Reserved4 = 79 +pp_data->cap[166]->NotButton.HasNull = 0 +pp_data->cap[166]->NotButton.Reserved4 = 0x000000 +pp_data->cap[166]->NotButton.LogicalMin = 0 +pp_data->cap[166]->NotButton.LogicalMax = 127 +pp_data->cap[166]->NotButton.PhysicalMin = 0 +pp_data->cap[166]->NotButton.PhysicalMax = 0 +pp_data->cap[166]->Units = 0 +pp_data->cap[166]->UnitsExp = 0 + +pp_data->cap[167]->UsagePage = 0xFF01 +pp_data->cap[167]->ReportID = 0x80 +pp_data->cap[167]->BitPosition = 0 +pp_data->cap[167]->BitSize = 8 +pp_data->cap[167]->ReportCount = 1 +pp_data->cap[167]->BytePosition = 0x000E +pp_data->cap[167]->BitCount = 8 +pp_data->cap[167]->BitField = 0x02 +pp_data->cap[167]->NextBytePosition = 0x000F +pp_data->cap[167]->LinkCollection = 0x0003 +pp_data->cap[167]->LinkUsagePage = 0xFF01 +pp_data->cap[167]->LinkUsage = 0x0080 +pp_data->cap[167]->IsMultipleItemsForArray = 0 +pp_data->cap[167]->IsButtonCap = 0 +pp_data->cap[167]->IsPadding = 0 +pp_data->cap[167]->IsAbsolute = 1 +pp_data->cap[167]->IsRange = 0 +pp_data->cap[167]->IsAlias = 0 +pp_data->cap[167]->IsStringRange = 0 +pp_data->cap[167]->IsDesignatorRange = 0 +pp_data->cap[167]->Reserved1 = 0x000000 +pp_data->cap[167]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[167]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[167]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[167]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[167]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[167]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[167]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[167]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[167]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[167]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[167]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[167]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[167]->NotRange.Usage = 0x0081 +pp_data->cap[167]->NotRange.Reserved1 = 0x0081 +pp_data->cap[167]->NotRange.StringIndex = 0 +pp_data->cap[167]->NotRange.Reserved2 = 0 +pp_data->cap[167]->NotRange.DesignatorIndex = 0 +pp_data->cap[167]->NotRange.Reserved3 = 0 +pp_data->cap[167]->NotRange.DataIndex = 80 +pp_data->cap[167]->NotRange.Reserved4 = 80 +pp_data->cap[167]->NotButton.HasNull = 0 +pp_data->cap[167]->NotButton.Reserved4 = 0x000000 +pp_data->cap[167]->NotButton.LogicalMin = 0 +pp_data->cap[167]->NotButton.LogicalMax = 127 +pp_data->cap[167]->NotButton.PhysicalMin = 0 +pp_data->cap[167]->NotButton.PhysicalMax = 0 +pp_data->cap[167]->Units = 0 +pp_data->cap[167]->UnitsExp = 0 + +pp_data->cap[168]->UsagePage = 0xFF01 +pp_data->cap[168]->ReportID = 0x80 +pp_data->cap[168]->BitPosition = 0 +pp_data->cap[168]->BitSize = 8 +pp_data->cap[168]->ReportCount = 1 +pp_data->cap[168]->BytePosition = 0x000D +pp_data->cap[168]->BitCount = 8 +pp_data->cap[168]->BitField = 0x02 +pp_data->cap[168]->NextBytePosition = 0x000E +pp_data->cap[168]->LinkCollection = 0x0003 +pp_data->cap[168]->LinkUsagePage = 0xFF01 +pp_data->cap[168]->LinkUsage = 0x0080 +pp_data->cap[168]->IsMultipleItemsForArray = 0 +pp_data->cap[168]->IsButtonCap = 0 +pp_data->cap[168]->IsPadding = 0 +pp_data->cap[168]->IsAbsolute = 1 +pp_data->cap[168]->IsRange = 0 +pp_data->cap[168]->IsAlias = 0 +pp_data->cap[168]->IsStringRange = 0 +pp_data->cap[168]->IsDesignatorRange = 0 +pp_data->cap[168]->Reserved1 = 0x000000 +pp_data->cap[168]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[168]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[168]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[168]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[168]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[168]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[168]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[168]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[168]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[168]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[168]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[168]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[168]->NotRange.Usage = 0x0081 +pp_data->cap[168]->NotRange.Reserved1 = 0x0081 +pp_data->cap[168]->NotRange.StringIndex = 0 +pp_data->cap[168]->NotRange.Reserved2 = 0 +pp_data->cap[168]->NotRange.DesignatorIndex = 0 +pp_data->cap[168]->NotRange.Reserved3 = 0 +pp_data->cap[168]->NotRange.DataIndex = 81 +pp_data->cap[168]->NotRange.Reserved4 = 81 +pp_data->cap[168]->NotButton.HasNull = 0 +pp_data->cap[168]->NotButton.Reserved4 = 0x000000 +pp_data->cap[168]->NotButton.LogicalMin = 0 +pp_data->cap[168]->NotButton.LogicalMax = 127 +pp_data->cap[168]->NotButton.PhysicalMin = 0 +pp_data->cap[168]->NotButton.PhysicalMax = 0 +pp_data->cap[168]->Units = 0 +pp_data->cap[168]->UnitsExp = 0 + +pp_data->cap[169]->UsagePage = 0xFF01 +pp_data->cap[169]->ReportID = 0x80 +pp_data->cap[169]->BitPosition = 0 +pp_data->cap[169]->BitSize = 8 +pp_data->cap[169]->ReportCount = 1 +pp_data->cap[169]->BytePosition = 0x000C +pp_data->cap[169]->BitCount = 8 +pp_data->cap[169]->BitField = 0x02 +pp_data->cap[169]->NextBytePosition = 0x000D +pp_data->cap[169]->LinkCollection = 0x0003 +pp_data->cap[169]->LinkUsagePage = 0xFF01 +pp_data->cap[169]->LinkUsage = 0x0080 +pp_data->cap[169]->IsMultipleItemsForArray = 0 +pp_data->cap[169]->IsButtonCap = 0 +pp_data->cap[169]->IsPadding = 0 +pp_data->cap[169]->IsAbsolute = 1 +pp_data->cap[169]->IsRange = 0 +pp_data->cap[169]->IsAlias = 0 +pp_data->cap[169]->IsStringRange = 0 +pp_data->cap[169]->IsDesignatorRange = 0 +pp_data->cap[169]->Reserved1 = 0x000000 +pp_data->cap[169]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[169]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[169]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[169]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[169]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[169]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[169]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[169]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[169]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[169]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[169]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[169]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[169]->NotRange.Usage = 0x0081 +pp_data->cap[169]->NotRange.Reserved1 = 0x0081 +pp_data->cap[169]->NotRange.StringIndex = 0 +pp_data->cap[169]->NotRange.Reserved2 = 0 +pp_data->cap[169]->NotRange.DesignatorIndex = 0 +pp_data->cap[169]->NotRange.Reserved3 = 0 +pp_data->cap[169]->NotRange.DataIndex = 82 +pp_data->cap[169]->NotRange.Reserved4 = 82 +pp_data->cap[169]->NotButton.HasNull = 0 +pp_data->cap[169]->NotButton.Reserved4 = 0x000000 +pp_data->cap[169]->NotButton.LogicalMin = 0 +pp_data->cap[169]->NotButton.LogicalMax = 127 +pp_data->cap[169]->NotButton.PhysicalMin = 0 +pp_data->cap[169]->NotButton.PhysicalMax = 0 +pp_data->cap[169]->Units = 0 +pp_data->cap[169]->UnitsExp = 0 + +pp_data->cap[170]->UsagePage = 0xFF01 +pp_data->cap[170]->ReportID = 0x80 +pp_data->cap[170]->BitPosition = 0 +pp_data->cap[170]->BitSize = 8 +pp_data->cap[170]->ReportCount = 1 +pp_data->cap[170]->BytePosition = 0x000B +pp_data->cap[170]->BitCount = 8 +pp_data->cap[170]->BitField = 0x02 +pp_data->cap[170]->NextBytePosition = 0x000C +pp_data->cap[170]->LinkCollection = 0x0003 +pp_data->cap[170]->LinkUsagePage = 0xFF01 +pp_data->cap[170]->LinkUsage = 0x0080 +pp_data->cap[170]->IsMultipleItemsForArray = 0 +pp_data->cap[170]->IsButtonCap = 0 +pp_data->cap[170]->IsPadding = 0 +pp_data->cap[170]->IsAbsolute = 1 +pp_data->cap[170]->IsRange = 0 +pp_data->cap[170]->IsAlias = 0 +pp_data->cap[170]->IsStringRange = 0 +pp_data->cap[170]->IsDesignatorRange = 0 +pp_data->cap[170]->Reserved1 = 0x000000 +pp_data->cap[170]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[170]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[170]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[170]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[170]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[170]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[170]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[170]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[170]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[170]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[170]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[170]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[170]->NotRange.Usage = 0x0081 +pp_data->cap[170]->NotRange.Reserved1 = 0x0081 +pp_data->cap[170]->NotRange.StringIndex = 0 +pp_data->cap[170]->NotRange.Reserved2 = 0 +pp_data->cap[170]->NotRange.DesignatorIndex = 0 +pp_data->cap[170]->NotRange.Reserved3 = 0 +pp_data->cap[170]->NotRange.DataIndex = 83 +pp_data->cap[170]->NotRange.Reserved4 = 83 +pp_data->cap[170]->NotButton.HasNull = 0 +pp_data->cap[170]->NotButton.Reserved4 = 0x000000 +pp_data->cap[170]->NotButton.LogicalMin = 0 +pp_data->cap[170]->NotButton.LogicalMax = 127 +pp_data->cap[170]->NotButton.PhysicalMin = 0 +pp_data->cap[170]->NotButton.PhysicalMax = 0 +pp_data->cap[170]->Units = 0 +pp_data->cap[170]->UnitsExp = 0 + +pp_data->cap[171]->UsagePage = 0xFF01 +pp_data->cap[171]->ReportID = 0x80 +pp_data->cap[171]->BitPosition = 0 +pp_data->cap[171]->BitSize = 8 +pp_data->cap[171]->ReportCount = 1 +pp_data->cap[171]->BytePosition = 0x000A +pp_data->cap[171]->BitCount = 8 +pp_data->cap[171]->BitField = 0x02 +pp_data->cap[171]->NextBytePosition = 0x000B +pp_data->cap[171]->LinkCollection = 0x0003 +pp_data->cap[171]->LinkUsagePage = 0xFF01 +pp_data->cap[171]->LinkUsage = 0x0080 +pp_data->cap[171]->IsMultipleItemsForArray = 0 +pp_data->cap[171]->IsButtonCap = 0 +pp_data->cap[171]->IsPadding = 0 +pp_data->cap[171]->IsAbsolute = 1 +pp_data->cap[171]->IsRange = 0 +pp_data->cap[171]->IsAlias = 0 +pp_data->cap[171]->IsStringRange = 0 +pp_data->cap[171]->IsDesignatorRange = 0 +pp_data->cap[171]->Reserved1 = 0x000000 +pp_data->cap[171]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[171]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[171]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[171]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[171]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[171]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[171]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[171]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[171]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[171]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[171]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[171]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[171]->NotRange.Usage = 0x0081 +pp_data->cap[171]->NotRange.Reserved1 = 0x0081 +pp_data->cap[171]->NotRange.StringIndex = 0 +pp_data->cap[171]->NotRange.Reserved2 = 0 +pp_data->cap[171]->NotRange.DesignatorIndex = 0 +pp_data->cap[171]->NotRange.Reserved3 = 0 +pp_data->cap[171]->NotRange.DataIndex = 84 +pp_data->cap[171]->NotRange.Reserved4 = 84 +pp_data->cap[171]->NotButton.HasNull = 0 +pp_data->cap[171]->NotButton.Reserved4 = 0x000000 +pp_data->cap[171]->NotButton.LogicalMin = 0 +pp_data->cap[171]->NotButton.LogicalMax = 127 +pp_data->cap[171]->NotButton.PhysicalMin = 0 +pp_data->cap[171]->NotButton.PhysicalMax = 0 +pp_data->cap[171]->Units = 0 +pp_data->cap[171]->UnitsExp = 0 + +pp_data->cap[172]->UsagePage = 0xFF01 +pp_data->cap[172]->ReportID = 0x80 +pp_data->cap[172]->BitPosition = 0 +pp_data->cap[172]->BitSize = 8 +pp_data->cap[172]->ReportCount = 1 +pp_data->cap[172]->BytePosition = 0x0009 +pp_data->cap[172]->BitCount = 8 +pp_data->cap[172]->BitField = 0x02 +pp_data->cap[172]->NextBytePosition = 0x000A +pp_data->cap[172]->LinkCollection = 0x0003 +pp_data->cap[172]->LinkUsagePage = 0xFF01 +pp_data->cap[172]->LinkUsage = 0x0080 +pp_data->cap[172]->IsMultipleItemsForArray = 0 +pp_data->cap[172]->IsButtonCap = 0 +pp_data->cap[172]->IsPadding = 0 +pp_data->cap[172]->IsAbsolute = 1 +pp_data->cap[172]->IsRange = 0 +pp_data->cap[172]->IsAlias = 0 +pp_data->cap[172]->IsStringRange = 0 +pp_data->cap[172]->IsDesignatorRange = 0 +pp_data->cap[172]->Reserved1 = 0x000000 +pp_data->cap[172]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[172]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[172]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[172]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[172]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[172]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[172]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[172]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[172]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[172]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[172]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[172]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[172]->NotRange.Usage = 0x0081 +pp_data->cap[172]->NotRange.Reserved1 = 0x0081 +pp_data->cap[172]->NotRange.StringIndex = 0 +pp_data->cap[172]->NotRange.Reserved2 = 0 +pp_data->cap[172]->NotRange.DesignatorIndex = 0 +pp_data->cap[172]->NotRange.Reserved3 = 0 +pp_data->cap[172]->NotRange.DataIndex = 85 +pp_data->cap[172]->NotRange.Reserved4 = 85 +pp_data->cap[172]->NotButton.HasNull = 0 +pp_data->cap[172]->NotButton.Reserved4 = 0x000000 +pp_data->cap[172]->NotButton.LogicalMin = 0 +pp_data->cap[172]->NotButton.LogicalMax = 127 +pp_data->cap[172]->NotButton.PhysicalMin = 0 +pp_data->cap[172]->NotButton.PhysicalMax = 0 +pp_data->cap[172]->Units = 0 +pp_data->cap[172]->UnitsExp = 0 + +pp_data->cap[173]->UsagePage = 0xFF01 +pp_data->cap[173]->ReportID = 0x80 +pp_data->cap[173]->BitPosition = 0 +pp_data->cap[173]->BitSize = 8 +pp_data->cap[173]->ReportCount = 1 +pp_data->cap[173]->BytePosition = 0x0008 +pp_data->cap[173]->BitCount = 8 +pp_data->cap[173]->BitField = 0x02 +pp_data->cap[173]->NextBytePosition = 0x0009 +pp_data->cap[173]->LinkCollection = 0x0003 +pp_data->cap[173]->LinkUsagePage = 0xFF01 +pp_data->cap[173]->LinkUsage = 0x0080 +pp_data->cap[173]->IsMultipleItemsForArray = 0 +pp_data->cap[173]->IsButtonCap = 0 +pp_data->cap[173]->IsPadding = 0 +pp_data->cap[173]->IsAbsolute = 1 +pp_data->cap[173]->IsRange = 0 +pp_data->cap[173]->IsAlias = 0 +pp_data->cap[173]->IsStringRange = 0 +pp_data->cap[173]->IsDesignatorRange = 0 +pp_data->cap[173]->Reserved1 = 0x000000 +pp_data->cap[173]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[173]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[173]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[173]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[173]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[173]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[173]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[173]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[173]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[173]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[173]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[173]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[173]->NotRange.Usage = 0x0081 +pp_data->cap[173]->NotRange.Reserved1 = 0x0081 +pp_data->cap[173]->NotRange.StringIndex = 0 +pp_data->cap[173]->NotRange.Reserved2 = 0 +pp_data->cap[173]->NotRange.DesignatorIndex = 0 +pp_data->cap[173]->NotRange.Reserved3 = 0 +pp_data->cap[173]->NotRange.DataIndex = 86 +pp_data->cap[173]->NotRange.Reserved4 = 86 +pp_data->cap[173]->NotButton.HasNull = 0 +pp_data->cap[173]->NotButton.Reserved4 = 0x000000 +pp_data->cap[173]->NotButton.LogicalMin = 0 +pp_data->cap[173]->NotButton.LogicalMax = 127 +pp_data->cap[173]->NotButton.PhysicalMin = 0 +pp_data->cap[173]->NotButton.PhysicalMax = 0 +pp_data->cap[173]->Units = 0 +pp_data->cap[173]->UnitsExp = 0 + +pp_data->cap[174]->UsagePage = 0xFF01 +pp_data->cap[174]->ReportID = 0x80 +pp_data->cap[174]->BitPosition = 0 +pp_data->cap[174]->BitSize = 8 +pp_data->cap[174]->ReportCount = 1 +pp_data->cap[174]->BytePosition = 0x0007 +pp_data->cap[174]->BitCount = 8 +pp_data->cap[174]->BitField = 0x02 +pp_data->cap[174]->NextBytePosition = 0x0008 +pp_data->cap[174]->LinkCollection = 0x0003 +pp_data->cap[174]->LinkUsagePage = 0xFF01 +pp_data->cap[174]->LinkUsage = 0x0080 +pp_data->cap[174]->IsMultipleItemsForArray = 0 +pp_data->cap[174]->IsButtonCap = 0 +pp_data->cap[174]->IsPadding = 0 +pp_data->cap[174]->IsAbsolute = 1 +pp_data->cap[174]->IsRange = 0 +pp_data->cap[174]->IsAlias = 0 +pp_data->cap[174]->IsStringRange = 0 +pp_data->cap[174]->IsDesignatorRange = 0 +pp_data->cap[174]->Reserved1 = 0x000000 +pp_data->cap[174]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[174]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[174]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[174]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[174]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[174]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[174]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[174]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[174]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[174]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[174]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[174]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[174]->NotRange.Usage = 0x0081 +pp_data->cap[174]->NotRange.Reserved1 = 0x0081 +pp_data->cap[174]->NotRange.StringIndex = 0 +pp_data->cap[174]->NotRange.Reserved2 = 0 +pp_data->cap[174]->NotRange.DesignatorIndex = 0 +pp_data->cap[174]->NotRange.Reserved3 = 0 +pp_data->cap[174]->NotRange.DataIndex = 87 +pp_data->cap[174]->NotRange.Reserved4 = 87 +pp_data->cap[174]->NotButton.HasNull = 0 +pp_data->cap[174]->NotButton.Reserved4 = 0x000000 +pp_data->cap[174]->NotButton.LogicalMin = 0 +pp_data->cap[174]->NotButton.LogicalMax = 127 +pp_data->cap[174]->NotButton.PhysicalMin = 0 +pp_data->cap[174]->NotButton.PhysicalMax = 0 +pp_data->cap[174]->Units = 0 +pp_data->cap[174]->UnitsExp = 0 + +pp_data->cap[175]->UsagePage = 0xFF01 +pp_data->cap[175]->ReportID = 0x80 +pp_data->cap[175]->BitPosition = 0 +pp_data->cap[175]->BitSize = 8 +pp_data->cap[175]->ReportCount = 1 +pp_data->cap[175]->BytePosition = 0x0006 +pp_data->cap[175]->BitCount = 8 +pp_data->cap[175]->BitField = 0x02 +pp_data->cap[175]->NextBytePosition = 0x0007 +pp_data->cap[175]->LinkCollection = 0x0003 +pp_data->cap[175]->LinkUsagePage = 0xFF01 +pp_data->cap[175]->LinkUsage = 0x0080 +pp_data->cap[175]->IsMultipleItemsForArray = 0 +pp_data->cap[175]->IsButtonCap = 0 +pp_data->cap[175]->IsPadding = 0 +pp_data->cap[175]->IsAbsolute = 1 +pp_data->cap[175]->IsRange = 0 +pp_data->cap[175]->IsAlias = 0 +pp_data->cap[175]->IsStringRange = 0 +pp_data->cap[175]->IsDesignatorRange = 0 +pp_data->cap[175]->Reserved1 = 0x000000 +pp_data->cap[175]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[175]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[175]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[175]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[175]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[175]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[175]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[175]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[175]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[175]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[175]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[175]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[175]->NotRange.Usage = 0x0081 +pp_data->cap[175]->NotRange.Reserved1 = 0x0081 +pp_data->cap[175]->NotRange.StringIndex = 0 +pp_data->cap[175]->NotRange.Reserved2 = 0 +pp_data->cap[175]->NotRange.DesignatorIndex = 0 +pp_data->cap[175]->NotRange.Reserved3 = 0 +pp_data->cap[175]->NotRange.DataIndex = 88 +pp_data->cap[175]->NotRange.Reserved4 = 88 +pp_data->cap[175]->NotButton.HasNull = 0 +pp_data->cap[175]->NotButton.Reserved4 = 0x000000 +pp_data->cap[175]->NotButton.LogicalMin = 0 +pp_data->cap[175]->NotButton.LogicalMax = 127 +pp_data->cap[175]->NotButton.PhysicalMin = 0 +pp_data->cap[175]->NotButton.PhysicalMax = 0 +pp_data->cap[175]->Units = 0 +pp_data->cap[175]->UnitsExp = 0 + +pp_data->cap[176]->UsagePage = 0xFF01 +pp_data->cap[176]->ReportID = 0x80 +pp_data->cap[176]->BitPosition = 0 +pp_data->cap[176]->BitSize = 8 +pp_data->cap[176]->ReportCount = 1 +pp_data->cap[176]->BytePosition = 0x0005 +pp_data->cap[176]->BitCount = 8 +pp_data->cap[176]->BitField = 0x02 +pp_data->cap[176]->NextBytePosition = 0x0006 +pp_data->cap[176]->LinkCollection = 0x0003 +pp_data->cap[176]->LinkUsagePage = 0xFF01 +pp_data->cap[176]->LinkUsage = 0x0080 +pp_data->cap[176]->IsMultipleItemsForArray = 0 +pp_data->cap[176]->IsButtonCap = 0 +pp_data->cap[176]->IsPadding = 0 +pp_data->cap[176]->IsAbsolute = 1 +pp_data->cap[176]->IsRange = 0 +pp_data->cap[176]->IsAlias = 0 +pp_data->cap[176]->IsStringRange = 0 +pp_data->cap[176]->IsDesignatorRange = 0 +pp_data->cap[176]->Reserved1 = 0x000000 +pp_data->cap[176]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[176]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[176]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[176]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[176]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[176]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[176]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[176]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[176]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[176]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[176]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[176]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[176]->NotRange.Usage = 0x0081 +pp_data->cap[176]->NotRange.Reserved1 = 0x0081 +pp_data->cap[176]->NotRange.StringIndex = 0 +pp_data->cap[176]->NotRange.Reserved2 = 0 +pp_data->cap[176]->NotRange.DesignatorIndex = 0 +pp_data->cap[176]->NotRange.Reserved3 = 0 +pp_data->cap[176]->NotRange.DataIndex = 89 +pp_data->cap[176]->NotRange.Reserved4 = 89 +pp_data->cap[176]->NotButton.HasNull = 0 +pp_data->cap[176]->NotButton.Reserved4 = 0x000000 +pp_data->cap[176]->NotButton.LogicalMin = 0 +pp_data->cap[176]->NotButton.LogicalMax = 127 +pp_data->cap[176]->NotButton.PhysicalMin = 0 +pp_data->cap[176]->NotButton.PhysicalMax = 0 +pp_data->cap[176]->Units = 0 +pp_data->cap[176]->UnitsExp = 0 + +pp_data->cap[177]->UsagePage = 0xFF01 +pp_data->cap[177]->ReportID = 0x80 +pp_data->cap[177]->BitPosition = 0 +pp_data->cap[177]->BitSize = 8 +pp_data->cap[177]->ReportCount = 1 +pp_data->cap[177]->BytePosition = 0x0004 +pp_data->cap[177]->BitCount = 8 +pp_data->cap[177]->BitField = 0x02 +pp_data->cap[177]->NextBytePosition = 0x0005 +pp_data->cap[177]->LinkCollection = 0x0003 +pp_data->cap[177]->LinkUsagePage = 0xFF01 +pp_data->cap[177]->LinkUsage = 0x0080 +pp_data->cap[177]->IsMultipleItemsForArray = 0 +pp_data->cap[177]->IsButtonCap = 0 +pp_data->cap[177]->IsPadding = 0 +pp_data->cap[177]->IsAbsolute = 1 +pp_data->cap[177]->IsRange = 0 +pp_data->cap[177]->IsAlias = 0 +pp_data->cap[177]->IsStringRange = 0 +pp_data->cap[177]->IsDesignatorRange = 0 +pp_data->cap[177]->Reserved1 = 0x000000 +pp_data->cap[177]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[177]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[177]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[177]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[177]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[177]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[177]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[177]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[177]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[177]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[177]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[177]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[177]->NotRange.Usage = 0x0081 +pp_data->cap[177]->NotRange.Reserved1 = 0x0081 +pp_data->cap[177]->NotRange.StringIndex = 0 +pp_data->cap[177]->NotRange.Reserved2 = 0 +pp_data->cap[177]->NotRange.DesignatorIndex = 0 +pp_data->cap[177]->NotRange.Reserved3 = 0 +pp_data->cap[177]->NotRange.DataIndex = 90 +pp_data->cap[177]->NotRange.Reserved4 = 90 +pp_data->cap[177]->NotButton.HasNull = 0 +pp_data->cap[177]->NotButton.Reserved4 = 0x000000 +pp_data->cap[177]->NotButton.LogicalMin = 0 +pp_data->cap[177]->NotButton.LogicalMax = 127 +pp_data->cap[177]->NotButton.PhysicalMin = 0 +pp_data->cap[177]->NotButton.PhysicalMax = 0 +pp_data->cap[177]->Units = 0 +pp_data->cap[177]->UnitsExp = 0 + +pp_data->cap[178]->UsagePage = 0xFF01 +pp_data->cap[178]->ReportID = 0x80 +pp_data->cap[178]->BitPosition = 0 +pp_data->cap[178]->BitSize = 8 +pp_data->cap[178]->ReportCount = 1 +pp_data->cap[178]->BytePosition = 0x0003 +pp_data->cap[178]->BitCount = 8 +pp_data->cap[178]->BitField = 0x02 +pp_data->cap[178]->NextBytePosition = 0x0004 +pp_data->cap[178]->LinkCollection = 0x0003 +pp_data->cap[178]->LinkUsagePage = 0xFF01 +pp_data->cap[178]->LinkUsage = 0x0080 +pp_data->cap[178]->IsMultipleItemsForArray = 0 +pp_data->cap[178]->IsButtonCap = 0 +pp_data->cap[178]->IsPadding = 0 +pp_data->cap[178]->IsAbsolute = 1 +pp_data->cap[178]->IsRange = 0 +pp_data->cap[178]->IsAlias = 0 +pp_data->cap[178]->IsStringRange = 0 +pp_data->cap[178]->IsDesignatorRange = 0 +pp_data->cap[178]->Reserved1 = 0x000000 +pp_data->cap[178]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[178]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[178]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[178]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[178]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[178]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[178]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[178]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[178]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[178]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[178]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[178]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[178]->NotRange.Usage = 0x0081 +pp_data->cap[178]->NotRange.Reserved1 = 0x0081 +pp_data->cap[178]->NotRange.StringIndex = 0 +pp_data->cap[178]->NotRange.Reserved2 = 0 +pp_data->cap[178]->NotRange.DesignatorIndex = 0 +pp_data->cap[178]->NotRange.Reserved3 = 0 +pp_data->cap[178]->NotRange.DataIndex = 91 +pp_data->cap[178]->NotRange.Reserved4 = 91 +pp_data->cap[178]->NotButton.HasNull = 0 +pp_data->cap[178]->NotButton.Reserved4 = 0x000000 +pp_data->cap[178]->NotButton.LogicalMin = 0 +pp_data->cap[178]->NotButton.LogicalMax = 127 +pp_data->cap[178]->NotButton.PhysicalMin = 0 +pp_data->cap[178]->NotButton.PhysicalMax = 0 +pp_data->cap[178]->Units = 0 +pp_data->cap[178]->UnitsExp = 0 + +pp_data->cap[179]->UsagePage = 0xFF01 +pp_data->cap[179]->ReportID = 0x80 +pp_data->cap[179]->BitPosition = 0 +pp_data->cap[179]->BitSize = 8 +pp_data->cap[179]->ReportCount = 1 +pp_data->cap[179]->BytePosition = 0x0002 +pp_data->cap[179]->BitCount = 8 +pp_data->cap[179]->BitField = 0x02 +pp_data->cap[179]->NextBytePosition = 0x0003 +pp_data->cap[179]->LinkCollection = 0x0003 +pp_data->cap[179]->LinkUsagePage = 0xFF01 +pp_data->cap[179]->LinkUsage = 0x0080 +pp_data->cap[179]->IsMultipleItemsForArray = 0 +pp_data->cap[179]->IsButtonCap = 0 +pp_data->cap[179]->IsPadding = 0 +pp_data->cap[179]->IsAbsolute = 1 +pp_data->cap[179]->IsRange = 0 +pp_data->cap[179]->IsAlias = 0 +pp_data->cap[179]->IsStringRange = 0 +pp_data->cap[179]->IsDesignatorRange = 0 +pp_data->cap[179]->Reserved1 = 0x000000 +pp_data->cap[179]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[179]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[179]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[179]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[179]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[179]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[179]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[179]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[179]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[179]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[179]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[179]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[179]->NotRange.Usage = 0x0081 +pp_data->cap[179]->NotRange.Reserved1 = 0x0081 +pp_data->cap[179]->NotRange.StringIndex = 0 +pp_data->cap[179]->NotRange.Reserved2 = 0 +pp_data->cap[179]->NotRange.DesignatorIndex = 0 +pp_data->cap[179]->NotRange.Reserved3 = 0 +pp_data->cap[179]->NotRange.DataIndex = 92 +pp_data->cap[179]->NotRange.Reserved4 = 92 +pp_data->cap[179]->NotButton.HasNull = 0 +pp_data->cap[179]->NotButton.Reserved4 = 0x000000 +pp_data->cap[179]->NotButton.LogicalMin = 0 +pp_data->cap[179]->NotButton.LogicalMax = 127 +pp_data->cap[179]->NotButton.PhysicalMin = 0 +pp_data->cap[179]->NotButton.PhysicalMax = 0 +pp_data->cap[179]->Units = 0 +pp_data->cap[179]->UnitsExp = 0 + +pp_data->cap[180]->UsagePage = 0xFF01 +pp_data->cap[180]->ReportID = 0x80 +pp_data->cap[180]->BitPosition = 0 +pp_data->cap[180]->BitSize = 8 +pp_data->cap[180]->ReportCount = 1 +pp_data->cap[180]->BytePosition = 0x0001 +pp_data->cap[180]->BitCount = 8 +pp_data->cap[180]->BitField = 0x02 +pp_data->cap[180]->NextBytePosition = 0x0002 +pp_data->cap[180]->LinkCollection = 0x0003 +pp_data->cap[180]->LinkUsagePage = 0xFF01 +pp_data->cap[180]->LinkUsage = 0x0080 +pp_data->cap[180]->IsMultipleItemsForArray = 0 +pp_data->cap[180]->IsButtonCap = 0 +pp_data->cap[180]->IsPadding = 0 +pp_data->cap[180]->IsAbsolute = 1 +pp_data->cap[180]->IsRange = 0 +pp_data->cap[180]->IsAlias = 0 +pp_data->cap[180]->IsStringRange = 0 +pp_data->cap[180]->IsDesignatorRange = 0 +pp_data->cap[180]->Reserved1 = 0x000000 +pp_data->cap[180]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[180]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[180]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[180]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[180]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[180]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[180]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[180]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[180]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[180]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[180]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[180]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[180]->NotRange.Usage = 0x0081 +pp_data->cap[180]->NotRange.Reserved1 = 0x0081 +pp_data->cap[180]->NotRange.StringIndex = 0 +pp_data->cap[180]->NotRange.Reserved2 = 0 +pp_data->cap[180]->NotRange.DesignatorIndex = 0 +pp_data->cap[180]->NotRange.Reserved3 = 0 +pp_data->cap[180]->NotRange.DataIndex = 93 +pp_data->cap[180]->NotRange.Reserved4 = 93 +pp_data->cap[180]->NotButton.HasNull = 0 +pp_data->cap[180]->NotButton.Reserved4 = 0x000000 +pp_data->cap[180]->NotButton.LogicalMin = 0 +pp_data->cap[180]->NotButton.LogicalMax = 127 +pp_data->cap[180]->NotButton.PhysicalMin = 0 +pp_data->cap[180]->NotButton.PhysicalMax = 0 +pp_data->cap[180]->Units = 0 +pp_data->cap[180]->UnitsExp = 0 + +pp_data->cap[181]->UsagePage = 0xFF01 +pp_data->cap[181]->ReportID = 0x81 +pp_data->cap[181]->BitPosition = 0 +pp_data->cap[181]->BitSize = 8 +pp_data->cap[181]->ReportCount = 1 +pp_data->cap[181]->BytePosition = 0x0028 +pp_data->cap[181]->BitCount = 8 +pp_data->cap[181]->BitField = 0x02 +pp_data->cap[181]->NextBytePosition = 0x0029 +pp_data->cap[181]->LinkCollection = 0x0004 +pp_data->cap[181]->LinkUsagePage = 0xFF01 +pp_data->cap[181]->LinkUsage = 0x0080 +pp_data->cap[181]->IsMultipleItemsForArray = 0 +pp_data->cap[181]->IsButtonCap = 0 +pp_data->cap[181]->IsPadding = 0 +pp_data->cap[181]->IsAbsolute = 1 +pp_data->cap[181]->IsRange = 0 +pp_data->cap[181]->IsAlias = 0 +pp_data->cap[181]->IsStringRange = 0 +pp_data->cap[181]->IsDesignatorRange = 0 +pp_data->cap[181]->Reserved1 = 0x000000 +pp_data->cap[181]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[181]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[181]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[181]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[181]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[181]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[181]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[181]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[181]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[181]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[181]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[181]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[181]->NotRange.Usage = 0x0081 +pp_data->cap[181]->NotRange.Reserved1 = 0x0081 +pp_data->cap[181]->NotRange.StringIndex = 0 +pp_data->cap[181]->NotRange.Reserved2 = 0 +pp_data->cap[181]->NotRange.DesignatorIndex = 0 +pp_data->cap[181]->NotRange.Reserved3 = 0 +pp_data->cap[181]->NotRange.DataIndex = 94 +pp_data->cap[181]->NotRange.Reserved4 = 94 +pp_data->cap[181]->NotButton.HasNull = 0 +pp_data->cap[181]->NotButton.Reserved4 = 0x000000 +pp_data->cap[181]->NotButton.LogicalMin = 0 +pp_data->cap[181]->NotButton.LogicalMax = 127 +pp_data->cap[181]->NotButton.PhysicalMin = 0 +pp_data->cap[181]->NotButton.PhysicalMax = 0 +pp_data->cap[181]->Units = 0 +pp_data->cap[181]->UnitsExp = 0 + +pp_data->cap[182]->UsagePage = 0xFF01 +pp_data->cap[182]->ReportID = 0x81 +pp_data->cap[182]->BitPosition = 0 +pp_data->cap[182]->BitSize = 8 +pp_data->cap[182]->ReportCount = 1 +pp_data->cap[182]->BytePosition = 0x0027 +pp_data->cap[182]->BitCount = 8 +pp_data->cap[182]->BitField = 0x02 +pp_data->cap[182]->NextBytePosition = 0x0028 +pp_data->cap[182]->LinkCollection = 0x0004 +pp_data->cap[182]->LinkUsagePage = 0xFF01 +pp_data->cap[182]->LinkUsage = 0x0080 +pp_data->cap[182]->IsMultipleItemsForArray = 0 +pp_data->cap[182]->IsButtonCap = 0 +pp_data->cap[182]->IsPadding = 0 +pp_data->cap[182]->IsAbsolute = 1 +pp_data->cap[182]->IsRange = 0 +pp_data->cap[182]->IsAlias = 0 +pp_data->cap[182]->IsStringRange = 0 +pp_data->cap[182]->IsDesignatorRange = 0 +pp_data->cap[182]->Reserved1 = 0x000000 +pp_data->cap[182]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[182]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[182]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[182]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[182]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[182]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[182]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[182]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[182]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[182]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[182]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[182]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[182]->NotRange.Usage = 0x0081 +pp_data->cap[182]->NotRange.Reserved1 = 0x0081 +pp_data->cap[182]->NotRange.StringIndex = 0 +pp_data->cap[182]->NotRange.Reserved2 = 0 +pp_data->cap[182]->NotRange.DesignatorIndex = 0 +pp_data->cap[182]->NotRange.Reserved3 = 0 +pp_data->cap[182]->NotRange.DataIndex = 95 +pp_data->cap[182]->NotRange.Reserved4 = 95 +pp_data->cap[182]->NotButton.HasNull = 0 +pp_data->cap[182]->NotButton.Reserved4 = 0x000000 +pp_data->cap[182]->NotButton.LogicalMin = 0 +pp_data->cap[182]->NotButton.LogicalMax = 127 +pp_data->cap[182]->NotButton.PhysicalMin = 0 +pp_data->cap[182]->NotButton.PhysicalMax = 0 +pp_data->cap[182]->Units = 0 +pp_data->cap[182]->UnitsExp = 0 + +pp_data->cap[183]->UsagePage = 0xFF01 +pp_data->cap[183]->ReportID = 0x81 +pp_data->cap[183]->BitPosition = 0 +pp_data->cap[183]->BitSize = 8 +pp_data->cap[183]->ReportCount = 1 +pp_data->cap[183]->BytePosition = 0x0026 +pp_data->cap[183]->BitCount = 8 +pp_data->cap[183]->BitField = 0x02 +pp_data->cap[183]->NextBytePosition = 0x0027 +pp_data->cap[183]->LinkCollection = 0x0004 +pp_data->cap[183]->LinkUsagePage = 0xFF01 +pp_data->cap[183]->LinkUsage = 0x0080 +pp_data->cap[183]->IsMultipleItemsForArray = 0 +pp_data->cap[183]->IsButtonCap = 0 +pp_data->cap[183]->IsPadding = 0 +pp_data->cap[183]->IsAbsolute = 1 +pp_data->cap[183]->IsRange = 0 +pp_data->cap[183]->IsAlias = 0 +pp_data->cap[183]->IsStringRange = 0 +pp_data->cap[183]->IsDesignatorRange = 0 +pp_data->cap[183]->Reserved1 = 0x000000 +pp_data->cap[183]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[183]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[183]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[183]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[183]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[183]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[183]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[183]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[183]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[183]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[183]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[183]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[183]->NotRange.Usage = 0x0081 +pp_data->cap[183]->NotRange.Reserved1 = 0x0081 +pp_data->cap[183]->NotRange.StringIndex = 0 +pp_data->cap[183]->NotRange.Reserved2 = 0 +pp_data->cap[183]->NotRange.DesignatorIndex = 0 +pp_data->cap[183]->NotRange.Reserved3 = 0 +pp_data->cap[183]->NotRange.DataIndex = 96 +pp_data->cap[183]->NotRange.Reserved4 = 96 +pp_data->cap[183]->NotButton.HasNull = 0 +pp_data->cap[183]->NotButton.Reserved4 = 0x000000 +pp_data->cap[183]->NotButton.LogicalMin = 0 +pp_data->cap[183]->NotButton.LogicalMax = 127 +pp_data->cap[183]->NotButton.PhysicalMin = 0 +pp_data->cap[183]->NotButton.PhysicalMax = 0 +pp_data->cap[183]->Units = 0 +pp_data->cap[183]->UnitsExp = 0 + +pp_data->cap[184]->UsagePage = 0xFF01 +pp_data->cap[184]->ReportID = 0x81 +pp_data->cap[184]->BitPosition = 0 +pp_data->cap[184]->BitSize = 8 +pp_data->cap[184]->ReportCount = 1 +pp_data->cap[184]->BytePosition = 0x0025 +pp_data->cap[184]->BitCount = 8 +pp_data->cap[184]->BitField = 0x02 +pp_data->cap[184]->NextBytePosition = 0x0026 +pp_data->cap[184]->LinkCollection = 0x0004 +pp_data->cap[184]->LinkUsagePage = 0xFF01 +pp_data->cap[184]->LinkUsage = 0x0080 +pp_data->cap[184]->IsMultipleItemsForArray = 0 +pp_data->cap[184]->IsButtonCap = 0 +pp_data->cap[184]->IsPadding = 0 +pp_data->cap[184]->IsAbsolute = 1 +pp_data->cap[184]->IsRange = 0 +pp_data->cap[184]->IsAlias = 0 +pp_data->cap[184]->IsStringRange = 0 +pp_data->cap[184]->IsDesignatorRange = 0 +pp_data->cap[184]->Reserved1 = 0x000000 +pp_data->cap[184]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[184]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[184]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[184]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[184]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[184]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[184]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[184]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[184]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[184]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[184]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[184]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[184]->NotRange.Usage = 0x0081 +pp_data->cap[184]->NotRange.Reserved1 = 0x0081 +pp_data->cap[184]->NotRange.StringIndex = 0 +pp_data->cap[184]->NotRange.Reserved2 = 0 +pp_data->cap[184]->NotRange.DesignatorIndex = 0 +pp_data->cap[184]->NotRange.Reserved3 = 0 +pp_data->cap[184]->NotRange.DataIndex = 97 +pp_data->cap[184]->NotRange.Reserved4 = 97 +pp_data->cap[184]->NotButton.HasNull = 0 +pp_data->cap[184]->NotButton.Reserved4 = 0x000000 +pp_data->cap[184]->NotButton.LogicalMin = 0 +pp_data->cap[184]->NotButton.LogicalMax = 127 +pp_data->cap[184]->NotButton.PhysicalMin = 0 +pp_data->cap[184]->NotButton.PhysicalMax = 0 +pp_data->cap[184]->Units = 0 +pp_data->cap[184]->UnitsExp = 0 + +pp_data->cap[185]->UsagePage = 0xFF01 +pp_data->cap[185]->ReportID = 0x81 +pp_data->cap[185]->BitPosition = 0 +pp_data->cap[185]->BitSize = 8 +pp_data->cap[185]->ReportCount = 1 +pp_data->cap[185]->BytePosition = 0x0024 +pp_data->cap[185]->BitCount = 8 +pp_data->cap[185]->BitField = 0x02 +pp_data->cap[185]->NextBytePosition = 0x0025 +pp_data->cap[185]->LinkCollection = 0x0004 +pp_data->cap[185]->LinkUsagePage = 0xFF01 +pp_data->cap[185]->LinkUsage = 0x0080 +pp_data->cap[185]->IsMultipleItemsForArray = 0 +pp_data->cap[185]->IsButtonCap = 0 +pp_data->cap[185]->IsPadding = 0 +pp_data->cap[185]->IsAbsolute = 1 +pp_data->cap[185]->IsRange = 0 +pp_data->cap[185]->IsAlias = 0 +pp_data->cap[185]->IsStringRange = 0 +pp_data->cap[185]->IsDesignatorRange = 0 +pp_data->cap[185]->Reserved1 = 0x000000 +pp_data->cap[185]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[185]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[185]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[185]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[185]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[185]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[185]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[185]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[185]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[185]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[185]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[185]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[185]->NotRange.Usage = 0x0081 +pp_data->cap[185]->NotRange.Reserved1 = 0x0081 +pp_data->cap[185]->NotRange.StringIndex = 0 +pp_data->cap[185]->NotRange.Reserved2 = 0 +pp_data->cap[185]->NotRange.DesignatorIndex = 0 +pp_data->cap[185]->NotRange.Reserved3 = 0 +pp_data->cap[185]->NotRange.DataIndex = 98 +pp_data->cap[185]->NotRange.Reserved4 = 98 +pp_data->cap[185]->NotButton.HasNull = 0 +pp_data->cap[185]->NotButton.Reserved4 = 0x000000 +pp_data->cap[185]->NotButton.LogicalMin = 0 +pp_data->cap[185]->NotButton.LogicalMax = 127 +pp_data->cap[185]->NotButton.PhysicalMin = 0 +pp_data->cap[185]->NotButton.PhysicalMax = 0 +pp_data->cap[185]->Units = 0 +pp_data->cap[185]->UnitsExp = 0 + +pp_data->cap[186]->UsagePage = 0xFF01 +pp_data->cap[186]->ReportID = 0x81 +pp_data->cap[186]->BitPosition = 0 +pp_data->cap[186]->BitSize = 8 +pp_data->cap[186]->ReportCount = 1 +pp_data->cap[186]->BytePosition = 0x0023 +pp_data->cap[186]->BitCount = 8 +pp_data->cap[186]->BitField = 0x02 +pp_data->cap[186]->NextBytePosition = 0x0024 +pp_data->cap[186]->LinkCollection = 0x0004 +pp_data->cap[186]->LinkUsagePage = 0xFF01 +pp_data->cap[186]->LinkUsage = 0x0080 +pp_data->cap[186]->IsMultipleItemsForArray = 0 +pp_data->cap[186]->IsButtonCap = 0 +pp_data->cap[186]->IsPadding = 0 +pp_data->cap[186]->IsAbsolute = 1 +pp_data->cap[186]->IsRange = 0 +pp_data->cap[186]->IsAlias = 0 +pp_data->cap[186]->IsStringRange = 0 +pp_data->cap[186]->IsDesignatorRange = 0 +pp_data->cap[186]->Reserved1 = 0x000000 +pp_data->cap[186]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[186]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[186]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[186]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[186]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[186]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[186]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[186]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[186]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[186]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[186]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[186]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[186]->NotRange.Usage = 0x0081 +pp_data->cap[186]->NotRange.Reserved1 = 0x0081 +pp_data->cap[186]->NotRange.StringIndex = 0 +pp_data->cap[186]->NotRange.Reserved2 = 0 +pp_data->cap[186]->NotRange.DesignatorIndex = 0 +pp_data->cap[186]->NotRange.Reserved3 = 0 +pp_data->cap[186]->NotRange.DataIndex = 99 +pp_data->cap[186]->NotRange.Reserved4 = 99 +pp_data->cap[186]->NotButton.HasNull = 0 +pp_data->cap[186]->NotButton.Reserved4 = 0x000000 +pp_data->cap[186]->NotButton.LogicalMin = 0 +pp_data->cap[186]->NotButton.LogicalMax = 127 +pp_data->cap[186]->NotButton.PhysicalMin = 0 +pp_data->cap[186]->NotButton.PhysicalMax = 0 +pp_data->cap[186]->Units = 0 +pp_data->cap[186]->UnitsExp = 0 + +pp_data->cap[187]->UsagePage = 0xFF01 +pp_data->cap[187]->ReportID = 0x81 +pp_data->cap[187]->BitPosition = 0 +pp_data->cap[187]->BitSize = 8 +pp_data->cap[187]->ReportCount = 1 +pp_data->cap[187]->BytePosition = 0x0022 +pp_data->cap[187]->BitCount = 8 +pp_data->cap[187]->BitField = 0x02 +pp_data->cap[187]->NextBytePosition = 0x0023 +pp_data->cap[187]->LinkCollection = 0x0004 +pp_data->cap[187]->LinkUsagePage = 0xFF01 +pp_data->cap[187]->LinkUsage = 0x0080 +pp_data->cap[187]->IsMultipleItemsForArray = 0 +pp_data->cap[187]->IsButtonCap = 0 +pp_data->cap[187]->IsPadding = 0 +pp_data->cap[187]->IsAbsolute = 1 +pp_data->cap[187]->IsRange = 0 +pp_data->cap[187]->IsAlias = 0 +pp_data->cap[187]->IsStringRange = 0 +pp_data->cap[187]->IsDesignatorRange = 0 +pp_data->cap[187]->Reserved1 = 0x000000 +pp_data->cap[187]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[187]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[187]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[187]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[187]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[187]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[187]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[187]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[187]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[187]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[187]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[187]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[187]->NotRange.Usage = 0x0081 +pp_data->cap[187]->NotRange.Reserved1 = 0x0081 +pp_data->cap[187]->NotRange.StringIndex = 0 +pp_data->cap[187]->NotRange.Reserved2 = 0 +pp_data->cap[187]->NotRange.DesignatorIndex = 0 +pp_data->cap[187]->NotRange.Reserved3 = 0 +pp_data->cap[187]->NotRange.DataIndex = 100 +pp_data->cap[187]->NotRange.Reserved4 = 100 +pp_data->cap[187]->NotButton.HasNull = 0 +pp_data->cap[187]->NotButton.Reserved4 = 0x000000 +pp_data->cap[187]->NotButton.LogicalMin = 0 +pp_data->cap[187]->NotButton.LogicalMax = 127 +pp_data->cap[187]->NotButton.PhysicalMin = 0 +pp_data->cap[187]->NotButton.PhysicalMax = 0 +pp_data->cap[187]->Units = 0 +pp_data->cap[187]->UnitsExp = 0 + +pp_data->cap[188]->UsagePage = 0xFF01 +pp_data->cap[188]->ReportID = 0x81 +pp_data->cap[188]->BitPosition = 0 +pp_data->cap[188]->BitSize = 8 +pp_data->cap[188]->ReportCount = 1 +pp_data->cap[188]->BytePosition = 0x0021 +pp_data->cap[188]->BitCount = 8 +pp_data->cap[188]->BitField = 0x02 +pp_data->cap[188]->NextBytePosition = 0x0022 +pp_data->cap[188]->LinkCollection = 0x0004 +pp_data->cap[188]->LinkUsagePage = 0xFF01 +pp_data->cap[188]->LinkUsage = 0x0080 +pp_data->cap[188]->IsMultipleItemsForArray = 0 +pp_data->cap[188]->IsButtonCap = 0 +pp_data->cap[188]->IsPadding = 0 +pp_data->cap[188]->IsAbsolute = 1 +pp_data->cap[188]->IsRange = 0 +pp_data->cap[188]->IsAlias = 0 +pp_data->cap[188]->IsStringRange = 0 +pp_data->cap[188]->IsDesignatorRange = 0 +pp_data->cap[188]->Reserved1 = 0x000000 +pp_data->cap[188]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[188]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[188]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[188]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[188]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[188]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[188]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[188]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[188]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[188]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[188]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[188]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[188]->NotRange.Usage = 0x0081 +pp_data->cap[188]->NotRange.Reserved1 = 0x0081 +pp_data->cap[188]->NotRange.StringIndex = 0 +pp_data->cap[188]->NotRange.Reserved2 = 0 +pp_data->cap[188]->NotRange.DesignatorIndex = 0 +pp_data->cap[188]->NotRange.Reserved3 = 0 +pp_data->cap[188]->NotRange.DataIndex = 101 +pp_data->cap[188]->NotRange.Reserved4 = 101 +pp_data->cap[188]->NotButton.HasNull = 0 +pp_data->cap[188]->NotButton.Reserved4 = 0x000000 +pp_data->cap[188]->NotButton.LogicalMin = 0 +pp_data->cap[188]->NotButton.LogicalMax = 127 +pp_data->cap[188]->NotButton.PhysicalMin = 0 +pp_data->cap[188]->NotButton.PhysicalMax = 0 +pp_data->cap[188]->Units = 0 +pp_data->cap[188]->UnitsExp = 0 + +pp_data->cap[189]->UsagePage = 0xFF01 +pp_data->cap[189]->ReportID = 0x81 +pp_data->cap[189]->BitPosition = 0 +pp_data->cap[189]->BitSize = 8 +pp_data->cap[189]->ReportCount = 1 +pp_data->cap[189]->BytePosition = 0x0020 +pp_data->cap[189]->BitCount = 8 +pp_data->cap[189]->BitField = 0x02 +pp_data->cap[189]->NextBytePosition = 0x0021 +pp_data->cap[189]->LinkCollection = 0x0004 +pp_data->cap[189]->LinkUsagePage = 0xFF01 +pp_data->cap[189]->LinkUsage = 0x0080 +pp_data->cap[189]->IsMultipleItemsForArray = 0 +pp_data->cap[189]->IsButtonCap = 0 +pp_data->cap[189]->IsPadding = 0 +pp_data->cap[189]->IsAbsolute = 1 +pp_data->cap[189]->IsRange = 0 +pp_data->cap[189]->IsAlias = 0 +pp_data->cap[189]->IsStringRange = 0 +pp_data->cap[189]->IsDesignatorRange = 0 +pp_data->cap[189]->Reserved1 = 0x000000 +pp_data->cap[189]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[189]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[189]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[189]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[189]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[189]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[189]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[189]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[189]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[189]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[189]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[189]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[189]->NotRange.Usage = 0x0081 +pp_data->cap[189]->NotRange.Reserved1 = 0x0081 +pp_data->cap[189]->NotRange.StringIndex = 0 +pp_data->cap[189]->NotRange.Reserved2 = 0 +pp_data->cap[189]->NotRange.DesignatorIndex = 0 +pp_data->cap[189]->NotRange.Reserved3 = 0 +pp_data->cap[189]->NotRange.DataIndex = 102 +pp_data->cap[189]->NotRange.Reserved4 = 102 +pp_data->cap[189]->NotButton.HasNull = 0 +pp_data->cap[189]->NotButton.Reserved4 = 0x000000 +pp_data->cap[189]->NotButton.LogicalMin = 0 +pp_data->cap[189]->NotButton.LogicalMax = 127 +pp_data->cap[189]->NotButton.PhysicalMin = 0 +pp_data->cap[189]->NotButton.PhysicalMax = 0 +pp_data->cap[189]->Units = 0 +pp_data->cap[189]->UnitsExp = 0 + +pp_data->cap[190]->UsagePage = 0xFF01 +pp_data->cap[190]->ReportID = 0x81 +pp_data->cap[190]->BitPosition = 0 +pp_data->cap[190]->BitSize = 8 +pp_data->cap[190]->ReportCount = 1 +pp_data->cap[190]->BytePosition = 0x001F +pp_data->cap[190]->BitCount = 8 +pp_data->cap[190]->BitField = 0x02 +pp_data->cap[190]->NextBytePosition = 0x0020 +pp_data->cap[190]->LinkCollection = 0x0004 +pp_data->cap[190]->LinkUsagePage = 0xFF01 +pp_data->cap[190]->LinkUsage = 0x0080 +pp_data->cap[190]->IsMultipleItemsForArray = 0 +pp_data->cap[190]->IsButtonCap = 0 +pp_data->cap[190]->IsPadding = 0 +pp_data->cap[190]->IsAbsolute = 1 +pp_data->cap[190]->IsRange = 0 +pp_data->cap[190]->IsAlias = 0 +pp_data->cap[190]->IsStringRange = 0 +pp_data->cap[190]->IsDesignatorRange = 0 +pp_data->cap[190]->Reserved1 = 0x000000 +pp_data->cap[190]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[190]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[190]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[190]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[190]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[190]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[190]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[190]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[190]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[190]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[190]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[190]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[190]->NotRange.Usage = 0x0081 +pp_data->cap[190]->NotRange.Reserved1 = 0x0081 +pp_data->cap[190]->NotRange.StringIndex = 0 +pp_data->cap[190]->NotRange.Reserved2 = 0 +pp_data->cap[190]->NotRange.DesignatorIndex = 0 +pp_data->cap[190]->NotRange.Reserved3 = 0 +pp_data->cap[190]->NotRange.DataIndex = 103 +pp_data->cap[190]->NotRange.Reserved4 = 103 +pp_data->cap[190]->NotButton.HasNull = 0 +pp_data->cap[190]->NotButton.Reserved4 = 0x000000 +pp_data->cap[190]->NotButton.LogicalMin = 0 +pp_data->cap[190]->NotButton.LogicalMax = 127 +pp_data->cap[190]->NotButton.PhysicalMin = 0 +pp_data->cap[190]->NotButton.PhysicalMax = 0 +pp_data->cap[190]->Units = 0 +pp_data->cap[190]->UnitsExp = 0 + +pp_data->cap[191]->UsagePage = 0xFF01 +pp_data->cap[191]->ReportID = 0x81 +pp_data->cap[191]->BitPosition = 0 +pp_data->cap[191]->BitSize = 8 +pp_data->cap[191]->ReportCount = 1 +pp_data->cap[191]->BytePosition = 0x001E +pp_data->cap[191]->BitCount = 8 +pp_data->cap[191]->BitField = 0x02 +pp_data->cap[191]->NextBytePosition = 0x001F +pp_data->cap[191]->LinkCollection = 0x0004 +pp_data->cap[191]->LinkUsagePage = 0xFF01 +pp_data->cap[191]->LinkUsage = 0x0080 +pp_data->cap[191]->IsMultipleItemsForArray = 0 +pp_data->cap[191]->IsButtonCap = 0 +pp_data->cap[191]->IsPadding = 0 +pp_data->cap[191]->IsAbsolute = 1 +pp_data->cap[191]->IsRange = 0 +pp_data->cap[191]->IsAlias = 0 +pp_data->cap[191]->IsStringRange = 0 +pp_data->cap[191]->IsDesignatorRange = 0 +pp_data->cap[191]->Reserved1 = 0x000000 +pp_data->cap[191]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[191]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[191]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[191]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[191]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[191]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[191]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[191]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[191]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[191]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[191]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[191]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[191]->NotRange.Usage = 0x0081 +pp_data->cap[191]->NotRange.Reserved1 = 0x0081 +pp_data->cap[191]->NotRange.StringIndex = 0 +pp_data->cap[191]->NotRange.Reserved2 = 0 +pp_data->cap[191]->NotRange.DesignatorIndex = 0 +pp_data->cap[191]->NotRange.Reserved3 = 0 +pp_data->cap[191]->NotRange.DataIndex = 104 +pp_data->cap[191]->NotRange.Reserved4 = 104 +pp_data->cap[191]->NotButton.HasNull = 0 +pp_data->cap[191]->NotButton.Reserved4 = 0x000000 +pp_data->cap[191]->NotButton.LogicalMin = 0 +pp_data->cap[191]->NotButton.LogicalMax = 127 +pp_data->cap[191]->NotButton.PhysicalMin = 0 +pp_data->cap[191]->NotButton.PhysicalMax = 0 +pp_data->cap[191]->Units = 0 +pp_data->cap[191]->UnitsExp = 0 + +pp_data->cap[192]->UsagePage = 0xFF01 +pp_data->cap[192]->ReportID = 0x81 +pp_data->cap[192]->BitPosition = 0 +pp_data->cap[192]->BitSize = 8 +pp_data->cap[192]->ReportCount = 1 +pp_data->cap[192]->BytePosition = 0x001D +pp_data->cap[192]->BitCount = 8 +pp_data->cap[192]->BitField = 0x02 +pp_data->cap[192]->NextBytePosition = 0x001E +pp_data->cap[192]->LinkCollection = 0x0004 +pp_data->cap[192]->LinkUsagePage = 0xFF01 +pp_data->cap[192]->LinkUsage = 0x0080 +pp_data->cap[192]->IsMultipleItemsForArray = 0 +pp_data->cap[192]->IsButtonCap = 0 +pp_data->cap[192]->IsPadding = 0 +pp_data->cap[192]->IsAbsolute = 1 +pp_data->cap[192]->IsRange = 0 +pp_data->cap[192]->IsAlias = 0 +pp_data->cap[192]->IsStringRange = 0 +pp_data->cap[192]->IsDesignatorRange = 0 +pp_data->cap[192]->Reserved1 = 0x000000 +pp_data->cap[192]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[192]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[192]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[192]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[192]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[192]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[192]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[192]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[192]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[192]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[192]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[192]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[192]->NotRange.Usage = 0x0081 +pp_data->cap[192]->NotRange.Reserved1 = 0x0081 +pp_data->cap[192]->NotRange.StringIndex = 0 +pp_data->cap[192]->NotRange.Reserved2 = 0 +pp_data->cap[192]->NotRange.DesignatorIndex = 0 +pp_data->cap[192]->NotRange.Reserved3 = 0 +pp_data->cap[192]->NotRange.DataIndex = 105 +pp_data->cap[192]->NotRange.Reserved4 = 105 +pp_data->cap[192]->NotButton.HasNull = 0 +pp_data->cap[192]->NotButton.Reserved4 = 0x000000 +pp_data->cap[192]->NotButton.LogicalMin = 0 +pp_data->cap[192]->NotButton.LogicalMax = 127 +pp_data->cap[192]->NotButton.PhysicalMin = 0 +pp_data->cap[192]->NotButton.PhysicalMax = 0 +pp_data->cap[192]->Units = 0 +pp_data->cap[192]->UnitsExp = 0 + +pp_data->cap[193]->UsagePage = 0xFF01 +pp_data->cap[193]->ReportID = 0x81 +pp_data->cap[193]->BitPosition = 0 +pp_data->cap[193]->BitSize = 8 +pp_data->cap[193]->ReportCount = 1 +pp_data->cap[193]->BytePosition = 0x001C +pp_data->cap[193]->BitCount = 8 +pp_data->cap[193]->BitField = 0x02 +pp_data->cap[193]->NextBytePosition = 0x001D +pp_data->cap[193]->LinkCollection = 0x0004 +pp_data->cap[193]->LinkUsagePage = 0xFF01 +pp_data->cap[193]->LinkUsage = 0x0080 +pp_data->cap[193]->IsMultipleItemsForArray = 0 +pp_data->cap[193]->IsButtonCap = 0 +pp_data->cap[193]->IsPadding = 0 +pp_data->cap[193]->IsAbsolute = 1 +pp_data->cap[193]->IsRange = 0 +pp_data->cap[193]->IsAlias = 0 +pp_data->cap[193]->IsStringRange = 0 +pp_data->cap[193]->IsDesignatorRange = 0 +pp_data->cap[193]->Reserved1 = 0x000000 +pp_data->cap[193]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[193]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[193]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[193]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[193]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[193]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[193]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[193]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[193]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[193]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[193]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[193]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[193]->NotRange.Usage = 0x0081 +pp_data->cap[193]->NotRange.Reserved1 = 0x0081 +pp_data->cap[193]->NotRange.StringIndex = 0 +pp_data->cap[193]->NotRange.Reserved2 = 0 +pp_data->cap[193]->NotRange.DesignatorIndex = 0 +pp_data->cap[193]->NotRange.Reserved3 = 0 +pp_data->cap[193]->NotRange.DataIndex = 106 +pp_data->cap[193]->NotRange.Reserved4 = 106 +pp_data->cap[193]->NotButton.HasNull = 0 +pp_data->cap[193]->NotButton.Reserved4 = 0x000000 +pp_data->cap[193]->NotButton.LogicalMin = 0 +pp_data->cap[193]->NotButton.LogicalMax = 127 +pp_data->cap[193]->NotButton.PhysicalMin = 0 +pp_data->cap[193]->NotButton.PhysicalMax = 0 +pp_data->cap[193]->Units = 0 +pp_data->cap[193]->UnitsExp = 0 + +pp_data->cap[194]->UsagePage = 0xFF01 +pp_data->cap[194]->ReportID = 0x81 +pp_data->cap[194]->BitPosition = 0 +pp_data->cap[194]->BitSize = 8 +pp_data->cap[194]->ReportCount = 1 +pp_data->cap[194]->BytePosition = 0x001B +pp_data->cap[194]->BitCount = 8 +pp_data->cap[194]->BitField = 0x02 +pp_data->cap[194]->NextBytePosition = 0x001C +pp_data->cap[194]->LinkCollection = 0x0004 +pp_data->cap[194]->LinkUsagePage = 0xFF01 +pp_data->cap[194]->LinkUsage = 0x0080 +pp_data->cap[194]->IsMultipleItemsForArray = 0 +pp_data->cap[194]->IsButtonCap = 0 +pp_data->cap[194]->IsPadding = 0 +pp_data->cap[194]->IsAbsolute = 1 +pp_data->cap[194]->IsRange = 0 +pp_data->cap[194]->IsAlias = 0 +pp_data->cap[194]->IsStringRange = 0 +pp_data->cap[194]->IsDesignatorRange = 0 +pp_data->cap[194]->Reserved1 = 0x000000 +pp_data->cap[194]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[194]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[194]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[194]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[194]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[194]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[194]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[194]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[194]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[194]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[194]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[194]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[194]->NotRange.Usage = 0x0081 +pp_data->cap[194]->NotRange.Reserved1 = 0x0081 +pp_data->cap[194]->NotRange.StringIndex = 0 +pp_data->cap[194]->NotRange.Reserved2 = 0 +pp_data->cap[194]->NotRange.DesignatorIndex = 0 +pp_data->cap[194]->NotRange.Reserved3 = 0 +pp_data->cap[194]->NotRange.DataIndex = 107 +pp_data->cap[194]->NotRange.Reserved4 = 107 +pp_data->cap[194]->NotButton.HasNull = 0 +pp_data->cap[194]->NotButton.Reserved4 = 0x000000 +pp_data->cap[194]->NotButton.LogicalMin = 0 +pp_data->cap[194]->NotButton.LogicalMax = 127 +pp_data->cap[194]->NotButton.PhysicalMin = 0 +pp_data->cap[194]->NotButton.PhysicalMax = 0 +pp_data->cap[194]->Units = 0 +pp_data->cap[194]->UnitsExp = 0 + +pp_data->cap[195]->UsagePage = 0xFF01 +pp_data->cap[195]->ReportID = 0x81 +pp_data->cap[195]->BitPosition = 0 +pp_data->cap[195]->BitSize = 8 +pp_data->cap[195]->ReportCount = 1 +pp_data->cap[195]->BytePosition = 0x001A +pp_data->cap[195]->BitCount = 8 +pp_data->cap[195]->BitField = 0x02 +pp_data->cap[195]->NextBytePosition = 0x001B +pp_data->cap[195]->LinkCollection = 0x0004 +pp_data->cap[195]->LinkUsagePage = 0xFF01 +pp_data->cap[195]->LinkUsage = 0x0080 +pp_data->cap[195]->IsMultipleItemsForArray = 0 +pp_data->cap[195]->IsButtonCap = 0 +pp_data->cap[195]->IsPadding = 0 +pp_data->cap[195]->IsAbsolute = 1 +pp_data->cap[195]->IsRange = 0 +pp_data->cap[195]->IsAlias = 0 +pp_data->cap[195]->IsStringRange = 0 +pp_data->cap[195]->IsDesignatorRange = 0 +pp_data->cap[195]->Reserved1 = 0x000000 +pp_data->cap[195]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[195]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[195]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[195]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[195]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[195]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[195]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[195]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[195]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[195]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[195]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[195]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[195]->NotRange.Usage = 0x0081 +pp_data->cap[195]->NotRange.Reserved1 = 0x0081 +pp_data->cap[195]->NotRange.StringIndex = 0 +pp_data->cap[195]->NotRange.Reserved2 = 0 +pp_data->cap[195]->NotRange.DesignatorIndex = 0 +pp_data->cap[195]->NotRange.Reserved3 = 0 +pp_data->cap[195]->NotRange.DataIndex = 108 +pp_data->cap[195]->NotRange.Reserved4 = 108 +pp_data->cap[195]->NotButton.HasNull = 0 +pp_data->cap[195]->NotButton.Reserved4 = 0x000000 +pp_data->cap[195]->NotButton.LogicalMin = 0 +pp_data->cap[195]->NotButton.LogicalMax = 127 +pp_data->cap[195]->NotButton.PhysicalMin = 0 +pp_data->cap[195]->NotButton.PhysicalMax = 0 +pp_data->cap[195]->Units = 0 +pp_data->cap[195]->UnitsExp = 0 + +pp_data->cap[196]->UsagePage = 0xFF01 +pp_data->cap[196]->ReportID = 0x81 +pp_data->cap[196]->BitPosition = 0 +pp_data->cap[196]->BitSize = 8 +pp_data->cap[196]->ReportCount = 1 +pp_data->cap[196]->BytePosition = 0x0019 +pp_data->cap[196]->BitCount = 8 +pp_data->cap[196]->BitField = 0x02 +pp_data->cap[196]->NextBytePosition = 0x001A +pp_data->cap[196]->LinkCollection = 0x0004 +pp_data->cap[196]->LinkUsagePage = 0xFF01 +pp_data->cap[196]->LinkUsage = 0x0080 +pp_data->cap[196]->IsMultipleItemsForArray = 0 +pp_data->cap[196]->IsButtonCap = 0 +pp_data->cap[196]->IsPadding = 0 +pp_data->cap[196]->IsAbsolute = 1 +pp_data->cap[196]->IsRange = 0 +pp_data->cap[196]->IsAlias = 0 +pp_data->cap[196]->IsStringRange = 0 +pp_data->cap[196]->IsDesignatorRange = 0 +pp_data->cap[196]->Reserved1 = 0x000000 +pp_data->cap[196]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[196]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[196]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[196]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[196]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[196]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[196]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[196]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[196]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[196]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[196]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[196]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[196]->NotRange.Usage = 0x0081 +pp_data->cap[196]->NotRange.Reserved1 = 0x0081 +pp_data->cap[196]->NotRange.StringIndex = 0 +pp_data->cap[196]->NotRange.Reserved2 = 0 +pp_data->cap[196]->NotRange.DesignatorIndex = 0 +pp_data->cap[196]->NotRange.Reserved3 = 0 +pp_data->cap[196]->NotRange.DataIndex = 109 +pp_data->cap[196]->NotRange.Reserved4 = 109 +pp_data->cap[196]->NotButton.HasNull = 0 +pp_data->cap[196]->NotButton.Reserved4 = 0x000000 +pp_data->cap[196]->NotButton.LogicalMin = 0 +pp_data->cap[196]->NotButton.LogicalMax = 127 +pp_data->cap[196]->NotButton.PhysicalMin = 0 +pp_data->cap[196]->NotButton.PhysicalMax = 0 +pp_data->cap[196]->Units = 0 +pp_data->cap[196]->UnitsExp = 0 + +pp_data->cap[197]->UsagePage = 0xFF01 +pp_data->cap[197]->ReportID = 0x81 +pp_data->cap[197]->BitPosition = 0 +pp_data->cap[197]->BitSize = 8 +pp_data->cap[197]->ReportCount = 1 +pp_data->cap[197]->BytePosition = 0x0018 +pp_data->cap[197]->BitCount = 8 +pp_data->cap[197]->BitField = 0x02 +pp_data->cap[197]->NextBytePosition = 0x0019 +pp_data->cap[197]->LinkCollection = 0x0004 +pp_data->cap[197]->LinkUsagePage = 0xFF01 +pp_data->cap[197]->LinkUsage = 0x0080 +pp_data->cap[197]->IsMultipleItemsForArray = 0 +pp_data->cap[197]->IsButtonCap = 0 +pp_data->cap[197]->IsPadding = 0 +pp_data->cap[197]->IsAbsolute = 1 +pp_data->cap[197]->IsRange = 0 +pp_data->cap[197]->IsAlias = 0 +pp_data->cap[197]->IsStringRange = 0 +pp_data->cap[197]->IsDesignatorRange = 0 +pp_data->cap[197]->Reserved1 = 0x000000 +pp_data->cap[197]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[197]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[197]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[197]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[197]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[197]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[197]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[197]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[197]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[197]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[197]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[197]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[197]->NotRange.Usage = 0x0081 +pp_data->cap[197]->NotRange.Reserved1 = 0x0081 +pp_data->cap[197]->NotRange.StringIndex = 0 +pp_data->cap[197]->NotRange.Reserved2 = 0 +pp_data->cap[197]->NotRange.DesignatorIndex = 0 +pp_data->cap[197]->NotRange.Reserved3 = 0 +pp_data->cap[197]->NotRange.DataIndex = 110 +pp_data->cap[197]->NotRange.Reserved4 = 110 +pp_data->cap[197]->NotButton.HasNull = 0 +pp_data->cap[197]->NotButton.Reserved4 = 0x000000 +pp_data->cap[197]->NotButton.LogicalMin = 0 +pp_data->cap[197]->NotButton.LogicalMax = 127 +pp_data->cap[197]->NotButton.PhysicalMin = 0 +pp_data->cap[197]->NotButton.PhysicalMax = 0 +pp_data->cap[197]->Units = 0 +pp_data->cap[197]->UnitsExp = 0 + +pp_data->cap[198]->UsagePage = 0xFF01 +pp_data->cap[198]->ReportID = 0x81 +pp_data->cap[198]->BitPosition = 0 +pp_data->cap[198]->BitSize = 8 +pp_data->cap[198]->ReportCount = 1 +pp_data->cap[198]->BytePosition = 0x0017 +pp_data->cap[198]->BitCount = 8 +pp_data->cap[198]->BitField = 0x02 +pp_data->cap[198]->NextBytePosition = 0x0018 +pp_data->cap[198]->LinkCollection = 0x0004 +pp_data->cap[198]->LinkUsagePage = 0xFF01 +pp_data->cap[198]->LinkUsage = 0x0080 +pp_data->cap[198]->IsMultipleItemsForArray = 0 +pp_data->cap[198]->IsButtonCap = 0 +pp_data->cap[198]->IsPadding = 0 +pp_data->cap[198]->IsAbsolute = 1 +pp_data->cap[198]->IsRange = 0 +pp_data->cap[198]->IsAlias = 0 +pp_data->cap[198]->IsStringRange = 0 +pp_data->cap[198]->IsDesignatorRange = 0 +pp_data->cap[198]->Reserved1 = 0x000000 +pp_data->cap[198]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[198]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[198]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[198]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[198]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[198]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[198]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[198]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[198]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[198]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[198]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[198]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[198]->NotRange.Usage = 0x0081 +pp_data->cap[198]->NotRange.Reserved1 = 0x0081 +pp_data->cap[198]->NotRange.StringIndex = 0 +pp_data->cap[198]->NotRange.Reserved2 = 0 +pp_data->cap[198]->NotRange.DesignatorIndex = 0 +pp_data->cap[198]->NotRange.Reserved3 = 0 +pp_data->cap[198]->NotRange.DataIndex = 111 +pp_data->cap[198]->NotRange.Reserved4 = 111 +pp_data->cap[198]->NotButton.HasNull = 0 +pp_data->cap[198]->NotButton.Reserved4 = 0x000000 +pp_data->cap[198]->NotButton.LogicalMin = 0 +pp_data->cap[198]->NotButton.LogicalMax = 127 +pp_data->cap[198]->NotButton.PhysicalMin = 0 +pp_data->cap[198]->NotButton.PhysicalMax = 0 +pp_data->cap[198]->Units = 0 +pp_data->cap[198]->UnitsExp = 0 + +pp_data->cap[199]->UsagePage = 0xFF01 +pp_data->cap[199]->ReportID = 0x81 +pp_data->cap[199]->BitPosition = 0 +pp_data->cap[199]->BitSize = 8 +pp_data->cap[199]->ReportCount = 1 +pp_data->cap[199]->BytePosition = 0x0016 +pp_data->cap[199]->BitCount = 8 +pp_data->cap[199]->BitField = 0x02 +pp_data->cap[199]->NextBytePosition = 0x0017 +pp_data->cap[199]->LinkCollection = 0x0004 +pp_data->cap[199]->LinkUsagePage = 0xFF01 +pp_data->cap[199]->LinkUsage = 0x0080 +pp_data->cap[199]->IsMultipleItemsForArray = 0 +pp_data->cap[199]->IsButtonCap = 0 +pp_data->cap[199]->IsPadding = 0 +pp_data->cap[199]->IsAbsolute = 1 +pp_data->cap[199]->IsRange = 0 +pp_data->cap[199]->IsAlias = 0 +pp_data->cap[199]->IsStringRange = 0 +pp_data->cap[199]->IsDesignatorRange = 0 +pp_data->cap[199]->Reserved1 = 0x000000 +pp_data->cap[199]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[199]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[199]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[199]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[199]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[199]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[199]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[199]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[199]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[199]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[199]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[199]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[199]->NotRange.Usage = 0x0081 +pp_data->cap[199]->NotRange.Reserved1 = 0x0081 +pp_data->cap[199]->NotRange.StringIndex = 0 +pp_data->cap[199]->NotRange.Reserved2 = 0 +pp_data->cap[199]->NotRange.DesignatorIndex = 0 +pp_data->cap[199]->NotRange.Reserved3 = 0 +pp_data->cap[199]->NotRange.DataIndex = 112 +pp_data->cap[199]->NotRange.Reserved4 = 112 +pp_data->cap[199]->NotButton.HasNull = 0 +pp_data->cap[199]->NotButton.Reserved4 = 0x000000 +pp_data->cap[199]->NotButton.LogicalMin = 0 +pp_data->cap[199]->NotButton.LogicalMax = 127 +pp_data->cap[199]->NotButton.PhysicalMin = 0 +pp_data->cap[199]->NotButton.PhysicalMax = 0 +pp_data->cap[199]->Units = 0 +pp_data->cap[199]->UnitsExp = 0 + +pp_data->cap[200]->UsagePage = 0xFF01 +pp_data->cap[200]->ReportID = 0x81 +pp_data->cap[200]->BitPosition = 0 +pp_data->cap[200]->BitSize = 8 +pp_data->cap[200]->ReportCount = 1 +pp_data->cap[200]->BytePosition = 0x0015 +pp_data->cap[200]->BitCount = 8 +pp_data->cap[200]->BitField = 0x02 +pp_data->cap[200]->NextBytePosition = 0x0016 +pp_data->cap[200]->LinkCollection = 0x0004 +pp_data->cap[200]->LinkUsagePage = 0xFF01 +pp_data->cap[200]->LinkUsage = 0x0080 +pp_data->cap[200]->IsMultipleItemsForArray = 0 +pp_data->cap[200]->IsButtonCap = 0 +pp_data->cap[200]->IsPadding = 0 +pp_data->cap[200]->IsAbsolute = 1 +pp_data->cap[200]->IsRange = 0 +pp_data->cap[200]->IsAlias = 0 +pp_data->cap[200]->IsStringRange = 0 +pp_data->cap[200]->IsDesignatorRange = 0 +pp_data->cap[200]->Reserved1 = 0x000000 +pp_data->cap[200]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[200]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[200]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[200]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[200]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[200]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[200]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[200]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[200]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[200]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[200]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[200]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[200]->NotRange.Usage = 0x0081 +pp_data->cap[200]->NotRange.Reserved1 = 0x0081 +pp_data->cap[200]->NotRange.StringIndex = 0 +pp_data->cap[200]->NotRange.Reserved2 = 0 +pp_data->cap[200]->NotRange.DesignatorIndex = 0 +pp_data->cap[200]->NotRange.Reserved3 = 0 +pp_data->cap[200]->NotRange.DataIndex = 113 +pp_data->cap[200]->NotRange.Reserved4 = 113 +pp_data->cap[200]->NotButton.HasNull = 0 +pp_data->cap[200]->NotButton.Reserved4 = 0x000000 +pp_data->cap[200]->NotButton.LogicalMin = 0 +pp_data->cap[200]->NotButton.LogicalMax = 127 +pp_data->cap[200]->NotButton.PhysicalMin = 0 +pp_data->cap[200]->NotButton.PhysicalMax = 0 +pp_data->cap[200]->Units = 0 +pp_data->cap[200]->UnitsExp = 0 + +pp_data->cap[201]->UsagePage = 0xFF01 +pp_data->cap[201]->ReportID = 0x81 +pp_data->cap[201]->BitPosition = 0 +pp_data->cap[201]->BitSize = 8 +pp_data->cap[201]->ReportCount = 1 +pp_data->cap[201]->BytePosition = 0x0014 +pp_data->cap[201]->BitCount = 8 +pp_data->cap[201]->BitField = 0x02 +pp_data->cap[201]->NextBytePosition = 0x0015 +pp_data->cap[201]->LinkCollection = 0x0004 +pp_data->cap[201]->LinkUsagePage = 0xFF01 +pp_data->cap[201]->LinkUsage = 0x0080 +pp_data->cap[201]->IsMultipleItemsForArray = 0 +pp_data->cap[201]->IsButtonCap = 0 +pp_data->cap[201]->IsPadding = 0 +pp_data->cap[201]->IsAbsolute = 1 +pp_data->cap[201]->IsRange = 0 +pp_data->cap[201]->IsAlias = 0 +pp_data->cap[201]->IsStringRange = 0 +pp_data->cap[201]->IsDesignatorRange = 0 +pp_data->cap[201]->Reserved1 = 0x000000 +pp_data->cap[201]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[201]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[201]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[201]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[201]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[201]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[201]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[201]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[201]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[201]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[201]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[201]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[201]->NotRange.Usage = 0x0081 +pp_data->cap[201]->NotRange.Reserved1 = 0x0081 +pp_data->cap[201]->NotRange.StringIndex = 0 +pp_data->cap[201]->NotRange.Reserved2 = 0 +pp_data->cap[201]->NotRange.DesignatorIndex = 0 +pp_data->cap[201]->NotRange.Reserved3 = 0 +pp_data->cap[201]->NotRange.DataIndex = 114 +pp_data->cap[201]->NotRange.Reserved4 = 114 +pp_data->cap[201]->NotButton.HasNull = 0 +pp_data->cap[201]->NotButton.Reserved4 = 0x000000 +pp_data->cap[201]->NotButton.LogicalMin = 0 +pp_data->cap[201]->NotButton.LogicalMax = 127 +pp_data->cap[201]->NotButton.PhysicalMin = 0 +pp_data->cap[201]->NotButton.PhysicalMax = 0 +pp_data->cap[201]->Units = 0 +pp_data->cap[201]->UnitsExp = 0 + +pp_data->cap[202]->UsagePage = 0xFF01 +pp_data->cap[202]->ReportID = 0x81 +pp_data->cap[202]->BitPosition = 0 +pp_data->cap[202]->BitSize = 8 +pp_data->cap[202]->ReportCount = 1 +pp_data->cap[202]->BytePosition = 0x0013 +pp_data->cap[202]->BitCount = 8 +pp_data->cap[202]->BitField = 0x02 +pp_data->cap[202]->NextBytePosition = 0x0014 +pp_data->cap[202]->LinkCollection = 0x0004 +pp_data->cap[202]->LinkUsagePage = 0xFF01 +pp_data->cap[202]->LinkUsage = 0x0080 +pp_data->cap[202]->IsMultipleItemsForArray = 0 +pp_data->cap[202]->IsButtonCap = 0 +pp_data->cap[202]->IsPadding = 0 +pp_data->cap[202]->IsAbsolute = 1 +pp_data->cap[202]->IsRange = 0 +pp_data->cap[202]->IsAlias = 0 +pp_data->cap[202]->IsStringRange = 0 +pp_data->cap[202]->IsDesignatorRange = 0 +pp_data->cap[202]->Reserved1 = 0x000000 +pp_data->cap[202]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[202]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[202]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[202]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[202]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[202]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[202]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[202]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[202]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[202]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[202]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[202]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[202]->NotRange.Usage = 0x0081 +pp_data->cap[202]->NotRange.Reserved1 = 0x0081 +pp_data->cap[202]->NotRange.StringIndex = 0 +pp_data->cap[202]->NotRange.Reserved2 = 0 +pp_data->cap[202]->NotRange.DesignatorIndex = 0 +pp_data->cap[202]->NotRange.Reserved3 = 0 +pp_data->cap[202]->NotRange.DataIndex = 115 +pp_data->cap[202]->NotRange.Reserved4 = 115 +pp_data->cap[202]->NotButton.HasNull = 0 +pp_data->cap[202]->NotButton.Reserved4 = 0x000000 +pp_data->cap[202]->NotButton.LogicalMin = 0 +pp_data->cap[202]->NotButton.LogicalMax = 127 +pp_data->cap[202]->NotButton.PhysicalMin = 0 +pp_data->cap[202]->NotButton.PhysicalMax = 0 +pp_data->cap[202]->Units = 0 +pp_data->cap[202]->UnitsExp = 0 + +pp_data->cap[203]->UsagePage = 0xFF01 +pp_data->cap[203]->ReportID = 0x81 +pp_data->cap[203]->BitPosition = 0 +pp_data->cap[203]->BitSize = 8 +pp_data->cap[203]->ReportCount = 1 +pp_data->cap[203]->BytePosition = 0x0012 +pp_data->cap[203]->BitCount = 8 +pp_data->cap[203]->BitField = 0x02 +pp_data->cap[203]->NextBytePosition = 0x0013 +pp_data->cap[203]->LinkCollection = 0x0004 +pp_data->cap[203]->LinkUsagePage = 0xFF01 +pp_data->cap[203]->LinkUsage = 0x0080 +pp_data->cap[203]->IsMultipleItemsForArray = 0 +pp_data->cap[203]->IsButtonCap = 0 +pp_data->cap[203]->IsPadding = 0 +pp_data->cap[203]->IsAbsolute = 1 +pp_data->cap[203]->IsRange = 0 +pp_data->cap[203]->IsAlias = 0 +pp_data->cap[203]->IsStringRange = 0 +pp_data->cap[203]->IsDesignatorRange = 0 +pp_data->cap[203]->Reserved1 = 0x000000 +pp_data->cap[203]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[203]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[203]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[203]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[203]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[203]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[203]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[203]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[203]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[203]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[203]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[203]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[203]->NotRange.Usage = 0x0081 +pp_data->cap[203]->NotRange.Reserved1 = 0x0081 +pp_data->cap[203]->NotRange.StringIndex = 0 +pp_data->cap[203]->NotRange.Reserved2 = 0 +pp_data->cap[203]->NotRange.DesignatorIndex = 0 +pp_data->cap[203]->NotRange.Reserved3 = 0 +pp_data->cap[203]->NotRange.DataIndex = 116 +pp_data->cap[203]->NotRange.Reserved4 = 116 +pp_data->cap[203]->NotButton.HasNull = 0 +pp_data->cap[203]->NotButton.Reserved4 = 0x000000 +pp_data->cap[203]->NotButton.LogicalMin = 0 +pp_data->cap[203]->NotButton.LogicalMax = 127 +pp_data->cap[203]->NotButton.PhysicalMin = 0 +pp_data->cap[203]->NotButton.PhysicalMax = 0 +pp_data->cap[203]->Units = 0 +pp_data->cap[203]->UnitsExp = 0 + +pp_data->cap[204]->UsagePage = 0xFF01 +pp_data->cap[204]->ReportID = 0x81 +pp_data->cap[204]->BitPosition = 0 +pp_data->cap[204]->BitSize = 8 +pp_data->cap[204]->ReportCount = 1 +pp_data->cap[204]->BytePosition = 0x0011 +pp_data->cap[204]->BitCount = 8 +pp_data->cap[204]->BitField = 0x02 +pp_data->cap[204]->NextBytePosition = 0x0012 +pp_data->cap[204]->LinkCollection = 0x0004 +pp_data->cap[204]->LinkUsagePage = 0xFF01 +pp_data->cap[204]->LinkUsage = 0x0080 +pp_data->cap[204]->IsMultipleItemsForArray = 0 +pp_data->cap[204]->IsButtonCap = 0 +pp_data->cap[204]->IsPadding = 0 +pp_data->cap[204]->IsAbsolute = 1 +pp_data->cap[204]->IsRange = 0 +pp_data->cap[204]->IsAlias = 0 +pp_data->cap[204]->IsStringRange = 0 +pp_data->cap[204]->IsDesignatorRange = 0 +pp_data->cap[204]->Reserved1 = 0x000000 +pp_data->cap[204]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[204]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[204]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[204]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[204]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[204]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[204]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[204]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[204]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[204]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[204]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[204]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[204]->NotRange.Usage = 0x0081 +pp_data->cap[204]->NotRange.Reserved1 = 0x0081 +pp_data->cap[204]->NotRange.StringIndex = 0 +pp_data->cap[204]->NotRange.Reserved2 = 0 +pp_data->cap[204]->NotRange.DesignatorIndex = 0 +pp_data->cap[204]->NotRange.Reserved3 = 0 +pp_data->cap[204]->NotRange.DataIndex = 117 +pp_data->cap[204]->NotRange.Reserved4 = 117 +pp_data->cap[204]->NotButton.HasNull = 0 +pp_data->cap[204]->NotButton.Reserved4 = 0x000000 +pp_data->cap[204]->NotButton.LogicalMin = 0 +pp_data->cap[204]->NotButton.LogicalMax = 127 +pp_data->cap[204]->NotButton.PhysicalMin = 0 +pp_data->cap[204]->NotButton.PhysicalMax = 0 +pp_data->cap[204]->Units = 0 +pp_data->cap[204]->UnitsExp = 0 + +pp_data->cap[205]->UsagePage = 0xFF01 +pp_data->cap[205]->ReportID = 0x81 +pp_data->cap[205]->BitPosition = 0 +pp_data->cap[205]->BitSize = 8 +pp_data->cap[205]->ReportCount = 1 +pp_data->cap[205]->BytePosition = 0x0010 +pp_data->cap[205]->BitCount = 8 +pp_data->cap[205]->BitField = 0x02 +pp_data->cap[205]->NextBytePosition = 0x0011 +pp_data->cap[205]->LinkCollection = 0x0004 +pp_data->cap[205]->LinkUsagePage = 0xFF01 +pp_data->cap[205]->LinkUsage = 0x0080 +pp_data->cap[205]->IsMultipleItemsForArray = 0 +pp_data->cap[205]->IsButtonCap = 0 +pp_data->cap[205]->IsPadding = 0 +pp_data->cap[205]->IsAbsolute = 1 +pp_data->cap[205]->IsRange = 0 +pp_data->cap[205]->IsAlias = 0 +pp_data->cap[205]->IsStringRange = 0 +pp_data->cap[205]->IsDesignatorRange = 0 +pp_data->cap[205]->Reserved1 = 0x000000 +pp_data->cap[205]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[205]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[205]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[205]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[205]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[205]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[205]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[205]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[205]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[205]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[205]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[205]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[205]->NotRange.Usage = 0x0081 +pp_data->cap[205]->NotRange.Reserved1 = 0x0081 +pp_data->cap[205]->NotRange.StringIndex = 0 +pp_data->cap[205]->NotRange.Reserved2 = 0 +pp_data->cap[205]->NotRange.DesignatorIndex = 0 +pp_data->cap[205]->NotRange.Reserved3 = 0 +pp_data->cap[205]->NotRange.DataIndex = 118 +pp_data->cap[205]->NotRange.Reserved4 = 118 +pp_data->cap[205]->NotButton.HasNull = 0 +pp_data->cap[205]->NotButton.Reserved4 = 0x000000 +pp_data->cap[205]->NotButton.LogicalMin = 0 +pp_data->cap[205]->NotButton.LogicalMax = 127 +pp_data->cap[205]->NotButton.PhysicalMin = 0 +pp_data->cap[205]->NotButton.PhysicalMax = 0 +pp_data->cap[205]->Units = 0 +pp_data->cap[205]->UnitsExp = 0 + +pp_data->cap[206]->UsagePage = 0xFF01 +pp_data->cap[206]->ReportID = 0x81 +pp_data->cap[206]->BitPosition = 0 +pp_data->cap[206]->BitSize = 8 +pp_data->cap[206]->ReportCount = 1 +pp_data->cap[206]->BytePosition = 0x000F +pp_data->cap[206]->BitCount = 8 +pp_data->cap[206]->BitField = 0x02 +pp_data->cap[206]->NextBytePosition = 0x0010 +pp_data->cap[206]->LinkCollection = 0x0004 +pp_data->cap[206]->LinkUsagePage = 0xFF01 +pp_data->cap[206]->LinkUsage = 0x0080 +pp_data->cap[206]->IsMultipleItemsForArray = 0 +pp_data->cap[206]->IsButtonCap = 0 +pp_data->cap[206]->IsPadding = 0 +pp_data->cap[206]->IsAbsolute = 1 +pp_data->cap[206]->IsRange = 0 +pp_data->cap[206]->IsAlias = 0 +pp_data->cap[206]->IsStringRange = 0 +pp_data->cap[206]->IsDesignatorRange = 0 +pp_data->cap[206]->Reserved1 = 0x000000 +pp_data->cap[206]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[206]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[206]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[206]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[206]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[206]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[206]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[206]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[206]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[206]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[206]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[206]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[206]->NotRange.Usage = 0x0081 +pp_data->cap[206]->NotRange.Reserved1 = 0x0081 +pp_data->cap[206]->NotRange.StringIndex = 0 +pp_data->cap[206]->NotRange.Reserved2 = 0 +pp_data->cap[206]->NotRange.DesignatorIndex = 0 +pp_data->cap[206]->NotRange.Reserved3 = 0 +pp_data->cap[206]->NotRange.DataIndex = 119 +pp_data->cap[206]->NotRange.Reserved4 = 119 +pp_data->cap[206]->NotButton.HasNull = 0 +pp_data->cap[206]->NotButton.Reserved4 = 0x000000 +pp_data->cap[206]->NotButton.LogicalMin = 0 +pp_data->cap[206]->NotButton.LogicalMax = 127 +pp_data->cap[206]->NotButton.PhysicalMin = 0 +pp_data->cap[206]->NotButton.PhysicalMax = 0 +pp_data->cap[206]->Units = 0 +pp_data->cap[206]->UnitsExp = 0 + +pp_data->cap[207]->UsagePage = 0xFF01 +pp_data->cap[207]->ReportID = 0x81 +pp_data->cap[207]->BitPosition = 0 +pp_data->cap[207]->BitSize = 8 +pp_data->cap[207]->ReportCount = 1 +pp_data->cap[207]->BytePosition = 0x000E +pp_data->cap[207]->BitCount = 8 +pp_data->cap[207]->BitField = 0x02 +pp_data->cap[207]->NextBytePosition = 0x000F +pp_data->cap[207]->LinkCollection = 0x0004 +pp_data->cap[207]->LinkUsagePage = 0xFF01 +pp_data->cap[207]->LinkUsage = 0x0080 +pp_data->cap[207]->IsMultipleItemsForArray = 0 +pp_data->cap[207]->IsButtonCap = 0 +pp_data->cap[207]->IsPadding = 0 +pp_data->cap[207]->IsAbsolute = 1 +pp_data->cap[207]->IsRange = 0 +pp_data->cap[207]->IsAlias = 0 +pp_data->cap[207]->IsStringRange = 0 +pp_data->cap[207]->IsDesignatorRange = 0 +pp_data->cap[207]->Reserved1 = 0x000000 +pp_data->cap[207]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[207]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[207]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[207]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[207]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[207]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[207]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[207]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[207]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[207]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[207]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[207]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[207]->NotRange.Usage = 0x0081 +pp_data->cap[207]->NotRange.Reserved1 = 0x0081 +pp_data->cap[207]->NotRange.StringIndex = 0 +pp_data->cap[207]->NotRange.Reserved2 = 0 +pp_data->cap[207]->NotRange.DesignatorIndex = 0 +pp_data->cap[207]->NotRange.Reserved3 = 0 +pp_data->cap[207]->NotRange.DataIndex = 120 +pp_data->cap[207]->NotRange.Reserved4 = 120 +pp_data->cap[207]->NotButton.HasNull = 0 +pp_data->cap[207]->NotButton.Reserved4 = 0x000000 +pp_data->cap[207]->NotButton.LogicalMin = 0 +pp_data->cap[207]->NotButton.LogicalMax = 127 +pp_data->cap[207]->NotButton.PhysicalMin = 0 +pp_data->cap[207]->NotButton.PhysicalMax = 0 +pp_data->cap[207]->Units = 0 +pp_data->cap[207]->UnitsExp = 0 + +pp_data->cap[208]->UsagePage = 0xFF01 +pp_data->cap[208]->ReportID = 0x81 +pp_data->cap[208]->BitPosition = 0 +pp_data->cap[208]->BitSize = 8 +pp_data->cap[208]->ReportCount = 1 +pp_data->cap[208]->BytePosition = 0x000D +pp_data->cap[208]->BitCount = 8 +pp_data->cap[208]->BitField = 0x02 +pp_data->cap[208]->NextBytePosition = 0x000E +pp_data->cap[208]->LinkCollection = 0x0004 +pp_data->cap[208]->LinkUsagePage = 0xFF01 +pp_data->cap[208]->LinkUsage = 0x0080 +pp_data->cap[208]->IsMultipleItemsForArray = 0 +pp_data->cap[208]->IsButtonCap = 0 +pp_data->cap[208]->IsPadding = 0 +pp_data->cap[208]->IsAbsolute = 1 +pp_data->cap[208]->IsRange = 0 +pp_data->cap[208]->IsAlias = 0 +pp_data->cap[208]->IsStringRange = 0 +pp_data->cap[208]->IsDesignatorRange = 0 +pp_data->cap[208]->Reserved1 = 0x000000 +pp_data->cap[208]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[208]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[208]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[208]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[208]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[208]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[208]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[208]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[208]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[208]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[208]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[208]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[208]->NotRange.Usage = 0x0081 +pp_data->cap[208]->NotRange.Reserved1 = 0x0081 +pp_data->cap[208]->NotRange.StringIndex = 0 +pp_data->cap[208]->NotRange.Reserved2 = 0 +pp_data->cap[208]->NotRange.DesignatorIndex = 0 +pp_data->cap[208]->NotRange.Reserved3 = 0 +pp_data->cap[208]->NotRange.DataIndex = 121 +pp_data->cap[208]->NotRange.Reserved4 = 121 +pp_data->cap[208]->NotButton.HasNull = 0 +pp_data->cap[208]->NotButton.Reserved4 = 0x000000 +pp_data->cap[208]->NotButton.LogicalMin = 0 +pp_data->cap[208]->NotButton.LogicalMax = 127 +pp_data->cap[208]->NotButton.PhysicalMin = 0 +pp_data->cap[208]->NotButton.PhysicalMax = 0 +pp_data->cap[208]->Units = 0 +pp_data->cap[208]->UnitsExp = 0 + +pp_data->cap[209]->UsagePage = 0xFF01 +pp_data->cap[209]->ReportID = 0x81 +pp_data->cap[209]->BitPosition = 0 +pp_data->cap[209]->BitSize = 8 +pp_data->cap[209]->ReportCount = 1 +pp_data->cap[209]->BytePosition = 0x000C +pp_data->cap[209]->BitCount = 8 +pp_data->cap[209]->BitField = 0x02 +pp_data->cap[209]->NextBytePosition = 0x000D +pp_data->cap[209]->LinkCollection = 0x0004 +pp_data->cap[209]->LinkUsagePage = 0xFF01 +pp_data->cap[209]->LinkUsage = 0x0080 +pp_data->cap[209]->IsMultipleItemsForArray = 0 +pp_data->cap[209]->IsButtonCap = 0 +pp_data->cap[209]->IsPadding = 0 +pp_data->cap[209]->IsAbsolute = 1 +pp_data->cap[209]->IsRange = 0 +pp_data->cap[209]->IsAlias = 0 +pp_data->cap[209]->IsStringRange = 0 +pp_data->cap[209]->IsDesignatorRange = 0 +pp_data->cap[209]->Reserved1 = 0x000000 +pp_data->cap[209]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[209]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[209]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[209]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[209]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[209]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[209]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[209]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[209]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[209]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[209]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[209]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[209]->NotRange.Usage = 0x0081 +pp_data->cap[209]->NotRange.Reserved1 = 0x0081 +pp_data->cap[209]->NotRange.StringIndex = 0 +pp_data->cap[209]->NotRange.Reserved2 = 0 +pp_data->cap[209]->NotRange.DesignatorIndex = 0 +pp_data->cap[209]->NotRange.Reserved3 = 0 +pp_data->cap[209]->NotRange.DataIndex = 122 +pp_data->cap[209]->NotRange.Reserved4 = 122 +pp_data->cap[209]->NotButton.HasNull = 0 +pp_data->cap[209]->NotButton.Reserved4 = 0x000000 +pp_data->cap[209]->NotButton.LogicalMin = 0 +pp_data->cap[209]->NotButton.LogicalMax = 127 +pp_data->cap[209]->NotButton.PhysicalMin = 0 +pp_data->cap[209]->NotButton.PhysicalMax = 0 +pp_data->cap[209]->Units = 0 +pp_data->cap[209]->UnitsExp = 0 + +pp_data->cap[210]->UsagePage = 0xFF01 +pp_data->cap[210]->ReportID = 0x81 +pp_data->cap[210]->BitPosition = 0 +pp_data->cap[210]->BitSize = 8 +pp_data->cap[210]->ReportCount = 1 +pp_data->cap[210]->BytePosition = 0x000B +pp_data->cap[210]->BitCount = 8 +pp_data->cap[210]->BitField = 0x02 +pp_data->cap[210]->NextBytePosition = 0x000C +pp_data->cap[210]->LinkCollection = 0x0004 +pp_data->cap[210]->LinkUsagePage = 0xFF01 +pp_data->cap[210]->LinkUsage = 0x0080 +pp_data->cap[210]->IsMultipleItemsForArray = 0 +pp_data->cap[210]->IsButtonCap = 0 +pp_data->cap[210]->IsPadding = 0 +pp_data->cap[210]->IsAbsolute = 1 +pp_data->cap[210]->IsRange = 0 +pp_data->cap[210]->IsAlias = 0 +pp_data->cap[210]->IsStringRange = 0 +pp_data->cap[210]->IsDesignatorRange = 0 +pp_data->cap[210]->Reserved1 = 0x000000 +pp_data->cap[210]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[210]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[210]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[210]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[210]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[210]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[210]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[210]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[210]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[210]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[210]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[210]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[210]->NotRange.Usage = 0x0081 +pp_data->cap[210]->NotRange.Reserved1 = 0x0081 +pp_data->cap[210]->NotRange.StringIndex = 0 +pp_data->cap[210]->NotRange.Reserved2 = 0 +pp_data->cap[210]->NotRange.DesignatorIndex = 0 +pp_data->cap[210]->NotRange.Reserved3 = 0 +pp_data->cap[210]->NotRange.DataIndex = 123 +pp_data->cap[210]->NotRange.Reserved4 = 123 +pp_data->cap[210]->NotButton.HasNull = 0 +pp_data->cap[210]->NotButton.Reserved4 = 0x000000 +pp_data->cap[210]->NotButton.LogicalMin = 0 +pp_data->cap[210]->NotButton.LogicalMax = 127 +pp_data->cap[210]->NotButton.PhysicalMin = 0 +pp_data->cap[210]->NotButton.PhysicalMax = 0 +pp_data->cap[210]->Units = 0 +pp_data->cap[210]->UnitsExp = 0 + +pp_data->cap[211]->UsagePage = 0xFF01 +pp_data->cap[211]->ReportID = 0x81 +pp_data->cap[211]->BitPosition = 0 +pp_data->cap[211]->BitSize = 8 +pp_data->cap[211]->ReportCount = 1 +pp_data->cap[211]->BytePosition = 0x000A +pp_data->cap[211]->BitCount = 8 +pp_data->cap[211]->BitField = 0x02 +pp_data->cap[211]->NextBytePosition = 0x000B +pp_data->cap[211]->LinkCollection = 0x0004 +pp_data->cap[211]->LinkUsagePage = 0xFF01 +pp_data->cap[211]->LinkUsage = 0x0080 +pp_data->cap[211]->IsMultipleItemsForArray = 0 +pp_data->cap[211]->IsButtonCap = 0 +pp_data->cap[211]->IsPadding = 0 +pp_data->cap[211]->IsAbsolute = 1 +pp_data->cap[211]->IsRange = 0 +pp_data->cap[211]->IsAlias = 0 +pp_data->cap[211]->IsStringRange = 0 +pp_data->cap[211]->IsDesignatorRange = 0 +pp_data->cap[211]->Reserved1 = 0x000000 +pp_data->cap[211]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[211]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[211]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[211]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[211]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[211]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[211]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[211]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[211]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[211]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[211]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[211]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[211]->NotRange.Usage = 0x0081 +pp_data->cap[211]->NotRange.Reserved1 = 0x0081 +pp_data->cap[211]->NotRange.StringIndex = 0 +pp_data->cap[211]->NotRange.Reserved2 = 0 +pp_data->cap[211]->NotRange.DesignatorIndex = 0 +pp_data->cap[211]->NotRange.Reserved3 = 0 +pp_data->cap[211]->NotRange.DataIndex = 124 +pp_data->cap[211]->NotRange.Reserved4 = 124 +pp_data->cap[211]->NotButton.HasNull = 0 +pp_data->cap[211]->NotButton.Reserved4 = 0x000000 +pp_data->cap[211]->NotButton.LogicalMin = 0 +pp_data->cap[211]->NotButton.LogicalMax = 127 +pp_data->cap[211]->NotButton.PhysicalMin = 0 +pp_data->cap[211]->NotButton.PhysicalMax = 0 +pp_data->cap[211]->Units = 0 +pp_data->cap[211]->UnitsExp = 0 + +pp_data->cap[212]->UsagePage = 0xFF01 +pp_data->cap[212]->ReportID = 0x81 +pp_data->cap[212]->BitPosition = 0 +pp_data->cap[212]->BitSize = 8 +pp_data->cap[212]->ReportCount = 1 +pp_data->cap[212]->BytePosition = 0x0009 +pp_data->cap[212]->BitCount = 8 +pp_data->cap[212]->BitField = 0x02 +pp_data->cap[212]->NextBytePosition = 0x000A +pp_data->cap[212]->LinkCollection = 0x0004 +pp_data->cap[212]->LinkUsagePage = 0xFF01 +pp_data->cap[212]->LinkUsage = 0x0080 +pp_data->cap[212]->IsMultipleItemsForArray = 0 +pp_data->cap[212]->IsButtonCap = 0 +pp_data->cap[212]->IsPadding = 0 +pp_data->cap[212]->IsAbsolute = 1 +pp_data->cap[212]->IsRange = 0 +pp_data->cap[212]->IsAlias = 0 +pp_data->cap[212]->IsStringRange = 0 +pp_data->cap[212]->IsDesignatorRange = 0 +pp_data->cap[212]->Reserved1 = 0x000000 +pp_data->cap[212]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[212]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[212]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[212]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[212]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[212]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[212]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[212]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[212]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[212]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[212]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[212]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[212]->NotRange.Usage = 0x0081 +pp_data->cap[212]->NotRange.Reserved1 = 0x0081 +pp_data->cap[212]->NotRange.StringIndex = 0 +pp_data->cap[212]->NotRange.Reserved2 = 0 +pp_data->cap[212]->NotRange.DesignatorIndex = 0 +pp_data->cap[212]->NotRange.Reserved3 = 0 +pp_data->cap[212]->NotRange.DataIndex = 125 +pp_data->cap[212]->NotRange.Reserved4 = 125 +pp_data->cap[212]->NotButton.HasNull = 0 +pp_data->cap[212]->NotButton.Reserved4 = 0x000000 +pp_data->cap[212]->NotButton.LogicalMin = 0 +pp_data->cap[212]->NotButton.LogicalMax = 127 +pp_data->cap[212]->NotButton.PhysicalMin = 0 +pp_data->cap[212]->NotButton.PhysicalMax = 0 +pp_data->cap[212]->Units = 0 +pp_data->cap[212]->UnitsExp = 0 + +pp_data->cap[213]->UsagePage = 0xFF01 +pp_data->cap[213]->ReportID = 0x81 +pp_data->cap[213]->BitPosition = 0 +pp_data->cap[213]->BitSize = 8 +pp_data->cap[213]->ReportCount = 1 +pp_data->cap[213]->BytePosition = 0x0008 +pp_data->cap[213]->BitCount = 8 +pp_data->cap[213]->BitField = 0x02 +pp_data->cap[213]->NextBytePosition = 0x0009 +pp_data->cap[213]->LinkCollection = 0x0004 +pp_data->cap[213]->LinkUsagePage = 0xFF01 +pp_data->cap[213]->LinkUsage = 0x0080 +pp_data->cap[213]->IsMultipleItemsForArray = 0 +pp_data->cap[213]->IsButtonCap = 0 +pp_data->cap[213]->IsPadding = 0 +pp_data->cap[213]->IsAbsolute = 1 +pp_data->cap[213]->IsRange = 0 +pp_data->cap[213]->IsAlias = 0 +pp_data->cap[213]->IsStringRange = 0 +pp_data->cap[213]->IsDesignatorRange = 0 +pp_data->cap[213]->Reserved1 = 0x000000 +pp_data->cap[213]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[213]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[213]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[213]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[213]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[213]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[213]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[213]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[213]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[213]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[213]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[213]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[213]->NotRange.Usage = 0x0081 +pp_data->cap[213]->NotRange.Reserved1 = 0x0081 +pp_data->cap[213]->NotRange.StringIndex = 0 +pp_data->cap[213]->NotRange.Reserved2 = 0 +pp_data->cap[213]->NotRange.DesignatorIndex = 0 +pp_data->cap[213]->NotRange.Reserved3 = 0 +pp_data->cap[213]->NotRange.DataIndex = 126 +pp_data->cap[213]->NotRange.Reserved4 = 126 +pp_data->cap[213]->NotButton.HasNull = 0 +pp_data->cap[213]->NotButton.Reserved4 = 0x000000 +pp_data->cap[213]->NotButton.LogicalMin = 0 +pp_data->cap[213]->NotButton.LogicalMax = 127 +pp_data->cap[213]->NotButton.PhysicalMin = 0 +pp_data->cap[213]->NotButton.PhysicalMax = 0 +pp_data->cap[213]->Units = 0 +pp_data->cap[213]->UnitsExp = 0 + +pp_data->cap[214]->UsagePage = 0xFF01 +pp_data->cap[214]->ReportID = 0x81 +pp_data->cap[214]->BitPosition = 0 +pp_data->cap[214]->BitSize = 8 +pp_data->cap[214]->ReportCount = 1 +pp_data->cap[214]->BytePosition = 0x0007 +pp_data->cap[214]->BitCount = 8 +pp_data->cap[214]->BitField = 0x02 +pp_data->cap[214]->NextBytePosition = 0x0008 +pp_data->cap[214]->LinkCollection = 0x0004 +pp_data->cap[214]->LinkUsagePage = 0xFF01 +pp_data->cap[214]->LinkUsage = 0x0080 +pp_data->cap[214]->IsMultipleItemsForArray = 0 +pp_data->cap[214]->IsButtonCap = 0 +pp_data->cap[214]->IsPadding = 0 +pp_data->cap[214]->IsAbsolute = 1 +pp_data->cap[214]->IsRange = 0 +pp_data->cap[214]->IsAlias = 0 +pp_data->cap[214]->IsStringRange = 0 +pp_data->cap[214]->IsDesignatorRange = 0 +pp_data->cap[214]->Reserved1 = 0x000000 +pp_data->cap[214]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[214]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[214]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[214]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[214]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[214]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[214]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[214]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[214]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[214]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[214]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[214]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[214]->NotRange.Usage = 0x0081 +pp_data->cap[214]->NotRange.Reserved1 = 0x0081 +pp_data->cap[214]->NotRange.StringIndex = 0 +pp_data->cap[214]->NotRange.Reserved2 = 0 +pp_data->cap[214]->NotRange.DesignatorIndex = 0 +pp_data->cap[214]->NotRange.Reserved3 = 0 +pp_data->cap[214]->NotRange.DataIndex = 127 +pp_data->cap[214]->NotRange.Reserved4 = 127 +pp_data->cap[214]->NotButton.HasNull = 0 +pp_data->cap[214]->NotButton.Reserved4 = 0x000000 +pp_data->cap[214]->NotButton.LogicalMin = 0 +pp_data->cap[214]->NotButton.LogicalMax = 127 +pp_data->cap[214]->NotButton.PhysicalMin = 0 +pp_data->cap[214]->NotButton.PhysicalMax = 0 +pp_data->cap[214]->Units = 0 +pp_data->cap[214]->UnitsExp = 0 + +pp_data->cap[215]->UsagePage = 0xFF01 +pp_data->cap[215]->ReportID = 0x81 +pp_data->cap[215]->BitPosition = 0 +pp_data->cap[215]->BitSize = 8 +pp_data->cap[215]->ReportCount = 1 +pp_data->cap[215]->BytePosition = 0x0006 +pp_data->cap[215]->BitCount = 8 +pp_data->cap[215]->BitField = 0x02 +pp_data->cap[215]->NextBytePosition = 0x0007 +pp_data->cap[215]->LinkCollection = 0x0004 +pp_data->cap[215]->LinkUsagePage = 0xFF01 +pp_data->cap[215]->LinkUsage = 0x0080 +pp_data->cap[215]->IsMultipleItemsForArray = 0 +pp_data->cap[215]->IsButtonCap = 0 +pp_data->cap[215]->IsPadding = 0 +pp_data->cap[215]->IsAbsolute = 1 +pp_data->cap[215]->IsRange = 0 +pp_data->cap[215]->IsAlias = 0 +pp_data->cap[215]->IsStringRange = 0 +pp_data->cap[215]->IsDesignatorRange = 0 +pp_data->cap[215]->Reserved1 = 0x000000 +pp_data->cap[215]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[215]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[215]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[215]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[215]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[215]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[215]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[215]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[215]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[215]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[215]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[215]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[215]->NotRange.Usage = 0x0081 +pp_data->cap[215]->NotRange.Reserved1 = 0x0081 +pp_data->cap[215]->NotRange.StringIndex = 0 +pp_data->cap[215]->NotRange.Reserved2 = 0 +pp_data->cap[215]->NotRange.DesignatorIndex = 0 +pp_data->cap[215]->NotRange.Reserved3 = 0 +pp_data->cap[215]->NotRange.DataIndex = 128 +pp_data->cap[215]->NotRange.Reserved4 = 128 +pp_data->cap[215]->NotButton.HasNull = 0 +pp_data->cap[215]->NotButton.Reserved4 = 0x000000 +pp_data->cap[215]->NotButton.LogicalMin = 0 +pp_data->cap[215]->NotButton.LogicalMax = 127 +pp_data->cap[215]->NotButton.PhysicalMin = 0 +pp_data->cap[215]->NotButton.PhysicalMax = 0 +pp_data->cap[215]->Units = 0 +pp_data->cap[215]->UnitsExp = 0 + +pp_data->cap[216]->UsagePage = 0xFF01 +pp_data->cap[216]->ReportID = 0x81 +pp_data->cap[216]->BitPosition = 0 +pp_data->cap[216]->BitSize = 8 +pp_data->cap[216]->ReportCount = 1 +pp_data->cap[216]->BytePosition = 0x0005 +pp_data->cap[216]->BitCount = 8 +pp_data->cap[216]->BitField = 0x02 +pp_data->cap[216]->NextBytePosition = 0x0006 +pp_data->cap[216]->LinkCollection = 0x0004 +pp_data->cap[216]->LinkUsagePage = 0xFF01 +pp_data->cap[216]->LinkUsage = 0x0080 +pp_data->cap[216]->IsMultipleItemsForArray = 0 +pp_data->cap[216]->IsButtonCap = 0 +pp_data->cap[216]->IsPadding = 0 +pp_data->cap[216]->IsAbsolute = 1 +pp_data->cap[216]->IsRange = 0 +pp_data->cap[216]->IsAlias = 0 +pp_data->cap[216]->IsStringRange = 0 +pp_data->cap[216]->IsDesignatorRange = 0 +pp_data->cap[216]->Reserved1 = 0x000000 +pp_data->cap[216]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[216]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[216]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[216]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[216]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[216]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[216]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[216]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[216]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[216]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[216]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[216]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[216]->NotRange.Usage = 0x0081 +pp_data->cap[216]->NotRange.Reserved1 = 0x0081 +pp_data->cap[216]->NotRange.StringIndex = 0 +pp_data->cap[216]->NotRange.Reserved2 = 0 +pp_data->cap[216]->NotRange.DesignatorIndex = 0 +pp_data->cap[216]->NotRange.Reserved3 = 0 +pp_data->cap[216]->NotRange.DataIndex = 129 +pp_data->cap[216]->NotRange.Reserved4 = 129 +pp_data->cap[216]->NotButton.HasNull = 0 +pp_data->cap[216]->NotButton.Reserved4 = 0x000000 +pp_data->cap[216]->NotButton.LogicalMin = 0 +pp_data->cap[216]->NotButton.LogicalMax = 127 +pp_data->cap[216]->NotButton.PhysicalMin = 0 +pp_data->cap[216]->NotButton.PhysicalMax = 0 +pp_data->cap[216]->Units = 0 +pp_data->cap[216]->UnitsExp = 0 + +pp_data->cap[217]->UsagePage = 0xFF01 +pp_data->cap[217]->ReportID = 0x81 +pp_data->cap[217]->BitPosition = 0 +pp_data->cap[217]->BitSize = 8 +pp_data->cap[217]->ReportCount = 1 +pp_data->cap[217]->BytePosition = 0x0004 +pp_data->cap[217]->BitCount = 8 +pp_data->cap[217]->BitField = 0x02 +pp_data->cap[217]->NextBytePosition = 0x0005 +pp_data->cap[217]->LinkCollection = 0x0004 +pp_data->cap[217]->LinkUsagePage = 0xFF01 +pp_data->cap[217]->LinkUsage = 0x0080 +pp_data->cap[217]->IsMultipleItemsForArray = 0 +pp_data->cap[217]->IsButtonCap = 0 +pp_data->cap[217]->IsPadding = 0 +pp_data->cap[217]->IsAbsolute = 1 +pp_data->cap[217]->IsRange = 0 +pp_data->cap[217]->IsAlias = 0 +pp_data->cap[217]->IsStringRange = 0 +pp_data->cap[217]->IsDesignatorRange = 0 +pp_data->cap[217]->Reserved1 = 0x000000 +pp_data->cap[217]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[217]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[217]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[217]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[217]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[217]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[217]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[217]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[217]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[217]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[217]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[217]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[217]->NotRange.Usage = 0x0081 +pp_data->cap[217]->NotRange.Reserved1 = 0x0081 +pp_data->cap[217]->NotRange.StringIndex = 0 +pp_data->cap[217]->NotRange.Reserved2 = 0 +pp_data->cap[217]->NotRange.DesignatorIndex = 0 +pp_data->cap[217]->NotRange.Reserved3 = 0 +pp_data->cap[217]->NotRange.DataIndex = 130 +pp_data->cap[217]->NotRange.Reserved4 = 130 +pp_data->cap[217]->NotButton.HasNull = 0 +pp_data->cap[217]->NotButton.Reserved4 = 0x000000 +pp_data->cap[217]->NotButton.LogicalMin = 0 +pp_data->cap[217]->NotButton.LogicalMax = 127 +pp_data->cap[217]->NotButton.PhysicalMin = 0 +pp_data->cap[217]->NotButton.PhysicalMax = 0 +pp_data->cap[217]->Units = 0 +pp_data->cap[217]->UnitsExp = 0 + +pp_data->cap[218]->UsagePage = 0xFF01 +pp_data->cap[218]->ReportID = 0x81 +pp_data->cap[218]->BitPosition = 0 +pp_data->cap[218]->BitSize = 8 +pp_data->cap[218]->ReportCount = 1 +pp_data->cap[218]->BytePosition = 0x0003 +pp_data->cap[218]->BitCount = 8 +pp_data->cap[218]->BitField = 0x02 +pp_data->cap[218]->NextBytePosition = 0x0004 +pp_data->cap[218]->LinkCollection = 0x0004 +pp_data->cap[218]->LinkUsagePage = 0xFF01 +pp_data->cap[218]->LinkUsage = 0x0080 +pp_data->cap[218]->IsMultipleItemsForArray = 0 +pp_data->cap[218]->IsButtonCap = 0 +pp_data->cap[218]->IsPadding = 0 +pp_data->cap[218]->IsAbsolute = 1 +pp_data->cap[218]->IsRange = 0 +pp_data->cap[218]->IsAlias = 0 +pp_data->cap[218]->IsStringRange = 0 +pp_data->cap[218]->IsDesignatorRange = 0 +pp_data->cap[218]->Reserved1 = 0x000000 +pp_data->cap[218]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[218]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[218]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[218]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[218]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[218]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[218]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[218]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[218]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[218]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[218]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[218]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[218]->NotRange.Usage = 0x0081 +pp_data->cap[218]->NotRange.Reserved1 = 0x0081 +pp_data->cap[218]->NotRange.StringIndex = 0 +pp_data->cap[218]->NotRange.Reserved2 = 0 +pp_data->cap[218]->NotRange.DesignatorIndex = 0 +pp_data->cap[218]->NotRange.Reserved3 = 0 +pp_data->cap[218]->NotRange.DataIndex = 131 +pp_data->cap[218]->NotRange.Reserved4 = 131 +pp_data->cap[218]->NotButton.HasNull = 0 +pp_data->cap[218]->NotButton.Reserved4 = 0x000000 +pp_data->cap[218]->NotButton.LogicalMin = 0 +pp_data->cap[218]->NotButton.LogicalMax = 127 +pp_data->cap[218]->NotButton.PhysicalMin = 0 +pp_data->cap[218]->NotButton.PhysicalMax = 0 +pp_data->cap[218]->Units = 0 +pp_data->cap[218]->UnitsExp = 0 + +pp_data->cap[219]->UsagePage = 0xFF01 +pp_data->cap[219]->ReportID = 0x81 +pp_data->cap[219]->BitPosition = 0 +pp_data->cap[219]->BitSize = 8 +pp_data->cap[219]->ReportCount = 1 +pp_data->cap[219]->BytePosition = 0x0002 +pp_data->cap[219]->BitCount = 8 +pp_data->cap[219]->BitField = 0x02 +pp_data->cap[219]->NextBytePosition = 0x0003 +pp_data->cap[219]->LinkCollection = 0x0004 +pp_data->cap[219]->LinkUsagePage = 0xFF01 +pp_data->cap[219]->LinkUsage = 0x0080 +pp_data->cap[219]->IsMultipleItemsForArray = 0 +pp_data->cap[219]->IsButtonCap = 0 +pp_data->cap[219]->IsPadding = 0 +pp_data->cap[219]->IsAbsolute = 1 +pp_data->cap[219]->IsRange = 0 +pp_data->cap[219]->IsAlias = 0 +pp_data->cap[219]->IsStringRange = 0 +pp_data->cap[219]->IsDesignatorRange = 0 +pp_data->cap[219]->Reserved1 = 0x000000 +pp_data->cap[219]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[219]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[219]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[219]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[219]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[219]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[219]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[219]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[219]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[219]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[219]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[219]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[219]->NotRange.Usage = 0x0081 +pp_data->cap[219]->NotRange.Reserved1 = 0x0081 +pp_data->cap[219]->NotRange.StringIndex = 0 +pp_data->cap[219]->NotRange.Reserved2 = 0 +pp_data->cap[219]->NotRange.DesignatorIndex = 0 +pp_data->cap[219]->NotRange.Reserved3 = 0 +pp_data->cap[219]->NotRange.DataIndex = 132 +pp_data->cap[219]->NotRange.Reserved4 = 132 +pp_data->cap[219]->NotButton.HasNull = 0 +pp_data->cap[219]->NotButton.Reserved4 = 0x000000 +pp_data->cap[219]->NotButton.LogicalMin = 0 +pp_data->cap[219]->NotButton.LogicalMax = 127 +pp_data->cap[219]->NotButton.PhysicalMin = 0 +pp_data->cap[219]->NotButton.PhysicalMax = 0 +pp_data->cap[219]->Units = 0 +pp_data->cap[219]->UnitsExp = 0 + +pp_data->cap[220]->UsagePage = 0xFF01 +pp_data->cap[220]->ReportID = 0x81 +pp_data->cap[220]->BitPosition = 0 +pp_data->cap[220]->BitSize = 8 +pp_data->cap[220]->ReportCount = 1 +pp_data->cap[220]->BytePosition = 0x0001 +pp_data->cap[220]->BitCount = 8 +pp_data->cap[220]->BitField = 0x02 +pp_data->cap[220]->NextBytePosition = 0x0002 +pp_data->cap[220]->LinkCollection = 0x0004 +pp_data->cap[220]->LinkUsagePage = 0xFF01 +pp_data->cap[220]->LinkUsage = 0x0080 +pp_data->cap[220]->IsMultipleItemsForArray = 0 +pp_data->cap[220]->IsButtonCap = 0 +pp_data->cap[220]->IsPadding = 0 +pp_data->cap[220]->IsAbsolute = 1 +pp_data->cap[220]->IsRange = 0 +pp_data->cap[220]->IsAlias = 0 +pp_data->cap[220]->IsStringRange = 0 +pp_data->cap[220]->IsDesignatorRange = 0 +pp_data->cap[220]->Reserved1 = 0x000000 +pp_data->cap[220]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[220]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[220]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[220]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[220]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[220]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[220]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[220]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[220]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[220]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[220]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[220]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[220]->NotRange.Usage = 0x0081 +pp_data->cap[220]->NotRange.Reserved1 = 0x0081 +pp_data->cap[220]->NotRange.StringIndex = 0 +pp_data->cap[220]->NotRange.Reserved2 = 0 +pp_data->cap[220]->NotRange.DesignatorIndex = 0 +pp_data->cap[220]->NotRange.Reserved3 = 0 +pp_data->cap[220]->NotRange.DataIndex = 133 +pp_data->cap[220]->NotRange.Reserved4 = 133 +pp_data->cap[220]->NotButton.HasNull = 0 +pp_data->cap[220]->NotButton.Reserved4 = 0x000000 +pp_data->cap[220]->NotButton.LogicalMin = 0 +pp_data->cap[220]->NotButton.LogicalMax = 127 +pp_data->cap[220]->NotButton.PhysicalMin = 0 +pp_data->cap[220]->NotButton.PhysicalMax = 0 +pp_data->cap[220]->Units = 0 +pp_data->cap[220]->UnitsExp = 0 + +# Feature hid_pp_cap struct: +pp_data->cap[221]->UsagePage = 0xFF01 +pp_data->cap[221]->ReportID = 0xD0 +pp_data->cap[221]->BitPosition = 0 +pp_data->cap[221]->BitSize = 8 +pp_data->cap[221]->ReportCount = 32 +pp_data->cap[221]->BytePosition = 0x0001 +pp_data->cap[221]->BitCount = 256 +pp_data->cap[221]->BitField = 0x82 +pp_data->cap[221]->NextBytePosition = 0x0021 +pp_data->cap[221]->LinkCollection = 0x0005 +pp_data->cap[221]->LinkUsagePage = 0xFF01 +pp_data->cap[221]->LinkUsage = 0x00D0 +pp_data->cap[221]->IsMultipleItemsForArray = 0 +pp_data->cap[221]->IsButtonCap = 0 +pp_data->cap[221]->IsPadding = 0 +pp_data->cap[221]->IsAbsolute = 1 +pp_data->cap[221]->IsRange = 0 +pp_data->cap[221]->IsAlias = 0 +pp_data->cap[221]->IsStringRange = 0 +pp_data->cap[221]->IsDesignatorRange = 0 +pp_data->cap[221]->Reserved1 = 0x000000 +pp_data->cap[221]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[221]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[221]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[221]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[221]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[221]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[221]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[221]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[221]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[221]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[221]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[221]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[221]->NotRange.Usage = 0x00D1 +pp_data->cap[221]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[221]->NotRange.StringIndex = 0 +pp_data->cap[221]->NotRange.Reserved2 = 0 +pp_data->cap[221]->NotRange.DesignatorIndex = 0 +pp_data->cap[221]->NotRange.Reserved3 = 0 +pp_data->cap[221]->NotRange.DataIndex = 0 +pp_data->cap[221]->NotRange.Reserved4 = 0 +pp_data->cap[221]->NotButton.HasNull = 0 +pp_data->cap[221]->NotButton.Reserved4 = 0x000000 +pp_data->cap[221]->NotButton.LogicalMin = 0 +pp_data->cap[221]->NotButton.LogicalMax = 255 +pp_data->cap[221]->NotButton.PhysicalMin = 0 +pp_data->cap[221]->NotButton.PhysicalMax = 0 +pp_data->cap[221]->Units = 0 +pp_data->cap[221]->UnitsExp = 0 + +pp_data->cap[222]->UsagePage = 0xFF01 +pp_data->cap[222]->ReportID = 0xD1 +pp_data->cap[222]->BitPosition = 0 +pp_data->cap[222]->BitSize = 8 +pp_data->cap[222]->ReportCount = 32 +pp_data->cap[222]->BytePosition = 0x0001 +pp_data->cap[222]->BitCount = 256 +pp_data->cap[222]->BitField = 0x82 +pp_data->cap[222]->NextBytePosition = 0x0021 +pp_data->cap[222]->LinkCollection = 0x0006 +pp_data->cap[222]->LinkUsagePage = 0xFF01 +pp_data->cap[222]->LinkUsage = 0x00D0 +pp_data->cap[222]->IsMultipleItemsForArray = 0 +pp_data->cap[222]->IsButtonCap = 0 +pp_data->cap[222]->IsPadding = 0 +pp_data->cap[222]->IsAbsolute = 1 +pp_data->cap[222]->IsRange = 0 +pp_data->cap[222]->IsAlias = 0 +pp_data->cap[222]->IsStringRange = 0 +pp_data->cap[222]->IsDesignatorRange = 0 +pp_data->cap[222]->Reserved1 = 0x000000 +pp_data->cap[222]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[222]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[222]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[222]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[222]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[222]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[222]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[222]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[222]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[222]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[222]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[222]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[222]->NotRange.Usage = 0x00D1 +pp_data->cap[222]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[222]->NotRange.StringIndex = 0 +pp_data->cap[222]->NotRange.Reserved2 = 0 +pp_data->cap[222]->NotRange.DesignatorIndex = 0 +pp_data->cap[222]->NotRange.Reserved3 = 0 +pp_data->cap[222]->NotRange.DataIndex = 1 +pp_data->cap[222]->NotRange.Reserved4 = 1 +pp_data->cap[222]->NotButton.HasNull = 0 +pp_data->cap[222]->NotButton.Reserved4 = 0x000000 +pp_data->cap[222]->NotButton.LogicalMin = 0 +pp_data->cap[222]->NotButton.LogicalMax = 255 +pp_data->cap[222]->NotButton.PhysicalMin = 0 +pp_data->cap[222]->NotButton.PhysicalMax = 0 +pp_data->cap[222]->Units = 0 +pp_data->cap[222]->UnitsExp = 0 + +pp_data->cap[223]->UsagePage = 0xFF01 +pp_data->cap[223]->ReportID = 0xD2 +pp_data->cap[223]->BitPosition = 0 +pp_data->cap[223]->BitSize = 8 +pp_data->cap[223]->ReportCount = 32 +pp_data->cap[223]->BytePosition = 0x0001 +pp_data->cap[223]->BitCount = 256 +pp_data->cap[223]->BitField = 0x82 +pp_data->cap[223]->NextBytePosition = 0x0021 +pp_data->cap[223]->LinkCollection = 0x0007 +pp_data->cap[223]->LinkUsagePage = 0xFF01 +pp_data->cap[223]->LinkUsage = 0x00D0 +pp_data->cap[223]->IsMultipleItemsForArray = 0 +pp_data->cap[223]->IsButtonCap = 0 +pp_data->cap[223]->IsPadding = 0 +pp_data->cap[223]->IsAbsolute = 1 +pp_data->cap[223]->IsRange = 0 +pp_data->cap[223]->IsAlias = 0 +pp_data->cap[223]->IsStringRange = 0 +pp_data->cap[223]->IsDesignatorRange = 0 +pp_data->cap[223]->Reserved1 = 0x000000 +pp_data->cap[223]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[223]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[223]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[223]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[223]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[223]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[223]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[223]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[223]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[223]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[223]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[223]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[223]->NotRange.Usage = 0x00D1 +pp_data->cap[223]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[223]->NotRange.StringIndex = 0 +pp_data->cap[223]->NotRange.Reserved2 = 0 +pp_data->cap[223]->NotRange.DesignatorIndex = 0 +pp_data->cap[223]->NotRange.Reserved3 = 0 +pp_data->cap[223]->NotRange.DataIndex = 2 +pp_data->cap[223]->NotRange.Reserved4 = 2 +pp_data->cap[223]->NotButton.HasNull = 0 +pp_data->cap[223]->NotButton.Reserved4 = 0x000000 +pp_data->cap[223]->NotButton.LogicalMin = 0 +pp_data->cap[223]->NotButton.LogicalMax = 255 +pp_data->cap[223]->NotButton.PhysicalMin = 0 +pp_data->cap[223]->NotButton.PhysicalMax = 0 +pp_data->cap[223]->Units = 0 +pp_data->cap[223]->UnitsExp = 0 + +pp_data->cap[224]->UsagePage = 0xFF01 +pp_data->cap[224]->ReportID = 0xD3 +pp_data->cap[224]->BitPosition = 0 +pp_data->cap[224]->BitSize = 8 +pp_data->cap[224]->ReportCount = 32 +pp_data->cap[224]->BytePosition = 0x0001 +pp_data->cap[224]->BitCount = 256 +pp_data->cap[224]->BitField = 0x82 +pp_data->cap[224]->NextBytePosition = 0x0021 +pp_data->cap[224]->LinkCollection = 0x0008 +pp_data->cap[224]->LinkUsagePage = 0xFF01 +pp_data->cap[224]->LinkUsage = 0x00D0 +pp_data->cap[224]->IsMultipleItemsForArray = 0 +pp_data->cap[224]->IsButtonCap = 0 +pp_data->cap[224]->IsPadding = 0 +pp_data->cap[224]->IsAbsolute = 1 +pp_data->cap[224]->IsRange = 0 +pp_data->cap[224]->IsAlias = 0 +pp_data->cap[224]->IsStringRange = 0 +pp_data->cap[224]->IsDesignatorRange = 0 +pp_data->cap[224]->Reserved1 = 0x000000 +pp_data->cap[224]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[224]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[224]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[224]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[224]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[224]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[224]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[224]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[224]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[224]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[224]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[224]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[224]->NotRange.Usage = 0x00D1 +pp_data->cap[224]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[224]->NotRange.StringIndex = 0 +pp_data->cap[224]->NotRange.Reserved2 = 0 +pp_data->cap[224]->NotRange.DesignatorIndex = 0 +pp_data->cap[224]->NotRange.Reserved3 = 0 +pp_data->cap[224]->NotRange.DataIndex = 3 +pp_data->cap[224]->NotRange.Reserved4 = 3 +pp_data->cap[224]->NotButton.HasNull = 0 +pp_data->cap[224]->NotButton.Reserved4 = 0x000000 +pp_data->cap[224]->NotButton.LogicalMin = 0 +pp_data->cap[224]->NotButton.LogicalMax = 255 +pp_data->cap[224]->NotButton.PhysicalMin = 0 +pp_data->cap[224]->NotButton.PhysicalMax = 0 +pp_data->cap[224]->Units = 0 +pp_data->cap[224]->UnitsExp = 0 + +pp_data->cap[225]->UsagePage = 0xFF01 +pp_data->cap[225]->ReportID = 0xD4 +pp_data->cap[225]->BitPosition = 0 +pp_data->cap[225]->BitSize = 8 +pp_data->cap[225]->ReportCount = 32 +pp_data->cap[225]->BytePosition = 0x0001 +pp_data->cap[225]->BitCount = 256 +pp_data->cap[225]->BitField = 0x82 +pp_data->cap[225]->NextBytePosition = 0x0021 +pp_data->cap[225]->LinkCollection = 0x0009 +pp_data->cap[225]->LinkUsagePage = 0xFF01 +pp_data->cap[225]->LinkUsage = 0x00D0 +pp_data->cap[225]->IsMultipleItemsForArray = 0 +pp_data->cap[225]->IsButtonCap = 0 +pp_data->cap[225]->IsPadding = 0 +pp_data->cap[225]->IsAbsolute = 1 +pp_data->cap[225]->IsRange = 0 +pp_data->cap[225]->IsAlias = 0 +pp_data->cap[225]->IsStringRange = 0 +pp_data->cap[225]->IsDesignatorRange = 0 +pp_data->cap[225]->Reserved1 = 0x000000 +pp_data->cap[225]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[225]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[225]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[225]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[225]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[225]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[225]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[225]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[225]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[225]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[225]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[225]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[225]->NotRange.Usage = 0x00D1 +pp_data->cap[225]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[225]->NotRange.StringIndex = 0 +pp_data->cap[225]->NotRange.Reserved2 = 0 +pp_data->cap[225]->NotRange.DesignatorIndex = 0 +pp_data->cap[225]->NotRange.Reserved3 = 0 +pp_data->cap[225]->NotRange.DataIndex = 4 +pp_data->cap[225]->NotRange.Reserved4 = 4 +pp_data->cap[225]->NotButton.HasNull = 0 +pp_data->cap[225]->NotButton.Reserved4 = 0x000000 +pp_data->cap[225]->NotButton.LogicalMin = 0 +pp_data->cap[225]->NotButton.LogicalMax = 255 +pp_data->cap[225]->NotButton.PhysicalMin = 0 +pp_data->cap[225]->NotButton.PhysicalMax = 0 +pp_data->cap[225]->Units = 0 +pp_data->cap[225]->UnitsExp = 0 + +pp_data->cap[226]->UsagePage = 0xFF01 +pp_data->cap[226]->ReportID = 0xD5 +pp_data->cap[226]->BitPosition = 0 +pp_data->cap[226]->BitSize = 8 +pp_data->cap[226]->ReportCount = 32 +pp_data->cap[226]->BytePosition = 0x0001 +pp_data->cap[226]->BitCount = 256 +pp_data->cap[226]->BitField = 0x82 +pp_data->cap[226]->NextBytePosition = 0x0021 +pp_data->cap[226]->LinkCollection = 0x000A +pp_data->cap[226]->LinkUsagePage = 0xFF01 +pp_data->cap[226]->LinkUsage = 0x00D0 +pp_data->cap[226]->IsMultipleItemsForArray = 0 +pp_data->cap[226]->IsButtonCap = 0 +pp_data->cap[226]->IsPadding = 0 +pp_data->cap[226]->IsAbsolute = 1 +pp_data->cap[226]->IsRange = 0 +pp_data->cap[226]->IsAlias = 0 +pp_data->cap[226]->IsStringRange = 0 +pp_data->cap[226]->IsDesignatorRange = 0 +pp_data->cap[226]->Reserved1 = 0x000000 +pp_data->cap[226]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[226]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[226]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[226]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[226]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[226]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[226]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[226]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[226]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[226]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[226]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[226]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[226]->NotRange.Usage = 0x00D1 +pp_data->cap[226]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[226]->NotRange.StringIndex = 0 +pp_data->cap[226]->NotRange.Reserved2 = 0 +pp_data->cap[226]->NotRange.DesignatorIndex = 0 +pp_data->cap[226]->NotRange.Reserved3 = 0 +pp_data->cap[226]->NotRange.DataIndex = 5 +pp_data->cap[226]->NotRange.Reserved4 = 5 +pp_data->cap[226]->NotButton.HasNull = 0 +pp_data->cap[226]->NotButton.Reserved4 = 0x000000 +pp_data->cap[226]->NotButton.LogicalMin = 0 +pp_data->cap[226]->NotButton.LogicalMax = 255 +pp_data->cap[226]->NotButton.PhysicalMin = 0 +pp_data->cap[226]->NotButton.PhysicalMax = 0 +pp_data->cap[226]->Units = 0 +pp_data->cap[226]->UnitsExp = 0 + +pp_data->cap[227]->UsagePage = 0xFF01 +pp_data->cap[227]->ReportID = 0xD6 +pp_data->cap[227]->BitPosition = 0 +pp_data->cap[227]->BitSize = 8 +pp_data->cap[227]->ReportCount = 32 +pp_data->cap[227]->BytePosition = 0x0001 +pp_data->cap[227]->BitCount = 256 +pp_data->cap[227]->BitField = 0x82 +pp_data->cap[227]->NextBytePosition = 0x0021 +pp_data->cap[227]->LinkCollection = 0x000B +pp_data->cap[227]->LinkUsagePage = 0xFF01 +pp_data->cap[227]->LinkUsage = 0x00D0 +pp_data->cap[227]->IsMultipleItemsForArray = 0 +pp_data->cap[227]->IsButtonCap = 0 +pp_data->cap[227]->IsPadding = 0 +pp_data->cap[227]->IsAbsolute = 1 +pp_data->cap[227]->IsRange = 0 +pp_data->cap[227]->IsAlias = 0 +pp_data->cap[227]->IsStringRange = 0 +pp_data->cap[227]->IsDesignatorRange = 0 +pp_data->cap[227]->Reserved1 = 0x000000 +pp_data->cap[227]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[227]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[227]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[227]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[227]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[227]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[227]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[227]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[227]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[227]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[227]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[227]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[227]->NotRange.Usage = 0x00D1 +pp_data->cap[227]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[227]->NotRange.StringIndex = 0 +pp_data->cap[227]->NotRange.Reserved2 = 0 +pp_data->cap[227]->NotRange.DesignatorIndex = 0 +pp_data->cap[227]->NotRange.Reserved3 = 0 +pp_data->cap[227]->NotRange.DataIndex = 6 +pp_data->cap[227]->NotRange.Reserved4 = 6 +pp_data->cap[227]->NotButton.HasNull = 0 +pp_data->cap[227]->NotButton.Reserved4 = 0x000000 +pp_data->cap[227]->NotButton.LogicalMin = 0 +pp_data->cap[227]->NotButton.LogicalMax = 255 +pp_data->cap[227]->NotButton.PhysicalMin = 0 +pp_data->cap[227]->NotButton.PhysicalMax = 0 +pp_data->cap[227]->Units = 0 +pp_data->cap[227]->UnitsExp = 0 + +pp_data->cap[228]->UsagePage = 0xFF01 +pp_data->cap[228]->ReportID = 0xD8 +pp_data->cap[228]->BitPosition = 0 +pp_data->cap[228]->BitSize = 8 +pp_data->cap[228]->ReportCount = 32 +pp_data->cap[228]->BytePosition = 0x0001 +pp_data->cap[228]->BitCount = 256 +pp_data->cap[228]->BitField = 0x82 +pp_data->cap[228]->NextBytePosition = 0x0021 +pp_data->cap[228]->LinkCollection = 0x000C +pp_data->cap[228]->LinkUsagePage = 0xFF01 +pp_data->cap[228]->LinkUsage = 0x00D0 +pp_data->cap[228]->IsMultipleItemsForArray = 0 +pp_data->cap[228]->IsButtonCap = 0 +pp_data->cap[228]->IsPadding = 0 +pp_data->cap[228]->IsAbsolute = 1 +pp_data->cap[228]->IsRange = 0 +pp_data->cap[228]->IsAlias = 0 +pp_data->cap[228]->IsStringRange = 0 +pp_data->cap[228]->IsDesignatorRange = 0 +pp_data->cap[228]->Reserved1 = 0x000000 +pp_data->cap[228]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[228]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[228]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[228]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[228]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[228]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[228]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[228]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[228]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[228]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[228]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[228]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[228]->NotRange.Usage = 0x00D1 +pp_data->cap[228]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[228]->NotRange.StringIndex = 0 +pp_data->cap[228]->NotRange.Reserved2 = 0 +pp_data->cap[228]->NotRange.DesignatorIndex = 0 +pp_data->cap[228]->NotRange.Reserved3 = 0 +pp_data->cap[228]->NotRange.DataIndex = 7 +pp_data->cap[228]->NotRange.Reserved4 = 7 +pp_data->cap[228]->NotButton.HasNull = 0 +pp_data->cap[228]->NotButton.Reserved4 = 0x000000 +pp_data->cap[228]->NotButton.LogicalMin = 0 +pp_data->cap[228]->NotButton.LogicalMax = 255 +pp_data->cap[228]->NotButton.PhysicalMin = 0 +pp_data->cap[228]->NotButton.PhysicalMax = 0 +pp_data->cap[228]->Units = 0 +pp_data->cap[228]->UnitsExp = 0 + +pp_data->cap[229]->UsagePage = 0xFF01 +pp_data->cap[229]->ReportID = 0xD9 +pp_data->cap[229]->BitPosition = 0 +pp_data->cap[229]->BitSize = 8 +pp_data->cap[229]->ReportCount = 32 +pp_data->cap[229]->BytePosition = 0x0001 +pp_data->cap[229]->BitCount = 256 +pp_data->cap[229]->BitField = 0x82 +pp_data->cap[229]->NextBytePosition = 0x0021 +pp_data->cap[229]->LinkCollection = 0x000D +pp_data->cap[229]->LinkUsagePage = 0xFF01 +pp_data->cap[229]->LinkUsage = 0x00D0 +pp_data->cap[229]->IsMultipleItemsForArray = 0 +pp_data->cap[229]->IsButtonCap = 0 +pp_data->cap[229]->IsPadding = 0 +pp_data->cap[229]->IsAbsolute = 1 +pp_data->cap[229]->IsRange = 0 +pp_data->cap[229]->IsAlias = 0 +pp_data->cap[229]->IsStringRange = 0 +pp_data->cap[229]->IsDesignatorRange = 0 +pp_data->cap[229]->Reserved1 = 0x000000 +pp_data->cap[229]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[229]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[229]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[229]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[229]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[229]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[229]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[229]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[229]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[229]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[229]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[229]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[229]->NotRange.Usage = 0x00D1 +pp_data->cap[229]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[229]->NotRange.StringIndex = 0 +pp_data->cap[229]->NotRange.Reserved2 = 0 +pp_data->cap[229]->NotRange.DesignatorIndex = 0 +pp_data->cap[229]->NotRange.Reserved3 = 0 +pp_data->cap[229]->NotRange.DataIndex = 8 +pp_data->cap[229]->NotRange.Reserved4 = 8 +pp_data->cap[229]->NotButton.HasNull = 0 +pp_data->cap[229]->NotButton.Reserved4 = 0x000000 +pp_data->cap[229]->NotButton.LogicalMin = 0 +pp_data->cap[229]->NotButton.LogicalMax = 255 +pp_data->cap[229]->NotButton.PhysicalMin = 0 +pp_data->cap[229]->NotButton.PhysicalMax = 0 +pp_data->cap[229]->Units = 0 +pp_data->cap[229]->UnitsExp = 0 + +pp_data->cap[230]->UsagePage = 0xFF01 +pp_data->cap[230]->ReportID = 0xF1 +pp_data->cap[230]->BitPosition = 0 +pp_data->cap[230]->BitSize = 8 +pp_data->cap[230]->ReportCount = 2 +pp_data->cap[230]->BytePosition = 0x0001 +pp_data->cap[230]->BitCount = 16 +pp_data->cap[230]->BitField = 0x82 +pp_data->cap[230]->NextBytePosition = 0x0003 +pp_data->cap[230]->LinkCollection = 0x000E +pp_data->cap[230]->LinkUsagePage = 0xFF01 +pp_data->cap[230]->LinkUsage = 0x00D0 +pp_data->cap[230]->IsMultipleItemsForArray = 0 +pp_data->cap[230]->IsButtonCap = 0 +pp_data->cap[230]->IsPadding = 0 +pp_data->cap[230]->IsAbsolute = 1 +pp_data->cap[230]->IsRange = 0 +pp_data->cap[230]->IsAlias = 0 +pp_data->cap[230]->IsStringRange = 0 +pp_data->cap[230]->IsDesignatorRange = 0 +pp_data->cap[230]->Reserved1 = 0x000000 +pp_data->cap[230]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[230]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[230]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[230]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[230]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[230]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[230]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[230]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[230]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[230]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[230]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[230]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[230]->NotRange.Usage = 0x00D1 +pp_data->cap[230]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[230]->NotRange.StringIndex = 0 +pp_data->cap[230]->NotRange.Reserved2 = 0 +pp_data->cap[230]->NotRange.DesignatorIndex = 0 +pp_data->cap[230]->NotRange.Reserved3 = 0 +pp_data->cap[230]->NotRange.DataIndex = 9 +pp_data->cap[230]->NotRange.Reserved4 = 9 +pp_data->cap[230]->NotButton.HasNull = 0 +pp_data->cap[230]->NotButton.Reserved4 = 0x000000 +pp_data->cap[230]->NotButton.LogicalMin = 0 +pp_data->cap[230]->NotButton.LogicalMax = 255 +pp_data->cap[230]->NotButton.PhysicalMin = 0 +pp_data->cap[230]->NotButton.PhysicalMax = 0 +pp_data->cap[230]->Units = 0 +pp_data->cap[230]->UnitsExp = 0 + +pp_data->cap[231]->UsagePage = 0xFF01 +pp_data->cap[231]->ReportID = 0xF3 +pp_data->cap[231]->BitPosition = 0 +pp_data->cap[231]->BitSize = 8 +pp_data->cap[231]->ReportCount = 2 +pp_data->cap[231]->BytePosition = 0x0001 +pp_data->cap[231]->BitCount = 16 +pp_data->cap[231]->BitField = 0x82 +pp_data->cap[231]->NextBytePosition = 0x0003 +pp_data->cap[231]->LinkCollection = 0x000F +pp_data->cap[231]->LinkUsagePage = 0xFF01 +pp_data->cap[231]->LinkUsage = 0x00D0 +pp_data->cap[231]->IsMultipleItemsForArray = 0 +pp_data->cap[231]->IsButtonCap = 0 +pp_data->cap[231]->IsPadding = 0 +pp_data->cap[231]->IsAbsolute = 1 +pp_data->cap[231]->IsRange = 0 +pp_data->cap[231]->IsAlias = 0 +pp_data->cap[231]->IsStringRange = 0 +pp_data->cap[231]->IsDesignatorRange = 0 +pp_data->cap[231]->Reserved1 = 0x000000 +pp_data->cap[231]->pp_cap->UnknownTokens[0].Token = 0x00 +pp_data->cap[231]->pp_cap->UnknownTokens[0].Reserved = 0x000000 +pp_data->cap[231]->pp_cap->UnknownTokens[0].BitField = 0x00000000 +pp_data->cap[231]->pp_cap->UnknownTokens[1].Token = 0x00 +pp_data->cap[231]->pp_cap->UnknownTokens[1].Reserved = 0x000000 +pp_data->cap[231]->pp_cap->UnknownTokens[1].BitField = 0x00000000 +pp_data->cap[231]->pp_cap->UnknownTokens[2].Token = 0x00 +pp_data->cap[231]->pp_cap->UnknownTokens[2].Reserved = 0x000000 +pp_data->cap[231]->pp_cap->UnknownTokens[2].BitField = 0x00000000 +pp_data->cap[231]->pp_cap->UnknownTokens[3].Token = 0x00 +pp_data->cap[231]->pp_cap->UnknownTokens[3].Reserved = 0x000000 +pp_data->cap[231]->pp_cap->UnknownTokens[3].BitField = 0x00000000 +pp_data->cap[231]->NotRange.Usage = 0x00D1 +pp_data->cap[231]->NotRange.Reserved1 = 0x00D1 +pp_data->cap[231]->NotRange.StringIndex = 0 +pp_data->cap[231]->NotRange.Reserved2 = 0 +pp_data->cap[231]->NotRange.DesignatorIndex = 0 +pp_data->cap[231]->NotRange.Reserved3 = 0 +pp_data->cap[231]->NotRange.DataIndex = 10 +pp_data->cap[231]->NotRange.Reserved4 = 10 +pp_data->cap[231]->NotButton.HasNull = 0 +pp_data->cap[231]->NotButton.Reserved4 = 0x000000 +pp_data->cap[231]->NotButton.LogicalMin = 0 +pp_data->cap[231]->NotButton.LogicalMax = 127 +pp_data->cap[231]->NotButton.PhysicalMin = 0 +pp_data->cap[231]->NotButton.PhysicalMax = 0 +pp_data->cap[231]->Units = 0 +pp_data->cap[231]->UnitsExp = 0 + +# Link Collections: +pp_data->LinkCollectionArray[0]->LinkUsage = 0x0000 +pp_data->LinkCollectionArray[0]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[0]->Parent = 0 +pp_data->LinkCollectionArray[0]->NumberOfChildren = 15 +pp_data->LinkCollectionArray[0]->NextSibling = 0 +pp_data->LinkCollectionArray[0]->FirstChild = 15 +pp_data->LinkCollectionArray[0]->CollectionType = 1 +pp_data->LinkCollectionArray[0]->IsAlias = 0 +pp_data->LinkCollectionArray[0]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[1]->LinkUsage = 0x0001 +pp_data->LinkCollectionArray[1]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[1]->Parent = 0 +pp_data->LinkCollectionArray[1]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[1]->NextSibling = 0 +pp_data->LinkCollectionArray[1]->FirstChild = 0 +pp_data->LinkCollectionArray[1]->CollectionType = 2 +pp_data->LinkCollectionArray[1]->IsAlias = 0 +pp_data->LinkCollectionArray[1]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[2]->LinkUsage = 0x0002 +pp_data->LinkCollectionArray[2]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[2]->Parent = 0 +pp_data->LinkCollectionArray[2]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[2]->NextSibling = 1 +pp_data->LinkCollectionArray[2]->FirstChild = 0 +pp_data->LinkCollectionArray[2]->CollectionType = 2 +pp_data->LinkCollectionArray[2]->IsAlias = 0 +pp_data->LinkCollectionArray[2]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[3]->LinkUsage = 0x0080 +pp_data->LinkCollectionArray[3]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[3]->Parent = 0 +pp_data->LinkCollectionArray[3]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[3]->NextSibling = 2 +pp_data->LinkCollectionArray[3]->FirstChild = 0 +pp_data->LinkCollectionArray[3]->CollectionType = 2 +pp_data->LinkCollectionArray[3]->IsAlias = 0 +pp_data->LinkCollectionArray[3]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[4]->LinkUsage = 0x0080 +pp_data->LinkCollectionArray[4]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[4]->Parent = 0 +pp_data->LinkCollectionArray[4]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[4]->NextSibling = 3 +pp_data->LinkCollectionArray[4]->FirstChild = 0 +pp_data->LinkCollectionArray[4]->CollectionType = 2 +pp_data->LinkCollectionArray[4]->IsAlias = 0 +pp_data->LinkCollectionArray[4]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[5]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[5]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[5]->Parent = 0 +pp_data->LinkCollectionArray[5]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[5]->NextSibling = 4 +pp_data->LinkCollectionArray[5]->FirstChild = 0 +pp_data->LinkCollectionArray[5]->CollectionType = 2 +pp_data->LinkCollectionArray[5]->IsAlias = 0 +pp_data->LinkCollectionArray[5]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[6]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[6]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[6]->Parent = 0 +pp_data->LinkCollectionArray[6]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[6]->NextSibling = 5 +pp_data->LinkCollectionArray[6]->FirstChild = 0 +pp_data->LinkCollectionArray[6]->CollectionType = 2 +pp_data->LinkCollectionArray[6]->IsAlias = 0 +pp_data->LinkCollectionArray[6]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[7]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[7]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[7]->Parent = 0 +pp_data->LinkCollectionArray[7]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[7]->NextSibling = 6 +pp_data->LinkCollectionArray[7]->FirstChild = 0 +pp_data->LinkCollectionArray[7]->CollectionType = 2 +pp_data->LinkCollectionArray[7]->IsAlias = 0 +pp_data->LinkCollectionArray[7]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[8]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[8]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[8]->Parent = 0 +pp_data->LinkCollectionArray[8]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[8]->NextSibling = 7 +pp_data->LinkCollectionArray[8]->FirstChild = 0 +pp_data->LinkCollectionArray[8]->CollectionType = 2 +pp_data->LinkCollectionArray[8]->IsAlias = 0 +pp_data->LinkCollectionArray[8]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[9]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[9]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[9]->Parent = 0 +pp_data->LinkCollectionArray[9]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[9]->NextSibling = 8 +pp_data->LinkCollectionArray[9]->FirstChild = 0 +pp_data->LinkCollectionArray[9]->CollectionType = 2 +pp_data->LinkCollectionArray[9]->IsAlias = 0 +pp_data->LinkCollectionArray[9]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[10]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[10]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[10]->Parent = 0 +pp_data->LinkCollectionArray[10]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[10]->NextSibling = 9 +pp_data->LinkCollectionArray[10]->FirstChild = 0 +pp_data->LinkCollectionArray[10]->CollectionType = 2 +pp_data->LinkCollectionArray[10]->IsAlias = 0 +pp_data->LinkCollectionArray[10]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[11]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[11]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[11]->Parent = 0 +pp_data->LinkCollectionArray[11]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[11]->NextSibling = 10 +pp_data->LinkCollectionArray[11]->FirstChild = 0 +pp_data->LinkCollectionArray[11]->CollectionType = 2 +pp_data->LinkCollectionArray[11]->IsAlias = 0 +pp_data->LinkCollectionArray[11]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[12]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[12]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[12]->Parent = 0 +pp_data->LinkCollectionArray[12]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[12]->NextSibling = 11 +pp_data->LinkCollectionArray[12]->FirstChild = 0 +pp_data->LinkCollectionArray[12]->CollectionType = 2 +pp_data->LinkCollectionArray[12]->IsAlias = 0 +pp_data->LinkCollectionArray[12]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[13]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[13]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[13]->Parent = 0 +pp_data->LinkCollectionArray[13]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[13]->NextSibling = 12 +pp_data->LinkCollectionArray[13]->FirstChild = 0 +pp_data->LinkCollectionArray[13]->CollectionType = 2 +pp_data->LinkCollectionArray[13]->IsAlias = 0 +pp_data->LinkCollectionArray[13]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[14]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[14]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[14]->Parent = 0 +pp_data->LinkCollectionArray[14]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[14]->NextSibling = 13 +pp_data->LinkCollectionArray[14]->FirstChild = 0 +pp_data->LinkCollectionArray[14]->CollectionType = 2 +pp_data->LinkCollectionArray[14]->IsAlias = 0 +pp_data->LinkCollectionArray[14]->Reserved = 0x00000000 +pp_data->LinkCollectionArray[15]->LinkUsage = 0x00D0 +pp_data->LinkCollectionArray[15]->LinkUsagePage = 0xFF01 +pp_data->LinkCollectionArray[15]->Parent = 0 +pp_data->LinkCollectionArray[15]->NumberOfChildren = 0 +pp_data->LinkCollectionArray[15]->NextSibling = 14 +pp_data->LinkCollectionArray[15]->FirstChild = 0 +pp_data->LinkCollectionArray[15]->CollectionType = 2 +pp_data->LinkCollectionArray[15]->IsAlias = 0 +pp_data->LinkCollectionArray[15]->Reserved = 0x00000000 diff --git a/windows/test/data/17CC_1130_0000_FF01_expected.rpt_desc b/windows/test/data/17CC_1130_0000_FF01_expected.rpt_desc new file mode 100644 index 000000000..9bcc814aa --- /dev/null +++ b/windows/test/data/17CC_1130_0000_FF01_expected.rpt_desc @@ -0,0 +1,75 @@ +0x06, 0x01, 0xFF, 0x09, 0x00, 0xA1, 0x01, 0x09, 0x01, 0xA1, +0x02, 0x85, 0x01, 0x09, 0x03, 0x09, 0x03, 0x09, 0x03, 0x09, +0x03, 0x15, 0x00, 0x25, 0x0F, 0x75, 0x04, 0x95, 0x04, 0x81, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, +0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x02, 0x09, 0x0B, 0x09, +0x0B, 0x09, 0x0B, 0x09, 0x0B, 0x09, 0x0B, 0x09, 0x0B, 0x09, +0x0B, 0x09, 0x0B, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, +0x38, 0x81, 0x02, 0xC0, 0x09, 0x02, 0xA1, 0x02, 0x85, 0x02, +0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, +0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, +0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, +0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, +0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, 0x09, 0x04, +0x09, 0x04, 0x15, 0x00, 0x26, 0xFF, 0x0F, 0x75, 0x10, 0x95, +0x1A, 0x81, 0x02, 0xC0, 0x09, 0x80, 0xA1, 0x02, 0x85, 0x80, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, +0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x15, 0x00, +0x25, 0x7F, 0x75, 0x08, 0x95, 0x5E, 0x91, 0x02, 0xC0, 0x09, +0x80, 0xA1, 0x02, 0x85, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, 0x81, 0x09, +0x81, 0x09, 0x81, 0x09, 0x81, 0x15, 0x00, 0x25, 0x7F, 0x75, +0x08, 0x95, 0x28, 0x91, 0x02, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD0, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD1, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD2, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD3, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD4, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD5, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD6, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD8, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xD9, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x20, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xF1, 0x09, 0xD1, 0x15, 0x00, 0x26, 0xFF, 0x00, 0x75, +0x08, 0x95, 0x02, 0xB1, 0x82, 0xC0, 0x09, 0xD0, 0xA1, 0x02, +0x85, 0xF3, 0x09, 0xD1, 0x15, 0x00, 0x25, 0x7F, 0x75, 0x08, +0x95, 0x02, 0xB1, 0x82, 0xC0, 0xC0, \ No newline at end of file diff --git a/windows/test/data/17CC_1130_0000_FF01_real.rpt_desc b/windows/test/data/17CC_1130_0000_FF01_real.rpt_desc new file mode 100644 index 000000000..7f908f8fa --- /dev/null +++ b/windows/test/data/17CC_1130_0000_FF01_real.rpt_desc @@ -0,0 +1,381 @@ +Usage Page (Vendor-Defined 2) 06 01 FF +Usage (Undefined) 09 00 +Collection (Application) A1 01 + Usage (Vendor-Defined 1) 09 01 + Collection (Logical) A1 02 + Report ID (1) 85 01 + Usage (Vendor-Defined 3) 09 03 + Usage (Vendor-Defined 3) 09 03 + Usage (Vendor-Defined 3) 09 03 + Usage (Vendor-Defined 3) 09 03 + Logical Minimum (0) 15 00 + Logical Maximum (15) 25 0F + Report Size (4) 75 04 + Report Count (4) 95 04 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Usage (Vendor-Defined 2) 09 02 + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Report Size (1) 75 01 + Report Count (48) 95 30 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Usage (Vendor-Defined 11) 09 0B + Logical Minimum (0) 15 00 + Logical Maximum (1) 25 01 + Report Size (1) 75 01 + Report Count (8) 95 08 + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + End Collection C0 + Usage (Vendor-Defined 2) 09 02 + Collection (Logical) A1 02 + Report ID (2) 85 02 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Usage (Vendor-Defined 4) 09 04 + Logical Minimum (0) 15 00 + Logical Maximum (4095) 26 FF 0F + Report Size (16) 75 10 + Report Count (26) 95 1A + Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02 + End Collection C0 + Usage (Vendor-Defined 128) 09 80 + Collection (Logical) A1 02 + Report ID (128) 85 80 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Logical Minimum (0) 15 00 + Logical Maximum (127) 25 7F + Report Count (94) 95 5E + Report Size (8) 75 08 + Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02 + End Collection C0 + Usage (Vendor-Defined 128) 09 80 + Collection (Logical) A1 02 + Report ID (129) 85 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Usage (Vendor-Defined 129) 09 81 + Logical Minimum (0) 15 00 + Logical Maximum (127) 25 7F + Report Count (40) 95 28 + Report Size (8) 75 08 + Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (208) 85 D0 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (209) 85 D1 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (210) 85 D2 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (211) 85 D3 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (212) 85 D4 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (213) 85 D5 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (214) 85 D6 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (216) 85 D8 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (217) 85 D9 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (32) 95 20 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (241) 85 F1 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (255) 26 FF 00 + Report Size (8) 75 08 + Report Count (2) 95 02 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 + Usage (Vendor-Defined 208) 09 D0 + Collection (Logical) A1 02 + Report ID (243) 85 F3 + Usage (Vendor-Defined 209) 09 D1 + Logical Minimum (0) 15 00 + Logical Maximum (127) 25 7F + Report Size (8) 75 08 + Report Count (2) 95 02 + Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,Vol,Bit) B1 82 + End Collection C0 +End Collection C0 diff --git a/windows/test/hid_report_reconstructor_test.c b/windows/test/hid_report_reconstructor_test.c new file mode 100644 index 000000000..812e4c48c --- /dev/null +++ b/windows/test/hid_report_reconstructor_test.c @@ -0,0 +1,560 @@ +#include "../hidapi_descriptor_reconstruct.h" + +#include +#include +#include + +#if defined(__MINGW32__) +#pragma GCC diagnostic ignored "-Wformat" +#endif +static hidp_preparsed_data * alloc_preparsed_data_from_file(char* filename) +{ + FILE* file; + errno_t err = fopen_s(&file, filename, "r"); + + if (err != 0) { + fprintf(stderr, "ERROR: Couldn't open file '%s' for reading: %s\n", filename, strerror(err)); + return NULL; + } + + char line[256]; + + { + unsigned short vendor_id = 0; + unsigned short product_id = 0; + unsigned short usage = 0; + unsigned short usage_page = 0; + unsigned short release_number = 0; + int interface_number = -1; + BOOLEAN header_read_success = FALSE; + char manufacturer_string[128]; + manufacturer_string[0] = '\0'; + char product_string[128]; + product_string[0] = '\0'; + // char path[128]; + // path[0] = '\0'; + + while (fgets(line, sizeof(line), file) != NULL) { + if (line[0] == '\r' || line[0] == '\n') { + line[0] = '\0'; + } + if (line[0] == '\0') { + // read the 'metadata' only until the first empty line + header_read_success = TRUE; + break; + } + if (sscanf(line, "dev->vendor_id = 0x%04hX\n", &vendor_id)) continue; + if (sscanf(line, "dev->product_id = 0x%04hX\n", &product_id)) continue; + if (sscanf(line, "dev->usage_page = 0x%04hX\n", &usage_page)) continue; + if (sscanf(line, "dev->usage = 0x%04hX\n", &usage)) continue; + if (sscanf(line, "dev->manufacturer_string = \"%127[^\"\n]", manufacturer_string)) continue; + if (sscanf(line, "dev->product_string = \"%127[^\"\n]", product_string)) continue; + if (sscanf(line, "dev->release_number = 0x%04hX\n", &release_number)) continue; + if (sscanf(line, "dev->interface_number = %d\n", &interface_number)) continue; + // if (sscanf(line, "dev->path = \"%127[^\"]\n", path)) continue; + } + if (!header_read_success) { + fprintf(stderr, "ERROR: Couldn't read PP Data header (missing newline)\n"); + return NULL; + } + printf("'Virtual' Device Read: %04hx %04hx\n", vendor_id, product_id); + if (manufacturer_string[0] != '\0') { + printf(" Manufacturer: %s\n", manufacturer_string); + } + if (product_string[0] != '\0') { + printf(" Product: %s\n", product_string); + } + printf(" Release: %hx\n", release_number); + printf(" Interface: %d\n", interface_number); + printf(" Usage (page): 0x%hx (0x%hx)\n", usage, usage_page); + } + + hidp_preparsed_data static_pp_data; + memset(&static_pp_data, 0, sizeof(static_pp_data)); + hidp_preparsed_data *pp_data = &static_pp_data; + + unsigned int rt_idx; + unsigned int caps_idx; + unsigned int token_idx; + unsigned int coll_idx; + USAGE temp_usage; + BOOLEAN temp_boolean[3]; + UCHAR temp_uchar[3]; + USHORT temp_ushort; + ULONG temp_ulong; + LONG temp_long; + + USHORT FirstByteOfLinkCollectionArray = 0; + USHORT NumberLinkCollectionNodes = 0; + + while (fgets(line, sizeof(line), file) != NULL) { + if (line[0] == '#') + continue; + + if (FirstByteOfLinkCollectionArray != 0 && NumberLinkCollectionNodes != 0) { + size_t size_of_preparsed_data = offsetof(hidp_preparsed_data, caps) + FirstByteOfLinkCollectionArray + (NumberLinkCollectionNodes * sizeof(hid_pp_link_collection_node)); + pp_data->FirstByteOfLinkCollectionArray = FirstByteOfLinkCollectionArray; + pp_data->NumberLinkCollectionNodes = NumberLinkCollectionNodes; + FirstByteOfLinkCollectionArray = 0; + NumberLinkCollectionNodes = 0; + pp_data = malloc(size_of_preparsed_data); + memcpy(pp_data, &static_pp_data, sizeof(static_pp_data)); + } + + if (sscanf(line, "pp_data->MagicKey = 0x%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX\n", &pp_data->MagicKey[0], &pp_data->MagicKey[1], &pp_data->MagicKey[2], &pp_data->MagicKey[3], &pp_data->MagicKey[4], &pp_data->MagicKey[5], &pp_data->MagicKey[6], &pp_data->MagicKey[7])) continue; + if (sscanf(line, "pp_data->Usage = 0x%04hX\n", &pp_data->Usage)) continue; + if (sscanf(line, "pp_data->UsagePage = 0x%04hX\n", &pp_data->UsagePage)) continue; + if (sscanf(line, "pp_data->Reserved = 0x%04hX%04hX\n", &pp_data->Reserved[0], &pp_data->Reserved[1])) continue; + + if (sscanf(line, "pp_data->caps_info[%d]", &rt_idx) == 1) { + const size_t caps_info_count = sizeof(pp_data->caps_info) / sizeof(pp_data->caps_info[0]); + if (rt_idx >= caps_info_count) { + fprintf(stderr, "Broken pp_data file, pp_data->caps_info[] can have at most %zu elements, accessing %ud, (%s)", caps_info_count, rt_idx, line); + continue; + } + if (sscanf(line, "pp_data->caps_info[%d]->FirstCap = %hu\n", &rt_idx, &temp_ushort) == 2) { + pp_data->caps_info[rt_idx].FirstCap = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->caps_info[%d]->LastCap = %hu\n", &rt_idx, &temp_ushort) == 2) { + pp_data->caps_info[rt_idx].LastCap = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->caps_info[%d]->NumberOfCaps = %hu\n", &rt_idx, &temp_ushort) == 2) { + pp_data->caps_info[rt_idx].NumberOfCaps = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->caps_info[%d]->ReportByteLength = %hu\n", &rt_idx, &temp_ushort) == 2) { + pp_data->caps_info[rt_idx].ReportByteLength = temp_ushort; + continue; + } + fprintf(stderr, "Ignorring unimplemented caps_info field: %s", line); + continue; + } + + if (sscanf(line, "pp_data->FirstByteOfLinkCollectionArray = 0x%04hX\n", &FirstByteOfLinkCollectionArray)) { + continue; + } + if (sscanf(line, "pp_data->NumberLinkCollectionNodes = %hu\n", &NumberLinkCollectionNodes)) { + continue; + } + + if (sscanf(line, "pp_data->cap[%d]", &caps_idx) == 1) { + if (pp_data->FirstByteOfLinkCollectionArray == 0) { + fprintf(stderr, "Error reading pp_data file (%s): FirstByteOfLinkCollectionArray is 0 or not reported yet\n", line); + continue; + } + if ((caps_idx + 1) * sizeof(hid_pp_cap) > pp_data->FirstByteOfLinkCollectionArray) { + fprintf(stderr, "Error reading pp_data file (%s): the caps index (%u) is out of pp_data bytes boundary (%hu vs %hu)\n", line, caps_idx, (unsigned short) ((caps_idx + 1) * sizeof(hid_pp_cap)), pp_data->FirstByteOfLinkCollectionArray); + continue; + } + if (sscanf(line, "pp_data->cap[%d]->UsagePage = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].UsagePage = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->ReportID = 0x%02hhX\n", &caps_idx, &temp_uchar[0]) == 2) { + pp_data->caps[caps_idx].ReportID = temp_uchar[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->BitPosition = %hhu\n", &caps_idx, &temp_uchar[0]) == 2) { + pp_data->caps[caps_idx].BitPosition = temp_uchar[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->BitSize = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].ReportSize = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->ReportCount = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].ReportCount = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->BytePosition = 0x%04hX\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].BytePosition = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->BitCount = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].BitCount = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->BitField = 0x%02lX\n", &caps_idx, &temp_ulong) == 2) { + pp_data->caps[caps_idx].BitField = temp_ulong; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NextBytePosition = 0x%04hX\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NextBytePosition = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->LinkCollection = 0x%04hX\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].LinkCollection = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->LinkUsagePage = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].LinkUsagePage = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->LinkUsage = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].LinkUsage = temp_usage; + continue; + } + + // 8 Flags in one byte + if (sscanf(line, "pp_data->cap[%d]->IsMultipleItemsForArray = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsMultipleItemsForArray = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsButtonCap = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsButtonCap = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsPadding = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsPadding = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsAbsolute = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsAbsolute = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsRange = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsRange = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsAlias = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsAlias = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsStringRange = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsStringRange = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->IsDesignatorRange = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].IsDesignatorRange = temp_boolean[0]; + continue; + } + + if (sscanf(line, "pp_data->cap[%d]->Reserved1 = 0x%hhu%hhu%hhu\n", &caps_idx, &temp_uchar[0], &temp_uchar[1], &temp_uchar[2]) == 4) { + pp_data->caps[caps_idx].Reserved1[0] = temp_uchar[0]; + pp_data->caps[caps_idx].Reserved1[1] = temp_uchar[1]; + pp_data->caps[caps_idx].Reserved1[2] = temp_uchar[2]; + continue; + } + + if (sscanf(line, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d]", &caps_idx, &token_idx) == 2) { + const size_t unknown_tokens_count = sizeof(pp_data->caps[0].UnknownTokens) / sizeof(pp_data->caps[0].UnknownTokens[0]); + if (token_idx >= unknown_tokens_count) { + fprintf(stderr, "Broken pp_data file, pp_data->caps[].UnknownTokens[] can have at most %zu elements, accessing %ud, (%s)", unknown_tokens_count, token_idx, line); + continue; + } + if (sscanf(line, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].Token = 0x%02hhX\n", &caps_idx, &token_idx, &temp_uchar[0]) == 3) { + pp_data->caps[caps_idx].UnknownTokens[token_idx].Token = temp_uchar[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].Reserved = 0x%02hhX%02hhX%02hhX\n", &caps_idx, &token_idx, &temp_uchar[0], &temp_uchar[1], &temp_uchar[2]) == 5) { + pp_data->caps[caps_idx].UnknownTokens[token_idx].Reserved[0] = temp_uchar[0]; + pp_data->caps[caps_idx].UnknownTokens[token_idx].Reserved[1] = temp_uchar[1]; + pp_data->caps[caps_idx].UnknownTokens[token_idx].Reserved[2] = temp_uchar[2]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->pp_cap->UnknownTokens[%d].BitField = 0x%08lX\n", &caps_idx, &token_idx, &temp_ulong) == 3) { + pp_data->caps[caps_idx].UnknownTokens[token_idx].BitField = temp_ulong; + continue; + } + fprintf(stderr, "Ignorring unimplemented pp_data->cap[]->pp_cap->UnknownTokens field: %s", line); + continue; + } + + // Range + if (sscanf(line, "pp_data->cap[%d]->Range.UsageMin = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].Range.UsageMin = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.UsageMax = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].Range.UsageMax = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.StringMin = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.StringMin = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.StringMax = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.StringMax = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.DesignatorMin = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.DesignatorMin = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.DesignatorMax = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.DesignatorMax = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.DataIndexMin = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.DataIndexMin = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Range.DataIndexMax = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].Range.DataIndexMax = temp_ushort; + continue; + } + + // NotRange + if (sscanf(line, "pp_data->cap[%d]->NotRange.Usage = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].NotRange.Usage = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.Reserved1 = 0x%04hX\n", &caps_idx, &temp_usage) == 2) { + pp_data->caps[caps_idx].NotRange.Reserved1 = temp_usage; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.StringIndex = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.StringIndex = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.Reserved2 = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.Reserved2 = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.DesignatorIndex = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.DesignatorIndex = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.Reserved3 = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.Reserved3 = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.DataIndex = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.DataIndex = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotRange.Reserved4 = %hu\n", &caps_idx, &temp_ushort) == 2) { + pp_data->caps[caps_idx].NotRange.Reserved4 = temp_ushort; + continue; + } + + // Button + if (sscanf(line, "pp_data->cap[%d]->Button.LogicalMin = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].Button.LogicalMin = temp_long; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Button.LogicalMax = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].Button.LogicalMax = temp_long; + continue; + } + + // NotButton + if (sscanf(line, "pp_data->cap[%d]->NotButton.HasNull = %hhu\n", &caps_idx, &temp_boolean[0]) == 2) { + pp_data->caps[caps_idx].NotButton.HasNull = temp_boolean[0]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotButton.Reserved4 = 0x%02hhX%02hhX%02hhX\n", &caps_idx, &temp_uchar[0], &temp_uchar[1], &temp_uchar[2]) == 4) { + pp_data->caps[caps_idx].NotButton.Reserved4[0] = temp_uchar[0]; + pp_data->caps[caps_idx].NotButton.Reserved4[1] = temp_uchar[1]; + pp_data->caps[caps_idx].NotButton.Reserved4[2] = temp_uchar[2]; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotButton.LogicalMin = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].NotButton.LogicalMin = temp_long; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotButton.LogicalMax = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].NotButton.LogicalMax = temp_long; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotButton.PhysicalMin = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].NotButton.PhysicalMin = temp_long; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->NotButton.PhysicalMax = %ld\n", &caps_idx, &temp_long) == 2) { + pp_data->caps[caps_idx].NotButton.PhysicalMax = temp_long; + continue; + } + + if (sscanf(line, "pp_data->cap[%d]->Units = %lu\n", &caps_idx, &temp_ulong) == 2) { + pp_data->caps[caps_idx].Units = temp_ulong; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->UnitsExp = %lu\n", &caps_idx, &temp_ulong) == 2) { + pp_data->caps[caps_idx].UnitsExp = temp_ulong; + continue; + } + if (sscanf(line, "pp_data->cap[%d]->Reserved1 = 0x%02hhu%02hhu%02hhu\n", &coll_idx, &temp_uchar[0], &temp_uchar[1], &temp_uchar[2]) == 4) { + pp_data->caps[caps_idx].Reserved1[0] = temp_uchar[0]; + pp_data->caps[caps_idx].Reserved1[1] = temp_uchar[1]; + pp_data->caps[caps_idx].Reserved1[2] = temp_uchar[2]; + continue; + } + fprintf(stderr, "Ignorring unimplemented cap field: %s", line); + continue; + } + + if (sscanf(line, "pp_data->LinkCollectionArray[%d]", &coll_idx) == 1) { + if (pp_data->FirstByteOfLinkCollectionArray == 0 || pp_data->NumberLinkCollectionNodes == 0) { + fprintf(stderr, "Error reading pp_data file (%s): FirstByteOfLinkCollectionArray or NumberLinkCollectionNodes is 0 or not reported yet\n", line); + continue; + } + if (coll_idx >= pp_data->NumberLinkCollectionNodes) { + fprintf(stderr, "Error reading pp_data file (%s): the LinkCollection index (%u) is out of boundary (%hu)\n", line, coll_idx, pp_data->NumberLinkCollectionNodes); + continue; + } + phid_pp_link_collection_node pcoll = (phid_pp_link_collection_node)(((unsigned char*)&pp_data->caps[0]) + pp_data->FirstByteOfLinkCollectionArray); + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->LinkUsage = 0x%04hX\n", &coll_idx, &temp_usage) == 2) { + pcoll[coll_idx].LinkUsage = temp_usage; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->LinkUsagePage = 0x%04hX\n", &coll_idx, &temp_usage) == 2) { + pcoll[coll_idx].LinkUsagePage = temp_usage; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->Parent = %hu\n", &coll_idx, &temp_ushort) == 2) { + pcoll[coll_idx].Parent = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->NumberOfChildren = %hu\n", &coll_idx, &temp_ushort) == 2) { + pcoll[coll_idx].NumberOfChildren = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->NextSibling = %hu\n", &coll_idx, &temp_ushort) == 2) { + pcoll[coll_idx].NextSibling = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->FirstChild = %hu\n", &coll_idx, &temp_ushort) == 2) { + pcoll[coll_idx].FirstChild = temp_ushort; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->CollectionType = %ld\n", &coll_idx, &temp_ulong) == 2) { + pcoll[coll_idx].CollectionType = temp_ulong; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->IsAlias = %ld\n", &coll_idx, &temp_ulong) == 2) { + pcoll[coll_idx].IsAlias = temp_ulong; + continue; + } + if (sscanf(line, "pp_data->LinkCollectionArray[%d]->Reserved = %ld\n", &coll_idx, &temp_ulong) == 2) { + pcoll[coll_idx].Reserved = temp_ulong; + continue; + } + fprintf(stderr, "Ignorring unimplemented LinkCollectionArray field: %s", line); + continue; + } + } + +//end: + fclose(file); + + if (pp_data == &static_pp_data) { + return NULL; + } + + return pp_data; +} + +static BOOLEAN read_hex_data_from_text_file(const char *filename, unsigned char *data_out, size_t data_size, size_t *actual_read) +{ + size_t read_index = 0; + FILE* file = NULL; + errno_t err = fopen_s(&file, filename, "r"); + if (err != 0) { + fprintf(stderr, "ERROR: Couldn't open file '%s' for reading: %s\n", filename, strerror(err)); + return FALSE; + } + + BOOLEAN result = TRUE; + unsigned int val; + char buf[16]; + while (fscanf(file, "%15s", buf) == 1) { + if (sscanf(buf, "0x%X", &val) != 1) { + fprintf(stderr, "Invalid HEX text ('%s') file, got %s\n", filename, buf); + result = FALSE; + goto end; + } + + if (read_index >= data_size) { + fprintf(stderr, "Buffer for file read is too small. Got only %zu bytes to read '%s'\n", data_size, filename); + result = FALSE; + goto end; + } + + if (val > (unsigned char)-1) { + fprintf(stderr, "Invalid HEX text ('%s') file, got a value of: %u\n", filename, val); + result = FALSE; + goto end; + } + + data_out[read_index] = (unsigned char) val; + + read_index++; + } + + if (!feof(file)) { + fprintf(stderr, "Invalid HEX text ('%s') file - failed to read all values\n", filename); + result = FALSE; + goto end; + } + + *actual_read = read_index; + +end: + fclose(file); + return result; +} + + +int main(int argc, char* argv[]) +{ + if (argc != 3) { + fprintf(stderr, "Expected 2 arguments for the test ('<>.pp_data' and '<>_expected.rpt_desc'), got: %d\n", argc - 1); + return EXIT_FAILURE; + } + + printf("Checking: '%s' / '%s'\n", argv[1], argv[2]); + + hidp_preparsed_data *pp_data = alloc_preparsed_data_from_file(argv[1]); + if (pp_data == NULL) { + return EXIT_FAILURE; + } + + int result = EXIT_SUCCESS; + + unsigned char report_descriptor[HID_API_MAX_REPORT_DESCRIPTOR_SIZE]; + + int res = hid_winapi_descriptor_reconstruct_pp_data(pp_data, report_descriptor, sizeof(report_descriptor)); + + if (res < 0) { + result = EXIT_FAILURE; + fprintf(stderr, "Failed to reconstruct descriptor"); + goto end; + } + size_t report_descriptor_size = (size_t) res; + + unsigned char expected_report_descriptor[HID_API_MAX_REPORT_DESCRIPTOR_SIZE]; + size_t expected_report_descriptor_size = 0; + if (!read_hex_data_from_text_file(argv[2], expected_report_descriptor, sizeof(expected_report_descriptor), &expected_report_descriptor_size)) { + result = EXIT_FAILURE; + goto end; + } + + if (report_descriptor_size == expected_report_descriptor_size) { + if (memcmp(report_descriptor, expected_report_descriptor, report_descriptor_size) == 0) { + printf("Reconstructed Report Descriptor matches the expected descriptor\n"); + goto end; + } + else { + result = EXIT_FAILURE; + fprintf(stderr, "Reconstructed Report Descriptor has different content than expected\n"); + } + } + else { + result = EXIT_FAILURE; + fprintf(stderr, "Reconstructed Report Descriptor has different size: %zu when expected %zu\n", report_descriptor_size, expected_report_descriptor_size); + } + + printf(" Reconstructed Report Descriptor:\n"); + for (int i = 0; i < res; i++) { + printf("0x%02X, ", report_descriptor[i]); + } + printf("\n"); + fflush(stdout); + +end: + free(pp_data); + return result; +}