Problem
I am writing code for an embedded device. A lot of solutions out there for CRC-CCITT 16-bit calculations require libraries.
Given that u
I have developed a small python module to generate crc. Give it a shot and check the source code it may help!
https://github.com/killercode/PythonCRC
For what you want you just need to use the following code
import crc
crccalc = crc.Crc()
crccalc.setCRCccitt() # Let's calculate the CRC CCITT of a value
crccalc.data = "My Data"
crccalc.compute()
print crccalc.result
Hope it helps :)