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))); } }
CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, uint index) { return status(); }
CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, uint index) { return status(); }
CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index) { return(CommandStatus.NOT_SUPPORTED); }
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)); } }
CommandStatus ICommandHandler.Select(AnalogOutputInt32 command, ushort index) { return CommandStatus.NOT_SUPPORTED; }
CommandStatus ICommandHandler.Operate(AnalogOutputInt32 command, ushort index, OperateType opType) { return CommandStatus.NOT_SUPPORTED; }