nn::util::Crc16Ccitt Class

Syntax

class Crc16Ccitt

Description

This is the class for calculating CRC-16/CCITT.

CRC-16/CCITT is an algorithm that finds a 16-bit hash value. CRC-16/CCITT is an algorithm that is used in many data link layer standards as an FCS (Frame Check Sequence). It is defined in the X.25 standard and other standards of the CCITT (Comite Consultatif International Telegraphique et Telephonique).

Member Functions

Crc16Ccitt This is the default constructor.
InitializeContext Initializes the context used for calculating CRC-16/CCITT hash values.
Update Updates the CRC-16/CCITT hash value with the input data.
GetHash Gets the final result of calculating the CRC-16/CCITT hash value.
S Calculate Calls all the associated functions needed to calculate CRC-16/CCITT, and gets the calculation result.

Revision History

2010/10/15
Initial version.

CONFIDENTIAL