public AddDeviceResult addDevice() { IOPortAddress portAddress = new IOPortAddress { portType = PortType.SIMULATION }; TestDeviceHandle handle = new TestDeviceHandle(new DataBuffer(GlobalServices.maxCommandDataLen + GlobalServices.maxReplyDataLen), 0); portAddress.handle = new DeviceHandle(handle); DeviceDescriptor deviceInfo = new DeviceDescriptor(); ADTRecord adtRec = new ADTRecord(portAddress, deviceInfo); return addDevice(adtRec); }
public DeviceHandle(TestDeviceHandle handle) { this._devType = PortType.SIMULATION; this._TestDevHnd = handle; }