コード例 #1
0
ファイル: WDSFrameWindow.cs プロジェクト: x893/WDS
 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);
 }
コード例 #2
0
ファイル: DeviceHandle.cs プロジェクト: x893/WDS
 public DeviceHandle(TestDeviceHandle handle)
 {
     this._devType = PortType.SIMULATION;
     this._TestDevHnd = handle;
 }