#include <RTC.h>
Public Member Functions | |
RTC () | |
bool | tick () |
time_t | get_time () |
void | set_time ( time_t time) |
void | get_time (struct tm &now) |
void | set_time (struct tm &now) |
RTC () | |
bool | tick () |
time_t | get_time () |
void | set_time ( time_t time) |
void | get_time (struct tm &now) |
void | set_time (struct tm &now) |
Protected Attributes | |
volatile uint16_t | m_millis |
volatile time_t | m_time |
Software Real-Time Clock.
Definition at line 25 of file RTC.h .
| inline |
Construct software real-time clock based on millis().
Definition at line 30 of file RTC.h .
| inline |
Construct software real-time clock based on millis().
Definition at line 89 of file RTC.h .
| inline |
Return the current time in seconds from epoch.
Definition at line 55 of file RTC.h .
| inline |
Return the current time as a time structure.
Definition at line 80 of file RTC.h .
| inline |
Current time in seconds from epoch.
Definition at line 111 of file RTC.h .
| inline |
Return the current time as a time structure.
Definition at line 128 of file RTC.h .
| inline |
Set the current time (seconds) from epoch.
Definition at line 68 of file RTC.h .
| inline |
Set the current time based on the given time structure.
Definition at line 89 of file RTC.h .
| inline |
Set the current time (seconds) from epoch.
Definition at line 120 of file RTC.h .
| inline |
Set the current time based on the given time structure.
Definition at line 137 of file RTC.h .
| inline |
Increment seconds counter when time has elapsed. Return true(1) if an increment occured, otherwise false(0).
Definition at line 39 of file RTC.h .