ovr_sdk

view LibOVR/Src/Kernel/OVR_CRC32.h @ 0:1b39a1b46319

initial 0.4.4
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 Jan 2015 06:51:16 +0200
parents
children
line source
1 /************************************************************************************
3 PublicHeader: OVR
4 Filename : OVR_CRC32.h
5 Content : CRC-32 with polynomial used for sensor devices
6 Created : June 20, 2014
7 Author : Chris Taylor
9 Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
11 Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
12 you may not use the Oculus VR Rift SDK except in compliance with the License,
13 which is provided at the time of installation or download, or which
14 otherwise accompanies this software in either electronic or hard copy form.
16 You may obtain a copy of the License at
18 http://www.oculusvr.com/licenses/LICENSE-3.2
20 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
21 distributed under the License is distributed on an "AS IS" BASIS,
22 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 See the License for the specific language governing permissions and
24 limitations under the License.
26 ************************************************************************************/
28 #ifndef OVR_CRC32_h
29 #define OVR_CRC32_h
31 #include "OVR_Types.h"
33 namespace OVR {
36 //-----------------------------------------------------------------------------------
37 // ***** CRC-32
39 // Polynomial used and algorithm details are proprietary to our sensor board
40 uint32_t CRC32_Calculate(const void* data, int bytes, uint32_t prevCRC = 0);
43 } // namespace OVR
45 #endif