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
12 * See README and COPYING for more details.
14 ****************************************************************************/
19 * @brief This file contains the definition of the CRC-8 algorithim
22 ****************************************************************************/
24 #if !defined( CRC8_H )
25 #define CRC_H ///< Include Guard
27 /* ---- Include Files ----------------------------------------------------- */
31 #if defined( __cplusplus )
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 )