MRPT  2.0.3
Functions
CRC functions

Detailed Description

Header: #include <mrpt/system/crc.h>. Library: [mrpt-system]

Collaboration diagram for CRC functions:

Functions

uint16_t mrpt::system::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 mrpt::system::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. More...
 
uint32_t mrpt::system::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 mrpt::system::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. More...
 

Function Documentation

◆ compute_CRC16() [1/2]

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

◆ compute_CRC16() [2/2]

uint16_t mrpt::system::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 29 of file crc.cpp.

References mrpt::opengl::internal::data.

◆ compute_CRC32() [1/2]

uint32_t mrpt::system::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 22 of file crc.cpp.

References ASSERT_, and mrpt::opengl::internal::data.

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

◆ compute_CRC32() [2/2]

uint32_t mrpt::system::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 72 of file crc.cpp.

References CRC32Value(), and mrpt::opengl::internal::data.




Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Thu May 21 21:53:32 UTC 2020