49 void writeByte(uint8_t offset, uint8_t value);
69 uint8_t readRegister(uint8_t reg);
70 bool writeRegister(uint8_t reg, uint8_t value);
72 void updateAlarmInterrupts();
void enableAlarmInterrupts()
Enables the generation of interrupts for alarms 0 and 1.
void disable32kHzOutput()
Disables the 32 kHz output on the DS3232 chip.
void readTime(RTCTime *value)
Reads the current time 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...
int byteCount() const
Returns the number of bytes of non-volatile memory that can be used for storage of arbitrary settings...
void readDate(RTCDate *value)
Reads the current date from the realtime clock into value.
void enable32kHzOutput()
Enables the 32 kHz output on the DS3232 chip.
void writeAlarm(uint8_t alarmNum, const RTCAlarm *value)
Updates the details of the alarm with index alarmNum from value.
Communicates with a DS3232 realtime clock chip via I2C.
void disableAlarmInterrupts()
Disables the generation of interrupts for alarms 0 and 1.
Stores date information from a realtime clock chip.
void writeTime(const RTCTime *value)
Updates the time in the realtime clock to match value.
uint8_t readByte(uint8_t offset)
Reads the byte at offset within the realtime clock's non-volatile memory.
int firedAlarm()
Determines which of alarms 0 or 1 have fired since the last call.
DS3232RTC(I2CMaster &bus, uint8_t oneHzPin=255)
Attaches to a realtime clock slave device on bus.
bool isRealTime() const
Returns true if the realtime clock is on the I2C bus; false if the time and date are simulated...
bool hasUpdates()
Returns true if the realtime clock has updated since the last call to this function.
Stores time information from a realtime clock chip.
Abstract base class for I2C master implementations.
void writeDate(const RTCDate *value)
Updates the date in the realtime clock to match value.
Stores alarm information from a realtime clock chip.
void readAlarm(uint8_t alarmNum, RTCAlarm *value)
Reads the details of the alarm with index alarmNum into value.
void writeByte(uint8_t offset, uint8_t value)
Writes value to offset within the realtime clock's non-volatile memory.
Base class for realtime clock handlers.