#ifndef __CRC16_H__
#define __CRC16_H__

#define CRC16_INIT_VAL ((unsigned short)0xffff)

unsigned short crc16Init(void);
unsigned short crc16Update(char, unsigned short);
unsigned short crc16StrUpdate(char *, int , unsigned short);
unsigned short crc16Calc(char *, int);

#endif /* __CRC16_H__ */
