Struct crc16

Synopsis

#include "breeze/checksum/crc.hpp"

struct crc16

Description

Traits for CRC-16 (also known as CRC-16/ARC).

See
crc.

Source

Lines 204-216 in breeze/checksum/crc.hpp.

struct crc16
{
    typedef std::uint16_t   value_type ;

    static int        const width       = 16     ;
    static value_type const poly        = 0x8005 ;
    static value_type const init        = 0      ;
    static bool       const reflect_in  = true   ;
    static bool       const reflect_out = true   ;
    static value_type const xor_out     = 0      ;

    static value_type const check       = 0xBB3D ;
} ;