Implementation of several CRC algorithms from the atlasmv module. More...
#include <crc.h>
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 | 
Implementation of several CRC algorithms from the atlasmv module.
Definition in file crc.cpp.
int crc_tab16_init = FALSE [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 [static] |