Blame view
include/crc.h
1002 Bytes
cf48eb9ab Some code cleanup |
1 2 3 4 5 6 7 8 |
/* *========================================================================== * * crc.h * * Interface for the CRC algorithms. * *========================================================================== |
e85427fd6 Add eCos-2.0 SPDX... |
9 |
* SPDX-License-Identifier: eCos-2.0 |
cf48eb9ab Some code cleanup |
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
*========================================================================== *#####DESCRIPTIONBEGIN#### * * Author(s): Andrew Lunn * Contributors: Andrew Lunn * Date: 2002-08-06 * Purpose: * Description: * * This code is part of eCos (tm). * *####DESCRIPTIONEND#### * *========================================================================== */ |
f2841d377 Add support for y... |
25 26 27 28 29 30 31 32 33 34 35 36 37 |
#ifndef _SERVICES_CRC_CRC_H_ #define _SERVICES_CRC_CRC_H_ #include <linux/types.h> #ifndef __externC # ifdef __cplusplus # define __externC extern "C" # else # define __externC extern # endif #endif |
ecb57f69b lib/crc16.c: Rena... |
38 |
/* 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ |
f2841d377 Add support for y... |
39 |
|
ecb57f69b lib/crc16.c: Rena... |
40 |
uint16_t crc16_ccitt(uint16_t crc_start, unsigned char *s, int len); |
f2841d377 Add support for y... |
41 |
|
cf48eb9ab Some code cleanup |
42 |
#endif /* _SERVICES_CRC_CRC_H_ */ |