10 #if FW_ENABLE_TEXT_LOGGING
32 this->m_LogRecv_InputPort[port].
init();
37 this->m_LogRecv_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_LogRecv_InputPort[port].setObjName(portName.
toChar());
56 this->m_TlmRecv_InputPort[port].
init();
61 this->m_TlmRecv_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1
67 this->m_objName.toChar(),
70 this->m_TlmRecv_InputPort[port].setObjName(portName.
toChar());
80 this->m_buffersIn_InputPort[port].
init();
85 this->m_buffersIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1
91 this->m_objName.toChar(),
94 this->m_buffersIn_InputPort[port].setObjName(portName.
toChar());
104 this->m_dataIn_InputPort[port].
init();
109 this->m_dataIn_InputPort[port].
setPortNum(port);
111 #if FW_OBJECT_NAMES == 1
115 this->m_objName.toChar(),
118 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
128 this->m_portIn_InputPort[port].init();
129 this->m_portIn_InputPort[port].addCallComp(
133 this->m_portIn_InputPort[port].setPortNum(port);
135 #if FW_OBJECT_NAMES == 1
139 this->m_objName.toChar(),
142 this->m_portIn_InputPort[port].setObjName(portName.
toChar());
152 this->m_LogSend_OutputPort[port].
init();
154 #if FW_OBJECT_NAMES == 1
158 this->m_objName.toChar(),
161 this->m_LogSend_OutputPort[port].setObjName(portName.
toChar());
171 this->m_TlmSend_OutputPort[port].
init();
173 #if FW_OBJECT_NAMES == 1
177 this->m_objName.toChar(),
180 this->m_TlmSend_OutputPort[port].setObjName(portName.
toChar());
190 this->m_bufferDeallocate_OutputPort[port].
init();
192 #if FW_OBJECT_NAMES == 1
196 this->m_objName.toChar(),
199 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
209 this->m_buffersOut_OutputPort[port].
init();
211 #if FW_OBJECT_NAMES == 1
215 this->m_objName.toChar(),
218 this->m_buffersOut_OutputPort[port].setObjName(portName.
toChar());
228 this->m_dataInDeallocate_OutputPort[port].
init();
230 #if FW_OBJECT_NAMES == 1
234 this->m_objName.toChar(),
237 this->m_dataInDeallocate_OutputPort[port].setObjName(portName.
toChar());
247 this->m_dataOut_OutputPort[port].
init();
249 #if FW_OBJECT_NAMES == 1
253 this->m_objName.toChar(),
256 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
266 this->m_dataOutAllocate_OutputPort[port].
init();
268 #if FW_OBJECT_NAMES == 1
272 this->m_objName.toChar(),
275 this->m_dataOutAllocate_OutputPort[port].setObjName(portName.
toChar());
285 this->m_portOut_OutputPort[port].init();
287 #if FW_OBJECT_NAMES == 1
291 this->m_objName.toChar(),
294 this->m_portOut_OutputPort[port].setObjName(portName.
toChar());
311 return &this->m_LogRecv_InputPort[portNum];
322 return &this->m_TlmRecv_InputPort[portNum];
333 return &this->m_buffersIn_InputPort[portNum];
344 return &this->m_dataIn_InputPort[portNum];
359 return &this->m_portIn_InputPort[portNum];
377 this->m_LogSend_OutputPort[portNum].
addCallPort(port);
391 this->m_TlmSend_OutputPort[portNum].
addCallPort(port);
405 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
419 this->m_buffersOut_OutputPort[portNum].
addCallPort(port);
433 this->m_dataInDeallocate_OutputPort[portNum].
addCallPort(port);
447 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
461 this->m_dataOutAllocate_OutputPort[portNum].
addCallPort(port);
464 #if FW_PORT_SERIALIZATION
473 Fw::InputSerializePort* port
481 this->m_LogSend_OutputPort[portNum].registerSerialPort(port);
487 Fw::InputSerializePort* port
495 this->m_TlmSend_OutputPort[portNum].registerSerialPort(port);
501 Fw::InputSerializePort* port
509 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
515 Fw::InputSerializePort* port
523 this->m_buffersOut_OutputPort[portNum].registerSerialPort(port);
529 Fw::InputSerializePort* port
537 this->m_dataInDeallocate_OutputPort[portNum].registerSerialPort(port);
543 Fw::InputSerializePort* port
551 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
556 #if FW_PORT_SERIALIZATION
562 void GenericHubComponentBase ::
563 set_portOut_OutputPort(
573 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
584 Fw::PassiveComponentBase(compName)
701 return this->m_LogSend_OutputPort[portNum].
isConnected();
712 return this->m_TlmSend_OutputPort[portNum].
isConnected();
723 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
734 return this->m_buffersOut_OutputPort[portNum].
isConnected();
745 return this->m_dataInDeallocate_OutputPort[portNum].
isConnected();
756 return this->m_dataOut_OutputPort[portNum].
isConnected();
767 return this->m_dataOutAllocate_OutputPort[portNum].
isConnected();
782 return this->m_portOut_OutputPort[portNum].isConnected();
919 this->m_LogSend_OutputPort[portNum].
invoke(
939 this->m_TlmSend_OutputPort[portNum].
invoke(
956 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
971 this->m_buffersOut_OutputPort[portNum].
invoke(
986 this->m_dataInDeallocate_OutputPort[portNum].
invoke(
1001 this->m_dataOut_OutputPort[portNum].
invoke(
1016 return this->m_dataOutAllocate_OutputPort[portNum].
invoke(
1035 return this->m_portOut_OutputPort[portNum].invokeSerial(
1044 void GenericHubComponentBase ::
1065 void GenericHubComponentBase ::
1076 compPtr->TlmRecv_handlerBase(
1084 void GenericHubComponentBase ::
1093 compPtr->buffersIn_handlerBase(
1099 void GenericHubComponentBase ::
1108 compPtr->dataIn_handlerBase(
1118 #if FW_PORT_SERIALIZATION
1120 void GenericHubComponentBase ::
1129 compPtr->portIn_handlerBase(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
Enum representing event severity.
void init()
Object initializer.
const char * toChar() const
void init()
Initialization function.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer invoke(U32 size)
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Buffer &fwBuffer)
Invoke a port interface.
void init()
Initialization function.
void init()
Initialization function.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Invoke a port interface.
void addCallPort(InputLogPort *callPort)
Register an input port.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Initialization function.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Invoke a port interface.
void format(const CHAR *formatString,...)
write formatted string to buffer
Auto-generated base for GenericHub component.
bool isConnected_dataInDeallocate_OutputPort(FwIndexType portNum)
virtual void portIn_handler(FwIndexType portNum, Fw::SerializeBufferBase &buffer)=0
Handler for input port portIn.
void set_TlmSend_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to TlmSend[portNum].
void LogRecv_handlerBase(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port LogRecv.
virtual void buffersIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port buffersIn.
FwIndexType getNum_LogRecv_InputPorts() const
Fw::InputTlmPort * get_TlmRecv_InputPort(FwIndexType portNum)
FwIndexType getNum_LogSend_OutputPorts() const
FwIndexType getNum_dataOut_OutputPorts() const
FwIndexType getNum_dataIn_InputPorts() const
FwIndexType getNum_bufferDeallocate_OutputPorts() const
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void set_dataInDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to dataInDeallocate[portNum].
Fw::InputLogPort * get_LogRecv_InputPort(FwIndexType portNum)
bool isConnected_buffersOut_OutputPort(FwIndexType portNum)
bool isConnected_portOut_OutputPort(FwIndexType portNum)
void set_buffersOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to buffersOut[portNum].
void set_dataOutAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to dataOutAllocate[portNum].
Fw::InputBufferSendPort * get_dataIn_InputPort(FwIndexType portNum)
FwIndexType getNum_dataOutAllocate_OutputPorts() const
Fw::InputSerializePort * get_portIn_InputPort(FwIndexType portNum)
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
bool isConnected_LogSend_OutputPort(FwIndexType portNum)
void portIn_handlerBase(FwIndexType portNum, Fw::SerializeBufferBase &buffer)
Handler base-class function for input port portIn.
Fw::InputBufferSendPort * get_buffersIn_InputPort(FwIndexType portNum)
FwIndexType getNum_portOut_OutputPorts() const
FwIndexType getNum_TlmRecv_InputPorts() const
Fw::Buffer dataOutAllocate_out(FwIndexType portNum, U32 size)
Invoke output port dataOutAllocate.
void buffersOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port buffersOut.
void set_LogSend_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to LogSend[portNum].
virtual ~GenericHubComponentBase()
Destroy GenericHubComponentBase object.
FwIndexType getNum_portIn_InputPorts() const
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void dataOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port dataOut.
virtual void TlmRecv_handler(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0
Handler for input port TlmRecv.
Fw::SerializeStatus portOut_out(FwIndexType portNum, Fw::SerializeBufferBase &buffer)
Invoke output port portOut.
FwIndexType getNum_buffersIn_InputPorts() const
bool isConnected_dataOutAllocate_OutputPort(FwIndexType portNum)
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port dataIn.
GenericHubComponentBase(const char *compName="")
Construct GenericHubComponentBase object.
void dataInDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port dataInDeallocate.
FwIndexType getNum_TlmSend_OutputPorts() const
bool isConnected_TlmSend_OutputPort(FwIndexType portNum)
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
virtual void LogRecv_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
Handler for input port LogRecv.
void LogSend_out(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Invoke output port LogSend.
FwIndexType getNum_buffersOut_OutputPorts() const
void TlmSend_out(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Invoke output port TlmSend.
void set_dataOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to dataOut[portNum].
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port dataIn.
void TlmRecv_handlerBase(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Handler base-class function for input port TlmRecv.
void buffersIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port buffersIn.
FwIndexType getNum_dataInDeallocate_OutputPorts() const
SerializeStatus
forward declaration for string