Unit crc16utils
Description
Unit that implement CRC-16 functions
:
Overview
Functions and Procedures
function Test_crc(const Pkg:BYTES):Boolean; |
function Calcul_crc(var Pkg:BYTES):Cardinal; |
Description
Functions and Procedures
function Test_crc(const Pkg:BYTES):Boolean; |
: Verifies an package of BYTES ultil their length - 2 and returns If the Pkg has 10 bytes of length, it will calculate the CRC using the first 8 bytes and it will check the result with bytes 9 and 10 of Pkg. The byte number 9 is the most significative.
Parameters
Returns
|
function Calcul_crc(var Pkg:BYTES):Cardinal; |
: Calculate the CRC-16 of the package until their size - 2. If the package has 10 bytes of length, it will use to calculate the first 8 bytes and will store the result of the calculation on bytes 9 and 10. The byte number 9 is the most significative.
Parameters
ReturnsA Cardinal number with the CRC-16 calculated with length of Pkg - 2. |
Author
- Fabio Luis Girardi <[email protected]>
Generated by PasDoc 0.14.0.