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

Module usb_ids

source code

Parse the usb.ids file for quick access to the information contained therein

Classes [hide private]
  usbInfoObject
Super class for all types of USB vendor/device/interface/class/sublcass/protocol classes which will be descendants of this.
  usb_ids
Class that represents the data in the usb.ids file It reads/parses the file and creates the objects to match
  VendorID
This class abstracts USB Vendor ID information It holds the description, and a list of Device ID's
  DeviceID
This class abstracts USB Device ID information It holds the description and a list of the Interface ID's
  InterfaceID
This class abstracts USB Interface information It holds the description
  VendorList
This class is responsible for the collection of vendor data It allows you to ask for:
  USBClass
This class abstracts USB Class information It holds the description, and a list of Subclasses
  USBClassSubclass
This class abstracts USB Device SubClass information It holds the description and a list of the protocols
  USBClassProtocol
This class abstracts USB Interface information It holds the description
  USBClassList
This class is responsible for the collection of USB Class data It allows you to ask for:
Functions [hide private]
 
print_vendor_info(USBids) source code
 
print_class_info(USBids) source code
Variables [hide private]
  vendor_re = re.compile(r'^([0-9A-Fa-f]{4})\s+(.*)$')
  device_re = re.compile(r'^\t([0-9A-Fa-f]{4})\s+(.*)$')
  iface_re = re.compile(r'^\t\t([0-9A-Fa-f]{2})\s+(.*)$')
  usbclass_re = re.compile(r'^C\s([0-9A-Fa-f]{2})\s+(.*)$')
  usbsubclass_re = re.compile(r'^\t([0-9A-Fa-f]{2})\s+(.*)$')
  usbprotocol_re = re.compile(r'^\t\t([0-9A-Fa-f]{2})\s+(.*)$')
  myUSBids = usb_ids(os.path.join(guihelper.resourcedirectory, "...
  vlist = myUSBids.getVendorList()
  clist = myUSBids.getUSBClassList()
Variables Details [hide private]

myUSBids

Value:
usb_ids(os.path.join(guihelper.resourcedirectory, "usb.ids"))