AceTime  1.7.3
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Public Member Functions | List of all members
ace_time::hw::DS3231Module< T_WIREI > Class Template Reference

Same as the hw/DS3231 class, but designed for use with one of the templatized interface classes of AceWire to access the I2C bus, instead of hardcoding the use of the <Wire.h> library. More...

#include <DS3231Module.h>

Inheritance diagram for ace_time::hw::DS3231Module< T_WIREI >:
Inheritance graph
[legend]
Collaboration diagram for ace_time::hw::DS3231Module< T_WIREI >:
Collaboration graph
[legend]

Public Member Functions

 DS3231Module (T_WIREI &wireInterface)
 Constructor.
 
void readDateTime (HardwareDateTime *dateTime) override
 Read the time into the HardwareDateTime object.
 
void setDateTime (const HardwareDateTime &dateTime) override
 Set the DS3231 with the HardwareDateTime values.
 
void readTemperature (HardwareTemperature *temperature) override
 Read the temperature into the HardwareTemperature object.
 

Detailed Description

template<typename T_WIREI>
class ace_time::hw::DS3231Module< T_WIREI >

Same as the hw/DS3231 class, but designed for use with one of the templatized interface classes of AceWire to access the I2C bus, instead of hardcoding the use of the <Wire.h> library.

Allows different software and hardware I2C libraries to be selected at compile time.

Template Parameters
T_WIREItype of the AceWire implementation to communicate over I2C

Definition at line 43 of file DS3231Module.h.


The documentation for this class was generated from the following file: