When I run the driverlib example crc_ex1_buildSignature.c the result returned using the following code the result is 0xA1A3. This doesn't match with any online CRC check using the same polynominal 0x1021. The result from those websites is: 0x2378 . What am I missing here?
uint16_t crcSeed = 0x0000;
uint16_t data[] = {0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,0x0008,0x0009};\\
//Set the CRC seed
CRC_setSeed(CRC_BASE,
crcSeed);
for (i = 0; i < 9; i++)
{
//Add all of the values into the CRC signature
CRC_set16BitData(CRC_BASE,
data[i]);
}
//Save the current CRC signature checksum to be compared for later
crcResult = CRC_getResult(CRC_BASE);