Hi folks,<br><br>    Please, I don´t understand exactly what this function CRC CCITT UPDATE in C++ AVR can be ported to Python..<br><br>uint16_t<br>crc_ccitt_update (uint16_t crc, uint8_t data)<br>{<br>   data ˆ= lo8 (crc);
<br>   data ˆ= data << 4;<br>   return ((((uint16_t)data << 8) | hi8 (crc)) ˆ (uint8_t)(data >> 4)<br>ˆ ((uint16_t)data << 3));<br>}<br><br>Source: <a href="http://tldp.tuxhilfe.de/linuxfocus/common/src2/article352/avr-libc-user-manual-1.0.4.pdf">
http://tldp.tuxhilfe.de/linuxfocus/common/src2/article352/avr-libc-user-manual-1.0.4.pdf</a><br><br>      In parts reason this lo8 and hi8, is there some good soul here that can help-me with this conversion?<br><br>     I try seach in Google and Koders some code that use it, but I don´t had sucess...
<br><br><br>Big Hugs<br>Thanks<br>Regards.<br><br><br>-Py -Thorneiro<br><br>