mirror of https://github.com/gityf/crc.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
291 B
C
20 lines
291 B
C
#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
|