move_xrobot/User/component/crc16.h

19 lines
274 B
C
Raw Normal View History

2025-01-14 10:35:04 +08:00
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include "user_math.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