code_crc.h File Reference

Description : functions used for the crc32 calculus made in the link layer if the crc16 in the cc2420 is deactivated. More...

Go to the source code of this file.

Defines

#define CRC32_INIT   0xFFFFFFFF
#define CRC32_POLY   0x04C11DB7

Functions

unsigned long crc32MakeTableMethod (unsigned long, const unsigned long *, unsigned char *, unsigned int)
 32-bit CRC Algorithms, table methods

Variables

static unsigned long tab_crc32 [256]


Detailed Description

Description : functions used for the crc32 calculus made in the link layer if the crc16 in the cc2420 is deactivated.

Definition in file code_crc.h.


Define Documentation

#define CRC32_INIT   0xFFFFFFFF

Definition at line 22 of file code_crc.h.

Referenced by PT_THREAD().

#define CRC32_POLY   0x04C11DB7

Definition at line 21 of file code_crc.h.


Function Documentation

unsigned long crc32MakeTableMethod ( unsigned long  ,
const unsigned long *  ,
unsigned char *  ,
unsigned int   
)

32-bit CRC Algorithms, table methods

Parameters:
[in] arg1,: CRC init value
[in] arg2,: pointer to CRC table (specific to generator polynomial)
[in] arg3,: pointer to the message
[in] arg4,: size of message in bytes
Returns:
CRC

Definition at line 10 of file code_crc.c.

Referenced by PT_THREAD().

Here is the caller graph for this function:


Variable Documentation

unsigned long tab_crc32[256] [static]

Definition at line 38 of file code_crc.h.

Referenced by PT_THREAD().


Generated on Wed Jun 3 12:05:40 2009 for PowWow v1.0 by  doxygen 1.5.6