Skip to content

Warnings using MSYS2 clangarm64 compiler #803

Open

Description

@mcuee

Just got an Acer Aspire 14 AI laptop 2025 model with Qualcomm X1 26100 CPU and running Windows 11 ARM64 25H2.

There are some warnings when building using MSYS2 clangarm64 compiler. No issues when using MSYS2 ucrt64 gcc 16.1.0.

$ sh build_cmake_clangarm64.sh
-- hidapi: v0.16.0
-- Building hidtest
-- Configuring done (0.1s)
-- Generating done (0.2s)
-- Build files have been written to: C:/work/libusb/hidapi/build/clangarm64
[ 10%] Building C object src/windows/CMakeFiles/hidapi_winapi.dir/hid.c.obj
C:\work\libusb\hidapi\windows\hid.c:129:33: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  129 | static void free_library_handles()
      |                                 ^
      |                                  void
C:\work\libusb\hidapi\windows\hid.c:139:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  139 | static int lookup_functions()
      |                            ^
      |                             void
C:\work\libusb\hidapi\windows\hid.c:210:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  210 | static hid_device *new_hid_device()
      |                                  ^
      |                                   void
3 warnings generated.
[ 20%] Building C object src/windows/CMakeFiles/hidapi_winapi.dir/hidapi_descriptor_reconstruct.c.obj
[ 30%] Building RC object src/windows/CMakeFiles/hidapi_winapi.dir/hidapi.rc.obj
[ 40%] Linking C shared library libhidapi.dll
[ 40%] Built target hidapi_winapi
[ 50%] Building C object src/windows/test/CMakeFiles/hid_report_reconstructor_test.dir/hid_report_reconstructor_test.c.obj
[ 60%] Linking C executable hid_report_reconstructor_test.exe
[ 60%] Built target hid_report_reconstructor_test
[ 70%] Building C object src/windows/pp_data_dump/CMakeFiles/pp_data_dump.dir/pp_data_dump.c.obj
In file included from C:\work\libusb\hidapi\windows\pp_data_dump\pp_data_dump.c:6:
C:/work/libusb/hidapi/windows/hid.c:129:33: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  129 | static void free_library_handles()
      |                                 ^
      |                                  void
C:/work/libusb/hidapi/windows/hid.c:139:28: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  139 | static int lookup_functions()
      |                            ^
      |                             void
C:/work/libusb/hidapi/windows/hid.c:210:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
  210 | static hid_device *new_hid_device()
      |                                  ^
      |                                   void
3 warnings generated.
[ 80%] Linking C executable pp_data_dump.exe
[ 80%] Built target pp_data_dump
[ 90%] Building C object hidtest/CMakeFiles/hidtest.dir/test.c.obj
[100%] Linking C executable hidtest.exe
[100%] Built target hidtest
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/libhidapi.dll.a
-- Installing: C:/work/libusb/hidapi/install/clangarm64/bin/libhidapi.dll
-- Installing: C:/work/libusb/hidapi/install/clangarm64/include/hidapi/hidapi.h
-- Installing: C:/work/libusb/hidapi/install/clangarm64/include/hidapi/hidapi_winapi.h
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/pkgconfig/hidapi.pc
-- Installing: C:/work/libusb/hidapi/install/clangarm64/bin/pp_data_dump.exe
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/cmake/hidapi/libhidapi.cmake
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/cmake/hidapi/libhidapi-relwithdebinfo.cmake
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/cmake/hidapi/hidapi-config-version.cmake
-- Installing: C:/work/libusb/hidapi/install/clangarm64/lib/cmake/hidapi/hidapi-config.cmake
-- Installing: C:/work/libusb/hidapi/install/clangarm64/bin/hidtest.exe

$ cat build_cmake_clangarm64.sh
cmake -G"MinGW Makefiles" -B build/clangarm64 -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DCMAKE_INSTALL_PREFIX=install/clangarm64 -DHIDAPI_BUILD_HIDTEST=ON -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic -Wformat-signedness"

cd build/clangarm64

cmake --build . --target install

$ cc -v
clang version 22.1.4 (https://github.com/msys2/MINGW-packages 4b76c6a7ed48c25f3a367f326df493541d7c2a2b)
Target: aarch64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clangarm64/bin

Activity

  1. mcuee commented on May 10, 2026

    @mcuee
    MemberAuthor

    The laptop seems to have many built-in HID device (only with one Xiaomi Wireless Mouse receiver plugged-in).

    CLANGARM64 /c/work/libusb/hidapi
    $ file ./install/clangarm64/bin/hidtest.exe
    ./install/clangarm64/bin/hidtest.exe: PE32+ executable for MS Windows 6.00 (console), ARM64, 13 sections
    
    hidtest output for Acer Aspire 14 AI 2025 model laptop
    $ ./install/clangarm64/bin/hidtest.exe
    hidapi test/example tool. Compiled with hidapi version 0.16.0, runtime version 0.16.0.
    Compile-time version matches runtime version of hidapi.
    
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col03#3&30456d6&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x2 (0xff85)
      Bus type: 3 (I2C)
    
      Report Descriptor: (98 bytes)
    0x06, 0x85, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x0d, 0x09,
    0xd0, 0x15, 0x00, 0x25, 0xff, 0x66, 0x01, 0x10, 0x75, 0x08,
    0x95, 0x01, 0x81, 0x02, 0x09, 0x65, 0x15, 0x00, 0x25, 0x64,
    0x75, 0x08, 0x95, 0x01, 0x81, 0x02, 0x09, 0x67, 0x09, 0x66,
    0x09, 0x62, 0x09, 0x6b, 0x15, 0x00, 0x25, 0xff, 0x75, 0x10,
    0x95, 0x04, 0x81, 0x02, 0x09, 0x34, 0x09, 0x30, 0x15, 0x00,
    0x25, 0xff, 0x55, 0x0d, 0x75, 0x10, 0x95, 0x02, 0x81, 0x02,
    0x09, 0x36, 0x15, 0x00, 0x25, 0xff, 0x75, 0x08, 0x95, 0x01,
    0x81, 0x02, 0x0a, 0x09, 0x03, 0x15, 0x00, 0x25, 0xff, 0x55,
    0x00, 0x75, 0x10, 0x95, 0x01, 0xb1, 0x02, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#QTEC0001&Col03#3&96d8d27&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0xc (0x1)
      Bus type: 3 (I2C)
    
      Report Descriptor: (45 bytes)
    0x05, 0x01, 0x09, 0x0c, 0xa1, 0x01, 0x85, 0x0f, 0x09, 0xc6,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x06,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x09, 0xc7, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x91, 0x02, 0x75, 0x07,
    0x95, 0x01, 0x91, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col02#5&727ac09&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x0 (0xff01)
      Bus type: 1 (USB)
    
      Report Descriptor: (23 bytes)
    0x06, 0x01, 0xff, 0x09, 0x00, 0xa1, 0x01, 0x85, 0x02, 0x09,
    0x00, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0x81, 0x02, 0xc0,
    Device Found
      type: 093a 3449
      path: \\?\HID#PIXA3449&Col01#3&1ae37ace&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      2e03
      Interface:    -1
      Usage (page): 0x2 (0x1)
      Bus type: 3 (I2C)
    
      Report Descriptor: (54 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x02, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x02, 0x81, 0x02, 0x75, 0x06,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x09, 0x38, 0x15, 0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03,
    0x81, 0x26, 0xc0, 0xc0,
    Device Found
      type: 093a 3449
      path: \\?\HID#PIXA3449&Col02#3&1ae37ace&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      2e03
      Interface:    -1
      Usage (page): 0x5 (0xd)
      Bus type: 3 (I2C)
    
      Report Descriptor: (634 bytes)
    0x05, 0x0d, 0x09, 0x05, 0xa1, 0x01, 0x85, 0x04, 0x05, 0x09,
    0x09, 0x01, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01,
    0x81, 0x02, 0x75, 0x02, 0x95, 0x01, 0x81, 0x03, 0x06, 0x01,
    0xff, 0x09, 0x01, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x01, 0x81, 0x02, 0x05, 0x0d, 0x09, 0x54, 0x15, 0x00, 0x25,
    0x05, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x09, 0x56, 0x15,
    0x00, 0x27, 0xff, 0xff, 0x00, 0x00, 0x35, 0x00, 0x47, 0xff,
    0xff, 0x00, 0x00, 0x55, 0x0c, 0x66, 0x01, 0x10, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x02, 0x09, 0x22, 0xa1, 0x02, 0x09, 0x47,
    0x09, 0x42, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02,
    0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02, 0x75, 0x02,
    0x95, 0x01, 0x81, 0x03, 0x09, 0x51, 0x15, 0x00, 0x25, 0x0a,
    0x35, 0x00, 0x47, 0xff, 0xff, 0x00, 0x00, 0x55, 0x0c, 0x66,
    0x01, 0x10, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x05, 0x01,
    0x09, 0x30, 0x15, 0x00, 0x26, 0x58, 0x0b, 0x35, 0x00, 0x46,
    0xce, 0x04, 0x55, 0x0e, 0x65, 0x11, 0x75, 0x10, 0x95, 0x01,
    0x81, 0x02, 0x09, 0x31, 0x15, 0x00, 0x26, 0xe3, 0x06, 0x35,
    0x00, 0x46, 0xeb, 0x02, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02,
    0xc0, 0x05, 0x0d, 0x09, 0x22, 0xa1, 0x02, 0x09, 0x47, 0x09,
    0x42, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x02, 0x45,
    0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02, 0x75, 0x02, 0x95,
    0x01, 0x81, 0x03, 0x09, 0x51, 0x15, 0x00, 0x25, 0x0a, 0x35,
    0x00, 0x46, 0xeb, 0x02, 0x55, 0x0e, 0x65, 0x11, 0x75, 0x04,
    0x95, 0x01, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30, 0x15, 0x00,
    0x26, 0x58, 0x0b, 0x35, 0x00, 0x46, 0xce, 0x04, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x02, 0x09, 0x31, 0x15, 0x00, 0x26, 0xe3,
    0x06, 0x35, 0x00, 0x46, 0xeb, 0x02, 0x75, 0x10, 0x95, 0x01,
    0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09, 0x22, 0xa1, 0x02, 0x09,
    0x47, 0x09, 0x42, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81, 0x02, 0x75,
    0x02, 0x95, 0x01, 0x81, 0x03, 0x09, 0x51, 0x15, 0x00, 0x25,
    0x0a, 0x35, 0x00, 0x46, 0xeb, 0x02, 0x55, 0x0e, 0x65, 0x11,
    0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x05, 0x01, 0x09, 0x30,
    0x15, 0x00, 0x26, 0x58, 0x0b, 0x35, 0x00, 0x46, 0xce, 0x04,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x31, 0x15, 0x00,
    0x26, 0xe3, 0x06, 0x35, 0x00, 0x46, 0xeb, 0x02, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09, 0x22, 0xa1,
    0x02, 0x09, 0x47, 0x09, 0x42, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0x81,
    0x02, 0x75, 0x02, 0x95, 0x01, 0x81, 0x03, 0x09, 0x51, 0x15,
    0x00, 0x25, 0x0a, 0x35, 0x00, 0x46, 0xeb, 0x02, 0x55, 0x0e,
    0x65, 0x11, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02, 0x05, 0x01,
    0x09, 0x30, 0x15, 0x00, 0x26, 0x58, 0x0b, 0x35, 0x00, 0x46,
    0xce, 0x04, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0x09, 0x31,
    0x15, 0x00, 0x26, 0xe3, 0x06, 0x35, 0x00, 0x46, 0xeb, 0x02,
    0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0xc0, 0x05, 0x0d, 0x09,
    0x22, 0xa1, 0x02, 0x09, 0x47, 0x09, 0x42, 0x15, 0x00, 0x25,
    0x01, 0x75, 0x01, 0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65,
    0x00, 0x81, 0x02, 0x75, 0x02, 0x95, 0x01, 0x81, 0x03, 0x09,
    0x51, 0x15, 0x00, 0x25, 0x0a, 0x35, 0x00, 0x46, 0xeb, 0x02,
    0x55, 0x0e, 0x65, 0x11, 0x75, 0x04, 0x95, 0x01, 0x81, 0x02,
    0x05, 0x01, 0x09, 0x30, 0x15, 0x00, 0x26, 0x58, 0x0b, 0x35,
    0x00, 0x46, 0xce, 0x04, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02,
    0x09, 0x31, 0x15, 0x00, 0x26, 0xe3, 0x06, 0x35, 0x00, 0x46,
    0xeb, 0x02, 0x75, 0x10, 0x95, 0x01, 0x81, 0x02, 0xc0, 0x85,
    0x02, 0x05, 0x0d, 0x09, 0x55, 0x15, 0x00, 0x25, 0x05, 0x75,
    0x08, 0x95, 0x01, 0xb1, 0x02, 0x85, 0x06, 0x09, 0x59, 0x15,
    0x00, 0x25, 0x0f, 0x75, 0x08, 0x95, 0x01, 0xb1, 0x02, 0x85,
    0x07, 0x09, 0x60, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95,
    0x01, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0xb1, 0x02, 0x75,
    0x07, 0x95, 0x01, 0xb1, 0x03, 0x85, 0x0b, 0x06, 0x00, 0xff,
    0x09, 0xc5, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x46,
    0xeb, 0x02, 0x55, 0x0e, 0x65, 0x11, 0x75, 0x08, 0x96, 0x00,
    0x01, 0xb1, 0x02, 0xc0,
    Device Found
      type: 093a 3449
      path: \\?\HID#PIXA3449&Col03#3&1ae37ace&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      2e03
      Interface:    -1
      Usage (page): 0xe (0xd)
      Bus type: 3 (I2C)
    
      Report Descriptor: (68 bytes)
    0x05, 0x0d, 0x09, 0x0e, 0xa1, 0x01, 0x09, 0x22, 0xa1, 0x02,
    0x85, 0x03, 0x09, 0x52, 0x15, 0x00, 0x25, 0x0a, 0x35, 0x00,
    0x46, 0xeb, 0x02, 0x55, 0x0e, 0x65, 0x11, 0x75, 0x08, 0x95,
    0x01, 0xb1, 0x02, 0xc0, 0x09, 0x22, 0xa1, 0x00, 0x85, 0x05,
    0x09, 0x57, 0x09, 0x58, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x02, 0x45, 0x00, 0x55, 0x00, 0x65, 0x00, 0xb1, 0x02,
    0x75, 0x06, 0x95, 0x01, 0xb1, 0x03, 0xc0, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col04#3&30456d6&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x1 (0xff05)
      Bus type: 3 (I2C)
    
      Report Descriptor: (41 bytes)
    0x06, 0x05, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0xa0, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x55, 0x0d, 0x66, 0x01,
    0x10, 0x75, 0x08, 0x95, 0x40, 0x81, 0x02, 0x09, 0x02, 0x15,
    0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x40, 0xb1, 0x02,
    0xc0,
    Device Found
      type: 093a 3449
      path: \\?\HID#PIXA3449&Col04#3&1ae37ace&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      2e03
      Interface:    -1
      Usage (page): 0x1 (0xff00)
      Bus type: 3 (I2C)
    
      Report Descriptor: (63 bytes)
    0x06, 0x00, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x42, 0x09,
    0x06, 0x15, 0x00, 0x26, 0xff, 0x00, 0x35, 0x00, 0x46, 0xeb,
    0x02, 0x55, 0x0e, 0x65, 0x11, 0x75, 0x08, 0x95, 0x03, 0xb1,
    0x02, 0x85, 0x43, 0x09, 0x06, 0x15, 0x00, 0x26, 0xff, 0x00,
    0x75, 0x08, 0x95, 0x03, 0xb1, 0x02, 0x85, 0x41, 0x09, 0x05,
    0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x96, 0x00, 0x01,
    0xb1, 0x02, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col01#9&1379997e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (37 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x07,
    0x09, 0x69, 0x09, 0x6a, 0x09, 0x6b, 0x09, 0x6c, 0x09, 0xe3,
    0x09, 0x4c, 0x09, 0xe2, 0x09, 0xe0, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#QTEC0001&Col04#3&96d8d27&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x80 (0xff01)
      Bus type: 3 (I2C)
    
      Report Descriptor: (48 bytes)
    0x06, 0x01, 0xff, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x08, 0x09,
    0xa9, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81,
    0x02, 0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0x05, 0x08, 0x09,
    0x57, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x91,
    0x02, 0x75, 0x07, 0x95, 0x01, 0x91, 0x03, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col03#5&727ac09&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x1 (0xc)
      Bus type: 1 (USB)
    
      Report Descriptor: (25 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x05, 0x19, 0x00,
    0x2a, 0x3c, 0x02, 0x15, 0x00, 0x26, 0x3c, 0x02, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col02#5&1e52e2e1&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (32 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x02, 0x09, 0xe9,
    0x09, 0xea, 0x0a, 0x21, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81,
    0x03, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col03#5&1e52e2e1&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x09, 0x81,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#QTEC0001&Col01#3&96d8d27&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 3 (I2C)
    
      Report Descriptor: (67 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x07, 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, 0x25, 0xff, 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,
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col05#3&30456d6&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x1 (0x88)
      Bus type: 3 (I2C)
    
      Report Descriptor: (22 bytes)
    0x05, 0x88, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x04, 0x09, 0x01,
    0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x02, 0x81,
    0x00, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col04#5&727ac09&0&0003#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x80 (0x1)
      Bus type: 1 (USB)
    
      Report Descriptor: (29 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x19, 0x81,
    0x29, 0x83, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x03,
    0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col06#3&30456d6&0&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x1 (0xffac)
      Bus type: 3 (I2C)
    
      Report Descriptor: (23 bytes)
    0x06, 0xac, 0xff, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x06, 0x09,
    0x01, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x02,
    0x81, 0x00, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col05#5&727ac09&0&0004#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x88 (0xffbc)
      Bus type: 1 (USB)
    
      Report Descriptor: (25 bytes)
    0x06, 0xbc, 0xff, 0x09, 0x88, 0xa1, 0x01, 0x85, 0x04, 0x19,
    0x00, 0x29, 0xff, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col02#9&1379997e&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (32 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x02, 0x09, 0xe9,
    0x09, 0xea, 0x0a, 0x21, 0x02, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01, 0x81,
    0x03, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col03#9&1379997e&0&0002#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x80 (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (27 bytes)
    0x05, 0x01, 0x09, 0x80, 0xa1, 0x01, 0x85, 0x03, 0x09, 0x81,
    0x15, 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02,
    0x75, 0x07, 0x95, 0x01, 0x81, 0x03, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col01#3&30456d6&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x2 (0xff00)
      Bus type: 3 (I2C)
    
      Report Descriptor: (36 bytes)
    0x06, 0x00, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x0b, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x29,
    0x81, 0x02, 0x09, 0x03, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75,
    0x08, 0x95, 0x29, 0x91, 0x02, 0xc0,
    Device Found
      type: 0000 0000
      path: \\?\HID#ACPI0011#3&1f273c3d&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 1.0
      Manufacturer: Microsoft
      Product:      HID Button over Interrupt Driver
      Release:      0
      Interface:    -1
      Usage (page): 0xd (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (116 bytes)
    0x05, 0x01, 0x09, 0x0d, 0xa1, 0x01, 0x09, 0x0d, 0xa1, 0x02,
    0x85, 0x01, 0x09, 0x81, 0x15, 0x00, 0x25, 0x01, 0x75, 0x01,
    0x95, 0x01, 0x81, 0x02, 0x09, 0xcb, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x01, 0xb1, 0x02, 0xc0, 0x09, 0x0d, 0xa1,
    0x02, 0x05, 0x0c, 0x09, 0xe9, 0x15, 0x00, 0x25, 0x01, 0x75,
    0x01, 0x95, 0x01, 0x81, 0x02, 0x05, 0x01, 0x09, 0xcb, 0x15,
    0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x02, 0xc0,
    0x09, 0x0d, 0xa1, 0x02, 0x05, 0x0c, 0x09, 0xea, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0x81, 0x02, 0x75, 0x05,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0xcb, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x01, 0xb1, 0x02, 0x75, 0x05,
    0x95, 0x01, 0xb1, 0x03, 0xc0, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col06#5&727ac09&0&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x2 (0xff02)
      Bus type: 1 (USB)
    
      Report Descriptor: (23 bytes)
    0x06, 0x02, 0xff, 0x09, 0x02, 0xa1, 0x01, 0x85, 0x06, 0x09,
    0x02, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x07,
    0xb1, 0x02, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#1025179A&Col02#3&30456d6&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x23 (0xff20)
      Bus type: 3 (I2C)
    
      Report Descriptor: (76 bytes)
    0x06, 0x20, 0xff, 0x09, 0x23, 0xa1, 0x01, 0x0a, 0x01, 0x02,
    0xa1, 0x02, 0xc0, 0x0a, 0x02, 0x02, 0xa1, 0x02, 0xc0, 0x85,
    0x0c, 0x0a, 0x10, 0x08, 0x15, 0x00, 0x25, 0xff, 0x55, 0x0e,
    0x66, 0x21, 0xd1, 0x75, 0x10, 0x95, 0x01, 0x81, 0x03, 0x0a,
    0x09, 0x03, 0x15, 0x00, 0x25, 0xff, 0x55, 0x00, 0x66, 0x01,
    0x10, 0x75, 0x10, 0x95, 0x01, 0xb1, 0x02, 0x0a, 0x0f, 0x03,
    0x15, 0x00, 0x25, 0xff, 0x55, 0x0e, 0x66, 0x21, 0xd1, 0x75,
    0x10, 0x95, 0x01, 0xb1, 0x02, 0xc0,
    Device Found
      type: 1025 174b
      path: \\?\HID#QTEC0001&Col02#3&96d8d27&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 9999
      Manufacturer: Microsoft
      Product:      HIDI2C Device
      Release:      1
      Interface:    -1
      Usage (page): 0x1 (0xc)
      Bus type: 3 (I2C)
    
      Report Descriptor: (25 bytes)
    0x05, 0x0c, 0x09, 0x01, 0xa1, 0x01, 0x85, 0x09, 0x19, 0x00,
    0x2a, 0xff, 0x03, 0x15, 0x00, 0x26, 0xff, 0x03, 0x75, 0x10,
    0x95, 0x01, 0x81, 0x00, 0xc0,
    Device Found
      type: 045e 0000
      path: \\?\HID#ConvertedDevice&Col01#5&1e52e2e1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\KBD
      serial_number:
      Manufacturer:
      Product:
      Release:      0
      Interface:    -1
      Usage (page): 0x6 (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (37 bytes)
    0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x07,
    0x09, 0x69, 0x09, 0x6a, 0x09, 0x6b, 0x09, 0x6c, 0x09, 0xe3,
    0x09, 0x4c, 0x09, 0xe2, 0x09, 0xe0, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0xc0,
    Device Found
      type: 2717 5013
      path: \\?\HID#VID_2717&PID_5013&Col01#5&727ac09&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number:
      Manufacturer: MI
      Product:      Mi Wireless Mouse
      Release:      625
      Interface:    0
      Usage (page): 0x2 (0x1)
      Bus type: 1 (USB)
    
      Report Descriptor: (91 bytes)
    0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01, 0xa1, 0x00,
    0x85, 0x01, 0x05, 0x09, 0x19, 0x01, 0x29, 0x05, 0x15, 0x00,
    0x25, 0x01, 0x75, 0x01, 0x95, 0x05, 0x81, 0x02, 0x75, 0x03,
    0x95, 0x01, 0x81, 0x03, 0x05, 0x01, 0x09, 0x30, 0x09, 0x31,
    0x16, 0x00, 0x80, 0x26, 0xff, 0x7f, 0x75, 0x10, 0x95, 0x02,
    0x81, 0x06, 0xc0, 0x09, 0x00, 0xa1, 0x00, 0x09, 0x38, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0x09, 0x00, 0xa1, 0x00, 0x05, 0x0c, 0x0a, 0x38, 0x02, 0x15,
    0x81, 0x25, 0x7f, 0x75, 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0,
    0xc0,
    Device Found
      type: 0000 0000
      path: \\?\HID#HID_DEVICE_SYSTEM_VHF#7&2665e9b2&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
      serial_number: 1.0
      Manufacturer: Microsoft
      Product:      HID VHF Driver
      Release:      0
      Interface:    -1
      Usage (page): 0xd (0x1)
      Bus type: 0 (Unknown)
    
      Report Descriptor: (33 bytes)
    0x05, 0x01, 0x09, 0x0d, 0xa1, 0x01, 0x85, 0x01, 0x05, 0x09,
    0x09, 0x01, 0x09, 0x02, 0x09, 0x03, 0x15, 0x00, 0x25, 0x01,
    0x75, 0x01, 0x95, 0x03, 0x81, 0x02, 0x75, 0x05, 0x95, 0x01,
    0x81, 0x03, 0xc0,
    unable to open device
    
  2. mcuee commented on May 10, 2026

    @mcuee
    MemberAuthor

    HIDAPI works fine under this Windows 11 ARM64 machine.

    Only issue is that Zadig does not work so that I cannot test libusb backend (not officially supported anyway). I cannot switch the system HID driver with WinUSB driver under WIndows 11 ARM64, unlike the normal x86_64 machine.

    CLANGARM64 /c/work/libusb/hidapitester/build
    $ ./hidapitester.exe --usagePage 0xff00 --usage 1 --open -l 64 --send-output 2,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63 --timeout 2000 --read-input
    Opening device, vid/pid:0x0000/0x0000, usagePage/usage: FF00/1
    Device opened
    Writing output report of 64-bytes...wrote 64 bytes:
     02 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
     20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
    Reading up to 64-byte input report, 2000 msec timeout...read 64 bytes:
     01 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
     20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
    Closing device
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsRelated to Windows backend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions