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
47 char portName[2*FW_OBJ_NAME_MAX_SIZE];
55 this->m_portIn_InputPort[port].setObjName(portName);
62 port < static_cast<PlatformIntType>(this->getNum_Log_OutputPorts());
65 this->m_Log_OutputPort[port].init();
67#if FW_OBJECT_NAMES == 1
74 char portName[2*FW_OBJ_NAME_MAX_SIZE];
82 this->m_Log_OutputPort[port].setObjName(portName);
86#if FW_ENABLE_TEXT_LOGGING == 1
90 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
93 this->m_LogText_OutputPort[port].init();
95#if FW_OBJECT_NAMES == 1
102 char portName[2*FW_OBJ_NAME_MAX_SIZE];
110 this->m_LogText_OutputPort[port].setObjName(portName);
118 port < static_cast<PlatformIntType>(this->getNum_Time_OutputPorts());
121 this->m_Time_OutputPort[port].init();
123#if FW_OBJECT_NAMES == 1
130 char portName[2*FW_OBJ_NAME_MAX_SIZE];
138 this->m_Time_OutputPort[port].setObjName(portName);
145 port < static_cast<PlatformIntType>(this->getNum_allocate_OutputPorts());
148 this->m_allocate_OutputPort[port].init();
150#if FW_OBJECT_NAMES == 1
157 char portName[2*FW_OBJ_NAME_MAX_SIZE];
165 this->m_allocate_OutputPort[port].setObjName(portName);
172 port < static_cast<PlatformIntType>(this->getNum_deallocate_OutputPorts());
175 this->m_deallocate_OutputPort[port].init();
177#if FW_OBJECT_NAMES == 1
184 char portName[2*FW_OBJ_NAME_MAX_SIZE];
192 this->m_deallocate_OutputPort[port].setObjName(portName);
199 port < static_cast<PlatformIntType>(this->getNum_portOut_OutputPorts());
202 this->m_portOut_OutputPort[port].init();
204#if FW_OBJECT_NAMES == 1
211 char portName[2*FW_OBJ_NAME_MAX_SIZE];
219 this->m_portOut_OutputPort[port].setObjName(portName);
21 void BufferRepeaterComponentBase :: {
…}
232 portNum < this->getNum_portIn_InputPorts(),
236 return &this->m_portIn_InputPort[portNum];
243 void BufferRepeaterComponentBase ::
250 portNum < this->getNum_Log_OutputPorts(),
254 this->m_Log_OutputPort[portNum].addCallPort(port);
243 void BufferRepeaterComponentBase :: {
…}
257#if FW_ENABLE_TEXT_LOGGING == 1
259 void BufferRepeaterComponentBase ::
260 set_LogText_OutputPort(
266 portNum < this->getNum_LogText_OutputPorts(),
270 this->m_LogText_OutputPort[portNum].addCallPort(port);
275 void BufferRepeaterComponentBase ::
282 portNum < this->getNum_Time_OutputPorts(),
286 this->m_Time_OutputPort[portNum].addCallPort(port);
275 void BufferRepeaterComponentBase :: {
…}
293 void BufferRepeaterComponentBase ::
294 set_allocate_OutputPort(
300 portNum < this->getNum_allocate_OutputPorts(),
304 this->m_allocate_OutputPort[portNum].addCallPort(port);
293 void BufferRepeaterComponentBase :: {
…}
307 void BufferRepeaterComponentBase ::
308 set_deallocate_OutputPort(
314 portNum < this->getNum_deallocate_OutputPorts(),
318 this->m_deallocate_OutputPort[portNum].addCallPort(port);
307 void BufferRepeaterComponentBase :: {
…}
321 void BufferRepeaterComponentBase ::
322 set_portOut_OutputPort(
328 portNum < this->getNum_portOut_OutputPorts(),
332 this->m_portOut_OutputPort[portNum].addCallPort(port);
321 void BufferRepeaterComponentBase :: {
…}
335#if FW_PORT_SERIALIZATION
341 void BufferRepeaterComponentBase ::
344 Fw::InputSerializePort* port
348 portNum < this->getNum_Log_OutputPorts(),
352 this->m_Log_OutputPort[portNum].registerSerialPort(port);
355#if FW_ENABLE_TEXT_LOGGING == 1
357 void BufferRepeaterComponentBase ::
358 set_LogText_OutputPort(
360 Fw::InputSerializePort* port
364 portNum < this->getNum_LogText_OutputPorts(),
368 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
373 void BufferRepeaterComponentBase ::
376 Fw::InputSerializePort* port
380 portNum < this->getNum_Time_OutputPorts(),
384 this->m_Time_OutputPort[portNum].registerSerialPort(port);
389#if FW_PORT_SERIALIZATION
395 void BufferRepeaterComponentBase ::
396 set_deallocate_OutputPort(
398 Fw::InputSerializePort* port
402 portNum < this->getNum_deallocate_OutputPorts(),
406 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
409 void BufferRepeaterComponentBase ::
410 set_portOut_OutputPort(
412 Fw::InputSerializePort* port
416 portNum < this->getNum_portOut_OutputPorts(),
420 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
429 BufferRepeaterComponentBase ::
430 BufferRepeaterComponentBase(
const char* compName) :
431 Fw::PassiveComponentBase(compName)
429 BufferRepeaterComponentBase :: {
…}
436 BufferRepeaterComponentBase ::
437 ~BufferRepeaterComponentBase()
436 BufferRepeaterComponentBase :: {
…}
447 getNum_portIn_InputPorts()
const
457 getNum_Log_OutputPorts()
const
462#if FW_ENABLE_TEXT_LOGGING == 1
465 getNum_LogText_OutputPorts()
const
473 getNum_Time_OutputPorts()
const
483 getNum_allocate_OutputPorts()
const
489 getNum_deallocate_OutputPorts()
const
495 getNum_portOut_OutputPorts()
const
504 bool BufferRepeaterComponentBase ::
508 portNum < this->getNum_Log_OutputPorts(),
512 return this->m_Log_OutputPort[portNum].isConnected();
504 bool BufferRepeaterComponentBase :: {
…}
515#if FW_ENABLE_TEXT_LOGGING == 1
517 bool BufferRepeaterComponentBase ::
521 portNum < this->getNum_LogText_OutputPorts(),
525 return this->m_LogText_OutputPort[portNum].isConnected();
530 bool BufferRepeaterComponentBase ::
534 portNum < this->getNum_Time_OutputPorts(),
538 return this->m_Time_OutputPort[portNum].isConnected();
530 bool BufferRepeaterComponentBase :: {
…}
545 bool BufferRepeaterComponentBase ::
549 portNum < this->getNum_allocate_OutputPorts(),
553 return this->m_allocate_OutputPort[portNum].isConnected();
545 bool BufferRepeaterComponentBase :: {
…}
556 bool BufferRepeaterComponentBase ::
560 portNum < this->getNum_deallocate_OutputPorts(),
564 return this->m_deallocate_OutputPort[portNum].isConnected();
556 bool BufferRepeaterComponentBase :: {
…}
567 bool BufferRepeaterComponentBase ::
571 portNum < this->getNum_portOut_OutputPorts(),
575 return this->m_portOut_OutputPort[portNum].isConnected();
567 bool BufferRepeaterComponentBase :: {
…}
584 void BufferRepeaterComponentBase ::
592 portNum < this->getNum_portIn_InputPorts(),
597 this->portIn_handler(
584 void BufferRepeaterComponentBase :: {
…}
614 portNum < this->getNum_allocate_OutputPorts(),
617 return this->m_allocate_OutputPort[portNum].invoke(
622 void BufferRepeaterComponentBase ::
629 portNum < this->getNum_deallocate_OutputPorts(),
632 this->m_deallocate_OutputPort[portNum].invoke(
622 void BufferRepeaterComponentBase :: {
…}
637 void BufferRepeaterComponentBase ::
644 portNum < this->getNum_portOut_OutputPorts(),
647 this->m_portOut_OutputPort[portNum].invoke(
637 void BufferRepeaterComponentBase :: {
…}
656 void BufferRepeaterComponentBase ::
657 log_WARNING_HI_AllocationSoftFailure(
664 if (this->m_Time_OutputPort[0].isConnected()) {
665 this->m_Time_OutputPort[0].invoke(_logTime);
670 _id = this->getIdBase() + EVENTID_ALLOCATIONSOFTFAILURE;
673 if (this->m_Log_OutputPort[0].isConnected()) {
677#if FW_AMPCS_COMPATIBLE
686#if FW_AMPCS_COMPATIBLE
689 static_cast<U8>(
sizeof(I32))
702#if FW_AMPCS_COMPATIBLE
705 static_cast<U8>(
sizeof(U32))
718 this->m_Log_OutputPort[0].invoke(
727#if FW_ENABLE_TEXT_LOGGING
728 if (this->m_LogText_OutputPort[0].isConnected()) {
729#if FW_OBJECT_NAMES == 1
730 const char* _formatString =
731 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
733 const char* _formatString =
734 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
746 "AllocationSoftFailure ",
754 this->m_LogText_OutputPort[0].invoke(
656 void BufferRepeaterComponentBase :: {
…}
764 void BufferRepeaterComponentBase ::
765 log_FATAL_AllocationHardFailure(
772 if (this->m_Time_OutputPort[0].isConnected()) {
773 this->m_Time_OutputPort[0].invoke(_logTime);
778 _id = this->getIdBase() + EVENTID_ALLOCATIONHARDFAILURE;
781 if (this->m_Log_OutputPort[0].isConnected()) {
785#if FW_AMPCS_COMPATIBLE
787 _status = _logBuff.
serialize(
static_cast<U8>(2 + 1));
800 _status = _logBuff.
serialize(
static_cast<U32
>(0));
807#if FW_AMPCS_COMPATIBLE
810 static_cast<U8>(
sizeof(I32))
823#if FW_AMPCS_COMPATIBLE
826 static_cast<U8>(
sizeof(U32))
839 this->m_Log_OutputPort[0].invoke(
848#if FW_ENABLE_TEXT_LOGGING
849 if (this->m_LogText_OutputPort[0].isConnected()) {
850#if FW_OBJECT_NAMES == 1
851 const char* _formatString =
852 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
854 const char* _formatString =
855 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu32
"";
867 "AllocationHardFailure ",
875 this->m_LogText_OutputPort[0].invoke(
764 void BufferRepeaterComponentBase :: {
…}
892 if (this->m_Time_OutputPort[0].isConnected()) {
894 this->m_Time_OutputPort[0].invoke(_time);
906 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.