Go to the source code of this file.
|
unsigned int | CRC__compute (unsigned int *buffer, unsigned int size) |
| Returns a 16-bit CRC of the size bytes in buffer. More...
|
|
|
static unsigned short | ccitt [256] |
|
unsigned int CRC__compute |
( |
unsigned int * |
buffer, |
|
|
unsigned int |
size |
|
) |
| |
Returns a 16-bit CRC of the size bytes in buffer.
- Parameters
-
buffer | is a list of bytes. |
size | is the number of bytes |
- Returns
- the 16-bit CRC of the size bytes in buffer.
CRC__compute() a 16-bit CRC of the size bytes in buffer. Note only the low 8-bits of each 32-bit quantity in buffer is used for the computation. The result is returned as a 32-bit quantity of which only the low 16-bit matter; the high 16-bits are masked to 0.
Definition at line 58 of file CRC.cpp.
unsigned short ccitt[256] |
|
static |