TPppFcs16 Class Reference
Calculates the CCITT CRC-16 used by PPP in HDLC framing.
Constructor & Destructor Documentation
Member Functions Documentation
Calc(const TUint8 *, const TUint8 *)
Calculate a new FCS given the current FCS and the new data.
CalcByte(TUint8)
void
|
CalcByte
|
(
|
TUint8
|
aByte
|
)
|
[inline]
|
Incrementally calculates the CRC for the next message byte.
Fcs()
Returns the current CRC value.
Init()
Sets the CRC value to the initial state before calculation.
IsGood()
TBool
|
IsGood
|
(
|
)
|
const [inline]
|
Determines if the calculated CRC is valid.
Member Enumerations Documentation
Enum anonymous
Enumerators
KPppInitFcs16 = 0xffff
|
Initial FCS value
|
KPppGoodFcs16 = 0xf0b8
|
Good final FCS value
|
Member Data Documentation
const TUint16 FcsTable
const
TUint16
|
FcsTable
|
[private, static]
|
Fast CRC calculation table
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.