10#if FW_ENABLE_TEXT_LOGGING
20 void CmdSplitterComponentBase ::
29 port < static_cast<FwIndexType>(this->getNum_CmdBuff_InputPorts());
32 this->m_CmdBuff_InputPort[port].init();
33 this->m_CmdBuff_InputPort[port].addCallComp(
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());
53 port < static_cast<FwIndexType>(this->getNum_seqCmdStatus_InputPorts());
56 this->m_seqCmdStatus_InputPort[port].init();
57 this->m_seqCmdStatus_InputPort[port].addCallComp(
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());
77 port < static_cast<FwIndexType>(this->getNum_LocalCmd_OutputPorts());
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());
96 port < static_cast<FwIndexType>(this->getNum_RemoteCmd_OutputPorts());
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());
115 port < static_cast<FwIndexType>(this->getNum_forwardSeqCmdStatus_OutputPorts());
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());
140 portNum < this->getNum_CmdBuff_InputPorts(),
144 return &this->m_CmdBuff_InputPort[portNum];
151 portNum < this->getNum_seqCmdStatus_InputPorts(),
155 return &this->m_seqCmdStatus_InputPort[portNum];
162 void CmdSplitterComponentBase ::
163 set_LocalCmd_OutputPort(
169 portNum < this->getNum_LocalCmd_OutputPorts(),
173 this->m_LocalCmd_OutputPort[portNum].addCallPort(port);
176 void CmdSplitterComponentBase ::
177 set_RemoteCmd_OutputPort(
183 portNum < this->getNum_RemoteCmd_OutputPorts(),
187 this->m_RemoteCmd_OutputPort[portNum].addCallPort(port);
190 void CmdSplitterComponentBase ::
191 set_forwardSeqCmdStatus_OutputPort(
197 portNum < this->getNum_forwardSeqCmdStatus_OutputPorts(),
201 this->m_forwardSeqCmdStatus_OutputPort[portNum].addCallPort(port);
204#if FW_PORT_SERIALIZATION
210 void CmdSplitterComponentBase ::
211 set_LocalCmd_OutputPort(
213 Fw::InputSerializePort* port
217 portNum < this->getNum_LocalCmd_OutputPorts(),
221 this->m_LocalCmd_OutputPort[portNum].registerSerialPort(port);
224 void CmdSplitterComponentBase ::
225 set_RemoteCmd_OutputPort(
227 Fw::InputSerializePort* port
231 portNum < this->getNum_RemoteCmd_OutputPorts(),
235 this->m_RemoteCmd_OutputPort[portNum].registerSerialPort(port);
238 void CmdSplitterComponentBase ::
239 set_forwardSeqCmdStatus_OutputPort(
241 Fw::InputSerializePort* port
245 portNum < this->getNum_forwardSeqCmdStatus_OutputPorts(),
249 this->m_forwardSeqCmdStatus_OutputPort[portNum].registerSerialPort(port);
258 CmdSplitterComponentBase ::
259 CmdSplitterComponentBase(
const char* compName) :
260 Fw::PassiveComponentBase(compName)
265 CmdSplitterComponentBase ::
266 ~CmdSplitterComponentBase()
276 getNum_CmdBuff_InputPorts()
const
282 getNum_seqCmdStatus_InputPorts()
const
292 getNum_LocalCmd_OutputPorts()
const
298 getNum_RemoteCmd_OutputPorts()
const
304 getNum_forwardSeqCmdStatus_OutputPorts()
const
313 bool CmdSplitterComponentBase ::
314 isConnected_LocalCmd_OutputPort(
FwIndexType portNum)
317 portNum < this->getNum_LocalCmd_OutputPorts(),
321 return this->m_LocalCmd_OutputPort[portNum].isConnected();
324 bool CmdSplitterComponentBase ::
325 isConnected_RemoteCmd_OutputPort(
FwIndexType portNum)
328 portNum < this->getNum_RemoteCmd_OutputPorts(),
332 return this->m_RemoteCmd_OutputPort[portNum].isConnected();
335 bool CmdSplitterComponentBase ::
336 isConnected_forwardSeqCmdStatus_OutputPort(
FwIndexType portNum)
339 portNum < this->getNum_forwardSeqCmdStatus_OutputPorts(),
343 return this->m_forwardSeqCmdStatus_OutputPort[portNum].isConnected();
352 void CmdSplitterComponentBase ::
361 portNum < this->getNum_CmdBuff_InputPorts(),
366 this->CmdBuff_handler(
373 void CmdSplitterComponentBase ::
374 seqCmdStatus_handlerBase(
383 portNum < this->getNum_seqCmdStatus_InputPorts(),
388 this->seqCmdStatus_handler(
400 void CmdSplitterComponentBase ::
408 portNum < this->getNum_LocalCmd_OutputPorts(),
411 this->m_LocalCmd_OutputPort[portNum].invoke(
417 void CmdSplitterComponentBase ::
425 portNum < this->getNum_RemoteCmd_OutputPorts(),
428 this->m_RemoteCmd_OutputPort[portNum].invoke(
434 void CmdSplitterComponentBase ::
435 forwardSeqCmdStatus_out(
443 portNum < this->getNum_forwardSeqCmdStatus_OutputPorts(),
446 this->m_forwardSeqCmdStatus_OutputPort[portNum].invoke(
457 void CmdSplitterComponentBase ::
474 void CmdSplitterComponentBase ::
484 CmdSplitterComponentBase* compPtr =
static_cast<CmdSplitterComponentBase*
>(callComp);
#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 format(const CHAR *formatString,...)
write formatted string to buffer
Auto-generated base for CmdSplitter component.
void CmdBuff_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port CmdBuff.
void seqCmdStatus_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port seqCmdStatus.