11 #if FW_ENABLE_TEXT_LOGGING
33 this->m_Log_OutputPort[port].
init();
35 #if FW_OBJECT_NAMES == 1
50 this->m_Log_OutputPort[port].setObjName(portName);
54 #if FW_ENABLE_TEXT_LOGGING == 1
58 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
61 this->m_LogText_OutputPort[port].
init();
63 #if FW_OBJECT_NAMES == 1
78 this->m_LogText_OutputPort[port].setObjName(portName);
89 this->m_Time_OutputPort[port].
init();
91 #if FW_OBJECT_NAMES == 1
106 this->m_Time_OutputPort[port].setObjName(portName);
129 #if FW_ENABLE_TEXT_LOGGING == 1
131 void AssertFatalAdapterComponentBase ::
132 set_LogText_OutputPort(
138 portNum < this->getNum_LogText_OutputPorts(),
142 this->m_LogText_OutputPort[portNum].addCallPort(port);
158 this->m_Time_OutputPort[portNum].
addCallPort(port);
161 #if FW_PORT_SERIALIZATION
170 Fw::InputSerializePort* port
178 this->m_Log_OutputPort[portNum].registerSerialPort(port);
181 #if FW_ENABLE_TEXT_LOGGING == 1
183 void AssertFatalAdapterComponentBase ::
184 set_LogText_OutputPort(
186 Fw::InputSerializePort* port
190 portNum < this->getNum_LogText_OutputPorts(),
194 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
202 Fw::InputSerializePort* port
210 this->m_Time_OutputPort[portNum].registerSerialPort(port);
221 Fw::PassiveComponentBase(compName)
242 #if FW_ENABLE_TEXT_LOGGING == 1
245 getNum_LogText_OutputPorts()
const
270 return this->m_Log_OutputPort[portNum].
isConnected();
273 #if FW_ENABLE_TEXT_LOGGING == 1
275 bool AssertFatalAdapterComponentBase ::
279 portNum < this->getNum_LogText_OutputPorts(),
283 return this->m_LogText_OutputPort[portNum].isConnected();
296 return this->m_Time_OutputPort[portNum].
isConnected();
311 if (this->m_Time_OutputPort[0].isConnected()) {
312 this->m_Time_OutputPort[0].
invoke(_logTime);
320 if (this->m_Log_OutputPort[0].isConnected()) {
324 #if FW_AMPCS_COMPATIBLE
326 _status = _logBuff.
serialize(
static_cast<U8>(2 + 1));
339 _status = _logBuff.
serialize(
static_cast<U32
>(0));
352 #if FW_AMPCS_COMPATIBLE
355 static_cast<U8>(
sizeof(U32))
368 this->m_Log_OutputPort[0].
invoke(
377 #if FW_ENABLE_TEXT_LOGGING
378 if (this->m_LogText_OutputPort[0].isConnected()) {
379 #if FW_OBJECT_NAMES == 1
380 const char* _formatString =
381 "(%s) %s: Assert in file %s, line %" PRIu32
"";
383 const char* _formatString =
384 "%s: Assert in file %s, line %" PRIu32
"";
404 this->m_LogText_OutputPort[0].invoke(
423 if (this->m_Time_OutputPort[0].isConnected()) {
424 this->m_Time_OutputPort[0].
invoke(_logTime);
432 if (this->m_Log_OutputPort[0].isConnected()) {
436 #if FW_AMPCS_COMPATIBLE
438 _status = _logBuff.
serialize(
static_cast<U8>(3 + 1));
451 _status = _logBuff.
serialize(
static_cast<U32
>(0));
464 #if FW_AMPCS_COMPATIBLE
467 static_cast<U8>(
sizeof(U32))
480 #if FW_AMPCS_COMPATIBLE
483 static_cast<U8>(
sizeof(U32))
496 this->m_Log_OutputPort[0].
invoke(
505 #if FW_ENABLE_TEXT_LOGGING
506 if (this->m_LogText_OutputPort[0].isConnected()) {
507 #if FW_OBJECT_NAMES == 1
508 const char* _formatString =
509 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
"";
511 const char* _formatString =
512 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
"";
533 this->m_LogText_OutputPort[0].invoke(
553 if (this->m_Time_OutputPort[0].isConnected()) {
554 this->m_Time_OutputPort[0].
invoke(_logTime);
562 if (this->m_Log_OutputPort[0].isConnected()) {
566 #if FW_AMPCS_COMPATIBLE
568 _status = _logBuff.
serialize(
static_cast<U8>(4 + 1));
581 _status = _logBuff.
serialize(
static_cast<U32
>(0));
594 #if FW_AMPCS_COMPATIBLE
597 static_cast<U8>(
sizeof(U32))
610 #if FW_AMPCS_COMPATIBLE
613 static_cast<U8>(
sizeof(U32))
626 #if FW_AMPCS_COMPATIBLE
629 static_cast<U8>(
sizeof(U32))
642 this->m_Log_OutputPort[0].
invoke(
651 #if FW_ENABLE_TEXT_LOGGING
652 if (this->m_LogText_OutputPort[0].isConnected()) {
653 #if FW_OBJECT_NAMES == 1
654 const char* _formatString =
655 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
"";
657 const char* _formatString =
658 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
"";
680 this->m_LogText_OutputPort[0].invoke(
701 if (this->m_Time_OutputPort[0].isConnected()) {
702 this->m_Time_OutputPort[0].
invoke(_logTime);
710 if (this->m_Log_OutputPort[0].isConnected()) {
714 #if FW_AMPCS_COMPATIBLE
716 _status = _logBuff.
serialize(
static_cast<U8>(5 + 1));
729 _status = _logBuff.
serialize(
static_cast<U32
>(0));
742 #if FW_AMPCS_COMPATIBLE
745 static_cast<U8>(
sizeof(U32))
758 #if FW_AMPCS_COMPATIBLE
761 static_cast<U8>(
sizeof(U32))
774 #if FW_AMPCS_COMPATIBLE
777 static_cast<U8>(
sizeof(U32))
790 #if FW_AMPCS_COMPATIBLE
793 static_cast<U8>(
sizeof(U32))
806 this->m_Log_OutputPort[0].
invoke(
815 #if FW_ENABLE_TEXT_LOGGING
816 if (this->m_LogText_OutputPort[0].isConnected()) {
817 #if FW_OBJECT_NAMES == 1
818 const char* _formatString =
819 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
"";
821 const char* _formatString =
822 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
"";
845 this->m_LogText_OutputPort[0].invoke(
867 if (this->m_Time_OutputPort[0].isConnected()) {
868 this->m_Time_OutputPort[0].
invoke(_logTime);
876 if (this->m_Log_OutputPort[0].isConnected()) {
880 #if FW_AMPCS_COMPATIBLE
882 _status = _logBuff.
serialize(
static_cast<U8>(6 + 1));
895 _status = _logBuff.
serialize(
static_cast<U32
>(0));
908 #if FW_AMPCS_COMPATIBLE
911 static_cast<U8>(
sizeof(U32))
924 #if FW_AMPCS_COMPATIBLE
927 static_cast<U8>(
sizeof(U32))
940 #if FW_AMPCS_COMPATIBLE
943 static_cast<U8>(
sizeof(U32))
956 #if FW_AMPCS_COMPATIBLE
959 static_cast<U8>(
sizeof(U32))
972 #if FW_AMPCS_COMPATIBLE
975 static_cast<U8>(
sizeof(U32))
988 this->m_Log_OutputPort[0].
invoke(
997 #if FW_ENABLE_TEXT_LOGGING
998 if (this->m_LogText_OutputPort[0].isConnected()) {
999 #if FW_OBJECT_NAMES == 1
1000 const char* _formatString =
1001 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1003 const char* _formatString =
1004 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1028 this->m_LogText_OutputPort[0].invoke(
1051 if (this->m_Time_OutputPort[0].isConnected()) {
1052 this->m_Time_OutputPort[0].
invoke(_logTime);
1060 if (this->m_Log_OutputPort[0].isConnected()) {
1064 #if FW_AMPCS_COMPATIBLE
1066 _status = _logBuff.
serialize(
static_cast<U8>(7 + 1));
1079 _status = _logBuff.
serialize(
static_cast<U32
>(0));
1092 #if FW_AMPCS_COMPATIBLE
1095 static_cast<U8>(
sizeof(U32))
1108 #if FW_AMPCS_COMPATIBLE
1111 static_cast<U8>(
sizeof(U32))
1124 #if FW_AMPCS_COMPATIBLE
1127 static_cast<U8>(
sizeof(U32))
1140 #if FW_AMPCS_COMPATIBLE
1143 static_cast<U8>(
sizeof(U32))
1156 #if FW_AMPCS_COMPATIBLE
1159 static_cast<U8>(
sizeof(U32))
1172 #if FW_AMPCS_COMPATIBLE
1175 static_cast<U8>(
sizeof(U32))
1188 this->m_Log_OutputPort[0].
invoke(
1197 #if FW_ENABLE_TEXT_LOGGING
1198 if (this->m_LogText_OutputPort[0].isConnected()) {
1199 #if FW_OBJECT_NAMES == 1
1200 const char* _formatString =
1201 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1203 const char* _formatString =
1204 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1229 this->m_LogText_OutputPort[0].invoke(
1253 if (this->m_Time_OutputPort[0].isConnected()) {
1254 this->m_Time_OutputPort[0].
invoke(_logTime);
1262 if (this->m_Log_OutputPort[0].isConnected()) {
1266 #if FW_AMPCS_COMPATIBLE
1268 _status = _logBuff.
serialize(
static_cast<U8>(8 + 1));
1281 _status = _logBuff.
serialize(
static_cast<U32
>(0));
1294 #if FW_AMPCS_COMPATIBLE
1297 static_cast<U8>(
sizeof(U32))
1310 #if FW_AMPCS_COMPATIBLE
1313 static_cast<U8>(
sizeof(U32))
1326 #if FW_AMPCS_COMPATIBLE
1329 static_cast<U8>(
sizeof(U32))
1342 #if FW_AMPCS_COMPATIBLE
1345 static_cast<U8>(
sizeof(U32))
1358 #if FW_AMPCS_COMPATIBLE
1361 static_cast<U8>(
sizeof(U32))
1374 #if FW_AMPCS_COMPATIBLE
1377 static_cast<U8>(
sizeof(U32))
1390 #if FW_AMPCS_COMPATIBLE
1393 static_cast<U8>(
sizeof(U32))
1406 this->m_Log_OutputPort[0].
invoke(
1415 #if FW_ENABLE_TEXT_LOGGING
1416 if (this->m_LogText_OutputPort[0].isConnected()) {
1417 #if FW_OBJECT_NAMES == 1
1418 const char* _formatString =
1419 "(%s) %s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1421 const char* _formatString =
1422 "%s: Assert in file %s, line %" PRIu32
": %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
" %" PRIu32
"";
1448 this->m_LogText_OutputPort[0].invoke(
1467 if (this->m_Time_OutputPort[0].isConnected()) {
1468 this->m_Time_OutputPort[0].
invoke(_logTime);
1476 if (this->m_Log_OutputPort[0].isConnected()) {
1480 #if FW_AMPCS_COMPATIBLE
1482 _status = _logBuff.
serialize(
static_cast<U8>(3 + 1));
1495 _status = _logBuff.
serialize(
static_cast<U32
>(0));
1508 #if FW_AMPCS_COMPATIBLE
1511 static_cast<U8>(
sizeof(U32))
1524 #if FW_AMPCS_COMPATIBLE
1527 static_cast<U8>(
sizeof(U32))
1540 this->m_Log_OutputPort[0].
invoke(
1549 #if FW_ENABLE_TEXT_LOGGING
1550 if (this->m_LogText_OutputPort[0].isConnected()) {
1551 #if FW_OBJECT_NAMES == 1
1552 const char* _formatString =
1553 "(%s) %s: Unexpected assert in file %s, line %" PRIu32
", args %" PRIu32
"";
1555 const char* _formatString =
1556 "%s: Unexpected assert in file %s, line %" PRIu32
", args %" PRIu32
"";
1568 "AF_UNEXPECTED_ASSERT ",
1577 this->m_LogText_OutputPort[0].invoke(
1594 if (this->m_Time_OutputPort[0].isConnected()) {
1596 this->m_Time_OutputPort[0].
invoke(_time);
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_OBJ_NAME_MAX_SIZE
Size of object name (if object names enabled). AC Limits to 80, truncation occurs above 80.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
@ FATAL
A fatal non-recoverable event.
const char * toChar() const override
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
void init()
Object initializer.
void init()
Initialization function.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Invoke a port interface.
void addCallPort(InputLogPort *callPort)
Register an input port.
void addCallPort(InputTimePort *callPort)
Register an input port.
void invoke(Fw::Time &time)
Invoke a port interface.
void init()
Initialization function.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
AssertFatalAdapterComponentBase(const char *compName="")
Construct AssertFatalAdapterComponentBase object.
void set_Log_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void log_FATAL_AF_UNEXPECTED_ASSERT(const Fw::LogStringArg &file, U32 line, U32 numArgs)
void log_FATAL_AF_ASSERT_2(const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2)
void log_FATAL_AF_ASSERT_4(const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4)
NATIVE_INT_TYPE getNum_Log_OutputPorts() const
void log_FATAL_AF_ASSERT_1(const Fw::LogStringArg &file, U32 line, U32 arg1)
void set_Time_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
bool isConnected_Time_OutputPort(NATIVE_INT_TYPE portNum)
virtual ~AssertFatalAdapterComponentBase()
Destroy AssertFatalAdapterComponentBase object.
@ EVENTID_AF_UNEXPECTED_ASSERT
An unexpected assert happened.
@ EVENTID_AF_ASSERT_4
An assert happened.
@ EVENTID_AF_ASSERT_0
An assert happened.
@ EVENTID_AF_ASSERT_1
An assert happened.
@ EVENTID_AF_ASSERT_2
An assert happened.
@ EVENTID_AF_ASSERT_5
An assert happened.
@ EVENTID_AF_ASSERT_6
An assert happened.
@ EVENTID_AF_ASSERT_3
An assert happened.
void log_FATAL_AF_ASSERT_3(const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3)
void log_FATAL_AF_ASSERT_6(const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6)
bool isConnected_Log_OutputPort(NATIVE_INT_TYPE portNum)
NATIVE_INT_TYPE getNum_Time_OutputPorts() const
void log_FATAL_AF_ASSERT_0(const Fw::LogStringArg &file, U32 line)
void log_FATAL_AF_ASSERT_5(const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5)
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.