// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2012-2024 Scott Penrose and WII5 Buoy contributors // // This file is part of WII5 Buoy firmware. // See LICENSE for full terms. /** * @file WII5RTC.h * @brief Real-time clock helper. */ #ifndef WII5RTC_h #define WII5RTC_h #include // Why not inherit our WII5 class? class WII5RTC { public: WII5RTC() {} virtual WII5_CONTROLLERS controllerId() {return WII5CONTROLLER_DRIVER;} virtual WII5_DRIVERS driverId() {return WII5DRIVER_RTC;} void begin(); void test(); void setRTC(uint32_t t = 0); float getTemperature(); protected: bool testDone; }; extern WII5RTC wii5RTC; #endif