74 void alarmSecondValues(uint8_t read_value,
RTCAlarm* value);
75 void alarmMinuteValues(uint8_t read_value,
RTCAlarm* value);
76 void alarmHourValues(uint8_t read_value,
RTCAlarm* value);
77 void alarmDayValues(uint8_t read_value,
RTCAlarm* value);
79 uint8_t getAlarmDayValue(
const RTCAlarm* value);
81 void clearAlarm(uint8_t alarmNum);
83 uint8_t readRegister(uint8_t reg);
84 bool writeRegister(uint8_t reg, uint8_t value);
void enable32kHzOutput()
Enables the 32 kHz output on the DS3231 chip.
void disableAlarmInterrupts()
Disables the generation of interrupts for alarms 0 and 1.
void readDate(RTCDate *value)
Reads the current date from the realtime clock into value.
int readTemperature()
Reads the value of the temperature sensor and returns the temperature in quarters of a degree celcius...
void enableAlarmInterrupts()
Enables the generation of interrupts for alarms 0 and 1.
Communicates with a DS3231 realtime clock chip via I2C.
bool isRealTime() const
Returns true if the realtime clock is on the I2C bus; false if the time and date are simulated...
void enableAlarm(uint8_t alarmNum)
Enables a specific alarm.
Stores date information from a realtime clock chip.
void readAlarm(uint8_t alarmNum, RTCAlarm *value)
Reads the details of the alarm with index alarmNum into value.
DS3231RTC(I2CMaster &bus, uint8_t oneHzPin=255)
Attaches to a realtime clock slave device on bus.
void disableAlarm(uint8_t alarmNum)
Disables a specific alarm.
bool setAlarm(uint8_t alarmNum, const RTCAlarm *value)
Sets the alarm with index alarmNum from value.
void writeDate(const RTCDate *value)
Updates the date in the realtime clock to match value.
void writeAlarm(uint8_t alarmNum, const RTCAlarm *value)
Updates the details of the alarm with index alarmNum from value.
void disable32kHzOutput()
Disables the 32 kHz output on the DS3231 chip.
Stores time information from a realtime clock chip.
void writeTime(const RTCTime *value)
Updates the time in the realtime clock to match value.
Abstract base class for I2C master implementations.
Stores alarm information from a realtime clock chip.
bool hasUpdates()
Returns true if there are updates.
void readTime(RTCTime *value)
Reads the current time from the realtime clock into value.
int firedAlarm()
Determines which of alarms 0 or 1 have fired since the last call.
Base class for realtime clock handlers.