Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 74 | arune | 1 | #ifndef CRC8_H_ |
| 2 | #define CRC8_H_ |
||
| 3 | |||
| 4 | #include <inttypes.h> |
||
| 5 | |||
| 6 | uint8_t crc8 (uint8_t* data_in, uint16_t number_of_bytes_to_read); |
||
| 7 | |||
| 8 | #endif |
||
| 9 | |||
| 10 | /* |
||
| 11 | This is based on code from : |
||
| 12 | |||
| 13 | Copyright (c) 2002 Colin O'Flynn |
||
| 14 | |||
| 15 | Permission is hereby granted, free of charge, to any person obtaining a copy of |
||
| 16 | this software and associated documentation files (the "Software"), to deal in |
||
| 17 | the Software without restriction, including without limitation the rights to |
||
| 18 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
||
| 19 | the Software, and to permit persons to whom the Software is furnished to do so, |
||
| 20 | subject to the following conditions: |
||
| 21 | |||
| 22 | The above copyright notice and this permission notice shall be included in all |
||
| 23 | copies or substantial portions of the Software. |
||
| 24 | |||
| 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||
| 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
||
| 27 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
||
| 28 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
||
| 29 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
||
| 30 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
| 31 | */ |
||
| 32 |