libattr: remove libattr because it is clashing with udev/attr and is not used by...
[openembedded.git] / recipes / i2c / files / Crc8.h
blob2d1f74b82cbbc636b16e3c1ed99ae24e3f5a3399
1 /****************************************************************************
3 * Copyright (c) 2006 Dave Hylands <dhylands@gmail.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
14 ****************************************************************************/
15 /**
17 * @file Crc8.h
19 * @brief This file contains the definition of the CRC-8 algorithim
20 * used by SMBus
22 ****************************************************************************/
24 #if !defined( CRC8_H )
25 #define CRC_H ///< Include Guard
27 /* ---- Include Files ----------------------------------------------------- */
29 #include <inttypes.h>
31 #if defined( __cplusplus )
32 extern "C"
34 #endif
37 /* ---- Constants and Types ---------------------------------------------- */
38 /* ---- Variable Externs ------------------------------------------------- */
39 /* ---- Function Prototypes ---------------------------------------------- */
41 uint8_t Crc8( uint8_t crc, uint8_t data );
43 uint8_t Crc8Block( uint8_t crc, uint8_t *data, uint8_t len );
46 #if defined( __cplusplus )
48 #endif
51 /** @} */
53 #endif // CRC8_H