11#if FW_ENABLE_TEXT_LOGGING
28 class ComponentIpcSerializableBuffer :
43 return sizeof(m_buff);
50 const U8* getBuffAddr()
const {
56 U8 m_buff[SERIALIZATION_SIZE];
65 void GenericHubComponentBase ::
74 port < static_cast<PlatformIntType>(this->getNum_LogRecv_InputPorts());
77 this->m_LogRecv_InputPort[port].init();
78 this->m_LogRecv_InputPort[port].addCallComp(
82 this->m_LogRecv_InputPort[port].setPortNum(port);
84#if FW_OBJECT_NAMES == 1
93 this->m_LogRecv_InputPort[port].setObjName(portName);
100 port < static_cast<PlatformIntType>(this->getNum_TlmRecv_InputPorts());
103 this->m_TlmRecv_InputPort[port].init();
104 this->m_TlmRecv_InputPort[port].addCallComp(
108 this->m_TlmRecv_InputPort[port].setPortNum(port);
110#if FW_OBJECT_NAMES == 1
119 this->m_TlmRecv_InputPort[port].setObjName(portName);
126 port < static_cast<PlatformIntType>(this->getNum_buffersIn_InputPorts());
129 this->m_buffersIn_InputPort[port].init();
130 this->m_buffersIn_InputPort[port].addCallComp(
134 this->m_buffersIn_InputPort[port].setPortNum(port);
136#if FW_OBJECT_NAMES == 1
145 this->m_buffersIn_InputPort[port].setObjName(portName);
152 port < static_cast<PlatformIntType>(this->getNum_dataIn_InputPorts());
155 this->m_dataIn_InputPort[port].init();
156 this->m_dataIn_InputPort[port].addCallComp(
160 this->m_dataIn_InputPort[port].setPortNum(port);
162#if FW_OBJECT_NAMES == 1
171 this->m_dataIn_InputPort[port].setObjName(portName);
178 port < static_cast<PlatformIntType>(this->getNum_portIn_InputPorts());
181 this->m_portIn_InputPort[port].init();
182 this->m_portIn_InputPort[port].addCallComp(
186 this->m_portIn_InputPort[port].setPortNum(port);
188#if FW_OBJECT_NAMES == 1
197 this->m_portIn_InputPort[port].setObjName(portName);
204 port < static_cast<PlatformIntType>(this->getNum_LogSend_OutputPorts());
207 this->m_LogSend_OutputPort[port].init();
209#if FW_OBJECT_NAMES == 1
218 this->m_LogSend_OutputPort[port].setObjName(portName);
225 port < static_cast<PlatformIntType>(this->getNum_TlmSend_OutputPorts());
228 this->m_TlmSend_OutputPort[port].init();
230#if FW_OBJECT_NAMES == 1
239 this->m_TlmSend_OutputPort[port].setObjName(portName);
246 port < static_cast<PlatformIntType>(this->getNum_bufferDeallocate_OutputPorts());
249 this->m_bufferDeallocate_OutputPort[port].init();
251#if FW_OBJECT_NAMES == 1
260 this->m_bufferDeallocate_OutputPort[port].setObjName(portName);
267 port < static_cast<PlatformIntType>(this->getNum_buffersOut_OutputPorts());
270 this->m_buffersOut_OutputPort[port].init();
272#if FW_OBJECT_NAMES == 1
281 this->m_buffersOut_OutputPort[port].setObjName(portName);
288 port < static_cast<PlatformIntType>(this->getNum_dataInDeallocate_OutputPorts());
291 this->m_dataInDeallocate_OutputPort[port].init();
293#if FW_OBJECT_NAMES == 1
302 this->m_dataInDeallocate_OutputPort[port].setObjName(portName);
309 port < static_cast<PlatformIntType>(this->getNum_dataOut_OutputPorts());
312 this->m_dataOut_OutputPort[port].init();
314#if FW_OBJECT_NAMES == 1
323 this->m_dataOut_OutputPort[port].setObjName(portName);
330 port < static_cast<PlatformIntType>(this->getNum_dataOutAllocate_OutputPorts());
333 this->m_dataOutAllocate_OutputPort[port].init();
335#if FW_OBJECT_NAMES == 1
344 this->m_dataOutAllocate_OutputPort[port].setObjName(portName);
351 port < static_cast<PlatformIntType>(this->getNum_portOut_OutputPorts());
354 this->m_portOut_OutputPort[port].init();
356#if FW_OBJECT_NAMES == 1
365 this->m_portOut_OutputPort[port].setObjName(portName);
65 void GenericHubComponentBase :: {
…}
378 portNum < this->getNum_LogRecv_InputPorts(),
382 return &this->m_LogRecv_InputPort[portNum];
389 portNum < this->getNum_TlmRecv_InputPorts(),
393 return &this->m_TlmRecv_InputPort[portNum];
400 portNum < this->getNum_buffersIn_InputPorts(),
404 return &this->m_buffersIn_InputPort[portNum];
411 portNum < this->getNum_dataIn_InputPorts(),
415 return &this->m_dataIn_InputPort[portNum];
422 Fw::InputSerializePort* GenericHubComponentBase ::
426 portNum < this->getNum_portIn_InputPorts(),
430 return &this->m_portIn_InputPort[portNum];
422 Fw::InputSerializePort* GenericHubComponentBase :: {
…}
437 void GenericHubComponentBase ::
438 set_LogSend_OutputPort(
444 portNum < this->getNum_LogSend_OutputPorts(),
448 this->m_LogSend_OutputPort[portNum].addCallPort(port);
437 void GenericHubComponentBase :: {
…}
451 void GenericHubComponentBase ::
452 set_TlmSend_OutputPort(
458 portNum < this->getNum_TlmSend_OutputPorts(),
462 this->m_TlmSend_OutputPort[portNum].addCallPort(port);
451 void GenericHubComponentBase :: {
…}
465 void GenericHubComponentBase ::
466 set_bufferDeallocate_OutputPort(
472 portNum < this->getNum_bufferDeallocate_OutputPorts(),
476 this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
465 void GenericHubComponentBase :: {
…}
479 void GenericHubComponentBase ::
480 set_buffersOut_OutputPort(
486 portNum < this->getNum_buffersOut_OutputPorts(),
490 this->m_buffersOut_OutputPort[portNum].addCallPort(port);
479 void GenericHubComponentBase :: {
…}
493 void GenericHubComponentBase ::
494 set_dataInDeallocate_OutputPort(
500 portNum < this->getNum_dataInDeallocate_OutputPorts(),
504 this->m_dataInDeallocate_OutputPort[portNum].addCallPort(port);
493 void GenericHubComponentBase :: {
…}
507 void GenericHubComponentBase ::
508 set_dataOut_OutputPort(
514 portNum < this->getNum_dataOut_OutputPorts(),
518 this->m_dataOut_OutputPort[portNum].addCallPort(port);
507 void GenericHubComponentBase :: {
…}
521 void GenericHubComponentBase ::
522 set_dataOutAllocate_OutputPort(
528 portNum < this->getNum_dataOutAllocate_OutputPorts(),
532 this->m_dataOutAllocate_OutputPort[portNum].addCallPort(port);
521 void GenericHubComponentBase :: {
…}
535#if FW_PORT_SERIALIZATION
541 void GenericHubComponentBase ::
542 set_LogSend_OutputPort(
544 Fw::InputSerializePort* port
548 portNum < this->getNum_LogSend_OutputPorts(),
552 this->m_LogSend_OutputPort[portNum].registerSerialPort(port);
555 void GenericHubComponentBase ::
556 set_TlmSend_OutputPort(
558 Fw::InputSerializePort* port
562 portNum < this->getNum_TlmSend_OutputPorts(),
566 this->m_TlmSend_OutputPort[portNum].registerSerialPort(port);
569 void GenericHubComponentBase ::
570 set_bufferDeallocate_OutputPort(
572 Fw::InputSerializePort* port
576 portNum < this->getNum_bufferDeallocate_OutputPorts(),
580 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
583 void GenericHubComponentBase ::
584 set_buffersOut_OutputPort(
586 Fw::InputSerializePort* port
590 portNum < this->getNum_buffersOut_OutputPorts(),
594 this->m_buffersOut_OutputPort[portNum].registerSerialPort(port);
597 void GenericHubComponentBase ::
598 set_dataInDeallocate_OutputPort(
600 Fw::InputSerializePort* port
604 portNum < this->getNum_dataInDeallocate_OutputPorts(),
608 this->m_dataInDeallocate_OutputPort[portNum].registerSerialPort(port);
611 void GenericHubComponentBase ::
612 set_dataOut_OutputPort(
614 Fw::InputSerializePort* port
618 portNum < this->getNum_dataOut_OutputPorts(),
622 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
627#if FW_PORT_SERIALIZATION
633 void GenericHubComponentBase ::
634 set_portOut_OutputPort(
640 portNum < this->getNum_portOut_OutputPorts(),
644 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
653 GenericHubComponentBase ::
654 GenericHubComponentBase(
const char* compName) :
655 Fw::PassiveComponentBase(compName)
653 GenericHubComponentBase :: {
…}
660 GenericHubComponentBase ::
661 ~GenericHubComponentBase()
660 GenericHubComponentBase :: {
…}
671 getNum_LogRecv_InputPorts()
677 getNum_TlmRecv_InputPorts()
683 getNum_buffersIn_InputPorts()
689 getNum_dataIn_InputPorts()
699 getNum_portIn_InputPorts()
709 getNum_LogSend_OutputPorts()
715 getNum_TlmSend_OutputPorts()
721 getNum_bufferDeallocate_OutputPorts()
727 getNum_buffersOut_OutputPorts()
733 getNum_dataInDeallocate_OutputPorts()
739 getNum_dataOut_OutputPorts()
745 getNum_dataOutAllocate_OutputPorts()
755 getNum_portOut_OutputPorts()
764 bool GenericHubComponentBase ::
768 portNum < this->getNum_LogSend_OutputPorts(),
772 return this->m_LogSend_OutputPort[portNum].isConnected();
764 bool GenericHubComponentBase :: {
…}
775 bool GenericHubComponentBase ::
779 portNum < this->getNum_TlmSend_OutputPorts(),
783 return this->m_TlmSend_OutputPort[portNum].isConnected();
775 bool GenericHubComponentBase :: {
…}
786 bool GenericHubComponentBase ::
790 portNum < this->getNum_bufferDeallocate_OutputPorts(),
794 return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
786 bool GenericHubComponentBase :: {
…}
797 bool GenericHubComponentBase ::
801 portNum < this->getNum_buffersOut_OutputPorts(),
805 return this->m_buffersOut_OutputPort[portNum].isConnected();
797 bool GenericHubComponentBase :: {
…}
808 bool GenericHubComponentBase ::
812 portNum < this->getNum_dataInDeallocate_OutputPorts(),
816 return this->m_dataInDeallocate_OutputPort[portNum].isConnected();
808 bool GenericHubComponentBase :: {
…}
819 bool GenericHubComponentBase ::
823 portNum < this->getNum_dataOut_OutputPorts(),
827 return this->m_dataOut_OutputPort[portNum].isConnected();
819 bool GenericHubComponentBase :: {
…}
830 bool GenericHubComponentBase ::
834 portNum < this->getNum_dataOutAllocate_OutputPorts(),
838 return this->m_dataOutAllocate_OutputPort[portNum].isConnected();
830 bool GenericHubComponentBase :: {
…}
845 bool GenericHubComponentBase ::
849 portNum < this->getNum_portOut_OutputPorts(),
853 return this->m_portOut_OutputPort[portNum].isConnected();
845 bool GenericHubComponentBase :: {
…}
862 void GenericHubComponentBase ::
873 portNum < this->getNum_LogRecv_InputPorts(),
878 this->LogRecv_handler(
862 void GenericHubComponentBase :: {
…}
887 void GenericHubComponentBase ::
897 portNum < this->getNum_TlmRecv_InputPorts(),
902 this->TlmRecv_handler(
887 void GenericHubComponentBase :: {
…}
910 void GenericHubComponentBase ::
911 buffersIn_handlerBase(
918 portNum < this->getNum_buffersIn_InputPorts(),
923 this->buffersIn_handler(
910 void GenericHubComponentBase :: {
…}
929 void GenericHubComponentBase ::
937 portNum < this->getNum_dataIn_InputPorts(),
942 this->dataIn_handler(
929 void GenericHubComponentBase :: {
…}
954 void GenericHubComponentBase ::
962 portNum < this->getNum_portIn_InputPorts(),
967 this->portIn_handler(
954 void GenericHubComponentBase :: {
…}
977 void GenericHubComponentBase ::
987 portNum < this->getNum_LogSend_OutputPorts(),
990 this->m_LogSend_OutputPort[portNum].invoke(
977 void GenericHubComponentBase :: {
…}
998 void GenericHubComponentBase ::
1007 portNum < this->getNum_TlmSend_OutputPorts(),
1010 this->m_TlmSend_OutputPort[portNum].invoke(
998 void GenericHubComponentBase :: {
…}
1017 void GenericHubComponentBase ::
1018 bufferDeallocate_out(
1024 portNum < this->getNum_bufferDeallocate_OutputPorts(),
1027 this->m_bufferDeallocate_OutputPort[portNum].invoke(
1017 void GenericHubComponentBase :: {
…}
1032 void GenericHubComponentBase ::
1039 portNum < this->getNum_buffersOut_OutputPorts(),
1042 this->m_buffersOut_OutputPort[portNum].invoke(
1032 void GenericHubComponentBase :: {
…}
1047 void GenericHubComponentBase ::
1048 dataInDeallocate_out(
1054 portNum < this->getNum_dataInDeallocate_OutputPorts(),
1057 this->m_dataInDeallocate_OutputPort[portNum].invoke(
1047 void GenericHubComponentBase :: {
…}
1062 void GenericHubComponentBase ::
1069 portNum < this->getNum_dataOut_OutputPorts(),
1072 this->m_dataOut_OutputPort[portNum].invoke(
1062 void GenericHubComponentBase :: {
…}
1078 dataOutAllocate_out(
1084 portNum < this->getNum_dataOutAllocate_OutputPorts(),
1087 return this->m_dataOutAllocate_OutputPort[portNum].invoke(
1103 portNum < this->getNum_portOut_OutputPorts(),
1106 return this->m_portOut_OutputPort[portNum].invokeSerial(
1115 void GenericHubComponentBase ::
1136 void GenericHubComponentBase ::
1146 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1155 void GenericHubComponentBase ::
1163 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1164 compPtr->buffersIn_handlerBase(
1170 void GenericHubComponentBase ::
1178 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1179 compPtr->dataIn_handlerBase(
1189#if FW_PORT_SERIALIZATION
1191 void GenericHubComponentBase ::
1199 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1200 compPtr->portIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
Enum representing event severity.
void init()
Object initializer.
Auto-generated base for GenericHub component.
void TlmRecv_handlerBase(NATIVE_INT_TYPE portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Handler base-class function for input port TlmRecv.
void LogRecv_handlerBase(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port LogRecv.
SerializeStatus
forward declaration for string