Andrew Boyson / log

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers log.h Source File

log.h

00001 #include <stdarg.h>
00002 #include <time.h>
00003 #include <stdbool.h>
00004 #include <stdint.h>
00005 
00006 extern bool LogUart;
00007 extern void LogInit(void (*tmFunction)(struct tm* ptm), int baud); //Set baud to 0 if no serial
00008 extern void LogMain(void);
00009 
00010 extern void LogClear(void);
00011 
00012 extern void LogChar(const char c);
00013 extern int  Log(const char* snd);
00014 extern int  LogV(const char *fmt, va_list argptr);
00015 extern int  LogF(const char *fmt, ...);
00016 extern int  LogTime(const char *snd);
00017 extern int  LogTimeF(const char *fmt, ...);
00018 
00019 extern void LogEnumerateStart(void);
00020 extern int  LogEnumerate(void);
00021 extern void LogEnable(bool value);
00022 
00023 extern void LogNibbleAsHex(int nibble);
00024 extern void LogByteAsHex(int value);
00025 extern void LogBytesAsHex(const uint8_t* bytes, int size);