Library for Real Time Clock module MCP97410 based on Library for DS1307
Fork of RTC-DS1307 by
Diff: Rtc_Mcp97410.cpp
- Revision:
- 12:88f82e47b6a1
- Parent:
- 11:ef48dcb888c9
- Child:
- 13:10e564536e23
--- a/Rtc_Mcp97410.cpp Fri Jan 16 20:44:51 2015 +0000 +++ b/Rtc_Mcp97410.cpp Fri Jan 16 21:17:52 2015 +0000 @@ -255,13 +255,25 @@ return(readEEPROM(0xF2,(char *) eui48,6)); } - bool Rtc_Mcp97410::writeEUI48(uint8_t* eui48) { //EUI48 start at EEPROM-address 0xF2 return(writeEEPROM(0xF2,(char *) eui48,6)); } +bool Rtc_Mcp97410::readEUI64(uint8_t* eui64) +{ + //EUI64 start at EEPROM-address 0xF2 + return(readEEPROM(0xF0,(char *) eui64,8)); +} + + +bool Rtc_Mcp97410::writeEUI64(uint8_t* eui64) +{ + //EUI64 start at EEPROM-address 0xF2 + return(writeEEPROM(0xF0,(char *) eui64,8)); +} + bool Rtc_Mcp97410::unlockEUI() { // unlock the special EEPROM area