This commit is contained in:
Wang Yaofu
2021-08-25 18:49:15 +08:00
committed by GitHub
parent 4b1aa6d7af
commit 348a49db75
+19
View File
@@ -0,0 +1,19 @@
#ifndef _CRC_CRC8_H
#define _CRC_CRC8_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
// LSB-first
uint8_t crc8_lsb(const char *buf, int len);
// MSB-first
uint8_t crc8_msb(const char *buf, int len);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif