

def getDescriptor(self, desc_type, desc_index, length, endpoint=(- 1)):
    'Retrieves a descriptor from the device identified by the type\n        and index of the descriptor.\n\n        Arguments:\n            desc_type: descriptor type.\n            desc_index: index of the descriptor.\n            len: descriptor length.\n            endpoint: ignored.\n        '
    return control.get_descriptor(self.dev, length, desc_type, desc_index)

dataset/ETHPy150Open walac/pyusb/usb/legacy.py DeviceHandle.getDescriptor/original