From 307d71bc28c9d82442b8de84b7f3a9a0aee43c5b Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 30 Mar 2026 14:25:13 +0300 Subject: [PATCH] Init --- Inc/LoggerInterface.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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;