Files

22 lines
379 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0-only */
2005-08-17 15:17:26 +04:00
/*
* crc16.h - CRC-16 routine
*
2005-09-12 17:12:43 +04:00
* Implements the standard CRC-16:
2005-08-17 15:17:26 +04:00
* Width 16
* Poly 0x8005 (x^16 + x^15 + x^2 + 1)
* Init 0
*
* Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com>
*/
#ifndef __CRC16_H
#define __CRC16_H
#include <linux/types.h>
u16 crc16(u16 crc, const u8 *p, size_t len);
2005-08-17 15:17:26 +04:00
#endif /* __CRC16_H */