This is the interface to the RTC Hardware. More...
#include <RTC.h>
Public Member Functions | |
| RtcClass () | |
| Create RtcClass object. | |
| void | begin () |
| Initialize the RTC library. More... | |
| void | end () |
| Finalize the RTC library. | |
| void | setTime (RtcTime &rtc) |
| Set RTC time. More... | |
| RtcTime | getTime () |
| Get RTC time. More... | |
| void | setAlarm (RtcTime &rtc) |
| Set RTC alarm time. More... | |
| void | setAlarmSeconds (uint32_t seconds) |
| Set RTC alarm time after the specified seconds. More... | |
| void | cancelAlarm () |
| Cancel RTC alarm time. | |
| void | attachAlarm (void(*isr)(void)) |
| Attach the alarm handler. More... | |
| void | detachAlarm () |
| Detach the alarm handler. | |
This is the interface to the RTC Hardware.
| void RtcClass::begin | ( | ) |
Initialize the RTC library.
When RTC library is used, this API must be called at first. This API will wait until RTC hardware is available.
| void RtcClass::setAlarm | ( | RtcTime & | rtc | ) |
Set RTC alarm time.
| [in] | rtc | a object of RtcTime to set the alarm |
| void RtcClass::setAlarmSeconds | ( | uint32_t | seconds | ) |
Set RTC alarm time after the specified seconds.
| [in] | seconds | to set the alarm |
| void RtcClass::attachAlarm | ( | void(*)(void) | isr | ) |
Attach the alarm handler.
| [in] | isr | the alarm handler which is executed on the task context. |