Arduino-RTC
Real-Time Clock (RTC) library for Arduino
|
#include <DS1307.h>
Classes | |
union | control_t |
struct | rtc_t |
struct | timekeeper_t |
Public Types | |
enum | Rate { RS_1_HZ = 0, RS_4096_HZ = 1, RS_8192_HZ = 2, RS_32768_HZ = 3 } |
Public Member Functions | |
DS1307 (TWI &twi) | |
bool | get_time (struct tm &now) |
bool | set_time (struct tm &now) |
bool | enable (Rate rs=RS_1_HZ) |
bool | disable () |
bool | read_ram (uint8_t addr, void *buf, size_t count) |
bool | write_ram (uint8_t addr, const void *buf, size_t count) |
Static Public Attributes | |
static const uint8_t | RAM_START = 0x08 |
static const uint8_t | RAM_END = 0x3f |
static const uint8_t | RAM_MAX = RAM_END - RAM_START + 1 |
Driver for the DS1307, 64 X 8, Serial I2C Real-Time Clock, a low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM.
For further details see Maxim Integrated product description; http://datasheets.maximintegrated.com/en/ds/DS1307.pdf
enum DS1307::Rate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |