1 /* 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 10 uint16_t crc_16_ccitt(uint16_t fcs, const uint8_t *cp, uint32_t len); 11 12 uint16_t crc_16_ccitt_byte(uint16_t fcs, const uint8_t c); 13 14 #endif 15