Forgive me if this has already been answered. I am using the SASTest program from IGT and trying to verify the CRC. I'm using the example code from the spec
unsigned short CRC (unsigned char *s, int len, unsigned short crcval)
{
unsigned c,q;
c = 0;
q = 0;
for(; len; len--)
{
c = *s++;
q = (crcval ^ c) & 017;
crcval = (crcval >> 4) ^ (q * 010201);
q = (crcval ^ (c >> 4)) & 017;
crcval = (crcval >> 4) ^ (q * 010201);
}
return (crcval);
}
I am using this code on a 32-bit ARM processor. Is the magic number different? Does it matter? Any advice/direction would be helpful. FYI..I can read the full command, including the address-wakeup bit (this was verified using a logic analyzer).
Thanks in advance.