def SetLoopback(self, enable): """ Enable / disable internal loopback. Loopback is disabled by default. Set enable = 1 to enable, enable = 0 to disable. """ if _mpsse.SetLoopback(self.context, enable) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK
def SetLoopback(self, enable): """ Enable / disable internal loopback. Loopback is disabled by default. @enable - Set to 1 to enable loopback, 0 to disable (disabled by default). Returns MPSSE_OK on success. Raises an exception on failure. """ if _mpsse.SetLoopback(self.context, enable) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK