44 this->m_adapter.regAssertReporter(
this);
46 this->m_adapter.registerHook();
51 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::reportAssert(
FILE_NAME_ARG file,
61 m_compPtr->reportAssert(file, lineNo, numArgs, arg1, arg2, arg3, arg4, arg5, arg6);
69 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::regAssertReporter(AssertFatalAdapterComponentImpl* compPtr) {
70 this->m_compPtr = compPtr;
75 AssertFatalAdapterComponentImpl::AssertFatalAdapter::~AssertFatalAdapter() {}
77 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::doAssert() {
90 #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT 92 fileArg.
format(
"0x%08" PRIX32, file);
98 Fw::defaultReportAssert(file, static_cast<U32>(lineNo), numArgs, arg1, arg2, arg3, arg4, arg5, arg6, msg,
117 static_cast<U32>(arg2));
121 static_cast<U32>(arg2), static_cast<U32>(arg3));
125 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4));
129 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4),
130 static_cast<U32>(arg5));
134 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4),
135 static_cast<U32>(arg5), static_cast<U32>(arg6));
void log_FATAL_AF_UNEXPECTED_ASSERT(const Fw::StringBase &file, U32 line, U32 numArgs) const
void log_FATAL_AF_ASSERT_1(const Fw::StringBase &file, U32 line, U32 arg1) const
PlatformSizeType FwSizeType
void log_FATAL_AF_ASSERT_3(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3) const
static void log(const char *format,...)
log a formated string with supplied arguments
void log_FATAL_AF_ASSERT_2(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2) const
void defaultReportAssert(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, FwSizeType buffSize)
void log_FATAL_AF_ASSERT_5(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5) const
void log_FATAL_AF_ASSERT_4(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4) const
void log_FATAL_AF_ASSERT_0(const Fw::StringBase &file, U32 line) const
void reportAssert(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
Report the assert as a FATAL.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
#define FW_ASSERT_TEXT_SIZE
Size of string used to store assert description.
AssertFatalAdapterComponentImpl(const char *const compName)
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
~AssertFatalAdapterComponentImpl()
RateGroupDivider component implementation.
AssertFatalAdapterComponentImpl AssertFatalAdapter
Auto-generated base for AssertFatalAdapter component.
bool isConnected_Log_OutputPort(FwIndexType portNum)
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
void log_FATAL_AF_ASSERT_6(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6) const