aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crc8.h
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/crc8.h')
-rw-r--r--wsutil/crc8.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wsutil/crc8.h b/wsutil/crc8.h
index 52db4fd64b..0aaf78e2ae 100644
--- a/wsutil/crc8.h
+++ b/wsutil/crc8.h
@@ -41,6 +41,24 @@ extern "C" {
*/
WS_DLL_PUBLIC guint8 crc8_0x2F(guint8 *buf, guint32 len, guint8 seed);
+/** Calculates a CRC8 checksum for the given buffer with the polynom
+ * 0x37 using the precompiled CRC table
+ * @param buf a pointer to a buffer of the given length
+ * @param len the length of the given buffer
+ * @param seed The seed to use.
+ * @return the CRC8 checksum for the buffer
+ */
+WS_DLL_PUBLIC guint8 crc8_0x37(guint8 *buf, guint32 len, guint8 seed);
+
+/** Calculates a CRC8 checksum for the given buffer with the polynom
+ * 0x3B using the precompiled CRC table
+ * @param buf a pointer to a buffer of the given length
+ * @param len the length of the given buffer
+ * @param seed The seed to use.
+ * @return the CRC8 checksum for the buffer
+ */
+WS_DLL_PUBLIC guint8 crc8_0x3B(guint8 *buf, guint32 len, guint8 seed);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */