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)
720 static_cast<FwAssertArgType>(portNum)
723 return this->m_logOut_OutputPort[portNum].
isConnected();
726 #if FW_ENABLE_TEXT_LOGGING == 1 728 bool SpacePacketFramerComponentBase ::
729 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
732 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
733 static_cast<FwAssertArgType>(portNum)
736 return this->m_logTextOut_OutputPort[portNum].isConnected();
746 static_cast<FwAssertArgType>(portNum)
749 return this->m_prmGetOut_OutputPort[portNum].
isConnected();
757 static_cast<FwAssertArgType>(portNum)
760 return this->m_prmSetOut_OutputPort[portNum].
isConnected();
768 static_cast<FwAssertArgType>(portNum)
771 return this->m_timeCaller_OutputPort[portNum].
isConnected();
779 static_cast<FwAssertArgType>(portNum)
782 return this->m_tlmOut_OutputPort[portNum].
isConnected();
794 static_cast<FwAssertArgType>(portNum)
797 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
805 static_cast<FwAssertArgType>(portNum)
808 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
816 static_cast<FwAssertArgType>(portNum)
819 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
827 static_cast<FwAssertArgType>(portNum)
830 return this->m_dataOut_OutputPort[portNum].
isConnected();
838 static_cast<FwAssertArgType>(portNum)
841 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
849 static_cast<FwAssertArgType>(portNum)
852 return this->m_getApidSeqCount_OutputPort[portNum].
isConnected();
870 static_cast<FwAssertArgType>(portNum)
890 static_cast<FwAssertArgType>(portNum)
911 static_cast<FwAssertArgType>(portNum)
934 static_cast<FwAssertArgType>(portNum)
938 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
939 static_cast<FwAssertArgType>(portNum)
941 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
954 static_cast<FwAssertArgType>(portNum)
958 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
959 static_cast<FwAssertArgType>(portNum)
961 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
974 static_cast<FwAssertArgType>(portNum)
978 this->m_comStatusOut_OutputPort[portNum].isConnected(),
979 static_cast<FwAssertArgType>(portNum)
981 this->m_comStatusOut_OutputPort[portNum].
invoke(
995 static_cast<FwAssertArgType>(portNum)
999 this->m_dataOut_OutputPort[portNum].isConnected(),
1000 static_cast<FwAssertArgType>(portNum)
1002 this->m_dataOut_OutputPort[portNum].
invoke(
1017 static_cast<FwAssertArgType>(portNum)
1021 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
1022 static_cast<FwAssertArgType>(portNum)
1024 this->m_dataReturnOut_OutputPort[portNum].
invoke(
1039 static_cast<FwAssertArgType>(portNum)
1043 this->m_getApidSeqCount_OutputPort[portNum].isConnected(),
1044 static_cast<FwAssertArgType>(portNum)
1046 return this->m_getApidSeqCount_OutputPort[portNum].
invoke(
1059 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1061 this->m_timeCaller_OutputPort[0].
invoke(_time);
1073 void SpacePacketFramerComponentBase ::
1088 void SpacePacketFramerComponentBase ::
1098 compPtr->dataIn_handlerBase(
1105 void SpacePacketFramerComponentBase ::
1106 m_p_dataReturnIn_in(
1115 compPtr->dataReturnIn_handlerBase(
bool isConnected_getApidSeqCount_OutputPort(FwIndexType portNum)
void addCallPort(InputTimePort *callPort)
Register an input port.
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
SpacePacketFramerComponentBase(const char *compName="")
Construct SpacePacketFramerComponentBase object.
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum)
PlatformSizeType FwSizeType
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
U16 getApidSeqCount_out(FwIndexType portNum, const ComCfg::Apid &apid, U16 sequenceCount)
Invoke output port getApidSeqCount.
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_dataIn_InputPorts()
void init()
Initialization function.
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void init()
Initialization function.
No time base has been established (Required)
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_getApidSeqCount_OutputPorts()
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
void init()
Initialization function.
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 comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
void init()
Object initializer.
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum)
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
void set_getApidSeqCount_OutputPort(FwIndexType portNum, Svc::Ccsds::InputApidSequenceCountPort *port)
Connect port to getApidSeqCount[portNum].
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
static constexpr FwIndexType getNum_bufferAllocate_OutputPorts()
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port interface.
static constexpr FwIndexType getNum_logOut_OutputPorts()
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
const char * toChar() const
Convert to a C-style char*.
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
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 set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
void init()
Initialization function.
static constexpr FwIndexType getNum_bufferDeallocate_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
Auto-generated base for SpacePacketFramer component.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void init()
Initialization function.
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
bool isConnected_logOut_OutputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
U16 invoke(const ComCfg::Apid &apid, U16 sequenceCount) const
Invoke a port interface.
void addCallPort(InputLogPort *callPort)
Register an input port.
Type used to pass context info between components during framing/deframing.
void init()
Initialization function.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
Implementation of malloc based allocator.
virtual ~SpacePacketFramerComponentBase()
Destroy SpacePacketFramerComponentBase object.
void init()
Initialization function.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void init()
Initialization function.
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port bufferAllocate.
void addCallPort(InputApidSequenceCountPort *callPort)
Register an input port.