Main MRPT website > C++ reference
MRPT logo
crc.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2015, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef MRPT_UTILS_CRC_H
10 #define MRPT_UTILS_CRC_H
11 
12 #include <mrpt/utils/utils_defs.h>
13 
14 namespace mrpt
15 {
16  namespace utils
17  {
18  /** Computes the CRC16 checksum of a block of data. */
19  uint16_t BASE_IMPEXP compute_CRC16(
20  const std::vector<uint8_t> &data,
21  const uint16_t gen_pol = 0x8005 );
22 
23  /** Computes the CRC16 checksum of a block of data. */
24  uint16_t BASE_IMPEXP compute_CRC16(
25  const uint8_t *data,
26  const size_t len,
27  const uint16_t gen_pol = 0x8005 );
28 
29 
30  }
31 }
32 
33 #endif
uint16_t BASE_IMPEXP compute_CRC16(const std::vector< uint8_t > &data, const uint16_t gen_pol=0x8005)
Computes the CRC16 checksum of a block of data.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015