diff --git a/Inc/LoggerInterface.h b/Inc/LoggerInterface.h index 85117ce..cbe1cf0 100644 --- a/Inc/LoggerInterface.h +++ b/Inc/LoggerInterface.h @@ -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;