Package killerbee :: Module kbutils :: Class findFromListAndBusDevId
[hide private]
[frames] | no frames]

Class findFromListAndBusDevId

source code

  object --+    
           |    
findFromList --+
               |
              findFromListAndBusDevId

Custom matching function for pyUSB 1.x. Used by usb.core.find's custom_match parameter.

Instance Methods [hide private]
 
__init__(self, busNum_, devNum_, vendors_, products_)
Takes a list of vendor IDs and product IDs.
source code
 
__call__(self, device)
Returns True if the device being searched is in these lists.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, busNum_, devNum_, vendors_, products_)
(Constructor)

source code 

Takes a list of vendor IDs and product IDs.

Overrides: object.__init__

__call__(self, device)
(Call operator)

source code 

Returns True if the device being searched is in these lists.

Overrides: findFromList.__call__