Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Classes | Functions
DebugLog Namespace Reference

Classes

struct  Record
 

Functions

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

Function Documentation

◆ begin()

void DebugLog::begin ( )

Load boot counter/reset metadata and initialize the in-memory log ring.

◆ bootCount()

uint32_t DebugLog::bootCount ( )

Return persisted boot count used by diagnostics.

◆ flush()

void DebugLog::flush ( )

Drain buffered output before shutdown or reset.

◆ latestSequence()

uint32_t DebugLog::latestSequence ( )

Return the newest assigned ring sequence number.

◆ log()

void DebugLog::log ( const char *  format,
  ... 
)

Append a formatted message; format is printf-style and size bounded.

◆ readSince()

size_t DebugLog::readSince ( uint32_t  cursor,
Record *  out,
size_t  capacity,
uint32_t *  nextCursor 
)

◆ resetReasonName()

const char * DebugLog::resetReasonName ( )

Return a stable label for the current reset cause.

◆ setProtocolMode()

void DebugLog::setProtocolMode ( bool  enabled)

Enable framing/transport mode used by the USB control channel.

◆ tick()

void DebugLog::tick ( )

Flush pending serial/log output from the main task.