* crc

* 更改crc7

* add crc.h,crc.md

* 调整文件编码格式

* 调整文档

Co-authored-by: fslongjin <longjin@RinGoTek.cn>
This commit is contained in:
Mustang
2022-09-20 15:12:45 +08:00
committed by GitHub
parent 7598f63383
commit cbbf79b2cf
11 changed files with 326 additions and 0 deletions

12
kernel/common/crc64.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include <common/sys/types.h>
/**
* @brief 计算crc64
*
* @param crc crc初始值
* @param buffer 输入缓冲区
* @param len buffer大小bytes
* @return uint64_t crc
*/
uint64_t crc64(uint64_t crc, const uint8_t *buffer, size_t len);