#include "CRC.hpp"
Go to the source code of this file.
Functions | |
| unsigned int | CRC__compute (unsigned int *buffer, unsigned int size) |
| Returns a 16-bit CRC of the *size* bytes in *buffer*. | |
Variables | |
| 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*.
| buffer | is a list of bytes. |
| size | is the number of bytes |
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.