1 #ifndef _VNDATA_ERROR_DETECTION_H_
2 #define _VNDATA_ERROR_DETECTION_H_
27 static uint8_t
compute(
const char data[],
size_t length);
45 static uint16_t
compute(
const char data[],
size_t length);
Helpful class for working with 8-bit checksums.
Definition: error_detection.h:14
static uint8_t compute(const char data[], size_t length)
Computes the 8-bit checksum of the provided data.
Helpful class for working with 16-bit CRCs.
Definition: error_detection.h:32
static uint16_t compute(const char data[], size_t length)
Computes the 16-bit CRC of the provided data.