I'm dealing with a device which say to use this 16 bit cyclic redundancy check:
CCITT CRC-16 with polynomial x^16 + x^12 + x^5 + x^1
I looked for an implementation of such algorithm, but I did find only ones with the last term of the equation equal to 1
(i.e. x^0
) instead of x^1
, like this one or this.
I was going to implement the algorithm by myself, when I realized I don't know how to start. How is it supposed to develop a CRC calculation starting from an equation?