public bool SetProfilingMode(uint iSet, uint iReset, out uint iCurrent) { WireProtocol.Commands.Profiling_Command cmd = new WireProtocol.Commands.Profiling_Command(); cmd.m_command = WireProtocol.Commands.Profiling_Command.c_Command_ChangeConditions; cmd.m_parm1 = iSet; cmd.m_parm2 = iReset; WireProtocol.IncomingMessage reply = SyncMessage(WireProtocol.Commands.c_Profiling_Command, 0, cmd); if (reply != null) { WireProtocol.Commands.Profiling_Command.Reply cmdReply = reply.Payload as WireProtocol.Commands.Profiling_Command.Reply; if (cmdReply != null) { iCurrent = cmdReply.m_raw; } else { iCurrent = 0; } return true; } iCurrent = 0; return false; }
public bool FlushProfilingStream() { WireProtocol.Commands.Profiling_Command cmd = new WireProtocol.Commands.Profiling_Command(); cmd.m_command = WireProtocol.Commands.Profiling_Command.c_Command_FlushStream; SyncMessage(WireProtocol.Commands.c_Profiling_Command, 0, cmd); return true; }
public bool FlushProfilingStream( ) { Commands.Profiling_Command cmd = new Commands.Profiling_Command( ); cmd.m_command = Commands.Profiling_Command.c_Command_FlushStream; SyncMessage( Commands.c_Profiling_Command, 0, cmd ); return true; }