ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | List of all members
TCRC_16_CCITT Class Reference

Cyclic redundancy check (CRC-16-CCITT) class. More...

#include <CRC_16_CCITT.h>

Inheritance diagram for TCRC_16_CCITT:
Inheritance graph
Collaboration diagram for TCRC_16_CCITT:
Collaboration graph

Public Member Functions

virtual U16 Init ()
 Get initial value of CRC. More...
 
virtual VOID Update (U16 &u16_CRC, U8 u8_Data)
 Update CRC with new data value. More...
 
- Public Member Functions inherited from TCRC_16_Base
BOOL Check (VOID *void_Data, U32 u32_Size, U16 u16_Expected_CRC)
 Check CRC of the data buffer. More...
 
virtual U16 Calculate (VOID *void_Data, U32 u32_Size)
 Calculate CRC of the data buffer. More...
 
virtual TRIL Test ()
 Test CRC calulation. More...
 

Detailed Description

Cyclic redundancy check (CRC-16-CCITT) class.

Member Function Documentation

◆ Init()

U16 TCRC_16_CCITT::Init ( )
virtual

Get initial value of CRC.


Note
None
Returns
U16 - CRC initial value
Override
Not allowed
Attention
None
dot_TCRC_16_CCITT__Init.png

Implements TCRC_16_Base.

◆ Update()

VOID TCRC_16_CCITT::Update ( U16 u16_CRC,
U8  u8_Data 
)
virtual

Update CRC with new data value.


Note
None
Parameters
[in,out]&u16_CRC- Actual CRC value
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
dot_TCRC_16_CCITT__Update.png

Implements TCRC_16_Base.

References u16_CRC_16_CCITT_Table.


The documentation for this class was generated from the following files: