6 #ifndef SMINGCORE_RTC_H_ 7 #define SMINGCORE_RTC_H_ 9 #include "../Wiring/WiringFrameworkDependencies.h" 11 #define RTC_MAGIC 0x55aaaa55 12 #define RTC_DES_ADDR 64 13 #define NS_PER_SECOND 1000000000 RtcClass()
Instantiate real time clock object.
RtcClass RTC
Global instance of real time clock object.
uint32_t magic
Magic ID used to identify that RTC has been initialised.
Definition: RTC.h:20
uint32_t getRtcSeconds()
Get seconds from RTC.
bool setRtcSeconds(uint32_t seconds)
Set RTC.
bool setRtcNanoseconds(uint64_t nanoseconds)
Set RTC nanoseconds.
uint64_t time
Quantity of nanoseconds since epoch.
Definition: RTC.h:19
uint32_t cycles
Quantity of RTC cycles since last update.
Definition: RTC.h:21
uint64_t getRtcNanoseconds()
Get nanoseconds from RTC.