Добавлен формирование логов
This commit is contained in:
parent
9772314c06
commit
78cf4e1118
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue