コード例 #1
0
ファイル: mpsse.py プロジェクト: hudkmr/libmpsse
    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
コード例 #2
0
ファイル: mpsse.py プロジェクト: tengyifei/libmpsse
	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