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

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (crc_itu_t_table)
 
u16 crc_itu_t (u16 crc, const u8 *buffer, size_t len)
 
 EXPORT_SYMBOL (crc_itu_t)
 
 MODULE_DESCRIPTION ("CRC ITU-T V.41 calculations")
 
 MODULE_LICENSE ("GPL")
 

Variables

const u16 crc_itu_t_table [256]
 

Function Documentation

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

crc_itu_t - Compute the CRC-ITU-T for the data buffer

: previous CRC value : data pointer : number of bytes in the buffer

Returns the updated CRC value

Definition at line 59 of file crc-itu-t.c.

EXPORT_SYMBOL ( crc_itu_t_table  )
EXPORT_SYMBOL ( crc_itu_t  )
MODULE_DESCRIPTION ( "CRC ITU-T V.41 calculations"  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

const u16 crc_itu_t_table[256]

CRC table for the CRC ITU-T V.41 0x0x1021 (x^16 + x^12 + x^15 + 1)

Definition at line 13 of file crc-itu-t.c.