Code Monkey home page Code Monkey logo

crc-lib-c's Introduction

crc-lib-c

基于C语言的CRC校验库,包括常用的21个CRC参数模型实现

常用的CRC参数模型

CRC算法名称 多项式公式 WIDTH POLY INIT XOROUT REFIN REFOUT
CRC-4/ITU x4 + x + 1 4 03 00 00 TRUE TRUE
CRC-5/EPC x5 + x3 + 1 5 09 09 00 FALSE FALSE
CRC-5/ITU x5 + x4 + x2 + 1 5 15 00 00 TRUE TRUE
CRC-5/USB x5 + x2 + 1 5 05 1F 1F TRUE TRUE
CRC-6/ITU x6 + x + 1 6 03 00 00 TRUE TRUE
CRC-7/MMC x7 + x3 + 1 7 09 00 00 FALSE FALSE
CRC-8 x8 + x2 + x + 1 8 07 00 00 FALSE FALSE
CRC-8/ITU x8 + x2 + x + 1 8 07 00 55 FALSE FALSE
CRC-8/ROHC x8 + x2 + x + 1 8 07 FF 00 TRUE TRUE
CRC-8/MAXIM x8 + x5 + x4 + 1 8 31 00 00 TRUE TRUE
CRC-16/IBM x16 + x15 + x2 + 1 16 8005 0000 0000 TRUE TRUE
CRC-16/MAXIM x16 + x15 + x2 + 1 16 8005 0000 FFFF TRUE TRUE
CRC-16/USB x16 + x15 + x2 + 1 16 8005 FFFF FFFF TRUE TRUE
CRC-16/MODBUS x16 + x15 + x2 + 1 16 8005 FFFF 0000 TRUE TRUE
CRC-16/CCITT x16 + x12 + x5 + 1 16 1021 0000 0000 TRUE TRUE
CRC-16/CCITT-FALSE x16 + x12 + x5 + 1 16 1021 FFFF 0000 FALSE FALSE
CRC-16/X25 x16 + x12 + x5 + 1 16 1021 FFFF FFFF TRUE TRUE
CRC-16/XMODEM x16 + x12 + x5 + 1 16 1021 0000 0000 FALSE FALSE
CRC-16/DNP x16 + x13 + x12 + x11 + x10 + x8 + x6 + x5 + x2 + 1 16 3D65 0000 FFFF TRUE TRUE
CRC-32 x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1 32 04C11DB7 FFFFFFFF FFFFFFFF TRUE TRUE
CRC-32/MPEG-2 x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1 32 04C11DB7 FFFFFFFF 0 FALSE FALSE

CRC计算工具

在线计算工具:www.ip33.com/crc.html

离线计算工具:

crc-lib-c's People

Contributors

whik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.