WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
CRC

函数

uint16_t uapi_crc16 (uint16_t crc_start, const uint8_t *buf, uint32_t length)
 计算16位CRC校验值. 多项式: x16 + x12 + x5 + 1 (0x1021)。
 
uint32_t uapi_crc32 (uint32_t crc_start, const uint8_t *buf, uint32_t length)
 计算32位CRC校验值. 多项式符合IEEE 802.3 CRC-32标准(0x04C11DB7)。
 
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)。
 

详细描述

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.

Description: Provides CRC api
History:
2023-03-30, Create file.

函数说明

◆ uapi_crc16()

uint16_t uapi_crc16 ( uint16_t  crc_start,
const uint8_t *  buf,
uint32_t  length 
)

计算16位CRC校验值. 多项式: x16 + x12 + x5 + 1 (0x1021)。

◆ uapi_crc32()

uint32_t uapi_crc32 ( uint32_t  crc_start,
const uint8_t *  buf,
uint32_t  length 
)

计算32位CRC校验值. 多项式符合IEEE 802.3 CRC-32标准(0x04C11DB7)。

◆ uapi_crc32_no_comp()

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)。