9 #if FW_ENABLE_TEXT_LOGGING 32 this->m_dataIn_InputPort[port].
init();
37 this->m_dataIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_dataReturnIn_InputPort[port].
init();
61 this->m_dataReturnIn_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_dataReturnIn_InputPort[port].setObjName(portName.
toChar());
80 this->m_logOut_OutputPort[port].
init();
82 #if FW_OBJECT_NAMES == 1 86 this->m_objName.toChar(),
89 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
93 #if FW_ENABLE_TEXT_LOGGING == 1 97 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
100 this->m_logTextOut_OutputPort[port].
init();
102 #if FW_OBJECT_NAMES == 1 106 this->m_objName.toChar(),
109 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
120 this->m_timeCaller_OutputPort[port].
init();
122 #if FW_OBJECT_NAMES == 1 126 this->m_objName.toChar(),
129 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
139 this->m_bufferAllocate_OutputPort[port].
init();
141 #if FW_OBJECT_NAMES == 1 145 this->m_objName.toChar(),
148 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
158 this->m_bufferDeallocate_OutputPort[port].
init();
160 #if FW_OBJECT_NAMES == 1 164 this->m_objName.toChar(),
167 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
177 this->m_dataOut_OutputPort[port].
init();
179 #if FW_OBJECT_NAMES == 1 183 this->m_objName.toChar(),
186 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
196 this->m_dataReturnOut_OutputPort[port].
init();
198 #if FW_OBJECT_NAMES == 1 202 this->m_objName.toChar(),
205 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
219 static_cast<FwAssertArgType>(portNum)
222 return &this->m_dataIn_InputPort[portNum];
230 static_cast<FwAssertArgType>(portNum)
233 return &this->m_dataReturnIn_InputPort[portNum];
248 static_cast<FwAssertArgType>(portNum)
251 this->m_logOut_OutputPort[portNum].
addCallPort(port);
254 #if FW_ENABLE_TEXT_LOGGING == 1 256 void FrameAccumulatorComponentBase ::
257 set_logTextOut_OutputPort(
263 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
264 static_cast<FwAssertArgType>(portNum)
267 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
280 static_cast<FwAssertArgType>(portNum)
283 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
298 static_cast<FwAssertArgType>(portNum)
301 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
312 static_cast<FwAssertArgType>(portNum)
315 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
326 static_cast<FwAssertArgType>(portNum)
329 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
340 static_cast<FwAssertArgType>(portNum)
343 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
346 #if FW_PORT_SERIALIZATION 355 Fw::InputSerializePort* port
360 static_cast<FwAssertArgType>(portNum)
363 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
366 #if FW_ENABLE_TEXT_LOGGING == 1 368 void FrameAccumulatorComponentBase ::
369 set_logTextOut_OutputPort(
371 Fw::InputSerializePort* port
375 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
376 static_cast<FwAssertArgType>(portNum)
379 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
387 Fw::InputSerializePort* port
392 static_cast<FwAssertArgType>(portNum)
395 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
400 #if FW_PORT_SERIALIZATION 409 Fw::InputSerializePort* port
414 static_cast<FwAssertArgType>(portNum)
417 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
423 Fw::InputSerializePort* port
428 static_cast<FwAssertArgType>(portNum)
431 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
437 Fw::InputSerializePort* port
442 static_cast<FwAssertArgType>(portNum)
445 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
456 Fw::PassiveComponentBase(compName)
493 #if FW_ENABLE_TEXT_LOGGING == 1 496 getNum_logTextOut_OutputPorts()
const 546 static_cast<FwAssertArgType>(portNum)
549 return this->m_logOut_OutputPort[portNum].
isConnected();
552 #if FW_ENABLE_TEXT_LOGGING == 1 554 bool FrameAccumulatorComponentBase ::
555 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
558 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
559 static_cast<FwAssertArgType>(portNum)
562 return this->m_logTextOut_OutputPort[portNum].isConnected();
572 static_cast<FwAssertArgType>(portNum)
575 return this->m_timeCaller_OutputPort[portNum].
isConnected();
587 static_cast<FwAssertArgType>(portNum)
590 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
598 static_cast<FwAssertArgType>(portNum)
601 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
609 static_cast<FwAssertArgType>(portNum)
612 return this->m_dataOut_OutputPort[portNum].
isConnected();
620 static_cast<FwAssertArgType>(portNum)
623 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
642 static_cast<FwAssertArgType>(portNum)
669 static_cast<FwAssertArgType>(portNum)
692 static_cast<FwAssertArgType>(portNum)
696 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
697 static_cast<FwAssertArgType>(portNum)
699 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
712 static_cast<FwAssertArgType>(portNum)
716 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
717 static_cast<FwAssertArgType>(portNum)
719 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
733 static_cast<FwAssertArgType>(portNum)
737 this->m_dataOut_OutputPort[portNum].isConnected(),
738 static_cast<FwAssertArgType>(portNum)
740 this->m_dataOut_OutputPort[portNum].
invoke(
755 static_cast<FwAssertArgType>(portNum)
759 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
760 static_cast<FwAssertArgType>(portNum)
762 this->m_dataReturnOut_OutputPort[portNum].
invoke(
777 if (this->m_timeCaller_OutputPort[0].isConnected()) {
778 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
786 if (this->m_logOut_OutputPort[0].isConnected()) {
789 #if FW_AMPCS_COMPATIBLE 792 _status = _logBuff.
serialize(static_cast<U8>(0));
795 static_cast<FwAssertArgType>(_status)
799 this->m_logOut_OutputPort[0].
invoke(
808 #if FW_ENABLE_TEXT_LOGGING 809 if (this->m_logTextOut_OutputPort[0].isConnected()) {
810 #if FW_OBJECT_NAMES == 1 811 const char* _formatString =
812 "(%s) %s: Could not allocate a valid buffer to fit the detected frame";
814 const char* _formatString =
815 "%s: Could not allocate a valid buffer to fit the detected frame";
822 this->m_objName.toChar(),
827 this->m_logTextOut_OutputPort[0].invoke(
844 if (this->m_timeCaller_OutputPort[0].isConnected()) {
846 this->m_timeCaller_OutputPort[0].
invoke(_time);
864 this->m_guardedPortMutex.
lock();
870 this->m_guardedPortMutex.
unLock();
877 void FrameAccumulatorComponentBase ::
894 void FrameAccumulatorComponentBase ::
904 compPtr->dataReturnIn_handlerBase(
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
virtual void unLock()
Unlock the guarded mutex.
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
FwIndexType getNum_dataReturnOut_OutputPorts() const
FwIdType getIdBase() const
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
void unLock()
unlock the mutex and assert success
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
An error occurred while deserializing a packet.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
FwIndexType getNum_dataIn_InputPorts() const
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void init()
Object initializer.
SerializeStatus
forward declaration for string
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
FwIdType FwEventIdType
The type of an event identifier.
void log_WARNING_HI_NoBufferAvailable() const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port interface.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
const char * toChar() const
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
A serious but recoverable event.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void init()
Initialization function.
FwIndexType getNum_dataReturnIn_InputPorts() const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
FwIndexType getNum_logOut_OutputPorts() const
FwIndexType getNum_timeCaller_OutputPorts() const
virtual void lock()
Lock the guarded mutex.
FwIndexType getNum_bufferAllocate_OutputPorts() const
void init()
Initialization function.
void init()
Initialization function.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
bool isConnected_logOut_OutputPort(FwIndexType portNum)
No time base has been established.
PlatformIndexType FwIndexType
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
Type used to pass context info between components during framing/deframing.
Auto-generated base for FrameAccumulator component.
void init()
Initialization function.
RateGroupDivider component implementation.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
FrameAccumulatorComponentBase(const char *compName="")
Construct FrameAccumulatorComponentBase object.
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
FwIndexType getNum_dataOut_OutputPorts() const
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
virtual ~FrameAccumulatorComponentBase()
Destroy FrameAccumulatorComponentBase object.
void lock()
lock the mutex and assert success
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)