Log

Dependents:   oldheating gps motorhome heating

log.h

Committer:
andrewboyson
Date:
2019-06-27
Revision:
17:7acb89d71f48
Parent:
16:5c41b457c7f3
Child:
19:14376c221aec

File content as of revision 17:7acb89d71f48:

#include <stdarg.h>
#include <time.h>
#include <stdbool.h>

extern bool LogUart;
extern void LogInit(void (*tmFunction)(struct tm* ptm), int baud); //Set baud to 0 if no serial
extern void LogMain(void);

extern void LogClear(void);

extern void LogChar(const char c);
extern int  Log(const char* snd);
extern int  LogV(const char *fmt, va_list argptr);
extern int  LogF(const char *fmt, ...);
extern int  LogTime(const char *snd);
extern int  LogTimeF(const char *fmt, ...);

extern void LogEnumerateStart(void);
extern int  LogEnumerate(void);
extern void LogEnable(bool value);

extern void LogNibbleAsHex(int nibble);
extern void LogByteAsHex(int value);
extern void LogBytesAsHex(char* value, int size);