示例#1
0
 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;
 }