<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Discussion</title><link href="https://sourceforge.net/p/crcmod/discussion/" rel="alternate"/><link href="https://sourceforge.net/p/crcmod/discussion/feed.atom" rel="self"/><id>https://sourceforge.net/p/crcmod/discussion/</id><updated>2023-03-26T18:13:23.954000Z</updated><subtitle>Recent posts to Discussion</subtitle><entry><title>Generating C code for CRC16-CCITT</title><link href="https://sourceforge.net/p/crcmod/discussion/388902/thread/93ae43068d/?limit=25#4ce0" rel="alternate"/><published>2023-03-26T18:13:23.954000Z</published><updated>2023-03-26T18:13:23.954000Z</updated><author><name>Nico Maas</name><uri>https://sourceforge.net/u/nicomaas/</uri></author><id>https://sourceforge.net75d134bc11fbe34275f6d2b7362ba4e85de477aa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello there,&lt;br/&gt;
I tried generating the C code for several CRC16 algorithms:&lt;/p&gt;
&lt;p&gt;while I was able to generate the code for kermit with:&lt;br/&gt;
Crc(g16, rev=True).generateCode('crc16r',out)&lt;/p&gt;
&lt;p&gt;the trial to generate the crc-ccitt-flase with&lt;br/&gt;
Crc(g16, initCrc=0xFFFF, rev=False).generateCode('crc16sum',out)&lt;br/&gt;
goes wrong - while the software does output the c code, the calculated checksum is always wrong.&lt;/p&gt;
&lt;p&gt;Am I doing something wrong?&lt;br/&gt;
Thanks a lot! :)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>