blob: b353efc6ed005a603aeb75aba8300501b697f9de [file] [log] [blame]
Brian Silverman8cbf8332013-12-11 13:59:42 -08001#ifndef BBB_CRC_H_
2#define BBB_CRC_H_
3
4#include <stdint.h>
5
6namespace cape {
7
8// Calculates a CRC32 checksum for data. This is definitely the same one as the
9// cape MCU does in hardware which seems to be the same one as Ethernet etc use.
10uint32_t CalculateChecksum(uint8_t *data, size_t length);
11
12} // namespace cape
13
14#endif // BBB_CRC_H_