Exemple #1
0
 def setInterfaceAltSetting(self, interface, alt_setting):
     """
     Set interface's alternative setting (both parameters are integers).
     """
     result = libusb1.libusb_set_interface_alt_setting(self.__handle,
                                                       interface,
                                                       alt_setting)
     if result:
         raise libusb1.USBError(result)
Exemple #2
0
 def setInterfaceAltSetting(self, interface, alt_setting):
     result = libusb1.libusb_set_interface_alt_setting(self.handle,
                                                       interface,
                                                       alt_setting)
     if result:
         raise libusb1.USBError, result