Brian Silverman | 8cbf833 | 2013-12-11 13:59:42 -0800 | [diff] [blame^] | 1 | #ifndef BBB_CRC_H_ |
2 | #define BBB_CRC_H_ | ||||
3 | |||||
4 | #include <stdint.h> | ||||
5 | |||||
6 | namespace 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. | ||||
10 | uint32_t CalculateChecksum(uint8_t *data, size_t length); | ||||
11 | |||||
12 | } // namespace cape | ||||
13 | |||||
14 | #endif // BBB_CRC_H_ |