nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Typedefs | Variables
nrfcxx::crc Namespace Reference

Namespace providing pre-defined checksum algorithms. More...

Typedefs

using crc16dnp_type = pabigot::crc::crc< 16, 0x3d65, true, true, 0, -1 >
 CRC-16/DNP. More...
 
using crc32_type = pabigot::crc::CRC32
 CRC-32 for standard operations. More...
 

Variables

crc16dnp_type::tabler_type crc16dnp
 The tabler to use for CRC-16/DNP.
 
crc32_type::tabler_type crc32
 The tabler to use for CRC-32.
 

Detailed Description

Namespace providing pre-defined checksum algorithms.

See also
http://users.ece.cmu.edu/~koopman/crc/index.html

Typedef Documentation

◆ crc16dnp_type

using nrfcxx::crc::crc16dnp_type = typedef pabigot::crc::crc<16, 0x3d65, true, true, 0, -1>

CRC-16/DNP.

This is optimized for small packets, significantly outperforming CRC-16/CCITT and its variants.

See also
http://reveng.sourceforge.net/crc-catalogue/16.htm#crc.cat.crc-16-dnp
http://users.ece.cmu.edu/~koopman/crc/index.html

◆ crc32_type

using nrfcxx::crc::crc32_type = typedef pabigot::crc::CRC32

CRC-32 for standard operations.

This matches the libarchive/pkzip crc32 utility.

See also
http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat-bits.32