Local Library for DS3231 RTC
Fork of ds3231 by
Diff: ds3231.h
- Revision:
- 15:b87f3e7258bb
- Parent:
- 14:11630748e2f2
--- a/ds3231.h Wed Mar 18 00:06:59 2015 +0000 +++ b/ds3231.h Mon Jan 15 20:24:23 2018 +0000 @@ -327,6 +327,7 @@ uint16_t set_calendar(ds3231_calendar_t calendar); + /**********************************************************//** * Set either Alarm1 or Alarm2 of DS3231 * @@ -521,6 +522,15 @@ uint16_t get_temperature(void); + /********************************************************** + * Set RTC time and date based on epoch time + * + * return 0 on success + **********************************************************/ + uint16_t set_epoch(time_t epoch_time); + + uint16_t set_aging(uint8_t age); + /**********************************************************//** * Get epoch time based on current RTC time and date. * DS3231 must be configured and running before this fx is