This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CRC-16

Hi.......I a trying to implement CRC-16 code for error detection in C.Do anyone have the code for it...

Parents
  • Google knows many implementations. Did you look?

    Large and fast tabulated code, or small but slower code with on-the-fly bit-shifting?

    And as already noted, you need to decide what polynomial. Note that there exists code that starts with the least significant bit first, and code that starts with the most significant bit.

    And you need to decide if the code should start with 0000 or 0xffff and if it should perform an inversion at the end.

Reply
  • Google knows many implementations. Did you look?

    Large and fast tabulated code, or small but slower code with on-the-fly bit-shifting?

    And as already noted, you need to decide what polynomial. Note that there exists code that starts with the least significant bit first, and code that starts with the most significant bit.

    And you need to decide if the code should start with 0000 or 0xffff and if it should perform an inversion at the end.

Children