#include "AP_Crc.h"
Defines | |
#define | P_16 0xA001 |
#define | P_32 0xEDB88320L |
#define | P_CCITT 0x1021 |
#define | P_DNP 0xA6BC |
Functions | |
AP_Uint16 | CRC16 (AP_Byte *buff, AP_Uint32 size) |
AP_Uint32 | CRC32 (AP_Byte *buff, AP_Uint32 size) |
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 unsigned short | update_crc_16 (unsigned short crc, char c) |
static unsigned long | update_crc_32 (unsigned long crc, char c) |
static unsigned short | update_crc_ccitt (unsigned short crc, char c) |
static unsigned short | update_crc_dnp (unsigned short crc, char c) |
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 |
#define P_16 0xA001 |
#define P_32 0xEDB88320L |
#define P_CCITT 0x1021 |
#define P_DNP 0xA6BC |
AP_Uint16 CRC16 | ( | AP_Byte * | buff, | |
AP_Uint32 | size | |||
) |
AP_Uint32 CRC32 | ( | AP_Byte * | buff, | |
AP_Uint32 | size | |||
) |
static void init_crc16_tab | ( | void | ) | [static] |
static void init_crc32_tab | ( | void | ) | [static] |
static void init_crcccitt_tab | ( | void | ) | [static] |
static void init_crcdnp_tab | ( | void | ) | [static] |
static unsigned short update_crc_16 | ( | unsigned short | crc, | |
char | c | |||
) | [static] |
static unsigned long update_crc_32 | ( | unsigned long | crc, | |
char | c | |||
) | [static] |
static unsigned short update_crc_ccitt | ( | unsigned short | crc, | |
char | c | |||
) | [static] |
static unsigned short update_crc_dnp | ( | unsigned short | crc, | |
char | c | |||
) | [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] |