Library for Maxim DS3232M super-accurate, I2C based Real Time Clock chip with 234 bytes of user RAM. Library includes user RAM read/write operations along with CRC routines for accessing the user RAM area.
Dependents: ds3232m_HelloWorld
Diff: ds3232m.h
- Revision:
- 3:e9c5025ba2ca
- Parent:
- 2:a9a8027a7cb2
- Child:
- 4:b5acccb6c3d1
--- a/ds3232m.h Thu Dec 25 21:38:22 2014 +0000 +++ b/ds3232m.h Wed Mar 11 19:16:37 2015 +0000 @@ -98,6 +98,22 @@ */ int getSeconds(); /** + * Get day-of-the-week register from DS3232M + * + * @param --none-- + * + * @return BCD-to-decimal corrected day of week register (1-7) + */ + int getDayOfWeek(); + /** + * Set the day-of-the-week register in the DS3232M + * + * @param dow3232 day_of_the_week (1=Mon....7=Sun) + * + * @return --none-- + */ + void putDayOfWeek(char dow3232); + /** * Clear out all 236 bytes of user RAM, from address 0x14 to 0xff * - 00h is put in all user RAM area *