Files
ZephCore/zephcore/adapters/clock/ZephyrRTCClock.h
T
2026-06-07 22:47:17 +02:00

22 lines
357 B
C++

/*
* SPDX-License-Identifier: MIT
* Zephyr software RTC - boot-relative time with settable offset
*/
#pragma once
#include <mesh/RTC.h>
namespace mesh {
class ZephyrRTCClock : public RTCClock {
public:
uint32_t getCurrentTime() override;
void setCurrentTime(uint32_t time) override;
private:
uint32_t epoch_offset = 0;
};
} /* namespace mesh */