WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
uapi_crc.h
浏览该文件的文档.
1
10#ifndef UAPI_CRC_H
11#define UAPI_CRC_H
12
13#include <stdint.h>
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19#endif /* __cplusplus */
20
43uint16_t uapi_crc16(uint16_t crc_start, const uint8_t *buf, uint32_t length);
44
61uint32_t uapi_crc32(uint32_t crc_start, const uint8_t *buf, uint32_t length);
62
80uint32_t uapi_crc32_no_comp(uint32_t crc_start, const uint8_t *buf, uint32_t length);
81
82
87#ifdef __cplusplus
88#if __cplusplus
89}
90#endif /* __cplusplus */
91#endif /* __cplusplus */
92
93
94#endif
uint32_t uapi_crc32_no_comp(uint32_t crc_start, const uint8_t *buf, uint32_t length)
计算32位CRC校验值(无补码). 多项式符合IEEE 802.3 CRC-32标准(0x04C11DB7)。
Definition uapi_crc32.c:80
uint32_t uapi_crc32(uint32_t crc_start, const uint8_t *buf, uint32_t length)
计算32位CRC校验值. 多项式符合IEEE 802.3 CRC-32标准(0x04C11DB7)。
Definition uapi_crc32.c:123
uint16_t uapi_crc16(uint16_t crc_start, const uint8_t *buf, uint32_t length)
计算16位CRC校验值. 多项式: x16 + x12 + x5 + 1 (0x1021)。
Definition uapi_crc16.c:47