Provides checksum calculation options. More...
#include <EEPROM-Checksum.h>
Static Public Member Functions | |
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. | |
static byte | get (T value) |
Calculates the checksum of the value of T. | |
Provides checksum calculation options.
Computes a single-byte checksum on any data type or directly from an EEPROM address.
T | The type of the variable against whose value the checksum will be calculated. |
Definition at line 46 of file EEPROM-Checksum.h.
|
inlinestatic |
Calculate the checksum of a byte array.
Calculate the checksum of the byte array specified by the data parameter whose number of bytes is specified by the length parameter.
data | Points to the starting byte in the array. |
length | The length of the byte array. |
Definition at line 58 of file EEPROM-Checksum.h.
|
inlinestatic |
Calculates the checksum of the value of T.
value | The value whose checksum will be calculated. |
Definition at line 136 of file EEPROM-Checksum.h.
|
inlinestatic |
Calculates the checksum from data in the EEPROM.
Calculate the checksum of the byte array in EEPROM specified by the address parameter whose number of bytes is specified by the length parameter.
address | The EEPROM address of the first byte of the array. |
length | The number of EEPROM bytes to read. |
Definition at line 99 of file EEPROM-Checksum.h.