11#if FW_ENABLE_TEXT_LOGGING
21 void BufferRepeaterComponentBase ::
30 port < static_cast<PlatformIntType>(this->getNum_portIn_InputPorts());
33 this->m_portIn_InputPort[port].init();
34 this->m_portIn_InputPort[port].addCallComp(
38 this->m_portIn_InputPort[port].setPortNum(port);
40#if FW_OBJECT_NAMES == 1
49 this->m_portIn_InputPort[port].setObjName(portName);
56 port < static_cast<PlatformIntType>(this->getNum_Log_OutputPorts());
59 this->m_Log_OutputPort[port].init();
61#if FW_OBJECT_NAMES == 1
70 this->m_Log_OutputPort[port].setObjName(portName);
74#if FW_ENABLE_TEXT_LOGGING == 1
78 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
81 this->m_LogText_OutputPort[port].init();
83#if FW_OBJECT_NAMES == 1
92 this->m_LogText_OutputPort[port].setObjName(portName);
100 port < static_cast<PlatformIntType>(this->getNum_Time_OutputPorts());
103 this->m_Time_OutputPort[port].init();
105#if FW_OBJECT_NAMES == 1
114 this->m_Time_OutputPort[port].setObjName(portName);
121 port < static_cast<PlatformIntType>(this->getNum_allocate_OutputPorts());
124 this->m_allocate_OutputPort[port].init();
126#if FW_OBJECT_NAMES == 1
135 this->m_allocate_OutputPort[port].setObjName(portName);
142 port < static_cast<PlatformIntType>(this->getNum_deallocate_OutputPorts());
145 this->m_deallocate_OutputPort[port].init();
147#if FW_OBJECT_NAMES == 1
156 this->m_deallocate_OutputPort[port].setObjName(portName);
163 port < static_cast<PlatformIntType>(this->getNum_portOut_OutputPorts());
166 this->m_portOut_OutputPort[port].init();
168#if FW_OBJECT_NAMES == 1
177 this->m_portOut_OutputPort[port].setObjName(portName);
21 void BufferRepeaterComponentBase :: {
…}
190 portNum < this->getNum_portIn_InputPorts(),
194 return &this->m_portIn_InputPort[portNum];
201 void BufferRepeaterComponentBase ::
208 portNum < this->getNum_Log_OutputPorts(),
212 this->m_Log_OutputPort[portNum].addCallPort(port);
201 void BufferRepeaterComponentBase :: {
…}
215#if FW_ENABLE_TEXT_LOGGING == 1
217 void BufferRepeaterComponentBase ::
218 set_LogText_OutputPort(
224 portNum < this->getNum_LogText_OutputPorts(),
228 this->m_LogText_OutputPort[portNum].addCallPort(port);
233 void BufferRepeaterComponentBase ::
240 portNum < this->getNum_Time_OutputPorts(),
244 this->m_Time_OutputPort[portNum].addCallPort(port);
233 void BufferRepeaterComponentBase :: {
…}
251 void BufferRepeaterComponentBase ::
252 set_allocate_OutputPort(
258 portNum < this->getNum_allocate_OutputPorts(),
262 this->m_allocate_OutputPort[portNum].addCallPort(port);
251 void BufferRepeaterComponentBase :: {
…}
265 void BufferRepeaterComponentBase ::
266 set_deallocate_OutputPort(
272 portNum < this->getNum_deallocate_OutputPorts(),
276 this->m_deallocate_OutputPort[portNum].addCallPort(port);
265 void BufferRepeaterComponentBase :: {
…}
279 void BufferRepeaterComponentBase ::
280 set_portOut_OutputPort(
286 portNum < this->getNum_portOut_OutputPorts(),
290 this->m_portOut_OutputPort[portNum].addCallPort(port);
279 void BufferRepeaterComponentBase :: {
…}
293#if FW_PORT_SERIALIZATION
299 void BufferRepeaterComponentBase ::
302 Fw::InputSerializePort* port
306 portNum < this->getNum_Log_OutputPorts(),
310 this->m_Log_OutputPort[portNum].registerSerialPort(port);
313#if FW_ENABLE_TEXT_LOGGING == 1
315 void BufferRepeaterComponentBase ::
316 set_LogText_OutputPort(
318 Fw::InputSerializePort* port
322 portNum < this->getNum_LogText_OutputPorts(),
326 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
331 void BufferRepeaterComponentBase ::
334 Fw::InputSerializePort* port
338 portNum < this->getNum_Time_OutputPorts(),
342 this->m_Time_OutputPort[portNum].registerSerialPort(port);
347#if FW_PORT_SERIALIZATION
353 void BufferRepeaterComponentBase ::
354 set_deallocate_OutputPort(
356 Fw::InputSerializePort* port
360 portNum < this->getNum_deallocate_OutputPorts(),
364 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
367 void BufferRepeaterComponentBase ::
368 set_portOut_OutputPort(
370 Fw::InputSerializePort* port
374 portNum < this->getNum_portOut_OutputPorts(),
378 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
387 BufferRepeaterComponentBase ::
388 BufferRepeaterComponentBase(
const char* compName) :
389 Fw::PassiveComponentBase(compName)
387 BufferRepeaterComponentBase :: {
…}
394 BufferRepeaterComponentBase ::
395 ~BufferRepeaterComponentBase()
394 BufferRepeaterComponentBase :: {
…}
405 getNum_portIn_InputPorts()
const
415 getNum_Log_OutputPorts()
const
420#if FW_ENABLE_TEXT_LOGGING == 1
423 getNum_LogText_OutputPorts()
const
431 getNum_Time_OutputPorts()
const
441 getNum_allocate_OutputPorts()
const
447 getNum_deallocate_OutputPorts()
const
453 getNum_portOut_OutputPorts()
const
462 bool BufferRepeaterComponentBase ::
466 portNum < this->getNum_Log_OutputPorts(),
470 return this->m_Log_OutputPort[portNum].isConnected();
462 bool BufferRepeaterComponentBase :: {
…}
473#if FW_ENABLE_TEXT_LOGGING == 1
475 bool BufferRepeaterComponentBase ::
479 portNum < this->getNum_LogText_OutputPorts(),
483 return this->m_LogText_OutputPort[portNum].isConnected();
488 bool BufferRepeaterComponentBase ::
492 portNum < this->getNum_Time_OutputPorts(),
496 return this->m_Time_OutputPort[portNum].isConnected();
488 bool BufferRepeaterComponentBase :: {
…}
503 bool BufferRepeaterComponentBase ::
507 portNum < this->getNum_allocate_OutputPorts(),
511 return this->m_allocate_OutputPort[portNum].isConnected();
503 bool BufferRepeaterComponentBase :: {
…}
514 bool BufferRepeaterComponentBase ::
518 portNum < this->getNum_deallocate_OutputPorts(),
522 return this->m_deallocate_OutputPort[portNum].isConnected();
514 bool BufferRepeaterComponentBase :: {
…}
525 bool BufferRepeaterComponentBase ::
529 portNum < this->getNum_portOut_OutputPorts(),
533 return this->m_portOut_OutputPort[portNum].isConnected();
525 bool BufferRepeaterComponentBase :: {
…}
542 void BufferRepeaterComponentBase ::
550 portNum < this->getNum_portIn_InputPorts(),
555 this->portIn_handler(
542 void BufferRepeaterComponentBase :: {
…}
572 portNum < this->getNum_allocate_OutputPorts(),
575 return this->m_allocate_OutputPort[portNum].invoke(
580 void BufferRepeaterComponentBase ::
587 portNum < this->getNum_deallocate_OutputPorts(),
590 this->m_deallocate_OutputPort[portNum].invoke(
580 void BufferRepeaterComponentBase :: {
…}
595 void BufferRepeaterComponentBase ::
602 portNum < this->getNum_portOut_OutputPorts(),
605 this->m_portOut_OutputPort[portNum].invoke(
595 void BufferRepeaterComponentBase :: {
…}
614 void BufferRepeaterComponentBase ::
615 log_WARNING_HI_AllocationSoftFailure(
622 if (this->m_Time_OutputPort[0].isConnected()) {
623 this->m_Time_OutputPort[0].invoke(_logTime);
628 _id = this->getIdBase() + EVENTID_ALLOCATIONSOFTFAILURE;
631 if (this->m_Log_OutputPort[0].isConnected()) {
635#if FW_AMPCS_COMPATIBLE
644#if FW_AMPCS_COMPATIBLE
647 static_cast<U8>(
sizeof(I32))
660#if FW_AMPCS_COMPATIBLE
663 static_cast<U8>(
sizeof(U32))
676 this->m_Log_OutputPort[0].invoke(
685#if FW_ENABLE_TEXT_LOGGING
686 if (this->m_LogText_OutputPort[0].isConnected()) {
687#if FW_OBJECT_NAMES == 1
688 const char* _formatString =
689 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
691 const char* _formatString =
692 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
704 "AllocationSoftFailure ",
712 this->m_LogText_OutputPort[0].invoke(
614 void BufferRepeaterComponentBase :: {
…}
722 void BufferRepeaterComponentBase ::
723 log_FATAL_AllocationHardFailure(
730 if (this->m_Time_OutputPort[0].isConnected()) {
731 this->m_Time_OutputPort[0].invoke(_logTime);
736 _id = this->getIdBase() + EVENTID_ALLOCATIONHARDFAILURE;
739 if (this->m_Log_OutputPort[0].isConnected()) {
743#if FW_AMPCS_COMPATIBLE
745 _status = _logBuff.
serialize(
static_cast<U8>(2 + 1));
758 _status = _logBuff.
serialize(
static_cast<U32
>(0));
765#if FW_AMPCS_COMPATIBLE
768 static_cast<U8>(
sizeof(I32))
781#if FW_AMPCS_COMPATIBLE
784 static_cast<U8>(
sizeof(U32))
797 this->m_Log_OutputPort[0].invoke(
806#if FW_ENABLE_TEXT_LOGGING
807 if (this->m_LogText_OutputPort[0].isConnected()) {
808#if FW_OBJECT_NAMES == 1
809 const char* _formatString =
810 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
812 const char* _formatString =
813 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
825 "AllocationHardFailure ",
833 this->m_LogText_OutputPort[0].invoke(
722 void BufferRepeaterComponentBase :: {
…}
850 if (this->m_Time_OutputPort[0].isConnected()) {
852 this->m_Time_OutputPort[0].invoke(_time);
864 void BufferRepeaterComponentBase ::
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
@ WARNING_HI
A serious but recoverable event.
@ FATAL
A fatal non-recoverable event.
void init()
Object initializer.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Auto-generated base for BufferRepeater component.
void portIn_handlerBase(NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port portIn.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.