comparison old/crc8.h @ 212:fbdd16b45b21

merge
author Matt Johnston <matt@ucc.asn.au>
date Thu, 26 Jun 2014 23:03:32 +0800
parents 11a1b59b0624
children
comparison
equal deleted inserted replaced
211:59379b2bd056 212:fbdd16b45b21
1 #ifndef CRC8_H_
2 #define CRC8_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <stdint.h>
9
10 uint8_t crc8( uint8_t* data, uint16_t number_of_bytes_in_data );
11
12 #ifdef __cplusplus
13 }
14 #endif
15
16 #endif
17
18 /*
19 This is based on code from :
20
21 Copyright (c) 2002 Colin O'Flynn
22
23 Permission is hereby granted, free of charge, to any person obtaining a copy of
24 this software and associated documentation files (the "Software"), to deal in
25 the Software without restriction, including without limitation the rights to
26 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
27 the Software, and to permit persons to whom the Software is furnished to do so,
28 subject to the following conditions:
29
30 The above copyright notice and this permission notice shall be included in all
31 copies or substantial portions of the Software.
32
33 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
35 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
36 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
37 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
38 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39 */
40