Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/crc.h
diff options
context:
space:
mode:
Diffstat (limited to 'crc.h')
-rw-r--r--crc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crc.h b/crc.h
new file mode 100644
index 0000000..c786e85
--- /dev/null
+++ b/crc.h
@@ -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