mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-04-29 07:40:55 +08:00
17 lines
250 B
C
17 lines
250 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define CRC16_INIT 0XFFFF
|
|
|
|
uint16_t CRC16_Calc(const uint8_t *buf, size_t len, uint16_t crc);
|
|
bool CRC16_Verify(const uint8_t *buf, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|