Main MRPT website > C++ reference for MRPT 1.5.6
Functions
CRC functions (in #include <mrpt/utils/crc.h>)

Detailed Description

Collaboration diagram for CRC functions (in #include <mrpt/utils/crc.h>):

Functions

uint16_t BASE_IMPEXP mrpt::utils::compute_CRC16 (const std::vector< uint8_t > &data, const uint16_t gen_pol=0x8005)
 Computes the CRC16 checksum of a block of data. More...
 
uint16_t BASE_IMPEXP mrpt::utils::compute_CRC16 (const uint8_t *data, const size_t len, const uint16_t gen_pol=0x8005)
 
uint32_t BASE_IMPEXP mrpt::utils::compute_CRC32 (const std::vector< uint8_t > &data, const uint32_t gen_pol=0xEDB88320L)
 Computes the CRC32 checksum of a block of data. More...
 
uint32_t BASE_IMPEXP mrpt::utils::compute_CRC32 (const uint8_t *data, const size_t len, const uint32_t gen_pol=0xEDB88320L)
 

Function Documentation

uint16_t mrpt::utils::compute_CRC16 ( const std::vector< uint8_t > &  data,
const uint16_t  gen_pol = 0x8005 
)
uint16_t mrpt::utils::compute_CRC16 ( const uint8_t data,
const size_t  len,
const uint16_t  gen_pol = 0x8005 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 35 of file crc.cpp.

uint32_t mrpt::utils::compute_CRC32 ( const std::vector< uint8_t > &  data,
const uint32_t  gen_pol = 0xEDB88320L 
)

Computes the CRC32 checksum of a block of data.

Definition at line 27 of file crc.cpp.

Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6(), and TEST().

uint32_t mrpt::utils::compute_CRC32 ( const uint8_t data,
const size_t  len,
const uint32_t  gen_pol = 0xEDB88320L 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 78 of file crc.cpp.

References CRC32Value().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018