RtcClass Class Reference
#include <RTC.h>
Public Member Functions | |
RtcClass () | |
Instantiate real time clock object. More... | |
uint64_t | getRtcNanoseconds () |
Get nanoseconds from RTC. More... | |
uint32_t | getRtcSeconds () |
Get seconds from RTC. More... | |
bool | setRtcNanoseconds (uint64_t nanoseconds) |
Set RTC nanoseconds. More... | |
bool | setRtcSeconds (uint32_t seconds) |
Set RTC. More... | |
Constructor & Destructor Documentation
◆ RtcClass()
RtcClass::RtcClass | ( | ) |
Instantiate real time clock object.
Member Function Documentation
◆ getRtcNanoseconds()
uint64_t RtcClass::getRtcNanoseconds | ( | ) |
Get nanoseconds from RTC.
- Return values
-
uint64_t Quantity of nanoseconds since last RTC reset or set
◆ getRtcSeconds()
uint32_t RtcClass::getRtcSeconds | ( | ) |
Get seconds from RTC.
- Return values
-
uint32_t Quantity of seconds since epoch
- Note
- Also updates RTC NVRAM
◆ setRtcNanoseconds()
bool RtcClass::setRtcNanoseconds | ( | uint64_t | nanoseconds | ) |
Set RTC nanoseconds.
- Parameters
-
nanoseconds Value to set RTC to
- Return values
-
bool True on success
◆ setRtcSeconds()
bool RtcClass::setRtcSeconds | ( | uint32_t | seconds | ) |
Set RTC.
- Parameters
-
seconds Quantity of seconds since epoch
- Return values
-
bool True on success
- Note
- Updates RTC NVRAM
The documentation for this class was generated from the following file: