Добавлен формирование логов
This commit is contained in:
parent
9772314c06
commit
78cf4e1118
|
|
@ -45,6 +45,16 @@ typedef void (*LoggerGenericMethod)(
|
||||||
bool complete
|
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)(
|
typedef uint8_t * (*getMemPrintfBufLogMethod)(
|
||||||
void *env,
|
void *env,
|
||||||
const char *authorStatic,
|
const char *authorStatic,
|
||||||
|
|
@ -57,6 +67,7 @@ extern tStringStatic LOGGER_LEVEL_NAMES[];
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void *env;
|
void *env;
|
||||||
LoggerGenericMethod logging;
|
LoggerGenericMethod logging;
|
||||||
|
LoggerGenericCanMethod loggingCan;
|
||||||
getMemPrintfBufLogMethod getMemPrintfBufLog;
|
getMemPrintfBufLogMethod getMemPrintfBufLog;
|
||||||
} tLoggerInterface;
|
} tLoggerInterface;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue