Добавлен формирование логов

This commit is contained in:
cfif 2026-07-20 10:03:10 +03:00
parent 9772314c06
commit 78cf4e1118
1 changed files with 11 additions and 0 deletions

View File

@ -45,6 +45,16 @@ typedef void (*LoggerGenericMethod)(
bool complete
);
typedef void (*LoggerGenericCanMethod)(
void *env,
uint16_t mChannel, /* номер канала */
uint8_t mFlags, /* бит 7 = RTR, остальные направление */
uint8_t mDLC, /* длина данных (0-8) */
uint32_t mID, /* идентификатор */
uint8_t *mData, /* данные */
uint32_t timestamp
);
typedef uint8_t * (*getMemPrintfBufLogMethod)(
void *env,
const char *authorStatic,
@ -57,6 +67,7 @@ extern tStringStatic LOGGER_LEVEL_NAMES[];
typedef struct {
void *env;
LoggerGenericMethod logging;
LoggerGenericCanMethod loggingCan;
getMemPrintfBufLogMethod getMemPrintfBufLog;
} tLoggerInterface;