6 #ifndef ACE_TIME_HW_STM_RTC_H
7 #define ACE_TIME_HW_STM_RTC_H
9 #if defined(ARDUINO_ARCH_STM32) || defined(EPOXY_DUINO)
14 class HardwareDateTime;
The date (year, month, day) and time (hour, minute, second) fields supported by the DS3231 RTC chip.
A class that reads and writes HardwareDateTime from an STM32 RTC chip using the STM32RTC library.
void setDateTime(const HardwareDateTime &dateTime) const
Set the STM with the HardwareDateTime values.
bool isTimeSet() const
Return true if the RTC is available and the time is set.
StmRtc()=default
Constructor.
void readDateTime(HardwareDateTime *dateTime) const
Read the time into the HardwareDateTime object.