bglibs
include
crc16_ccitt.h
1
#ifndef CRC16__CCITT__H__
2
#define CRC16__CCITT__H__
3
4
#include "gcrc.h"
5
6
#define CRC16_CCITT_POLY ((uint16)0x1021)
7
#define CRC16_CCITT_INIT ((uint16)0xffff)
8
#define CRC16_CCITT_POST ((uint16)0)
9
10
extern
const
uint16 crc16_ccitt_table[256];
11
#define crc16_ccitt_update(C,D,L) gcrc16fwd((C),(D),(L),crc16_ccitt_table)
12
#define crc16_ccitt_block(B,L) crc16_ccitt_update(CRC16_CCITT_INIT,(B),(L))
13
14
#endif
Generated on Fri Feb 23 2018 10:24:53 for bglibs by
1.8.13