blob: c01c370d183f4133cdaf4012fcdff120fadd6e59 [file] [log] [blame]
John Chungb3de3432024-04-19 11:47:01 +08001/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2
3#ifndef _CRC_16_CCITT_H
4#define _CRC_16_CCITT_H
5
6#include <stdint.h>
7
8#define FCS_INIT_16 0xFFFF /* Initial FCS value */
9
10uint16_t crc_16_ccitt(uint16_t fcs, const uint8_t *cp, uint32_t len);
11
12uint16_t crc_16_ccitt_byte(uint16_t fcs, const uint8_t c);
13
14#endif