diff options
Diffstat (limited to 'crc.h')
-rw-r--r-- | crc.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#ifndef _CRC_H_
+#define _CRC_H_
+
+extern const uint16_t crc8_table[];
+extern const uint16_t crc16_table[];
+
+uint8_t calc_crc8(uint8_t old_crc, uint8_t inbyte);
+uint16_t calc_crc16(uint16_t old_crc, uint8_t inbyte);
+
+#endif
|