import sys
import ctypes
from Phidget22.PhidgetSupport import PhidgetSupport
from Phidget22.Async import *
from Phidget22.ChannelClass import ChannelClass
from Phidget22.ChannelSubclass import ChannelSubclass
from Phidget22.DeviceClass import DeviceClass
from Phidget22.DeviceID import DeviceID
from Phidget22.ErrorEventCode import ErrorEventCode
from Phidget22.PhidgetException import PhidgetException

class Phidget:

	def __init__(self):
		self.handle = ctypes.c_void_p()

		if sys.platform == 'win32':
			self._AttachFactory = ctypes.WINFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
		else:
			self._AttachFactory = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
		self._Attach = None
		self._onAttach = None

		if sys.platform == 'win32':
			self._DetachFactory = ctypes.WINFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
		else:
			self._DetachFactory = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
		self._Detach = None
		self._onDetach = None

		if sys.platform == 'win32':
			self._ErrorFactory = ctypes.WINFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int, ctypes.c_char_p)
		else:
			self._ErrorFactory = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int, ctypes.c_char_p)
		self._Error = None
		self._onError = None

		if sys.platform == 'win32':
			self._PropertyChangeFactory = ctypes.WINFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p)
		else:
			self._PropertyChangeFactory = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p)
		self._PropertyChange = None
		self._onPropertyChange = None


	def __eq__(self, other):
		return hasattr(other, 'handle') and self.handle.value == other.handle.value

	def __hash__(self):
		return self.handle.value

	def __str__(self):
		_value = (ctypes.c_char * 65536)()
		_valueLen = ctypes.c_int32(65536)
		if self.getIsChannel():
			__func = PhidgetSupport.getDll().channelInfo
		else:
			__func = PhidgetSupport.getDll().deviceInfo
		result = __func(self.handle, ctypes.byref(_value), _valueLen)
		return _value.value.decode('utf- 8')

	def __del__(self):
		__func = PhidgetSupport.getDll().Phidget_delete
		__func.restype = ctypes.c_int32
		res = __func(ctypes.byref(self.handle))
		self.handle = None
		if res > 0:
			raise PhidgetException(res)

	def _localAttachEvent(self, handle, userPtr):
		if self._Attach == None:
			return
		self._Attach(self)

	def setOnAttachHandler(self, handler):
		if handler == None:
			self._Attach = None
			self._onAttach = None
		else:
			self._Attach = handler
			self._onAttach = self._AttachFactory(self._localAttachEvent)

		try:
			__func = PhidgetSupport.getDll().Phidget_setOnAttachHandler
			__func.restype = ctypes.c_int32
			res = __func(self.handle, self._onAttach, None)
		except RuntimeError:
			self._Attach = None
			self._onAttach = None

	def _localDetachEvent(self, handle, userPtr):
		if self._Detach == None:
			return
		self._Detach(self)

	def setOnDetachHandler(self, handler):
		if handler == None:
			self._Detach = None
			self._onDetach = None
		else:
			self._Detach = handler
			self._onDetach = self._DetachFactory(self._localDetachEvent)

		try:
			__func = PhidgetSupport.getDll().Phidget_setOnDetachHandler
			__func.restype = ctypes.c_int32
			res = __func(self.handle, self._onDetach, None)
		except RuntimeError:
			self._Detach = None
			self._onDetach = None

	def _localErrorEvent(self, handle, userPtr, Code, Description):
		if self._Error == None:
			return
		Description = Description.decode('utf-8')
		self._Error(self, Code, Description)

	def setOnErrorHandler(self, handler):
		if handler == None:
			self._Error = None
			self._onError = None
		else:
			self._Error = handler
			self._onError = self._ErrorFactory(self._localErrorEvent)

		try:
			__func = PhidgetSupport.getDll().Phidget_setOnErrorHandler
			__func.restype = ctypes.c_int32
			res = __func(self.handle, self._onError, None)
		except RuntimeError:
			self._Error = None
			self._onError = None

	def _localPropertyChangeEvent(self, handle, userPtr, propertyName):
		if self._PropertyChange == None:
			return
		propertyName = propertyName.decode('utf-8')
		self._PropertyChange(self, propertyName)

	def setOnPropertyChangeHandler(self, handler):
		if handler == None:
			self._PropertyChange = None
			self._onPropertyChange = None
		else:
			self._PropertyChange = handler
			self._onPropertyChange = self._PropertyChangeFactory(self._localPropertyChangeEvent)

		try:
			__func = PhidgetSupport.getDll().Phidget_setOnPropertyChangeHandler
			__func.restype = ctypes.c_int32
			res = __func(self.handle, self._onPropertyChange, None)
		except RuntimeError:
			self._PropertyChange = None
			self._onPropertyChange = None

	@staticmethod
	def finalize(flags):
		_flags = ctypes.c_int32(flags)

		__func = PhidgetSupport.getDll().Phidget_finalize
		__func.restype = ctypes.c_int32
		result = __func(_flags)

		if result > 0:
			raise PhidgetException(result)


	@staticmethod
	def getLibraryVersion():
		_LibraryVersion = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getLibraryVersion
		__func.restype = ctypes.c_int32
		result = __func(ctypes.byref(_LibraryVersion))

		if result > 0:
			raise PhidgetException(result)

		return _LibraryVersion.value.decode('utf-8')

	@staticmethod
	def getLibraryVersionNumber():
		_LibraryVersionNumber = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getLibraryVersionNumber
		__func.restype = ctypes.c_int32
		result = __func(ctypes.byref(_LibraryVersionNumber))

		if result > 0:
			raise PhidgetException(result)

		return _LibraryVersionNumber.value.decode('utf-8')

	@staticmethod
	def resetLibrary():
		__func = PhidgetSupport.getDll().Phidget_resetLibrary
		__func.restype = ctypes.c_int32
		result = __func()

		if result > 0:
			raise PhidgetException(result)


	def getAttached(self):
		_Attached = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getAttached
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_Attached))

		if result > 0:
			raise PhidgetException(result)

		return _Attached.value

	def getChannel(self):
		_Channel = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getChannel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_Channel))

		if result > 0:
			raise PhidgetException(result)

		return _Channel.value

	def setChannel(self, Channel):
		_Channel = ctypes.c_int(Channel)

		__func = PhidgetSupport.getDll().Phidget_setChannel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _Channel)

		if result > 0:
			raise PhidgetException(result)


	def getChannelClass(self):
		_ChannelClass = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getChannelClass
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ChannelClass))

		if result > 0:
			raise PhidgetException(result)

		return _ChannelClass.value

	def getChannelClassName(self):
		_ChannelClassName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getChannelClassName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ChannelClassName))

		if result > 0:
			raise PhidgetException(result)

		return _ChannelClassName.value.decode('utf-8')

	def getChannelName(self):
		_ChannelName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getChannelName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ChannelName))

		if result > 0:
			raise PhidgetException(result)

		return _ChannelName.value.decode('utf-8')

	def getChannelSubclass(self):
		_ChannelSubclass = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getChannelSubclass
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ChannelSubclass))

		if result > 0:
			raise PhidgetException(result)

		return _ChannelSubclass.value

	def close(self):
		__func = PhidgetSupport.getDll().Phidget_close
		__func.restype = ctypes.c_int32
		result = __func(self.handle)

		if result > 0:
			raise PhidgetException(result)


	def getDeviceChannelCount(self, cls):
		_cls = ctypes.c_int(cls)
		_count = ctypes.c_uint32()

		__func = PhidgetSupport.getDll().Phidget_getDeviceChannelCount
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _cls, ctypes.byref(_count))

		if result > 0:
			raise PhidgetException(result)

		return _count.value

	def getDeviceClass(self):
		_DeviceClass = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getDeviceClass
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceClass))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceClass.value

	def getDeviceClassName(self):
		_DeviceClassName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getDeviceClassName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceClassName))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceClassName.value.decode('utf-8')

	def getDeviceID(self):
		_DeviceID = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getDeviceID
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceID))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceID.value

	def getDeviceLabel(self):
		_DeviceLabel = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getDeviceLabel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceLabel))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceLabel.value.decode('utf-8')

	def setDeviceLabel(self, DeviceLabel):
		_DeviceLabel = ctypes.create_string_buffer(DeviceLabel.encode('utf-8'))

		__func = PhidgetSupport.getDll().Phidget_setDeviceLabel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceLabel))

		if result > 0:
			raise PhidgetException(result)


	def getDeviceName(self):
		_DeviceName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getDeviceName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceName))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceName.value.decode('utf-8')

	def getDeviceSerialNumber(self):
		_DeviceSerialNumber = ctypes.c_int32()

		__func = PhidgetSupport.getDll().Phidget_getDeviceSerialNumber
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceSerialNumber))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceSerialNumber.value

	def setDeviceSerialNumber(self, DeviceSerialNumber):
		_DeviceSerialNumber = ctypes.c_int32(DeviceSerialNumber)

		__func = PhidgetSupport.getDll().Phidget_setDeviceSerialNumber
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _DeviceSerialNumber)

		if result > 0:
			raise PhidgetException(result)


	def getDeviceSKU(self):
		_DeviceSKU = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getDeviceSKU
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceSKU))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceSKU.value.decode('utf-8')

	def getDeviceVersion(self):
		_DeviceVersion = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getDeviceVersion
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_DeviceVersion))

		if result > 0:
			raise PhidgetException(result)

		return _DeviceVersion.value

	def getHub(self):
		_Hub = ctypes.c_void_p()

		__func = PhidgetSupport.getDll().Phidget_getHub
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_Hub))

		if result > 0:
			raise PhidgetException(result)

		__Hub = Phidget()
		__Hub.handle = _Hub
		return __Hub

	def getHubPort(self):
		_HubPort = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getHubPort
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_HubPort))

		if result > 0:
			raise PhidgetException(result)

		return _HubPort.value

	def setHubPort(self, HubPort):
		_HubPort = ctypes.c_int(HubPort)

		__func = PhidgetSupport.getDll().Phidget_setHubPort
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _HubPort)

		if result > 0:
			raise PhidgetException(result)


	def getHubPortCount(self):
		_HubPortCount = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getHubPortCount
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_HubPortCount))

		if result > 0:
			raise PhidgetException(result)

		return _HubPortCount.value

	def getHubPortSpeed(self):
		_HubPortSpeed = ctypes.c_uint32()

		__func = PhidgetSupport.getDll().Phidget_getHubPortSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_HubPortSpeed))

		if result > 0:
			raise PhidgetException(result)

		return _HubPortSpeed.value

	def setHubPortSpeed(self, HubPortSpeed):
		_HubPortSpeed = ctypes.c_uint32(HubPortSpeed)

		__func = PhidgetSupport.getDll().Phidget_setHubPortSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _HubPortSpeed)

		if result > 0:
			raise PhidgetException(result)


	def getMaxHubPortSpeed(self):
		_MaxHubPortSpeed = ctypes.c_uint32()

		__func = PhidgetSupport.getDll().Phidget_getMaxHubPortSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_MaxHubPortSpeed))

		if result > 0:
			raise PhidgetException(result)

		return _MaxHubPortSpeed.value

	def getHubPortSupportsSetSpeed(self):
		_HubPortSupportsSetSpeed = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getHubPortSupportsSetSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_HubPortSupportsSetSpeed))

		if result > 0:
			raise PhidgetException(result)

		return _HubPortSupportsSetSpeed.value

	def getIsChannel(self):
		_IsChannel = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getIsChannel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_IsChannel))

		if result > 0:
			raise PhidgetException(result)

		return _IsChannel.value

	def getIsHubPortDevice(self):
		_IsHubPortDevice = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getIsHubPortDevice
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_IsHubPortDevice))

		if result > 0:
			raise PhidgetException(result)

		return _IsHubPortDevice.value

	def setIsHubPortDevice(self, IsHubPortDevice):
		_IsHubPortDevice = ctypes.c_int(IsHubPortDevice)

		__func = PhidgetSupport.getDll().Phidget_setIsHubPortDevice
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _IsHubPortDevice)

		if result > 0:
			raise PhidgetException(result)


	def getIsLocal(self):
		_IsLocal = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getIsLocal
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_IsLocal))

		if result > 0:
			raise PhidgetException(result)

		return _IsLocal.value

	def setIsLocal(self, IsLocal):
		_IsLocal = ctypes.c_int(IsLocal)

		__func = PhidgetSupport.getDll().Phidget_setIsLocal
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _IsLocal)

		if result > 0:
			raise PhidgetException(result)


	def getIsRemote(self):
		_IsRemote = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getIsRemote
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_IsRemote))

		if result > 0:
			raise PhidgetException(result)

		return _IsRemote.value

	def setIsRemote(self, IsRemote):
		_IsRemote = ctypes.c_int(IsRemote)

		__func = PhidgetSupport.getDll().Phidget_setIsRemote
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _IsRemote)

		if result > 0:
			raise PhidgetException(result)


	def open(self):
		__func = PhidgetSupport.getDll().Phidget_open
		__func.restype = ctypes.c_int32
		result = __func(self.handle)

		if result > 0:
			raise PhidgetException(result)


	def openWaitForAttachment(self, timeout):
		_timeout = ctypes.c_uint32(timeout)

		__func = PhidgetSupport.getDll().Phidget_openWaitForAttachment
		__func.restype = ctypes.c_int32
		result = __func(self.handle, _timeout)

		if result > 0:
			raise PhidgetException(result)


	def getParent(self):
		_Parent = ctypes.c_void_p()

		__func = PhidgetSupport.getDll().Phidget_getParent
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_Parent))

		if result > 0:
			raise PhidgetException(result)

		__Parent = Phidget()
		__Parent.handle = _Parent
		return __Parent

	def getServerHostname(self):
		_ServerHostname = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getServerHostname
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ServerHostname))

		if result > 0:
			raise PhidgetException(result)

		return _ServerHostname.value.decode('utf-8')

	def getServerName(self):
		_ServerName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getServerName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ServerName))

		if result > 0:
			raise PhidgetException(result)

		return _ServerName.value.decode('utf-8')

	def setServerName(self, ServerName):
		_ServerName = ctypes.create_string_buffer(ServerName.encode('utf-8'))

		__func = PhidgetSupport.getDll().Phidget_setServerName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ServerName))

		if result > 0:
			raise PhidgetException(result)


	def getServerPeerName(self):
		_ServerPeerName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getServerPeerName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ServerPeerName))

		if result > 0:
			raise PhidgetException(result)

		return _ServerPeerName.value.decode('utf-8')

	def getServerUniqueName(self):
		_ServerUniqueName = ctypes.c_char_p()

		__func = PhidgetSupport.getDll().Phidget_getServerUniqueName
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_ServerUniqueName))

		if result > 0:
			raise PhidgetException(result)

		return _ServerUniqueName.value.decode('utf-8')

	def getMaxVINTDeviceSpeed(self):
		_MaxVINTDeviceSpeed = ctypes.c_uint32()

		__func = PhidgetSupport.getDll().Phidget_getMaxVINTDeviceSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_MaxVINTDeviceSpeed))

		if result > 0:
			raise PhidgetException(result)

		return _MaxVINTDeviceSpeed.value

	def getVINTDeviceSupportsSetSpeed(self):
		_VINTDeviceSupportsSetSpeed = ctypes.c_int()

		__func = PhidgetSupport.getDll().Phidget_getVINTDeviceSupportsSetSpeed
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_VINTDeviceSupportsSetSpeed))

		if result > 0:
			raise PhidgetException(result)

		return _VINTDeviceSupportsSetSpeed.value

	def writeDeviceLabel(self, deviceLabel):
		_deviceLabel = ctypes.create_string_buffer(deviceLabel.encode('utf-8'))

		__func = PhidgetSupport.getDll().Phidget_writeDeviceLabel
		__func.restype = ctypes.c_int32
		result = __func(self.handle, ctypes.byref(_deviceLabel))

		if result > 0:
			raise PhidgetException(result)


	ANY_SERIAL_NUMBER = -1

	ANY_HUB_PORT = -1

	ANY_CHANNEL = -1

	ANY_LABEL = None

	INFINITE_TIMEOUT = 0

	DEFAULT_TIMEOUT = 1000

[((15, 16, 15, 33), 'ctypes.c_void_p', 'ctypes.c_void_p', ({}, {}), '()', False, 'import ctypes\n'), ((54, 14, 54, 35), 'ctypes.c_int32', 'ctypes.c_int32', ({(54, 29, 54, 34): '65536'}, {}), '(65536)', False, 'import ctypes\n'), ((158, 11, 158, 32), 'ctypes.c_int32', 'ctypes.c_int32', ({(158, 26, 158, 31): 'flags'}, {}), '(flags)', False, 'import ctypes\n'), ((170, 20, 170, 37), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((183, 26, 183, 43), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((205, 14, 205, 28), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((217, 13, 217, 27), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((229, 13, 229, 34), 'ctypes.c_int', 'ctypes.c_int', ({(229, 26, 229, 33): 'Channel'}, {}), '(Channel)', False, 'import ctypes\n'), ((240, 18, 240, 32), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((252, 22, 252, 39), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((264, 17, 264, 34), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((276, 21, 276, 35), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((297, 9, 297, 26), 'ctypes.c_int', 'ctypes.c_int', ({(297, 22, 297, 25): 'cls'}, {}), '(cls)', False, 'import ctypes\n'), ((298, 11, 298, 28), 'ctypes.c_uint32', 'ctypes.c_uint32', ({}, {}), '()', False, 'import ctypes\n'), ((310, 17, 310, 31), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((322, 21, 322, 38), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((334, 14, 334, 28), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((346, 17, 346, 34), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((369, 16, 369, 33), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((381, 24, 381, 40), 'ctypes.c_int32', 'ctypes.c_int32', ({}, {}), '()', False, 'import ctypes\n'), ((393, 24, 393, 58), 'ctypes.c_int32', 'ctypes.c_int32', ({(393, 39, 393, 57): 'DeviceSerialNumber'}, {}), '(DeviceSerialNumber)', False, 'import ctypes\n'), ((404, 15, 404, 32), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((416, 19, 416, 33), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((428, 9, 428, 26), 'ctypes.c_void_p', 'ctypes.c_void_p', ({}, {}), '()', False, 'import ctypes\n'), ((442, 13, 442, 27), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((454, 13, 454, 34), 'ctypes.c_int', 'ctypes.c_int', ({(454, 26, 454, 33): 'HubPort'}, {}), '(HubPort)', False, 'import ctypes\n'), ((465, 18, 465, 32), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((477, 18, 477, 35), 'ctypes.c_uint32', 'ctypes.c_uint32', ({}, {}), '()', False, 'import ctypes\n'), ((489, 18, 489, 47), 'ctypes.c_uint32', 'ctypes.c_uint32', ({(489, 34, 489, 46): 'HubPortSpeed'}, {}), '(HubPortSpeed)', False, 'import ctypes\n'), ((500, 21, 500, 38), 'ctypes.c_uint32', 'ctypes.c_uint32', ({}, {}), '()', False, 'import ctypes\n'), ((512, 29, 512, 43), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((524, 15, 524, 29), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((536, 21, 536, 35), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((548, 21, 548, 50), 'ctypes.c_int', 'ctypes.c_int', ({(548, 34, 548, 49): 'IsHubPortDevice'}, {}), '(IsHubPortDevice)', False, 'import ctypes\n'), ((559, 13, 559, 27), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((571, 13, 571, 34), 'ctypes.c_int', 'ctypes.c_int', ({(571, 26, 571, 33): 'IsLocal'}, {}), '(IsLocal)', False, 'import ctypes\n'), ((582, 14, 582, 28), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((594, 14, 594, 36), 'ctypes.c_int', 'ctypes.c_int', ({(594, 27, 594, 35): 'IsRemote'}, {}), '(IsRemote)', False, 'import ctypes\n'), ((614, 13, 614, 37), 'ctypes.c_uint32', 'ctypes.c_uint32', ({(614, 29, 614, 36): 'timeout'}, {}), '(timeout)', False, 'import ctypes\n'), ((625, 12, 625, 29), 'ctypes.c_void_p', 'ctypes.c_void_p', ({}, {}), '()', False, 'import ctypes\n'), ((639, 20, 639, 37), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((651, 16, 651, 33), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((674, 20, 674, 37), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((686, 22, 686, 39), 'ctypes.c_char_p', 'ctypes.c_char_p', ({}, {}), '()', False, 'import ctypes\n'), ((698, 24, 698, 41), 'ctypes.c_uint32', 'ctypes.c_uint32', ({}, {}), '()', False, 'import ctypes\n'), ((710, 32, 710, 46), 'ctypes.c_int', 'ctypes.c_int', ({}, {}), '()', False, 'import ctypes\n'), ((18, 25, 18, 83), 'ctypes.WINFUNCTYPE', 'ctypes.WINFUNCTYPE', ({(18, 44, 18, 48): 'None', (18, 50, 18, 65): 'ctypes.c_void_p', (18, 67, 18, 82): 'ctypes.c_void_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p)', False, 'import ctypes\n'), ((20, 25, 20, 81), 'ctypes.CFUNCTYPE', 'ctypes.CFUNCTYPE', ({(20, 42, 20, 46): 'None', (20, 48, 20, 63): 'ctypes.c_void_p', (20, 65, 20, 80): 'ctypes.c_void_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p)', False, 'import ctypes\n'), ((25, 25, 25, 83), 'ctypes.WINFUNCTYPE', 'ctypes.WINFUNCTYPE', ({(25, 44, 25, 48): 'None', (25, 50, 25, 65): 'ctypes.c_void_p', (25, 67, 25, 82): 'ctypes.c_void_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p)', False, 'import ctypes\n'), ((27, 25, 27, 81), 'ctypes.CFUNCTYPE', 'ctypes.CFUNCTYPE', ({(27, 42, 27, 46): 'None', (27, 48, 27, 63): 'ctypes.c_void_p', (27, 65, 27, 80): 'ctypes.c_void_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p)', False, 'import ctypes\n'), ((32, 24, 32, 113), 'ctypes.WINFUNCTYPE', 'ctypes.WINFUNCTYPE', ({(32, 43, 32, 47): 'None', (32, 49, 32, 64): 'ctypes.c_void_p', (32, 66, 32, 81): 'ctypes.c_void_p', (32, 83, 32, 95): 'ctypes.c_int', (32, 97, 32, 112): 'ctypes.c_char_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int,\n    ctypes.c_char_p)', False, 'import ctypes\n'), ((34, 24, 34, 111), 'ctypes.CFUNCTYPE', 'ctypes.CFUNCTYPE', ({(34, 41, 34, 45): 'None', (34, 47, 34, 62): 'ctypes.c_void_p', (34, 64, 34, 79): 'ctypes.c_void_p', (34, 81, 34, 93): 'ctypes.c_int', (34, 95, 34, 110): 'ctypes.c_char_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int,\n    ctypes.c_char_p)', False, 'import ctypes\n'), ((39, 33, 39, 108), 'ctypes.WINFUNCTYPE', 'ctypes.WINFUNCTYPE', ({(39, 52, 39, 56): 'None', (39, 58, 39, 73): 'ctypes.c_void_p', (39, 75, 39, 90): 'ctypes.c_void_p', (39, 92, 39, 107): 'ctypes.c_char_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p)', False, 'import ctypes\n'), ((41, 33, 41, 106), 'ctypes.CFUNCTYPE', 'ctypes.CFUNCTYPE', ({(41, 50, 41, 54): 'None', (41, 56, 41, 71): 'ctypes.c_void_p', (41, 73, 41, 88): 'ctypes.c_void_p', (41, 90, 41, 105): 'ctypes.c_char_p'}, {}), '(None, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p)', False, 'import ctypes\n'), ((59, 31, 59, 51), 'ctypes.byref', 'ctypes.byref', ({(59, 44, 59, 50): '_value'}, {}), '(_value)', False, 'import ctypes\n'), ((63, 11, 63, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((65, 15, 65, 40), 'ctypes.byref', 'ctypes.byref', ({(65, 28, 65, 39): 'self.handle'}, {}), '(self.handle)', False, 'import ctypes\n'), ((68, 9, 68, 30), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(68, 26, 68, 29): 'res'}, {}), '(res)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((160, 11, 160, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((165, 9, 165, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(165, 26, 165, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((172, 11, 172, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((174, 18, 174, 47), 'ctypes.byref', 'ctypes.byref', ({(174, 31, 174, 46): '_LibraryVersion'}, {}), '(_LibraryVersion)', False, 'import ctypes\n'), ((177, 9, 177, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(177, 26, 177, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((185, 11, 185, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((187, 18, 187, 53), 'ctypes.byref', 'ctypes.byref', ({(187, 31, 187, 52): '_LibraryVersionNumber'}, {}), '(_LibraryVersionNumber)', False, 'import ctypes\n'), ((190, 9, 190, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(190, 26, 190, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((196, 11, 196, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((201, 9, 201, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(201, 26, 201, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((207, 11, 207, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((209, 31, 209, 54), 'ctypes.byref', 'ctypes.byref', ({(209, 44, 209, 53): '_Attached'}, {}), '(_Attached)', False, 'import ctypes\n'), ((212, 9, 212, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(212, 26, 212, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((219, 11, 219, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((221, 31, 221, 53), 'ctypes.byref', 'ctypes.byref', ({(221, 44, 221, 52): '_Channel'}, {}), '(_Channel)', False, 'import ctypes\n'), ((224, 9, 224, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(224, 26, 224, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((231, 11, 231, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((236, 9, 236, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(236, 26, 236, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((242, 11, 242, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((244, 31, 244, 58), 'ctypes.byref', 'ctypes.byref', ({(244, 44, 244, 57): '_ChannelClass'}, {}), '(_ChannelClass)', False, 'import ctypes\n'), ((247, 9, 247, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(247, 26, 247, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((254, 11, 254, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((256, 31, 256, 62), 'ctypes.byref', 'ctypes.byref', ({(256, 44, 256, 61): '_ChannelClassName'}, {}), '(_ChannelClassName)', False, 'import ctypes\n'), ((259, 9, 259, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(259, 26, 259, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((266, 11, 266, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((268, 31, 268, 57), 'ctypes.byref', 'ctypes.byref', ({(268, 44, 268, 56): '_ChannelName'}, {}), '(_ChannelName)', False, 'import ctypes\n'), ((271, 9, 271, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(271, 26, 271, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((278, 11, 278, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((280, 31, 280, 61), 'ctypes.byref', 'ctypes.byref', ({(280, 44, 280, 60): '_ChannelSubclass'}, {}), '(_ChannelSubclass)', False, 'import ctypes\n'), ((283, 9, 283, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(283, 26, 283, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((288, 11, 288, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((293, 9, 293, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(293, 26, 293, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((300, 11, 300, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((302, 37, 302, 57), 'ctypes.byref', 'ctypes.byref', ({(302, 50, 302, 56): '_count'}, {}), '(_count)', False, 'import ctypes\n'), ((305, 9, 305, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(305, 26, 305, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((312, 11, 312, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((314, 31, 314, 57), 'ctypes.byref', 'ctypes.byref', ({(314, 44, 314, 56): '_DeviceClass'}, {}), '(_DeviceClass)', False, 'import ctypes\n'), ((317, 9, 317, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(317, 26, 317, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((324, 11, 324, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((326, 31, 326, 61), 'ctypes.byref', 'ctypes.byref', ({(326, 44, 326, 60): '_DeviceClassName'}, {}), '(_DeviceClassName)', False, 'import ctypes\n'), ((329, 9, 329, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(329, 26, 329, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((336, 11, 336, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((338, 31, 338, 54), 'ctypes.byref', 'ctypes.byref', ({(338, 44, 338, 53): '_DeviceID'}, {}), '(_DeviceID)', False, 'import ctypes\n'), ((341, 9, 341, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(341, 26, 341, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((348, 11, 348, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((350, 31, 350, 57), 'ctypes.byref', 'ctypes.byref', ({(350, 44, 350, 56): '_DeviceLabel'}, {}), '(_DeviceLabel)', False, 'import ctypes\n'), ((353, 9, 353, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(353, 26, 353, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((360, 11, 360, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((362, 31, 362, 57), 'ctypes.byref', 'ctypes.byref', ({(362, 44, 362, 56): '_DeviceLabel'}, {}), '(_DeviceLabel)', False, 'import ctypes\n'), ((365, 9, 365, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(365, 26, 365, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((371, 11, 371, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((373, 31, 373, 56), 'ctypes.byref', 'ctypes.byref', ({(373, 44, 373, 55): '_DeviceName'}, {}), '(_DeviceName)', False, 'import ctypes\n'), ((376, 9, 376, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(376, 26, 376, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((383, 11, 383, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((385, 31, 385, 64), 'ctypes.byref', 'ctypes.byref', ({(385, 44, 385, 63): '_DeviceSerialNumber'}, {}), '(_DeviceSerialNumber)', False, 'import ctypes\n'), ((388, 9, 388, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(388, 26, 388, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((395, 11, 395, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((400, 9, 400, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(400, 26, 400, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((406, 11, 406, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((408, 31, 408, 55), 'ctypes.byref', 'ctypes.byref', ({(408, 44, 408, 54): '_DeviceSKU'}, {}), '(_DeviceSKU)', False, 'import ctypes\n'), ((411, 9, 411, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(411, 26, 411, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((418, 11, 418, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((420, 31, 420, 59), 'ctypes.byref', 'ctypes.byref', ({(420, 44, 420, 58): '_DeviceVersion'}, {}), '(_DeviceVersion)', False, 'import ctypes\n'), ((423, 9, 423, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(423, 26, 423, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((430, 11, 430, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((432, 31, 432, 49), 'ctypes.byref', 'ctypes.byref', ({(432, 44, 432, 48): '_Hub'}, {}), '(_Hub)', False, 'import ctypes\n'), ((435, 9, 435, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(435, 26, 435, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((444, 11, 444, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((446, 31, 446, 53), 'ctypes.byref', 'ctypes.byref', ({(446, 44, 446, 52): '_HubPort'}, {}), '(_HubPort)', False, 'import ctypes\n'), ((449, 9, 449, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(449, 26, 449, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((456, 11, 456, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((461, 9, 461, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(461, 26, 461, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((467, 11, 467, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((469, 31, 469, 58), 'ctypes.byref', 'ctypes.byref', ({(469, 44, 469, 57): '_HubPortCount'}, {}), '(_HubPortCount)', False, 'import ctypes\n'), ((472, 9, 472, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(472, 26, 472, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((479, 11, 479, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((481, 31, 481, 58), 'ctypes.byref', 'ctypes.byref', ({(481, 44, 481, 57): '_HubPortSpeed'}, {}), '(_HubPortSpeed)', False, 'import ctypes\n'), ((484, 9, 484, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(484, 26, 484, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((491, 11, 491, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((496, 9, 496, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(496, 26, 496, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((502, 11, 502, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((504, 31, 504, 61), 'ctypes.byref', 'ctypes.byref', ({(504, 44, 504, 60): '_MaxHubPortSpeed'}, {}), '(_MaxHubPortSpeed)', False, 'import ctypes\n'), ((507, 9, 507, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(507, 26, 507, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((514, 11, 514, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((516, 31, 516, 69), 'ctypes.byref', 'ctypes.byref', ({(516, 44, 516, 68): '_HubPortSupportsSetSpeed'}, {}), '(_HubPortSupportsSetSpeed)', False, 'import ctypes\n'), ((519, 9, 519, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(519, 26, 519, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((526, 11, 526, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((528, 31, 528, 55), 'ctypes.byref', 'ctypes.byref', ({(528, 44, 528, 54): '_IsChannel'}, {}), '(_IsChannel)', False, 'import ctypes\n'), ((531, 9, 531, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(531, 26, 531, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((538, 11, 538, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((540, 31, 540, 61), 'ctypes.byref', 'ctypes.byref', ({(540, 44, 540, 60): '_IsHubPortDevice'}, {}), '(_IsHubPortDevice)', False, 'import ctypes\n'), ((543, 9, 543, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(543, 26, 543, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((550, 11, 550, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((555, 9, 555, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(555, 26, 555, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((561, 11, 561, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((563, 31, 563, 53), 'ctypes.byref', 'ctypes.byref', ({(563, 44, 563, 52): '_IsLocal'}, {}), '(_IsLocal)', False, 'import ctypes\n'), ((566, 9, 566, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(566, 26, 566, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((573, 11, 573, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((578, 9, 578, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(578, 26, 578, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((584, 11, 584, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((586, 31, 586, 54), 'ctypes.byref', 'ctypes.byref', ({(586, 44, 586, 53): '_IsRemote'}, {}), '(_IsRemote)', False, 'import ctypes\n'), ((589, 9, 589, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(589, 26, 589, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((596, 11, 596, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((601, 9, 601, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(601, 26, 601, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((605, 11, 605, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((610, 9, 610, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(610, 26, 610, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((616, 11, 616, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((621, 9, 621, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(621, 26, 621, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((627, 11, 627, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((629, 31, 629, 52), 'ctypes.byref', 'ctypes.byref', ({(629, 44, 629, 51): '_Parent'}, {}), '(_Parent)', False, 'import ctypes\n'), ((632, 9, 632, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(632, 26, 632, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((641, 11, 641, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((643, 31, 643, 60), 'ctypes.byref', 'ctypes.byref', ({(643, 44, 643, 59): '_ServerHostname'}, {}), '(_ServerHostname)', False, 'import ctypes\n'), ((646, 9, 646, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(646, 26, 646, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((653, 11, 653, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((655, 31, 655, 56), 'ctypes.byref', 'ctypes.byref', ({(655, 44, 655, 55): '_ServerName'}, {}), '(_ServerName)', False, 'import ctypes\n'), ((658, 9, 658, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(658, 26, 658, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((665, 11, 665, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((667, 31, 667, 56), 'ctypes.byref', 'ctypes.byref', ({(667, 44, 667, 55): '_ServerName'}, {}), '(_ServerName)', False, 'import ctypes\n'), ((670, 9, 670, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(670, 26, 670, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((676, 11, 676, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((678, 31, 678, 60), 'ctypes.byref', 'ctypes.byref', ({(678, 44, 678, 59): '_ServerPeerName'}, {}), '(_ServerPeerName)', False, 'import ctypes\n'), ((681, 9, 681, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(681, 26, 681, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((688, 11, 688, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((690, 31, 690, 62), 'ctypes.byref', 'ctypes.byref', ({(690, 44, 690, 61): '_ServerUniqueName'}, {}), '(_ServerUniqueName)', False, 'import ctypes\n'), ((693, 9, 693, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(693, 26, 693, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((700, 11, 700, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((702, 31, 702, 64), 'ctypes.byref', 'ctypes.byref', ({(702, 44, 702, 63): '_MaxVINTDeviceSpeed'}, {}), '(_MaxVINTDeviceSpeed)', False, 'import ctypes\n'), ((705, 9, 705, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(705, 26, 705, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((712, 11, 712, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((714, 31, 714, 72), 'ctypes.byref', 'ctypes.byref', ({(714, 44, 714, 71): '_VINTDeviceSupportsSetSpeed'}, {}), '(_VINTDeviceSupportsSetSpeed)', False, 'import ctypes\n'), ((717, 9, 717, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(717, 26, 717, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((724, 11, 724, 34), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((726, 31, 726, 57), 'ctypes.byref', 'ctypes.byref', ({(726, 44, 726, 56): '_deviceLabel'}, {}), '(_deviceLabel)', False, 'import ctypes\n'), ((729, 9, 729, 33), 'Phidget22.PhidgetException.PhidgetException', 'PhidgetException', ({(729, 26, 729, 32): 'result'}, {}), '(result)', False, 'from Phidget22.PhidgetException import PhidgetException\n'), ((56, 12, 56, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((58, 12, 58, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((84, 12, 84, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((105, 12, 105, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((127, 12, 127, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n'), ((149, 12, 149, 35), 'Phidget22.PhidgetSupport.PhidgetSupport.getDll', 'PhidgetSupport.getDll', ({}, {}), '()', False, 'from Phidget22.PhidgetSupport import PhidgetSupport\n')]