9 #if FW_ENABLE_TEXT_LOGGING 34 this->m_comStatusIn_InputPort[port].
init();
39 this->m_comStatusIn_InputPort[port].
setPortNum(port);
41 #if FW_OBJECT_NAMES == 1 45 this->m_objName.toChar(),
48 this->m_comStatusIn_InputPort[port].setObjName(portName.
toChar());
58 this->m_dataIn_InputPort[port].
init();
63 this->m_dataIn_InputPort[port].
setPortNum(port);
65 #if FW_OBJECT_NAMES == 1 69 this->m_objName.toChar(),
72 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
82 this->m_dataReturnIn_InputPort[port].
init();
87 this->m_dataReturnIn_InputPort[port].
setPortNum(port);
89 #if FW_OBJECT_NAMES == 1 93 this->m_objName.toChar(),
96 this->m_dataReturnIn_InputPort[port].setObjName(portName.
toChar());
106 this->m_logOut_OutputPort[port].
init();
108 #if FW_OBJECT_NAMES == 1 112 this->m_objName.toChar(),
115 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
119 #if FW_ENABLE_TEXT_LOGGING == 1 123 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
126 this->m_logTextOut_OutputPort[port].
init();
128 #if FW_OBJECT_NAMES == 1 132 this->m_objName.toChar(),
135 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
146 this->m_prmGetOut_OutputPort[port].
init();
148 #if FW_OBJECT_NAMES == 1 152 this->m_objName.toChar(),
155 this->m_prmGetOut_OutputPort[port].setObjName(portName.
toChar());
165 this->m_prmSetOut_OutputPort[port].
init();
167 #if FW_OBJECT_NAMES == 1 171 this->m_objName.toChar(),
174 this->m_prmSetOut_OutputPort[port].setObjName(portName.
toChar());
184 this->m_timeCaller_OutputPort[port].
init();
186 #if FW_OBJECT_NAMES == 1 190 this->m_objName.toChar(),
193 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
203 this->m_tlmOut_OutputPort[port].
init();
205 #if FW_OBJECT_NAMES == 1 209 this->m_objName.toChar(),
212 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
222 this->m_bufferAllocate_OutputPort[port].
init();
224 #if FW_OBJECT_NAMES == 1 228 this->m_objName.toChar(),
231 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
241 this->m_bufferDeallocate_OutputPort[port].
init();
243 #if FW_OBJECT_NAMES == 1 247 this->m_objName.toChar(),
250 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
260 this->m_comStatusOut_OutputPort[port].
init();
262 #if FW_OBJECT_NAMES == 1 266 this->m_objName.toChar(),
269 this->m_comStatusOut_OutputPort[port].setObjName(portName.
toChar());
279 this->m_dataOut_OutputPort[port].
init();
281 #if FW_OBJECT_NAMES == 1 285 this->m_objName.toChar(),
288 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
298 this->m_dataReturnOut_OutputPort[port].
init();
300 #if FW_OBJECT_NAMES == 1 304 this->m_objName.toChar(),
307 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
317 this->m_getApidSeqCount_OutputPort[port].
init();
319 #if FW_OBJECT_NAMES == 1 323 this->m_objName.toChar(),
326 this->m_getApidSeqCount_OutputPort[port].setObjName(portName.
toChar());
340 static_cast<FwAssertArgType>(portNum)
343 return &this->m_comStatusIn_InputPort[portNum];
351 static_cast<FwAssertArgType>(portNum)
354 return &this->m_dataIn_InputPort[portNum];
362 static_cast<FwAssertArgType>(portNum)
365 return &this->m_dataReturnIn_InputPort[portNum];
380 static_cast<FwAssertArgType>(portNum)
383 this->m_logOut_OutputPort[portNum].
addCallPort(port);
386 #if FW_ENABLE_TEXT_LOGGING == 1 388 void SpacePacketFramerComponentBase ::
389 set_logTextOut_OutputPort(
395 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
396 static_cast<FwAssertArgType>(portNum)
399 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
412 static_cast<FwAssertArgType>(portNum)
415 this->m_prmGetOut_OutputPort[portNum].
addCallPort(port);
426 static_cast<FwAssertArgType>(portNum)
429 this->m_prmSetOut_OutputPort[portNum].
addCallPort(port);
440 static_cast<FwAssertArgType>(portNum)
443 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
454 static_cast<FwAssertArgType>(portNum)
457 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
472 static_cast<FwAssertArgType>(portNum)
475 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
486 static_cast<FwAssertArgType>(portNum)
489 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
500 static_cast<FwAssertArgType>(portNum)
503 this->m_comStatusOut_OutputPort[portNum].
addCallPort(port);
514 static_cast<FwAssertArgType>(portNum)
517 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
528 static_cast<FwAssertArgType>(portNum)
531 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
542 static_cast<FwAssertArgType>(portNum)
545 this->m_getApidSeqCount_OutputPort[portNum].
addCallPort(port);
548 #if FW_PORT_SERIALIZATION 557 Fw::InputSerializePort* port
562 static_cast<FwAssertArgType>(portNum)
565 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
568 #if FW_ENABLE_TEXT_LOGGING == 1 570 void SpacePacketFramerComponentBase ::
571 set_logTextOut_OutputPort(
573 Fw::InputSerializePort* port
577 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
578 static_cast<FwAssertArgType>(portNum)
581 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
589 Fw::InputSerializePort* port
594 static_cast<FwAssertArgType>(portNum)
597 this->m_prmSetOut_OutputPort[portNum].registerSerialPort(port);
603 Fw::InputSerializePort* port
608 static_cast<FwAssertArgType>(portNum)
611 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
617 Fw::InputSerializePort* port
622 static_cast<FwAssertArgType>(portNum)
625 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
630 #if FW_PORT_SERIALIZATION 639 Fw::InputSerializePort* port
644 static_cast<FwAssertArgType>(portNum)
647 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
653 Fw::InputSerializePort* port
658 static_cast<FwAssertArgType>(portNum)
661 this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
667 Fw::InputSerializePort* port
672 static_cast<FwAssertArgType>(portNum)
675 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
681 Fw::InputSerializePort* port
686 static_cast<FwAssertArgType>(portNum)
689 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
700 Fw::PassiveComponentBase(compName)
743 #if FW_ENABLE_TEXT_LOGGING == 1 746 getNum_logTextOut_OutputPorts()
const 826 static_cast<FwAssertArgType>(portNum)
829 return this->m_logOut_OutputPort[portNum].
isConnected();
832 #if FW_ENABLE_TEXT_LOGGING == 1 834 bool SpacePacketFramerComponentBase ::
835 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
838 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
839 static_cast<FwAssertArgType>(portNum)
842 return this->m_logTextOut_OutputPort[portNum].isConnected();
852 static_cast<FwAssertArgType>(portNum)
855 return this->m_prmGetOut_OutputPort[portNum].
isConnected();
863 static_cast<FwAssertArgType>(portNum)
866 return this->m_prmSetOut_OutputPort[portNum].
isConnected();
874 static_cast<FwAssertArgType>(portNum)
877 return this->m_timeCaller_OutputPort[portNum].
isConnected();
885 static_cast<FwAssertArgType>(portNum)
888 return this->m_tlmOut_OutputPort[portNum].
isConnected();
900 static_cast<FwAssertArgType>(portNum)
903 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
911 static_cast<FwAssertArgType>(portNum)
914 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
922 static_cast<FwAssertArgType>(portNum)
925 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
933 static_cast<FwAssertArgType>(portNum)
936 return this->m_dataOut_OutputPort[portNum].
isConnected();
944 static_cast<FwAssertArgType>(portNum)
947 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
955 static_cast<FwAssertArgType>(portNum)
958 return this->m_getApidSeqCount_OutputPort[portNum].
isConnected();
976 static_cast<FwAssertArgType>(portNum)
996 static_cast<FwAssertArgType>(portNum)
1017 static_cast<FwAssertArgType>(portNum)
1040 static_cast<FwAssertArgType>(portNum)
1044 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
1045 static_cast<FwAssertArgType>(portNum)
1047 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
1060 static_cast<FwAssertArgType>(portNum)
1064 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
1065 static_cast<FwAssertArgType>(portNum)
1067 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
1080 static_cast<FwAssertArgType>(portNum)
1084 this->m_comStatusOut_OutputPort[portNum].isConnected(),
1085 static_cast<FwAssertArgType>(portNum)
1087 this->m_comStatusOut_OutputPort[portNum].
invoke(
1101 static_cast<FwAssertArgType>(portNum)
1105 this->m_dataOut_OutputPort[portNum].isConnected(),
1106 static_cast<FwAssertArgType>(portNum)
1108 this->m_dataOut_OutputPort[portNum].
invoke(
1123 static_cast<FwAssertArgType>(portNum)
1127 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
1128 static_cast<FwAssertArgType>(portNum)
1130 this->m_dataReturnOut_OutputPort[portNum].
invoke(
1145 static_cast<FwAssertArgType>(portNum)
1149 this->m_getApidSeqCount_OutputPort[portNum].isConnected(),
1150 static_cast<FwAssertArgType>(portNum)
1152 return this->m_getApidSeqCount_OutputPort[portNum].
invoke(
1165 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1167 this->m_timeCaller_OutputPort[0].
invoke(_time);
1179 void SpacePacketFramerComponentBase ::
1194 void SpacePacketFramerComponentBase ::
1204 compPtr->dataIn_handlerBase(
1211 void SpacePacketFramerComponentBase ::
1212 m_p_dataReturnIn_in(
1221 compPtr->dataReturnIn_handlerBase(
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
FwIndexType getNum_dataOut_OutputPorts() const
void addCallPort(InputTimePort *callPort)
Register an input port.
U16 invoke(const ComCfg::APID &apid, U16 sequenceCount) const
Invoke a port interface.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
FwIndexType getNum_dataReturnOut_OutputPorts() const
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
bool isConnected_getApidSeqCount_OutputPort(FwIndexType portNum)
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
FwIndexType getNum_getApidSeqCount_OutputPorts() const
virtual ~SpacePacketFramerComponentBase()
Destroy SpacePacketFramerComponentBase object.
void init()
Initialization function.
FwIndexType getNum_bufferAllocate_OutputPorts() const
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
FwIndexType getNum_logOut_OutputPorts() const
void init()
Initialization function.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
void init()
Object initializer.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
bool isConnected_logOut_OutputPort(FwIndexType portNum)
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
FwIndexType getNum_dataReturnIn_InputPorts() const
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
Auto-generated base for SpacePacketFramer component.
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
FwIndexType getNum_comStatusIn_InputPorts() const
void invoke(Fw::Success &condition) const
Invoke a port interface.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
void addCallPort(InputApidSequenceCountPort *callPort)
Register an input port.
FwIndexType getNum_prmSetOut_OutputPorts() const
void init()
Initialization function.
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void init()
Initialization function.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void init()
Initialization function.
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
SpacePacketFramerComponentBase(const char *compName="")
Construct SpacePacketFramerComponentBase object.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
No time base has been established.
PlatformIndexType FwIndexType
void set_getApidSeqCount_OutputPort(FwIndexType portNum, Svc::CCSDS::InputApidSequenceCountPort *port)
Connect port to getApidSeqCount[portNum].
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
Type used to pass context info between components during framing/deframing.
void init()
Initialization function.
RateGroupDivider component implementation.
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_prmGetOut_OutputPorts() const
FwIndexType getNum_tlmOut_OutputPorts() const
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_dataIn_InputPorts() const
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
U16 getApidSeqCount_out(FwIndexType portNum, const ComCfg::APID &apid, U16 sequenceCount)
Invoke output port getApidSeqCount.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
FwIndexType getNum_timeCaller_OutputPorts() const
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void init()
Initialization function.
FwIndexType getNum_comStatusOut_OutputPorts() const