SDKZSPF LSI, SDKZSPF Datasheet - Page 338

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
E.4
E.4.1
E-6
API Specification for 8bit CRC Library Function on G2
CRC 8bit
Synopsis
short lib_crc8(short *inpw, short Nwords)
Input
Short *inpw
Short Nwords Size of input for which CRC is needed
Output
Short crc8
Description
This function implements CRC-8 bit checksum calculation, based on the
Generating Polynomial
D(8) + D(7) +D(4) + D(3) + D + 1 (decimal 411).
Dependencies/Assumptions
Assumes that the input data bits are packed into an array of 16-bit words,
in a "right-MSB" format, that is, in each word, the LSB has the oldest
data. In the final input word, if there are fewer than 16 data bits, the MSB
part may be filled with zero bits but not essential.
The output encoded bits are available packed into one 16-bit word in the
same "right-MSB" format.
Signal Processing Library
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
Computed checksum (16-bit scalar)
Pointer to input data (packed, 16-bit array)