Public Member Functions |
| | DS1307 () |
| | DS1307 (uint8_t address) |
| void | initialize () |
| bool | testConnection () |
|
bool | getClockRunning () |
|
void | setClockRunning (bool running) |
|
uint8_t | getSeconds () |
|
void | setSeconds (uint8_t seconds) |
|
uint8_t | getMinutes () |
|
void | setMinutes (uint8_t minutes) |
|
uint8_t | getMode () |
|
void | setMode (uint8_t mode) |
|
uint8_t | getAMPM () |
|
void | setAMPM (uint8_t ampm) |
|
uint8_t | getHours12 () |
|
void | setHours12 (uint8_t hours, uint8_t ampm) |
|
uint8_t | getHours24 () |
|
void | setHours24 (uint8_t hours) |
|
uint8_t | getDayOfWeek () |
|
void | setDayOfWeek (uint8_t dow) |
|
uint8_t | getDay () |
|
void | setDay (uint8_t day) |
|
uint8_t | getMonth () |
|
void | setMonth (uint8_t month) |
|
uint16_t | getYear () |
|
void | setYear (uint16_t year) |
|
bool | getFixedOutputLevel () |
|
void | setFixedOutputLevel (bool level) |
|
bool | getSquareWaveEnabled () |
|
void | setSquareWaveEnabled (bool enabled) |
|
uint8_t | getSquareWaveRate () |
|
void | setSquareWaveRate (uint8_t rate) |
|
uint8_t | getMemoryByte (uint8_t offset) |
|
void | setMemoryByte (uint8_t offset, uint8_t value) |
|
void | getDate (uint16_t *year, uint8_t *month, uint8_t *day) |
|
void | setDate (uint16_t year, uint8_t month, uint8_t day) |
|
void | getTime12 (uint8_t *hours, uint8_t *minutes, uint8_t *seconds, uint8_t *ampm) |
|
void | setTime12 (uint8_t hours, uint8_t minutes, uint8_t seconds, uint8_t ampm) |
|
void | getTime24 (uint8_t *hours, uint8_t *minutes, uint8_t *seconds) |
|
void | setTime24 (uint8_t hours, uint8_t minutes, uint8_t seconds) |
|
void | getDateTime12 (uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hours, uint8_t *minutes, uint8_t *seconds, uint8_t *ampm) |
|
void | setDateTime12 (uint16_t year, uint8_t month, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds, uint8_t ampm) |
|
void | getDateTime24 (uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hours, uint8_t *minutes, uint8_t *seconds) |
|
void | setDateTime24 (uint16_t year, uint8_t month, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds) |
|
DateTime | getDateTime () |
|
void | setDateTime (DateTime dt) |