Beispiel #1
0
 def getConfiguration(self):
     configuration = c_int()
     result = libusb1.libusb_get_configuration(self.handle,
                                               byref(configuration))
     if result:
         raise libusb1.USBError, result
     return configuration
Beispiel #2
0
 def getConfiguration(self):
     """
     Get the current configuration number for this device.
     """
     configuration = c_int()
     result = libusb1.libusb_get_configuration(self.__handle,
                                               byref(configuration))
     if result:
         raise libusb1.USBError(result)
     return configuration