|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
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 () |
| void DebugLog::begin | ( | ) |
Load boot counter/reset metadata and initialize the in-memory log ring.
| uint32_t DebugLog::bootCount | ( | ) |
Return persisted boot count used by diagnostics.
| void DebugLog::flush | ( | ) |
Drain buffered output before shutdown or reset.
| uint32_t DebugLog::latestSequence | ( | ) |
Return the newest assigned ring sequence number.
| void DebugLog::log | ( | const char * | format, |
| ... | |||
| ) |
Append a formatted message; format is printf-style and size bounded.
| size_t DebugLog::readSince | ( | uint32_t | cursor, |
| Record * | out, | ||
| size_t | capacity, | ||
| uint32_t * | nextCursor | ||
| ) |
| const char * DebugLog::resetReasonName | ( | ) |
Return a stable label for the current reset cause.
| void DebugLog::setProtocolMode | ( | bool | enabled | ) |
Enable framing/transport mode used by the USB control channel.
| void DebugLog::tick | ( | ) |
Flush pending serial/log output from the main task.