[libhid-discuss] get report size in python
    Charles Lepple 
    clepple at ghz.cc
       
    Wed Sep 30 12:57:36 UTC 2009
    
    
  
On Sep 30, 2009, at 6:12 AM, Gabriel Rossetti wrote:
> 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.
What error do you get?
What does 'print dir(__hidDevice.hid_data)' return?
    
    
More information about the libhid-discuss
mailing list