Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
crc16.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Functions

u16 crc16 (u16 crc, const u8 *buffer, size_t len)
 

Variables

u16 const crc16_table [256]
 

Function Documentation

u16 crc16 ( u16  crc,
u8 const buffer,
size_t  len 
)

crc16 - compute the CRC-16 for the data buffer : previous CRC value : data pointer : number of bytes in the buffer

Returns the updated CRC value.

Definition at line 57 of file crc16.c.

Variable Documentation

u16 const crc16_table[256]

CRC table for the CRC-16. The poly is 0x8005 (x^16 + x^15 + x^2 + 1)

Definition at line 13 of file crc16.c.