mirror of https://github.com/gityf/crc.git
add crc8
parent
4b1aa6d7af
commit
348a49db75
@ -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
|
Loading…
Reference in New Issue