Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JChristensen/DS3232RTC
/ functions
Functions
21 in github.com/JChristensen/DS3232RTC
⨍
Functions
21
◇
Types & classes
5
Method
DS3232RTC
src/DS3232RTC.h:135
Method
GenericRTC
src/GenericRTC.h:19
Method
alarm
Returns true or false depending on whether the given alarm has been triggered, and resets the alarm flag bit.
src/DS3232RTC.cpp:183
Method
alarmInterrupt
Enable or disable an alarm "interrupt" which asserts the INT pin on the RTC.
src/DS3232RTC.cpp:168
Method
bcd2dec
BCD-to-Decimal conversion
src/DS3232RTC.cpp:277
Method
begin
Initialize the I2C bus.
src/DS3232RTC.cpp:12
Method
checkAlarm
Returns true or false depending on whether the given alarm has been triggered, without resetting the alarm flag bit.
src/DS3232RTC.cpp:199
Method
clearAlarm
Clears the given alarm flag bit if it is set. Returns the value of the flag bit before if was cleared.
src/DS3232RTC.cpp:208
Method
dec2bcd
Decimal-to-BCD conversion
src/DS3232RTC.cpp:271
Method
enable32kHz
Enable or disable the 32kHz output.
src/DS3232RTC.cpp:235
Method
get
Read the current time from the RTC and return it as a time_t value. Returns a zero value if an I2C error occurred (e.g. RTC not present).
src/DS3232RTC.cpp:20
Method
oscStopped
Returns the value of the oscillator stop flag (OSF) bit in the control/status register which indicates that the oscillator is or was stopped, and that
src/DS3232RTC.cpp:247
Method
read
Read the current time from the RTC and return it in a tmElements_t structure. Returns the I2C status (zero if successful).
src/DS3232RTC.cpp:41
Method
readRTC
Read multiple bytes from RTC RAM. Valid address range is 0x00 - 0xFF, no checking. Number of bytes (nBytes) must be between 1 and 32 (Wire library lim
src/DS3232RTC.cpp:104
Method
set
Set the RTC to the given time_t value and clear the oscillator stop flag (OSF) in the Control/Status register. Returns the I2C status (zero if success
src/DS3232RTC.cpp:31
Method
setAlarm
Set an alarm time. Sets the alarm registers only. To cause the INT pin to be asserted on alarm match, use alarmInterrupt(). This method can set eithe
src/DS3232RTC.cpp:130
Method
squareWave
Enable or disable the square wave output. Use a value from the SQWAVE_FREQS_t enumeration for the parameter.
src/DS3232RTC.cpp:222
Method
temperature
src/GenericRTC.h:27
Method
temperature
Returns the temperature in Celsius times four.
src/DS3232RTC.cpp:258
Method
write
Set the RTC time from a tmElements_t structure and clear the oscillator stop flag (OSF) in the Control/Status register. Returns the I2C status (zero i
src/DS3232RTC.cpp:61
Method
writeRTC
Write multiple bytes to RTC RAM. Valid address range is 0x00 - 0xFF, no checking. Number of bytes (nBytes) must be between 1 and 31 (Wire library limi
src/DS3232RTC.cpp:83