Hello everyone,

I am trying to get the report size from my device (in python). I tried (omitted tests & Co.):

   hid.hid_init()
   __hidDevice = hid.hid_new_HIDInterface()
   matcher = hid.HIDInterfaceMatcher()
   matcher.vendor_id = vendorId
   matcher.product_id = productId
   hid.hid_force_open(__hidDevice, 0, matcher, 5)
   minReportSize = __hidDevice.hid_data.PhyMin <-- error here
   maxReportSize = __hidDevice.hid_data.PhyMax

but I get an error.

I read : http://libhid.alioth.debian.org/doc/structHIDInterface__t.html

and this should work, any ideas on what I'm doing wrong?

Thank you,
Gabriel Rossetti

_______________________________________________
libhid-discuss mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
http://libhid.alioth.debian.org/

Reply via email to