9 #if FW_ENABLE_TEXT_LOGGING 32 this->m_cmdResponseIn_InputPort[port].
init();
37 this->m_cmdResponseIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_cmdResponseIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_dataIn_InputPort[port].
init();
61 this->m_dataIn_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
80 this->m_fileBufferReturnIn_InputPort[port].
init();
81 this->m_fileBufferReturnIn_InputPort[port].
addCallComp(
83 m_p_fileBufferReturnIn_in
85 this->m_fileBufferReturnIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1 91 this->m_objName.toChar(),
94 this->m_fileBufferReturnIn_InputPort[port].setObjName(portName.
toChar());
104 this->m_logOut_OutputPort[port].
init();
106 #if FW_OBJECT_NAMES == 1 110 this->m_objName.toChar(),
113 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
117 #if FW_ENABLE_TEXT_LOGGING == 1 121 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
124 this->m_logTextOut_OutputPort[port].
init();
126 #if FW_OBJECT_NAMES == 1 130 this->m_objName.toChar(),
133 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
144 this->m_timeCaller_OutputPort[port].
init();
146 #if FW_OBJECT_NAMES == 1 150 this->m_objName.toChar(),
153 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
163 this->m_bufferAllocate_OutputPort[port].
init();
165 #if FW_OBJECT_NAMES == 1 169 this->m_objName.toChar(),
172 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
182 this->m_bufferDeallocate_OutputPort[port].
init();
184 #if FW_OBJECT_NAMES == 1 188 this->m_objName.toChar(),
191 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
201 this->m_commandOut_OutputPort[port].
init();
203 #if FW_OBJECT_NAMES == 1 207 this->m_objName.toChar(),
210 this->m_commandOut_OutputPort[port].setObjName(portName.
toChar());
220 this->m_dataReturnOut_OutputPort[port].
init();
222 #if FW_OBJECT_NAMES == 1 226 this->m_objName.toChar(),
229 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
239 this->m_fileOut_OutputPort[port].
init();
241 #if FW_OBJECT_NAMES == 1 245 this->m_objName.toChar(),
248 this->m_fileOut_OutputPort[port].setObjName(portName.
toChar());
258 this->m_unknownDataOut_OutputPort[port].
init();
260 #if FW_OBJECT_NAMES == 1 264 this->m_objName.toChar(),
267 this->m_unknownDataOut_OutputPort[port].setObjName(portName.
toChar());
281 static_cast<FwAssertArgType>(portNum)
284 return &this->m_cmdResponseIn_InputPort[portNum];
292 static_cast<FwAssertArgType>(portNum)
295 return &this->m_dataIn_InputPort[portNum];
303 static_cast<FwAssertArgType>(portNum)
306 return &this->m_fileBufferReturnIn_InputPort[portNum];
321 static_cast<FwAssertArgType>(portNum)
324 this->m_logOut_OutputPort[portNum].
addCallPort(port);
327 #if FW_ENABLE_TEXT_LOGGING == 1 329 void FprimeRouterComponentBase ::
330 set_logTextOut_OutputPort(
336 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
337 static_cast<FwAssertArgType>(portNum)
340 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
353 static_cast<FwAssertArgType>(portNum)
356 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
371 static_cast<FwAssertArgType>(portNum)
374 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
385 static_cast<FwAssertArgType>(portNum)
388 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
399 static_cast<FwAssertArgType>(portNum)
402 this->m_commandOut_OutputPort[portNum].
addCallPort(port);
413 static_cast<FwAssertArgType>(portNum)
416 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
427 static_cast<FwAssertArgType>(portNum)
430 this->m_fileOut_OutputPort[portNum].
addCallPort(port);
441 static_cast<FwAssertArgType>(portNum)
444 this->m_unknownDataOut_OutputPort[portNum].
addCallPort(port);
447 #if FW_PORT_SERIALIZATION 456 Fw::InputSerializePort* port
461 static_cast<FwAssertArgType>(portNum)
464 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
467 #if FW_ENABLE_TEXT_LOGGING == 1 469 void FprimeRouterComponentBase ::
470 set_logTextOut_OutputPort(
472 Fw::InputSerializePort* port
476 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
477 static_cast<FwAssertArgType>(portNum)
480 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
488 Fw::InputSerializePort* port
493 static_cast<FwAssertArgType>(portNum)
496 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
501 #if FW_PORT_SERIALIZATION 510 Fw::InputSerializePort* port
515 static_cast<FwAssertArgType>(portNum)
518 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
524 Fw::InputSerializePort* port
529 static_cast<FwAssertArgType>(portNum)
532 this->m_commandOut_OutputPort[portNum].registerSerialPort(port);
538 Fw::InputSerializePort* port
543 static_cast<FwAssertArgType>(portNum)
546 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
552 Fw::InputSerializePort* port
557 static_cast<FwAssertArgType>(portNum)
560 this->m_fileOut_OutputPort[portNum].registerSerialPort(port);
566 Fw::InputSerializePort* port
571 static_cast<FwAssertArgType>(portNum)
574 this->m_unknownDataOut_OutputPort[portNum].registerSerialPort(port);
585 Fw::PassiveComponentBase(compName)
628 #if FW_ENABLE_TEXT_LOGGING == 1 631 getNum_logTextOut_OutputPorts()
const 693 static_cast<FwAssertArgType>(portNum)
696 return this->m_logOut_OutputPort[portNum].
isConnected();
699 #if FW_ENABLE_TEXT_LOGGING == 1 701 bool FprimeRouterComponentBase ::
702 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
705 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
706 static_cast<FwAssertArgType>(portNum)
709 return this->m_logTextOut_OutputPort[portNum].isConnected();
719 static_cast<FwAssertArgType>(portNum)
722 return this->m_timeCaller_OutputPort[portNum].
isConnected();
734 static_cast<FwAssertArgType>(portNum)
737 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
745 static_cast<FwAssertArgType>(portNum)
748 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
756 static_cast<FwAssertArgType>(portNum)
759 return this->m_commandOut_OutputPort[portNum].
isConnected();
767 static_cast<FwAssertArgType>(portNum)
770 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
778 static_cast<FwAssertArgType>(portNum)
781 return this->m_fileOut_OutputPort[portNum].
isConnected();
789 static_cast<FwAssertArgType>(portNum)
792 return this->m_unknownDataOut_OutputPort[portNum].
isConnected();
812 static_cast<FwAssertArgType>(portNum)
834 static_cast<FwAssertArgType>(portNum)
854 static_cast<FwAssertArgType>(portNum)
876 static_cast<FwAssertArgType>(portNum)
880 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
881 static_cast<FwAssertArgType>(portNum)
883 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
896 static_cast<FwAssertArgType>(portNum)
900 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
901 static_cast<FwAssertArgType>(portNum)
903 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
917 static_cast<FwAssertArgType>(portNum)
921 this->m_commandOut_OutputPort[portNum].isConnected(),
922 static_cast<FwAssertArgType>(portNum)
924 this->m_commandOut_OutputPort[portNum].
invoke(
939 static_cast<FwAssertArgType>(portNum)
943 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
944 static_cast<FwAssertArgType>(portNum)
946 this->m_dataReturnOut_OutputPort[portNum].
invoke(
960 static_cast<FwAssertArgType>(portNum)
964 this->m_fileOut_OutputPort[portNum].isConnected(),
965 static_cast<FwAssertArgType>(portNum)
967 this->m_fileOut_OutputPort[portNum].
invoke(
981 static_cast<FwAssertArgType>(portNum)
985 this->m_unknownDataOut_OutputPort[portNum].isConnected(),
986 static_cast<FwAssertArgType>(portNum)
988 this->m_unknownDataOut_OutputPort[portNum].
invoke(
1003 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1004 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1012 if (this->m_logOut_OutputPort[0].isConnected()) {
1016 #if FW_AMPCS_COMPATIBLE 1018 _status = _logBuff.
serialize(static_cast<U8>(1));
1021 static_cast<FwAssertArgType>(_status)
1025 #if FW_AMPCS_COMPATIBLE 1028 static_cast<U8>(
sizeof(U32))
1032 static_cast<FwAssertArgType>(_status)
1038 static_cast<FwAssertArgType>(_status)
1041 this->m_logOut_OutputPort[0].
invoke(
1050 #if FW_ENABLE_TEXT_LOGGING 1051 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1052 #if FW_OBJECT_NAMES == 1 1053 const char* _formatString =
1054 "(%s) %s: Serializing com buffer failed with status %" PRIu32
"";
1056 const char* _formatString =
1057 "%s: Serializing com buffer failed with status %" PRIu32
"";
1064 this->m_objName.toChar(),
1066 "SerializationError ",
1070 this->m_logTextOut_OutputPort[0].invoke(
1085 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1086 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1094 if (this->m_logOut_OutputPort[0].isConnected()) {
1098 #if FW_AMPCS_COMPATIBLE 1100 _status = _logBuff.
serialize(static_cast<U8>(1));
1103 static_cast<FwAssertArgType>(_status)
1107 #if FW_AMPCS_COMPATIBLE 1110 static_cast<U8>(
sizeof(U32))
1114 static_cast<FwAssertArgType>(_status)
1120 static_cast<FwAssertArgType>(_status)
1123 this->m_logOut_OutputPort[0].
invoke(
1132 #if FW_ENABLE_TEXT_LOGGING 1133 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1134 #if FW_OBJECT_NAMES == 1 1135 const char* _formatString =
1136 "(%s) %s: Deserializing packet type failed with status %" PRIu32
"";
1138 const char* _formatString =
1139 "%s: Deserializing packet type failed with status %" PRIu32
"";
1146 this->m_objName.toChar(),
1148 "DeserializationError ",
1152 this->m_logTextOut_OutputPort[0].invoke(
1169 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1171 this->m_timeCaller_OutputPort[0].
invoke(_time);
1183 void FprimeRouterComponentBase ::
1184 m_p_cmdResponseIn_in(
1202 void FprimeRouterComponentBase ::
1212 compPtr->dataIn_handlerBase(
1219 void FprimeRouterComponentBase ::
1220 m_p_fileBufferReturnIn_in(
1228 compPtr->fileBufferReturnIn_handlerBase(
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void commandOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port commandOut.
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port interface.
void init()
Initialization function.
virtual ~FprimeRouterComponentBase()
Destroy FprimeRouterComponentBase object.
FwIdType FwOpcodeType
The type of a command opcode.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void fileBufferReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port fileBufferReturnIn.
FwIdType getIdBase() const
bool isConnected_commandOut_OutputPort(FwIndexType portNum)
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
FwIndexType getNum_fileOut_OutputPorts() const
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
FprimeRouterComponentBase(const char *compName="")
Construct FprimeRouterComponentBase object.
FwIndexType getNum_logOut_OutputPorts() const
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
void fileOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port fileOut.
Enum representing a command response.
bool isConnected_fileOut_OutputPort(FwIndexType portNum)
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
bool isConnected_logOut_OutputPort(FwIndexType portNum)
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
Fw::InputCmdResponsePort * get_cmdResponseIn_InputPort(FwIndexType portNum)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void init()
Object initializer.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
SerializeStatus
forward declaration for string
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
FwIdType FwEventIdType
The type of an event identifier.
An error occurred while deserializing a packet.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
FwIndexType getNum_bufferAllocate_OutputPorts() const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
Fw::InputBufferSendPort * get_fileBufferReturnIn_InputPort(FwIndexType portNum)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
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 cmdResponseIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
FwIndexType getNum_cmdResponseIn_InputPorts() const
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
A serious but recoverable event.
void init()
Initialization function.
Auto-generated base for FprimeRouter component.
void set_fileOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to fileOut[portNum].
An error occurred while serializing a com buffer.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
FwIndexType getNum_fileBufferReturnIn_InputPorts() const
void unknownDataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port unknownDataOut.
FwIndexType getNum_unknownDataOut_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_unknownDataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to unknownDataOut[portNum].
No time base has been established.
PlatformIndexType FwIndexType
FwIndexType getNum_timeCaller_OutputPorts() const
void log_WARNING_HI_DeserializationError(U32 status) const
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void log_WARNING_HI_SerializationError(U32 status) const
Type used to pass context info between components during framing/deframing.
void init()
Initialization function.
RateGroupDivider component implementation.
FwIndexType getNum_commandOut_OutputPorts() const
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
void set_commandOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to commandOut[portNum].
void addCallPort(InputComPort *callPort)
Register an input port.
virtual void cmdResponseIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdResponseIn.
FwIndexType getNum_dataIn_InputPorts() const
bool isConnected_unknownDataOut_OutputPort(FwIndexType portNum)
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
FwIndexType getNum_dataReturnOut_OutputPorts() const
virtual void fileBufferReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port fileBufferReturnIn.