A simple CRC library used to verify configuration data

Fork of CRC by Andrew Lindsay

Committer:
SomeRandomBloke
Date:
Mon Oct 03 09:45:59 2016 +0000
Revision:
3:599d283e5a44
Parent:
2:53b7db1f47ea
First commit for OSIO desk sensor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
SomeRandomBloke 3:599d283e5a44 1 /** crc.h
SomeRandomBloke 3:599d283e5a44 2 *
SomeRandomBloke 3:599d283e5a44 3 * @license
SomeRandomBloke 3:599d283e5a44 4 * MIT License
SomeRandomBloke 3:599d283e5a44 5 *
SomeRandomBloke 3:599d283e5a44 6 * Copyright (c) 2016 Andrew D Lindsay/Thing Innovations https://thinginnovations.uk
SomeRandomBloke 3:599d283e5a44 7 *
SomeRandomBloke 3:599d283e5a44 8 * Permission is hereby granted, free of charge, to any person obtaining a copy
SomeRandomBloke 3:599d283e5a44 9 * of this software and associated documentation files (the "Software"), to deal
SomeRandomBloke 3:599d283e5a44 10 * in the Software without restriction, including without limitation the rights
SomeRandomBloke 3:599d283e5a44 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
SomeRandomBloke 3:599d283e5a44 12 * copies of the Software, and to permit persons to whom the Software is
SomeRandomBloke 3:599d283e5a44 13 * furnished to do so, subject to the following conditions:
SomeRandomBloke 3:599d283e5a44 14 *
SomeRandomBloke 3:599d283e5a44 15 * The above copyright notice and this permission notice shall be included in all
SomeRandomBloke 3:599d283e5a44 16 * copies or substantial portions of the Software.
SomeRandomBloke 3:599d283e5a44 17 *
SomeRandomBloke 3:599d283e5a44 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
SomeRandomBloke 3:599d283e5a44 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
SomeRandomBloke 3:599d283e5a44 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
SomeRandomBloke 3:599d283e5a44 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
SomeRandomBloke 3:599d283e5a44 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
SomeRandomBloke 3:599d283e5a44 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SomeRandomBloke 3:599d283e5a44 24 * SOFTWARE.
SomeRandomBloke 3:599d283e5a44 25 *
SomeRandomBloke 3:599d283e5a44 26 */
sam_grove 0:28e16d33040f 27 #ifndef CRC_H
sam_grove 0:28e16d33040f 28 #define CRC_H
sam_grove 0:28e16d33040f 29
SomeRandomBloke 2:53b7db1f47ea 30 void CRC32Value(unsigned long &CRCval, unsigned char c);
sam_grove 0:28e16d33040f 31 unsigned long CalculateBlockCRC32(unsigned long ulCount, unsigned char *ucBuffer );
sam_grove 0:28e16d33040f 32
sam_grove 0:28e16d33040f 33 #endif
sam_grove 0:28e16d33040f 34