avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #37901] CRC-CCITT calculation incorrect


From: Joerg Wunsch
Subject: [avr-libc-dev] [bug #37901] CRC-CCITT calculation incorrect
Date: Tue, 11 Dec 2012 15:05:29 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Update of bug #37901 (project avr-libc):

             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #3:

> The standard CCITT CRC should produce an endian
> and bit-order independent result that is compatible
> with other implementations.

It's simply impossible to implement a bit-order independent CRC.  The
existing _crc_ccitt_update() is known to work with any kind of
communication protocol that transfers the low-order bit first (not
only IrDA but many others; probably any communication protocol except
USB works this way).

If anyone wants the opposite-bit-order CRC function that is compatible
with the Xmega CRC, they ought to use _crc_xmodem_update().

Yes, renaming anything is sheer impossible, as it would break
backwards compatibility for all those people who use the current
functions.

I reopen the bug report so you can append a patch that you think would
make the documentation clearer on this.  Perhaps mention that
_crc_xmodem_update() is the one that is compatible with the Xmega CRC?
Insert a paragraph describing the bit-order problem?


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37901>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]