|
H753_CPP_I2C_DS3231_RTC_01 1.0
STM32H753 DS3231 real-time clock over I2C, with an AT24C32 EEPROM marker that stops the clock being set twice, built on the STM32_DS3231 and STM32_AT24C32 libraries
|
A calendar date and time, always 24-hour clock. More...
#include <DS3231.h>
Data Fields | |
| uint16_t | year |
| uint8_t | month |
| uint8_t | day |
| uint8_t | weekday |
| uint8_t | hour |
| uint8_t | minute |
| uint8_t | second |
A calendar date and time, always 24-hour clock.
ds3231SetTime() ignores weekday and works it out from the date; ds3231GetTime() fills it in the same way. The chip's own day-of-week register is user-defined, so the driver never relies on it.
| uint8_t DS3231_TIME_t::day |
Day of the month, 1 to 31 (limited by the month).
Definition at line 112 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().
| uint8_t DS3231_TIME_t::hour |
Hour, 0 to 23.
Definition at line 114 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().
| uint8_t DS3231_TIME_t::minute |
Minute, 0 to 59.
Definition at line 115 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().
| uint8_t DS3231_TIME_t::month |
Month, 1 to 12.
Definition at line 111 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().
| uint8_t DS3231_TIME_t::second |
Second, 0 to 59.
Definition at line 116 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().
| uint8_t DS3231_TIME_t::weekday |
Day of the week, 1 = Monday to 7 = Sunday.
Definition at line 113 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), parseBuildTime(), and printTime().
| uint16_t DS3231_TIME_t::year |
Full year, 2000 to 2099.
Definition at line 110 of file DS3231.h.
Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().