36#ifndef IMT_BASE_CORE_UTIL_CRC_H
37#define IMT_BASE_CORE_UTIL_CRC_H
Cyclic redundancy check (CRC) See (german): http://de.wikipedia.org/wiki/Zyklische_Redundanzpr%C3%BCf...
static int32_t createCRC16LookupTable(uint16_t const generatorPolynom)
Create a crc lookup table for 16bit crc-codes.
static uint32_t crc32(uint8_t const *pData, uint32_t const dataSize, uint32_t const crcInit)
Compute 32bit CRC code.
static bool releaseCRC16LookupTable(uint32_t const index)
Releases the created CRC lookup table.
static uint16_t crc16(uint8_t const *const pData, uint32_t const dataSize, uint16_t const crcInit, uint16_t const xorOut, bool const isReflected, uint32_t lookupTableIndex=0U)
Compute 16bit CRC code.
static uint8_t crc8(uint8_t const *pData, uint32_t const dataSize, uint8_t const crcInit, bool isReflected=false)
Calculate the CRC-8 according to SFM3019 datasheet.
static uint8_t crc4(uint16_t const *const pData)
Calculate the CRC-4 according to AN520 (MS5607)
This is a application specific file which is used to configure Imt.Base.Core.Math.
unsigned __int16 uint16_t
unsigned __int32 uint32_t