diff --git a/Inc/LoggerInterface.h b/Inc/LoggerInterface.h index 0ae2e99..7aeeca9 100644 --- a/Inc/LoggerInterface.h +++ b/Inc/LoggerInterface.h @@ -1,5 +1,5 @@ // -// Created by xemon on 13.11.22. +// Created by CFIF on 13.11.22. // #ifndef UVEOS_ON_NATION_LOGGERINTERFACE_H @@ -10,6 +10,11 @@ #include "stdint.h" #include "stdbool.h" +#define MAX_COUNT_BUF_LOG 10 +#define MAX_LEN_PRINTF_BUF_LOG 256 +#define MAX_LEN_LOGGER_BUF_LOG 256 +#define MAX_LEN_BUF_NAME_LOG 16 + typedef enum { LOGLEVEL_FATAL, LOGLEVEL_ERROR, @@ -29,11 +34,19 @@ typedef void (*LoggerGenericMethod)( bool complete ); +typedef uint8_t * (*getMemPrintfBufLogMethod)( + void *env, + const char *authorStatic, + const uint8_t authorLen, + uint16_t offset +); + extern tStringStatic LOGGER_LEVEL_NAMES[]; typedef struct { void *env; LoggerGenericMethod logging; + getMemPrintfBufLogMethod getMemPrintfBufLog; } tLoggerInterface;