PandA-2024.02
module.c
Go to the documentation of this file.
1 unsigned short icrc1(unsigned short crc, unsigned char onech)
2 {
3  int i;
4  unsigned short ans=(crc^onech << 8);
5 
6  for (i=0;i<8;i++) {
7  if (ans & 0x8000)
8  ans = (ans <<= 1) ^ 4129;
9  else
10  ans <<= 1;
11  }
12  return ans;
13 }
14 
unsigned short icrc1(unsigned short crc, unsigned char onech)
Definition: module.c:1

Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by doxygen 1.8.13