Functions | Variables
CRC.cpp File Reference
#include "CRC.hpp"
Include dependency graph for CRC.cpp:

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. More...
 

Variables

static unsigned short ccitt [256]
 

Function Documentation

unsigned int CRC__compute ( unsigned int *  buffer,
unsigned int  size 
)

Returns a 16-bit CRC of the size bytes in buffer.

Parameters
bufferis a list of bytes.
sizeis 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.

Variable Documentation

unsigned short ccitt[256]
static

Definition at line 13 of file CRC.cpp.



fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53