31#if defined(ARDUINO) && ARDUINO >= 100
33#elif defined(PARTICLE)
58 static byte get(
byte* data, uint length)
68 returnValue = 0xAA ^ data[0];
72 for (uint i = 0; i < length ; i++)
101 byte returnValue = 0;
109 returnValue = 0xAA ^ EEPROM[address];
113 for (uint i = 0; i < length ; i++)
115 byte b = EEPROM[address + i];
142 byte *ptr = (
byte*) &value;
#define UNSET_VALUE
Defines the default value used when clearing the EEPROM memory.
Provides checksum calculation options.
static byte get(T value)
Calculates the checksum of the value of T.
static byte get(byte *data, uint length)
Calculate the checksum of a byte array.
static byte getEEPROM(uint address, uint length)
Calculates the checksum from data in the EEPROM.