SDKZSPF LSI, SDKZSPF Datasheet - Page 337

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
E.3
E.3.1
API Specification for 16bit CRC Library Function on G2
CRC 16bit
Synopsis
short lib_crc16(short *inpw, short Nwords)
Input
Short *inpw
Short Nwords Size of input for which CRC is needed
Output
Short crc16
Description
This function implements CRC-16 bit checksum calculation, based on the
Generating Polynomial
P(D) = D(16) + D(12) + D(5) + 1 (decimal 69,665).
Dependencies/Assumptions
Assumes that the input 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.
API Specification for 16bit CRC Library Function on G2
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
Pointer to input data (packed, 16-bit array)
Computed checksum (16-bit scalar)
E-5