Example #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);
 }
Example #2
0
 public DeviceHandle(TestDeviceHandle handle)
 {
     this._devType = PortType.SIMULATION;
     this._TestDevHnd = handle;
 }