<div dir="ltr">To array of bytes, check this:<br><br><a href="https://github.com/fluisgirardi/pascalscada_v0/blob/master/src/scada/crc16utils.pas">https://github.com/fluisgirardi/pascalscada_v0/blob/master/src/scada/crc16utils.pas</a><br><br>There are two routines: one to calculate, another to check if crc16 matches.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 25 de out. de 2022 às 08:13, Giuliano Colla via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il 25/10/22 09:58, Marco Borsari via fpc-pascal ha scritto:<br>
> On Tue, 25 Oct 2022 08:30:19 +0200<br>
> Bo Berglund via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
><br>
>> Is there some package or code available somewhere which can calculate the CRC16<br>
>> value over a byte array of some 1000 bytes?<br>
> <a href="http://www.retroarchive.org/swag/CRC/index.html" rel="noreferrer" target="_blank">http://www.retroarchive.org/swag/CRC/index.html</a><br>
><br>
Maybe you'll find this implementation more efficient:<br>
<br>
<a href="https://gist.github.com/prof7bit/7fc558626f94bd8a81b7" rel="noreferrer" target="_blank">https://gist.github.com/prof7bit/7fc558626f94bd8a81b7</a><br>
<br>
Giuliano<br>
<br>
-- <br>
Do not do to others as you would have them do to you.They might have different tastes.<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>