2025-06-27 00:32:57 +08:00
|
|
|
#ifndef _crc16_H
|
|
|
|
#define _crc16_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2025-10-18 13:58:40 +08:00
|
|
|
extern "C" {
|
2025-06-27 00:32:57 +08:00
|
|
|
#endif
|
|
|
|
|
2025-10-18 13:58:40 +08:00
|
|
|
#include "stdint.h"
|
2025-06-27 00:32:57 +08:00
|
|
|
|
2025-10-18 13:58:40 +08:00
|
|
|
void Get_Crc16(uint8_t *puchMsg, uint16_t usDataLen, uint8_t result[]);
|
|
|
|
uint8_t Get_Crc8(uint8_t *ptr, uint16_t len);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2025-10-18 13:58:40 +08:00
|
|
|
}
|
2025-06-27 00:32:57 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|