10 #if FW_ENABLE_TEXT_LOGGING
32 this->m_CmdBuff_InputPort[port].
init();
37 this->m_CmdBuff_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_CmdBuff_InputPort[port].setObjName(portName.
toChar());
56 this->m_seqCmdStatus_InputPort[port].
init();
61 this->m_seqCmdStatus_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1
67 this->m_objName.toChar(),
70 this->m_seqCmdStatus_InputPort[port].setObjName(portName.
toChar());
80 this->m_LocalCmd_OutputPort[port].
init();
82 #if FW_OBJECT_NAMES == 1
86 this->m_objName.toChar(),
89 this->m_LocalCmd_OutputPort[port].setObjName(portName.
toChar());
99 this->m_RemoteCmd_OutputPort[port].
init();
101 #if FW_OBJECT_NAMES == 1
105 this->m_objName.toChar(),
108 this->m_RemoteCmd_OutputPort[port].setObjName(portName.
toChar());
118 this->m_forwardSeqCmdStatus_OutputPort[port].
init();
120 #if FW_OBJECT_NAMES == 1
124 this->m_objName.toChar(),
127 this->m_forwardSeqCmdStatus_OutputPort[port].setObjName(portName.
toChar());
144 return &this->m_CmdBuff_InputPort[portNum];
155 return &this->m_seqCmdStatus_InputPort[portNum];
173 this->m_LocalCmd_OutputPort[portNum].
addCallPort(port);
187 this->m_RemoteCmd_OutputPort[portNum].
addCallPort(port);
201 this->m_forwardSeqCmdStatus_OutputPort[portNum].
addCallPort(port);
204 #if FW_PORT_SERIALIZATION
213 Fw::InputSerializePort* port
221 this->m_LocalCmd_OutputPort[portNum].registerSerialPort(port);
227 Fw::InputSerializePort* port
235 this->m_RemoteCmd_OutputPort[portNum].registerSerialPort(port);
241 Fw::InputSerializePort* port
249 this->m_forwardSeqCmdStatus_OutputPort[portNum].registerSerialPort(port);
260 Fw::PassiveComponentBase(compName)
321 return this->m_LocalCmd_OutputPort[portNum].
isConnected();
332 return this->m_RemoteCmd_OutputPort[portNum].
isConnected();
343 return this->m_forwardSeqCmdStatus_OutputPort[portNum].
isConnected();
411 this->m_LocalCmd_OutputPort[portNum].
invoke(
428 this->m_RemoteCmd_OutputPort[portNum].
invoke(
446 this->m_forwardSeqCmdStatus_OutputPort[portNum].
invoke(
457 void CmdSplitterComponentBase ::
474 void CmdSplitterComponentBase ::
485 compPtr->seqCmdStatus_handlerBase(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
Enum representing a command response.
void init()
Object initializer.
const char * toChar() const
void init()
Initialization function.
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Invoke a port interface.
void addCallPort(InputComPort *callPort)
Register an input port.
void init()
Initialization function.
void invoke(Fw::ComBuffer &data, U32 context)
Invoke a port interface.
void format(const CHAR *formatString,...)
write formatted string to buffer
Auto-generated base for CmdSplitter component.
FwIndexType getNum_LocalCmd_OutputPorts() const
FwIndexType getNum_RemoteCmd_OutputPorts() const
void RemoteCmd_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port RemoteCmd.
bool isConnected_RemoteCmd_OutputPort(FwIndexType portNum)
CmdSplitterComponentBase(const char *compName="")
Construct CmdSplitterComponentBase object.
void CmdBuff_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port CmdBuff.
void set_forwardSeqCmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to forwardSeqCmdStatus[portNum].
void set_LocalCmd_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to LocalCmd[portNum].
void seqCmdStatus_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port seqCmdStatus.
virtual void CmdBuff_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port CmdBuff.
virtual ~CmdSplitterComponentBase()
Destroy CmdSplitterComponentBase object.
bool isConnected_forwardSeqCmdStatus_OutputPort(FwIndexType portNum)
void forwardSeqCmdStatus_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Invoke output port forwardSeqCmdStatus.
FwIndexType getNum_seqCmdStatus_InputPorts() const
FwIndexType getNum_forwardSeqCmdStatus_OutputPorts() const
bool isConnected_LocalCmd_OutputPort(FwIndexType portNum)
void set_RemoteCmd_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to RemoteCmd[portNum].
virtual void seqCmdStatus_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port seqCmdStatus.
FwIndexType getNum_CmdBuff_InputPorts() const
Fw::InputComPort * get_CmdBuff_InputPort(FwIndexType portNum)
Fw::InputCmdResponsePort * get_seqCmdStatus_InputPort(FwIndexType portNum)
void LocalCmd_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port LocalCmd.