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

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (crc16_table)
 
u16 crc16 (u16 crc, u8 const *buffer, size_t len)
 
 EXPORT_SYMBOL (crc16)
 
 MODULE_DESCRIPTION ("CRC16 calculations")
 
 MODULE_LICENSE ("GPL")
 

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.

EXPORT_SYMBOL ( crc16_table  )
EXPORT_SYMBOL ( crc16  )
MODULE_DESCRIPTION ( "CRC16 calculations"  )
MODULE_LICENSE ( "GPL"  )

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.