Package libprs500 :: Module communicate :: Class DeviceDescriptor
[hide private]
[frames] | no frames]

Class DeviceDescriptor

source code

Describes a USB device.

A description is composed of the Vendor Id, Product Id and Interface Id. See the USB spec

Instance Methods [hide private]
  __init__(self, vendor_id, product_id, interface_id)
  getDevice(self)
Return the device corresponding to the device descriptor if it is available on a USB bus.

Method Details [hide private]

__init__(self, vendor_id, product_id, interface_id)
(Constructor)

source code 
None

getDevice(self)

source code 
Return the device corresponding to the device descriptor if it is available on a USB bus. Otherwise, return None. Note that the returned device has yet to be claimed or opened.