|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <rtc.h>

Public Member Functions | |
| virtual | ~IRtc ()=default |
| virtual Result< void > | init ()=0 |
| virtual TimePoint | now ()=0 |
| virtual Result< void > | adjust (const TimePoint &time)=0 |
| virtual Result< void > | setEpoch (uint32_t epochSeconds)=0 |
| virtual bool | isHealthy () const =0 |
| virtual RtcDiagnostics | diagnostics () |
| virtual void | resync () |
Real-time clock contract using transport-neutral calendar values.
|
virtualdefault |
Write explicit calendar fields and report bus/chip failures.
Implemented in ersa::test::MockRtc.
|
inlinevirtual |
Return best-effort chip status; generic implementations report current time only.
|
pure virtual |
Initialize the chip/bus and verify that calendar reads are plausible.
Implemented in ersa::test::MockRtc.
|
pure virtual |
Report backend health; this does not guarantee the wall time is accurate.
Implemented in ersa::test::MockRtc.
|
pure virtual |
Return a calendar snapshot; the implementation may derive epoch fields.
Implemented in ersa::test::MockRtc.
|
inlinevirtual |
Force reconciliation with hardware after a wake where uptime paused.
|
pure virtual |
Convert and write epoch seconds without exposing a chip-specific date type.
Implemented in ersa::test::MockRtc.