Module usb_ids :: Class usb_ids
[hide private]
[frames] | no frames]

Class usb_ids

source code

Class that represents the data in the usb.ids file It reads/parses the file and creates the objects to match

Instance Methods [hide private]
 
__init__(self, fname=None)
Initialize the class.
source code
 
add_data(self, fname) source code
 
lookupdevice(self, vendor, product=None, interface=None) source code
 
lookupclass(self, klass, subclass=None, protocol=None) source code
 
getVendorList(self)
Return the object representing the list of vendors
source code
 
getUSBClassList(self)
Return the object representing the list of USB Classes
source code
Method Details [hide private]

__init__(self, fname=None)
(Constructor)

source code 

Initialize the class. This includes reading the supplied file and creating/populating as many related objects as needed.