[libhid-discuss] get report size in python
Gabriel Rossetti
gabriel.rossetti at arimaz.com
Wed Sep 30 10:12:31 UTC 2009
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
More information about the libhid-discuss
mailing list