7 #define FRAM_LOG_START_ADDR 0x4000 // from the start of the second half of FRAM 8 #define FRAM_LOG_SIZE 0x4000 // the whole second half 48 typedef void (*LogFuncType) (
LogEntryEnum Entry,
const void* Data, uint8_t Length);
50 extern LogFuncType CurrentLogFunc;
56 void LogMemClear(
void);
57 uint16_t LogMemFree(
void);
59 bool LogMemLoadBlock(
void* Buffer, uint32_t BlockAddress, uint16_t ByteCount);
61 void LogSetModeById(LogModeEnum Mode);
62 bool LogSetModeByName(
const char* Mode);
63 void LogGetModeByName(
char* Mode, uint16_t BufferSize);
64 void LogGetModeList(
char* List, uint16_t BufferSize);
65 void LogSRAMToFRAM(
void);
68 INLINE
void LogEntry(
LogEntryEnum Entry,
const void* Data, uint8_t Length) { CurrentLogFunc(Entry, Data, Length); }
Application processed authentication command.
Definition: Log.h:30
Application authentication failed.
Definition: Log.h:35
Application is in auth state.
Definition: Log.h:34
Application processed increment command.
Definition: Log.h:26
Currently active codec sent data.
Definition: Log.h:21
UID change.
Definition: Log.h:16
Empty Log Entry. This is not followed by a length byte nor the two systick bytes nor any data...
Definition: Log.h:39
LogEntryEnum
Definition: Log.h:11
Currently active codec received data.
Definition: Log.h:20
Application processed write command.
Definition: Log.h:25
Application processed halt command.
Definition: Log.h:31
Application processed an unknown command.
Definition: Log.h:32
Application reset.
Definition: Log.h:17
Unspecific log entry.
Definition: Log.h:13
Application processed restore command.
Definition: Log.h:29
Application processed read command.
Definition: Log.h:24
Application had a checksum fail.
Definition: Log.h:36
Application processed transfer command.
Definition: Log.h:28
Setting change.
Definition: Log.h:15
Application is not authenticated.
Definition: Log.h:37
Application processed decrement command.
Definition: Log.h:27
Configuration change.
Definition: Log.h:14
Application is in authing state.
Definition: Log.h:33