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

Go to the source code of this file.

Functions

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

Variables

u16 const 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.

Variable Documentation

u16 const 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.