Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
debug_log.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for debug_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DebugLog::Record
 

Namespaces

namespace  DebugLog
 

Macros

#define ERSA_VERBOSE_DIAGNOSTICS   0
 
#define ERSA_LOG_VERBOSE(...)   ((void)0)
 

Functions

void DebugLog::begin ()
 
void DebugLog::log (const char *format,...) __attribute__((format(printf
 
void void DebugLog::tick ()
 
void DebugLog::setProtocolMode (bool enabled)
 
size_t DebugLog::readSince (uint32_t cursor, Record *out, size_t capacity, uint32_t *nextCursor)
 
uint32_t DebugLog::latestSequence ()
 
uint32_t DebugLog::bootCount ()
 
const char * DebugLog::resetReasonName ()
 
void DebugLog::flush ()
 

Macro Definition Documentation

◆ ERSA_LOG_VERBOSE

#define ERSA_LOG_VERBOSE (   ...)    ((void)0)

◆ ERSA_VERBOSE_DIAGNOSTICS

#define ERSA_VERBOSE_DIAGNOSTICS   0

Expensive protocol and power telemetry that should disappear from release images. Build with ERSA_VERBOSE_DIAGNOSTICS=1 to restore these call sites.