CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, ushort index)
 {
     lock (mutex)
     {
         return(GetOrElse(index, analogMap, () => proxy.Select(command, index)));
     }
 }
 CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index, OperateType opType)
 {
     lock (mutex)
     {
         return(GetOrElseAndLogAnalog(command.value, index, analogMap, () => proxy.Operate(command, index, opType)));
     }
 }
예제 #3
0
 CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, uint index)
 {
     return status();
 }
예제 #4
0
 CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, uint index)
 {
     return status();
 }
예제 #5
0
 CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index)
 {
     return(CommandStatus.NOT_SUPPORTED);
 }
예제 #6
0
파일: Main.cs 프로젝트: robrhce/Tulip
 private void button3_Click(object sender, EventArgs e)
 {
     var aob = new AnalogOutputInt32(8008);
     var future = master.GetCommandProcessor().DirectOperate(aob, 0);
     future.Listen((result) => Console.WriteLine("Result: " + result));
 }
 CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, ushort index)
 {
     lock (mutex)
     {
         return GetOrElse(index, analogMap, () => proxy.Select(command, index));
     }
 }
 CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index, OperateType opType)
 {
     lock (mutex)
     {
         return GetOrElseAndLogAnalog(command.value, index, analogMap, () => proxy.Operate(command, index, opType));
     }
 }
예제 #9
0
 CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, ushort index)
 {
     return CommandStatus.NOT_SUPPORTED;
 }
예제 #10
0
 CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index, OperateType opType)
 {
     return CommandStatus.NOT_SUPPORTED;
 }