Library for Real Time Clock module MCP97410 based on Library for DS1307
Fork of RTC-DS1307 by
Diff: Rtc_Mcp97410.h
- Revision:
- 13:10e564536e23
- Parent:
- 12:88f82e47b6a1
--- a/Rtc_Mcp97410.h Fri Jan 16 21:17:52 2015 +0000 +++ b/Rtc_Mcp97410.h Sun Mar 08 21:12:29 2015 +0000 @@ -223,8 +223,29 @@ */ bool disableEEPROMWrite(); - + /** read the OSCTRIM-Register (0x08) + * + * -127 .. +127 + * bit 7 is Sign + * bit 0:6 Trim-Value + */ + uint8_t readTrim(); + + /** Increment TRIM-Value + * + * Increment TRIM-Value by one + */ + bool incTrim(); + + /** Derement TRIM-Value + * + * Decrement TRIM-Value by one + */ + bool decTrim(); + + /** read from EEPROM + * * address from 0x00 to 0x7F * all 128 Bytes can be read in one chunk * @@ -237,6 +258,7 @@ bool readEEPROM(int address, char* buffer, int len); /** write to EEPROM + * * address from 0x00 to 0x7F * only maximum 8 Bytes can be written in one chunk *