Can any one point me to some information on detecting bit errors and C or C++ algorithms that do this. I am familiar with CRC algorithms and have used the 16 and 32 bit routines that are in Michael Barr's Oreilly book on Embedded Programming but what I am trying to do a bit different. Here's an example:
Let's say I send a bit stream (it could be 10 bits or 10,000 bits) out a communication channel (in this case over an RF link). The other side echos this stream back and I want to get a quick count of the number of bits that are wrong.
E.g. I send 0xA5A5 and get back 0xA5A4 which I want to yield the number 1 indicating that one bit is off. This could also apply to a
10,000 bit stream where if 900 bits were off I get 900.I know how to do this brute force but am looking for some more efficient techniques/algorithms that are available.
Any thoughts or pointer on this?
Thanks in advance, Bruce