/home/laradmin/lar/bases/atlasmv_base/src/crc.cpp File Reference

Implementation of several CRC algorithms from the atlasmv module. More...

#include <crc.h>
Include dependency graph for crc.cpp:

Go to the source code of this file.

Defines

#define P_16   0xA001
#define P_32   0xEDB88320L
#define P_CCITT   0x1021
#define P_DNP   0xA6BC
#define P_KERMIT   0x8408
#define P_SICK   0x8005

Functions

static void init_crc16_tab (void)
static void init_crc32_tab (void)
static void init_crcccitt_tab (void)
static void init_crcdnp_tab (void)
static void init_crckermit_tab (void)
unsigned short update_crc_16 (unsigned short crc, char c)
unsigned long update_crc_32 (unsigned long crc, char c)
unsigned short update_crc_ccitt (unsigned short crc, unsigned char c)
unsigned short update_crc_dnp (unsigned short crc, char c)
unsigned short update_crc_kermit (unsigned short crc, char c)
unsigned short update_crc_sick (unsigned short crc, char c, char prev_byte)

Variables

static unsigned short crc_tab16 [256]
static int crc_tab16_init = FALSE
static unsigned long crc_tab32 [256]
static int crc_tab32_init = FALSE
static unsigned short crc_tabccitt [256]
static int crc_tabccitt_init = FALSE
static unsigned short crc_tabdnp [256]
static int crc_tabdnp_init = FALSE
static unsigned short crc_tabkermit [256]
static int crc_tabkermit_init = FALSE

Detailed Description

Implementation of several CRC algorithms from the atlasmv module.

Definition in file crc.cpp.


Define Documentation

#define P_16   0xA001

Definition at line 95 of file crc.cpp.

#define P_32   0xEDB88320L

Definition at line 96 of file crc.cpp.

#define P_CCITT   0x1021

Definition at line 97 of file crc.cpp.

#define P_DNP   0xA6BC

Definition at line 98 of file crc.cpp.

#define P_KERMIT   0x8408

Definition at line 99 of file crc.cpp.

#define P_SICK   0x8005

Definition at line 100 of file crc.cpp.


Function Documentation

static void init_crc16_tab ( void   )  [static]

Definition at line 326 of file crc.cpp.

static void init_crc32_tab ( void   )  [static]

Definition at line 434 of file crc.cpp.

static void init_crcccitt_tab ( void   )  [static]

Definition at line 467 of file crc.cpp.

static void init_crcdnp_tab ( void   )  [static]

Definition at line 398 of file crc.cpp.

static void init_crckermit_tab ( void   )  [static]

Definition at line 362 of file crc.cpp.


Variable Documentation

unsigned short crc_tab16[256] [static]

Definition at line 127 of file crc.cpp.

int crc_tab16_init = FALSE [static]

Definition at line 121 of file crc.cpp.

unsigned long crc_tab32[256] [static]

Definition at line 128 of file crc.cpp.

int crc_tab32_init = FALSE [static]

Definition at line 122 of file crc.cpp.

unsigned short crc_tabccitt[256] [static]

Definition at line 129 of file crc.cpp.

int crc_tabccitt_init = FALSE [static]

Definition at line 123 of file crc.cpp.

unsigned short crc_tabdnp[256] [static]

Definition at line 130 of file crc.cpp.

int crc_tabdnp_init = FALSE [static]

Definition at line 124 of file crc.cpp.

unsigned short crc_tabkermit[256] [static]

Definition at line 131 of file crc.cpp.

int crc_tabkermit_init = FALSE [static]

Definition at line 125 of file crc.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Wed Jul 23 04:34:43 2014