回覆:C语言纯软件计算任意多项式CRC7、CRC8、CRC16和CRC32的代码
1-20
·
有的单片机不支持uint64_t类型,无法运行calc_crc32函数和calc_crc32_inv函数。
注意到 if (temp & 0x8000000000000000) temp ^= POLYNOMIAL_CRC32 << 31; temp <<= 1; 也就是 if (temp & 0x8000000000000000) {... |
||
回覆:C语言纯软件计算任意多项式CRC7、CRC8、CRC16和CRC32的代码
1-20
·
#include <stdint.h>
#include <stdio.h> #include <string.h> #define INIT_CRC32 0xffffffffull #define POLYNOMIAL_CRC32 0x104c11db7ull uint8_t invert(uint8_t data) { int i;... |
||
回覆:C语言纯软件计算任意多项式CRC7、CRC8、CRC16和CRC32的代码
1-20
·
四个计算函数长得非常像,就只是里面的数字不一样。
|
||
回覆:C语言纯软件计算任意多项式CRC7、CRC8、CRC16和CRC32的代码
1-20
·
程序运行结果:
len=0, crc7=0x00, crc8=0x00, crc16=0x0000, crc32=0x00000000 len=4, crc7=0x49, crc8=0x88, crc16=0x62d3, crc32=0x41e278d5 len=8, crc7=0x35, crc8=0x4f, crc16=0x90e6, crc32=0xe83f2f79 len=12, crc7=0x50, crc8=0x5c, crc16=0x9764, crc32=... |
||
C语言纯软件计算任意多项式CRC7、CRC8、CRC16和CRC32的代码
1-20
·
/* CRC(循环冗余校验)在线计算: http://www.ip33.com/crc.html */
// 初始值INIT=0, 结果异或值XOROUT=0, 输入数据不反转, 输出数据不反转 #include <stdint.h> #include <stdio.h> #include <string.h> #define POLYNOMIAL_CRC7 0x89ul #define POLYNOMI... |
||
回覆:Daily Word from TheFreeDictionary
1-20
·
self-reliance
Definition: (noun) Personal independence. Synonyms: self-direction, self-sufficiency, autonomy Usage: I should have thought you... |
||
回覆:[Shanbay]Deep Reading: How to Build the Skill
1-20
·
The average American checks their phone over 140 times a day, clocking an average of 4.5 hours of daily use, with 57% of people...
|
||
[Shanbay]Deep Reading: How to Build the Skill
1-20
·
The original link: https://web.shanbay.com/reading/web-news/articles/bttsdl
|
||
回覆:Daily Sentence from Shanbay
1-20
·
Before anything else, preparation is the key to success.
|
||
回覆:记录每天早上上班在路上花的时间
1-20
·
今天早上:06:59-08:48
|
||