10 #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_logOut_OutputPort[port].
init();
58 #if FW_OBJECT_NAMES == 1 62 this->m_objName.toChar(),
65 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
69 #if FW_ENABLE_TEXT_LOGGING == 1 73 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
76 this->m_logTextOut_OutputPort[port].
init();
78 #if FW_OBJECT_NAMES == 1 82 this->m_objName.toChar(),
85 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
96 this->m_timeCaller_OutputPort[port].
init();
98 #if FW_OBJECT_NAMES == 1 102 this->m_objName.toChar(),
105 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
115 this->m_bufferAllocate_OutputPort[port].
init();
117 #if FW_OBJECT_NAMES == 1 121 this->m_objName.toChar(),
124 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
134 this->m_bufferDeallocate_OutputPort[port].
init();
136 #if FW_OBJECT_NAMES == 1 140 this->m_objName.toChar(),
143 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
153 this->m_frameOut_OutputPort[port].
init();
155 #if FW_OBJECT_NAMES == 1 159 this->m_objName.toChar(),
162 this->m_frameOut_OutputPort[port].setObjName(portName.
toChar());
176 static_cast<FwAssertArgType>(portNum)
179 return &this->m_dataIn_InputPort[portNum];
194 static_cast<FwAssertArgType>(portNum)
197 this->m_logOut_OutputPort[portNum].
addCallPort(port);
200 #if FW_ENABLE_TEXT_LOGGING == 1 202 void FrameAccumulatorComponentBase ::
203 set_logTextOut_OutputPort(
209 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
210 static_cast<FwAssertArgType>(portNum)
213 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
226 static_cast<FwAssertArgType>(portNum)
229 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
244 static_cast<FwAssertArgType>(portNum)
247 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
258 static_cast<FwAssertArgType>(portNum)
261 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
272 static_cast<FwAssertArgType>(portNum)
275 this->m_frameOut_OutputPort[portNum].
addCallPort(port);
278 #if FW_PORT_SERIALIZATION 287 Fw::InputSerializePort* port
292 static_cast<FwAssertArgType>(portNum)
295 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
298 #if FW_ENABLE_TEXT_LOGGING == 1 300 void FrameAccumulatorComponentBase ::
301 set_logTextOut_OutputPort(
303 Fw::InputSerializePort* port
307 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
308 static_cast<FwAssertArgType>(portNum)
311 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
319 Fw::InputSerializePort* port
324 static_cast<FwAssertArgType>(portNum)
327 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
332 #if FW_PORT_SERIALIZATION 341 Fw::InputSerializePort* port
346 static_cast<FwAssertArgType>(portNum)
349 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
355 Fw::InputSerializePort* port
360 static_cast<FwAssertArgType>(portNum)
363 this->m_frameOut_OutputPort[portNum].registerSerialPort(port);
374 Fw::PassiveComponentBase(compName)
405 #if FW_ENABLE_TEXT_LOGGING == 1 408 getNum_logTextOut_OutputPorts()
const 452 static_cast<FwAssertArgType>(portNum)
455 return this->m_logOut_OutputPort[portNum].
isConnected();
458 #if FW_ENABLE_TEXT_LOGGING == 1 460 bool FrameAccumulatorComponentBase ::
461 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
464 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
465 static_cast<FwAssertArgType>(portNum)
468 return this->m_logTextOut_OutputPort[portNum].isConnected();
478 static_cast<FwAssertArgType>(portNum)
481 return this->m_timeCaller_OutputPort[portNum].
isConnected();
493 static_cast<FwAssertArgType>(portNum)
496 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
504 static_cast<FwAssertArgType>(portNum)
507 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
515 static_cast<FwAssertArgType>(portNum)
518 return this->m_frameOut_OutputPort[portNum].
isConnected();
536 static_cast<FwAssertArgType>(portNum)
564 static_cast<FwAssertArgType>(portNum)
568 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
569 static_cast<FwAssertArgType>(portNum)
571 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
584 static_cast<FwAssertArgType>(portNum)
588 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
589 static_cast<FwAssertArgType>(portNum)
591 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
605 static_cast<FwAssertArgType>(portNum)
609 this->m_frameOut_OutputPort[portNum].isConnected(),
610 static_cast<FwAssertArgType>(portNum)
612 this->m_frameOut_OutputPort[portNum].
invoke(
627 if (this->m_timeCaller_OutputPort[0].isConnected()) {
628 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
636 if (this->m_logOut_OutputPort[0].isConnected()) {
639 #if FW_AMPCS_COMPATIBLE 642 _status = _logBuff.
serialize(static_cast<U8>(0));
645 static_cast<FwAssertArgType>(_status)
649 this->m_logOut_OutputPort[0].
invoke(
658 #if FW_ENABLE_TEXT_LOGGING 659 if (this->m_logTextOut_OutputPort[0].isConnected()) {
660 #if FW_OBJECT_NAMES == 1 661 const char* _formatString =
662 "(%s) %s: Could not allocate a valid buffer to fit the detected frame";
664 const char* _formatString =
665 "%s: Could not allocate a valid buffer to fit the detected frame";
672 this->m_objName.toChar(),
677 this->m_logTextOut_OutputPort[0].invoke(
694 if (this->m_timeCaller_OutputPort[0].isConnected()) {
696 this->m_timeCaller_OutputPort[0].
invoke(_time);
714 this->m_guardedPortMutex.
lock();
720 this->m_guardedPortMutex.
unLock();
727 void FrameAccumulatorComponentBase ::
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)
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void frameOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port frameOut.
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].
Fw::InputBufferSendPort * get_dataIn_InputPort(FwIndexType portNum)
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
FwIndexType getNum_dataIn_InputPorts() const
void set_frameOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to frameOut[portNum].
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void init()
Object initializer.
U32 FwEventIdType
The type of an event identifier.
SerializeStatus
forward declaration for string
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port dataIn.
void log_WARNING_HI_NoBufferAvailable() const
void init()
Initialization function.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
bool isConnected_frameOut_OutputPort(FwIndexType portNum)
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
No time base has been established.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port dataIn.
A serious but recoverable event.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
FwIndexType getNum_frameOut_OutputPorts() const
void init()
Initialization function.
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 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)
PlatformIndexType FwIndexType
#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.
An error occurred while deserializing a packet.
virtual ~FrameAccumulatorComponentBase()
Destroy FrameAccumulatorComponentBase object.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void lock()
lock the mutex and assert success
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)