7 #ifndef Svc_CommandDispatcherComponentAc_HPP 8 #define Svc_CommandDispatcherComponentAc_HPP 22 #if FW_ENABLE_TEXT_LOGGING == 1 201 #if FW_ENABLE_TEXT_LOGGING == 1 204 void set_LogText_OutputPort(
247 #if FW_PORT_SERIALIZATION 258 Fw::InputSerializePort* port
264 Fw::InputSerializePort* port
270 Fw::InputSerializePort* port
273 #if FW_ENABLE_TEXT_LOGGING == 1 276 void set_LogText_OutputPort(
278 Fw::InputSerializePort* port
286 Fw::InputSerializePort* port
292 Fw::InputSerializePort* port
297 #if FW_PORT_SERIALIZATION 308 Fw::InputSerializePort* port
314 Fw::InputSerializePort* port
320 Fw::InputSerializePort* port
344 const char* compName =
"" 408 #if FW_ENABLE_TEXT_LOGGING == 1 475 #if FW_ENABLE_TEXT_LOGGING == 1 480 bool isConnected_LogText_OutputPort(
937 static void m_p_CmdDisp_in(
952 static void m_p_compCmdReg_in(
959 static void m_p_compCmdStat_in(
968 static void m_p_pingIn_in(
975 static void m_p_seqCmdBuff_in(
1024 #if FW_ENABLE_TEXT_LOGGING == 1 1059 bool m_first_update_CommandsDispatched;
1062 bool m_first_update_CommandErrors;
1071 U32 m_last_CommandsDispatched;
1074 U32 m_last_CommandErrors;
void set_seqCmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to seqCmdStatus[portNum].
virtual void CMD_NO_OP_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CMD_NO_OP.
The command dispatcher has successfully received a NO-OP command from GUI with a string.
This log event message returns the TEST_CMD_1 arguments.
FwIndexType getNum_Log_OutputPorts() const
FwIndexType getNum_Time_OutputPorts() const
Op code completed with error event.
void log_ACTIVITY_HI_NoOpReceived() const
void log_WARNING_HI_InvalidCommand(U32 Opcode) const
PlatformSizeType FwSizeType
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
CommandDispatcherComponentBase(const char *compName="")
Construct CommandDispatcherComponentBase object.
void regCommands()
Register commands with the Command Dispatcher.
Fw::InputCmdRegPort * get_compCmdReg_InputPort(FwIndexType portNum)
void CMD_NO_OP_STRING_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void unLock()
Unlock the guarded mutex.
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
Clear command tracking info to recover from components not returning status.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
virtual void compCmdStat_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port compCmdStat.
void log_WARNING_HI_TooManyCommands(U32 Opcode) const
void log_ACTIVITY_HI_TestCmd1Args(I32 arg1, F32 arg2, U8 arg3) const
virtual void CMD_NO_OP_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
FwIndexType getNum_seqCmdBuff_InputPorts() const
Enum representing a command response.
friend class CommandDispatcherTester
Friend class tester implementation to support white-box testing.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum)
void compCmdSend_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Invoke output port compCmdSend.
bool isConnected_CmdReg_OutputPort(FwIndexType portNum)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
Channel ID for CommandsDispatched.
void init()
Object initializer.
virtual void CMD_TEST_CMD_1_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CMD_TEST_CMD_1.
float F32
32-bit floating point
void log_ACTIVITY_HI_NoOpStringReceived(const Fw::StringBase &message) const
bool isConnected_Tlm_OutputPort(FwIndexType portNum)
void tlmWrite_CommandsDispatched(U32 arg, Fw::Time _tlmTime=Fw::Time())
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
U32 FwOpcodeType
The type of a command opcode.
friend class CommandDispatcherTesterBase
Friend class tester to support autocoded test harness.
The command dispatcher has successfully received a NO-OP command.
void set_compCmdSend_OutputPort(FwIndexType portNum, Fw::InputCmdPort *port)
Connect port to compCmdSend[portNum].
void log_WARNING_HI_MalformedCommand(Fw::DeserialStatus Status) const
Received a malformed command packet.
virtual ~CommandDispatcherComponentBase()
Destroy CommandDispatcherComponentBase object.
Status
Generic OK/ERROR status.
void log_COMMAND_OpCodeDispatched(U32 Opcode, I32 port) const
FwIndexType getNum_CmdDisp_InputPorts() const
Op code reregistered event.
Fw::InputCmdResponsePort * get_compCmdStat_InputPort(FwIndexType portNum)
virtual void CMD_TEST_CMD_1_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, I32 arg1, F32 arg2, U8 arg3)=0
void log_COMMAND_OpCodeCompleted(U32 Opcode) const
virtual void compCmdReg_handler(FwIndexType portNum, FwOpcodeType opCode)=0
Handler for input port compCmdReg.
void tlmWrite_CommandErrors(U32 arg, Fw::Time _tlmTime=Fw::Time())
virtual void compCmdStat_preMsgHook(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Pre-message hook for async input port compCmdStat.
FwIndexType getNum_CmdReg_OutputPorts() const
bool isConnected_Time_OutputPort(FwIndexType portNum)
void compCmdStat_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port compCmdStat.
FwIndexType getNum_CmdStatus_OutputPorts() const
FwIndexType getNum_compCmdStat_InputPorts() const
uint8_t U8
8-bit unsigned integer
void log_DIAGNOSTIC_OpCodeReregistered(U32 Opcode, I32 port) const
FwIndexType getNum_pingIn_InputPorts() const
FwIndexType getNum_seqCmdStatus_OutputPorts() const
Exceeded the number of commands that can be simultaneously executed.
void seqCmdStatus_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Invoke output port seqCmdStatus.
PlatformIndexType FwIndexType
virtual void CMD_CLEAR_TRACKING_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CMD_CLEAR_TRACKING.
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
void CMD_CLEAR_TRACKING_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Received an invalid opcode.
void seqCmdBuff_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port seqCmdBuff.
virtual void CMD_NO_OP_STRING_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &arg1)=0
Auto-generated base for CommandDispatcher component.
bool isConnected_seqCmdStatus_OutputPort(FwIndexType portNum)
virtual void CMD_NO_OP_STRING_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CMD_NO_OP_STRING.
FwIndexType getNum_compCmdSend_OutputPorts() const
RateGroupDivider component implementation.
FwIndexType getNum_pingOut_OutputPorts() const
virtual void CMD_CLEAR_TRACKING_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Op code dispatched event.
void log_COMMAND_OpCodeError(U32 Opcode, Fw::CmdResponse error) const
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
bool isConnected_Log_OutputPort(FwIndexType portNum)
void CMD_NO_OP_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void seqCmdBuff_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port seqCmdBuff.
FwIndexType getNum_compCmdReg_InputPorts() const
virtual void seqCmdBuff_preMsgHook(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Pre-message hook for async input port seqCmdBuff.
Fw::InputComPort * get_seqCmdBuff_InputPort(FwIndexType portNum)
void compCmdReg_handlerBase(FwIndexType portNum, FwOpcodeType opCode)
Handler base-class function for input port compCmdReg.
FwIndexType getNum_Tlm_OutputPorts() const
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
bool isConnected_compCmdSend_OutputPort(FwIndexType portNum)
virtual void lock()
Lock the guarded mutex.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
Channel ID for CommandErrors.
void log_DIAGNOSTIC_OpCodeRegistered(U32 Opcode, I32 port, I32 slot) const
Log event OpCodeRegistered.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
void CMD_TEST_CMD_1_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)